body {
    background: #f5f5f5;
    color: #18181e;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.newsletter-header {
    color: #003366;
    padding: 45px 0 30px 0;
    text-align: center;
    background: #fff;
    border-bottom: 2px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.newsletter-header h1 {
    font-weight: 700;
    font-size: 3em;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
    color: #003366;
    position: relative;
}

.newsletter-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #d4a017;
    margin: 12px auto 0;
    border-radius: 2px;
}

.newsletter-description {
    color: #222;
    font-size: 1.2em;
    max-width: 1300px;
    margin: 25px auto 15px;
    line-height: 1.6;
    text-align: left;
    padding: 0 25px;
}

.main-content-wrapper {
    max-width: 1350px;
    margin: 35px auto;
    padding: 0 25px;
}

.section-title {
    font-size: 2.1rem;
    color: #003366;
    font-weight: 700;
    margin-bottom: 45px;
    margin-top: 10px;
    text-align: center;
    position: relative;
    padding-left: 12px; /* Adjusted to keep text centered visually with pseudo-element */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: #d4a017;
    margin-top: 8px;
    border-radius: 2px;
    margin-left: auto; /* Centering the pseudo-element */
    margin-right: auto; /* Centering the pseudo-element */
}

.latest-issue-section {
    margin-bottom: 60px;
}

.newsletter-current {
    background: #fff;
    color: #222;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    padding: 25px 50px;
    gap: 80px;
    min-height: 320px;
    border-left: 7px solid #157ef7;
    position: relative;
}

.current-details {
    flex: 1.2;
    padding-left: 0;
}

.current-details h3 {
    font-size: 1.9em;
    color: #003366;
    margin-bottom: 25px;
    font-weight: bolder;
    font-family: 'Poppins', sans-serif;
}

.current-details p {
    font-size: 1.15em;
    margin-bottom: 20px;
    color: #18181e;
    line-height: 1.6;
}

.current-cover {
    flex: 1.5;
    height: 280px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cover-image {
    width: 800px; /* Original width, will be overridden by responsive styles */
    height: 255px; /* Original height, will be overridden by responsive styles */
    object-fit: cover;
    border-radius: 10px;
    border: #003366 solid 1px;
    background: #e5e5e5;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}

.view-button {
    background-color: #003366;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    border: none;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    margin-top: 20px;
}

.view-button:hover {
    background-color: #0055a5;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,51,102,0.3);
}

.newsletter-archive-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 100px;
}

.year-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
    height: 70px; /* Ensures consistent height */
}

.carousel-arrow {
    background: none;
    color: #333;
    border: none;
    font-size: 2.2rem;
    font-weight: 700;
    width: 45px;
    height: 60px; /* Ensures consistent height and centering */
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s;
    flex-shrink: 0;
    outline: none;
    margin: 0 15px;
    user-select: none;
}

.carousel-arrow:hover {
    color: #003366;
    background: none;
    transform: scale(1.15);
    box-shadow: none;
}

.carousel-arrow:active {
    transform: scale(0.98);
}

.year-filter-carousel {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.year-filter-carousel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease-in-out;
    white-space: nowrap;
}

.year-filter-carousel li {
    padding: 15px 25px;
    border-radius: 25px;
    background-color: #e9e9e9;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dcdcdc;
    flex-shrink: 0;
    min-width: 90px;
    text-align: center;
}

.year-filter-carousel li:hover {
    background-color: #d4ebf7;
    color: #003366;
}

.year-filter-carousel li.active {
    background-color: #003366;
    color: #fff;
    border-color: #003366;
    box-shadow: 0 2px 8px rgba(0,51,102,0.2);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px; /* Adjusted from 45px, which might be too large for smaller screens */
    justify-content: center;
}

.newsletter-item {
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    animation: fadeInUp 0.6s ease-out;
    min-height: 390px; /* Ensures consistent card height */
}

.newsletter-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    background: #eef4fb;
}

.newsletter-item.hide {
    display: none;
}

.newsletter-item .item-cover {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px 8px 0 0; /* Apply border-radius only to top corners */
}

.newsletter-item .item-cover img, .newsletter-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newsletter-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.newsletter-item .item-details {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-details p {
    font-family: 'Segoe UI', Arial;
    font-size: 1.15rem;
    margin: 0 0 20px 0;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Media Queries for Responsiveness --- */

@media (max-width: 1280px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px; /* Slightly reduced gap */
    }
    .newsletter-current {
        padding: 20px 30px;
        gap: 50px;
        min-height: 280px;
    }
    .current-cover {
        height: 240px;
        width: 100%;
        max-width: 600px;
        justify-content: center;
    }
    .cover-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    .newsletter-item .item-cover {
        height: 220px; /* Adjusted height for consistency */
    }
}

@media (max-width: 992px) {
    .newsletter-header h1 {
        font-size: 2.5em;
    }
    .newsletter-description {
        font-size: 1.1em;
        padding: 0 20px;
        text-align: center;
    }
    .section-title {
        margin-top: 35px;
        margin-bottom: 30px;
        font-size: 1.8em;
    }
    .section-title::after {
        margin-left: auto; /* Re-center pseudo-element */
        margin-right: auto;
    }
    .newsletter-current, .newsletter-archive-section {
        padding: 20px;
    }
    .newsletter-current {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        min-height: auto;
        padding-bottom: 30px;
    }
    .current-details {
        padding-left: 0;
        text-align: center;
        flex: auto;
    }
    .current-details h3, .current-details p {
        margin-bottom: 15px;
    }
    .current-cover {
        width: 100%;
        max-width: 450px;
        height: 200px;
        margin-bottom: 10px;
        justify-content: center;
        /* aspect-ratio: 16 / 9; */ /* Removed as height is now fixed, avoid conflicting */
    }
    .cover-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    .archive-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
        gap: 25px;
    }
    .newsletter-item {
        min-height: 350px; /* Adjusted min-height for two-column layout */
    }
    .newsletter-item .item-cover {
        height: 180px; /* Adjusted height for consistency in two-column layout */
    }
    .year-filter-carousel li {
        min-width: 70px;
        padding: 10px 20px;
    }
    .carousel-arrow {
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .newsletter-header h1 {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .newsletter-header h1::after {
        width: 50px;
        margin: 10px auto 0;
    }
    .newsletter-description {
        font-size: 1em;
        padding: 0 15px;
    }
    .main-content-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }
    .newsletter-current, .newsletter-archive-section {
        padding: 15px;
    }
    .current-cover {
        width: 100%;
        height: 180px;
        /* aspect-ratio: 16 / 9; */ /* Removed */
    }
    .cover-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
    .archive-grid {
        grid-template-columns: 1fr; /* Single column for mobiles */
        gap: 20px;
    }
    .newsletter-item {
        min-height: auto; /* Allow height to adjust for single column */
    }
    .newsletter-item .item-cover {
        height: 200px; /* Consistent height for single column image */
    }
    .year-carousel-container {
        padding: 8px 10px;
        height: auto; /* Allow height to adjust */
    }
    .year-filter-carousel ul {
        gap: 15px;
    }
    .year-filter-carousel li {
        padding: 8px 15px;
        font-size: 0.95em;
        min-width: 60px;
    }
    .carousel-arrow {
        font-size: 1.6rem;
        width: 35px;
        height: 35px;
        margin: 0 8px;
    }
    .section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .item-details p {
        font-size: 1em;
        margin-bottom: 15px;
    }
    .view-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .newsletter-header h1 {
        font-size: 1.7em;
    }
    .newsletter-description {
        font-size: 0.95em;
        padding: 0 10px;
    }
    .current-cover {
        width: 100%;
        height: 160px;
        /* aspect-ratio: 4 / 3; */ /* Removed */
    }
    .cover-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
    .newsletter-item .item-cover {
        height: 160px; /* Smaller image height for very small screens */
    }
    .carousel-arrow {
        font-size: 1.4rem;
        width: 30px;
        height: 30px;
        margin: 0 6px;
    }
    .year-filter-carousel li {
        padding: 7px 12px;
        font-size: 0.9em;
        min-width: 50px;
    }
    .current-details h3 {
        font-size: 1.5em;
    }
    .current-details p {
        font-size: 0.95em;
    }
    .section-title {
        font-size: 1.4em;
    }
    .item-details p {
        font-size: 0.95em;
    }
    .view-button {
        padding: 8px 18px;
        font-size: 0.85em;
    }
}