/* Recent Magazine Section */
.recent-magazines-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.recent-magazines-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

/* Issues Container */
.recent-magazines-section .issues-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.recent-magazines-section .issues-content {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

/* Default: 3 per slide (desktop) */
.recent-magazines-section .issue {
    flex: 0 0 33.33%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible; /* Pastikan konten tidak terpotong */
}

/* Pastikan gambar tetap proporsional dan tidak terpotong */
.recent-magazines-section .issue img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 100%;
    max-width: 100%; /* Pastikan gambar tidak melebar dari kolom */
    display: block;
}

/* Pastikan deskripsi tidak terpotong */
.recent-magazines-section .issue-info {
    padding: 20px;
    flex-grow: 1; /* Supaya deskripsi berkembang sesuai konten */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Judul dan Deskripsi */
.recent-magazines-section .issue-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.recent-magazines-section .issue-info p {
    font-size: 14px;
    color: #777;
}

.recent-magazines-section .issue-info strong {
    color: #333;
    font-weight: bold;
}

/* Navigation Arrows */
.recent-magazines-section .prev-btn,
.recent-magazines-section .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #333;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
}

.recent-magazines-section .prev-btn {
    left: 0;
}

.recent-magazines-section .next-btn {
    right: 0;
}

.recent-magazines-section .prev-btn:hover,
.recent-magazines-section .next-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #ff6f61;
}

/* Sembunyikan button pada desktop */
@media only screen and (min-width: 1025px) {
    .prev-btn, .next-btn {
        display: none;
    }
}

/* Tampilkan button pada perangkat tablet dan mobile */
@media only screen and (max-width: 1024px) {
    .prev-btn, .next-btn {
        display: block;
    }
}

/* Tablet: 2 per slide */
@media (max-width: 768px) {
    .recent-magazines-section .issue {
        flex: 0 0 50%;
    }
}

/* Mobile: 1 per slide */
@media (max-width: 480px) {
    .recent-magazines-section .issue {
        flex: 0 0 100%;
    }
    
    /* Pastikan gambar tidak terpotong */
    .recent-magazines-section .issue img {
        height: auto;
        object-fit: contain;
    }
}

/* Tambahan Fix untuk Layar Sangat Kecil (<410px) */
@media (max-width: 410px) {
    .recent-magazines-section .issue {
        flex: 0 0 100%;
    }

    .recent-magazines-section .issue img {
        height: auto;
        object-fit: contain;
        max-height: none;
    }

    .recent-magazines-section .issue-info {
        padding: 15px;
    }
}



/* Previous Issues Section */
.previous-issues-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.previous-issues-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

/* Issues Container */
.previous-issues-section .issues-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 isu per baris */
    gap: 20px; /* Jarak antar isu */
    justify-items: center;
    padding: 20px;
}

.previous-issues-section .issue {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    width: 100%; /* Pastikan setiap isu mengisi ruang yang diberikan */
}

.previous-issues-section .issue img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.previous-issues-section .issue-info {
    padding: 20px;
}

.previous-issues-section .issue-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.previous-issues-section .issue-info p {
    font-size: 14px;
    color: #777;
}

.previous-issues-section .issue-info strong {
    color: #333;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .previous-issues-section .issues-container {
        grid-template-columns: repeat(2, 1fr); /* 2 isu per baris pada layar medium */
    }
}

@media (max-width: 480px) {
    .previous-issues-section .issues-container {
        grid-template-columns: repeat(2, 1fr); /* 1 isu per baris pada layar kecil */
    }
}
/* Style for the select dropdown */
.select-wrapper {
    display: inline-block;
    position: relative;
    width: 200px; /* Adjust width as needed */
    margin-top: 10px; /* Menurunkan posisi dropdown */
}


select {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    outline: none;
    appearance: none; /* Remove default arrow */
    transition: border 0.3s ease;
}

select:focus {
    border-color: #ff6f61;
}

/* Add custom arrow to the select */
select::-ms-expand {
    display: none; /* Hide default arrow in IE */
}

/* Custom arrow */
.select-wrapper::after {
    font-size: 16px;
    color: #333;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Adjustments for issues container */
.issues-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Individual issue styling */
.issue {
    width: 30%; /* 3 items per row */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.issue img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.issue-info {
    padding: 20px;
}

.issue-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.issue-info p {
    font-size: 14px;
    color: #777;
}

.issue-info strong {
    color: #333;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .issue {
        width: 45%; /* 2 items per row on medium screens */
    }
}

@media (max-width: 480px) {
    .select-wrapper {
        width: 80%;
    }

    .issue {
        width: 100%; /* Full width for small screens */
    }

    .filter-options {
        flex-direction: column;
        align-items: center;
    }

    label {
        font-size: 12px;
    }

    select {
        font-size: 12px;
    }
}

/* New Magazine Section */
.magazine-section-custom {
    padding: 50px 20px;
    display: flex;
    justify-content: space-between;
    background-color: #f4f4f4;
}

.magazine-section-custom .magazine-cover-custom {
    max-width: 45%;
    height: auto;
    object-fit: cover;
}

.magazine-section-custom .magazine-description-custom {
    max-width: 45%;
    padding: 20px;
    text-align: left;
}

.magazine-section-custom .magazine-description-custom h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.magazine-section-custom .magazine-description-custom .issue-details-custom {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.magazine-section-custom .magazine-description-custom p {
    font-size: 16px;
    color: #333;
}

.magazine-section-custom .magazine-details-custom {
    padding: 20px;
    text-align: center;
}

.magazine-section-custom .flipbook-button-custom {
    background-color: #ff6f61;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.magazine-section-custom .flipbook-button-custom:hover {
    background-color: #ff4a36;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .magazine-section-custom {
        flex-direction: column;
        align-items: center;
    }

    .magazine-section-custom .magazine-cover-custom {
        max-width: 100%;
    }

    .magazine-section-custom .magazine-description-custom,
    .magazine-section-custom .magazine-details-custom {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .magazine-section-custom .flipbook-button-custom {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Magazine section styling */
.magazine-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;  /* Padding around the whole section */
}

/* Center the magazine cover image */
.magazine-cover-container {
    flex: 1;
    max-width: 35%; /* Reduced size of the image */
    margin: 15px; /* Add margin around the image */
}

.magazine-cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Styling for magazine description */
.magazine-description {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.magazine-description h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.issue-details {
    font-size: 18px;
    color: #777;
    margin-bottom: 20px;
}

/* Flipbook button styling */
.flipbook-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f84626;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.flipbook-button:hover {
    background-color: #e4761d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .magazine-section {
        flex-direction: column;
        align-items: center;
    }

    .magazine-cover-container, .magazine-description {
        max-width: 100%;
    }

    .flipbook-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

.select-wrapper {
    display: flex;
    align-items: center; /* Align text and icon vertically */
    gap: 8px; /* Space between text and icon */
    margin-bottom: 10px;
}

label {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center; /* Align text and icon vertically */
}

/* Style for category filter */
.category-filter {
    margin-bottom: 20px; /* Space below the filter */
    display: flex;
    justify-content: center; /* Centering the filter */
    align-items: center;
}

/* Select wrapper */
.select-wrapper {
    display: flex;
    flex-direction: column; /* Stack label and select vertically */
    align-items: center;
    max-width: 400px; /* Limit max width on larger screens */
    width: 100%;
}

/* Label */
.select-wrapper label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

/* Dropdown select box */
.select-wrapper select {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    width: 100%;
    background-color: #fff;
    transition: border-color 0.3s;
}

/* Hover and focus effect for the select box */
.select-wrapper select:hover,
.select-wrapper select:focus {
    border-color: #ff6f61;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .category-filter {
        padding: 0 20px; /* Add padding for mobile */
    }
    
    .select-wrapper label {
        font-size: 14px; /* Smaller label font for mobile */
    }
    
    .select-wrapper select {
        font-size: 14px; /* Smaller font for mobile */
    }
}

/* Mobile: Larger padding for easier touch interaction */
@media (max-width: 480px) {
    .select-wrapper select {
        padding: 12px 15px; /* Larger padding for easier touch interaction */
    }
}


