.news-page {
    min-height: 100vh;
    margin: 0;
    background-color: #fffdfb;
    background-image: url("../img/batik-pattern.svg"), radial-gradient(ellipse at 16% 12%, rgba(205, 163, 132, 0.26), transparent 43%);
    background-repeat: repeat, no-repeat;
    background-size: 140px 140px, auto;
    background-attachment: fixed, fixed;
    color: #28221e;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.news-page #navbar {
    border-bottom-color: transparent;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.news-page #navbar.shadow-md {
    border-bottom-color: rgba(139, 90, 43, 0.08);
    background: rgba(255, 253, 251, 0.82);
    box-shadow: 0 4px 18px rgba(62, 40, 28, 0.06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.news-main {
    overflow: hidden;
}

.news-hero {
    position: relative;
    display: flex;
    min-height: 380px;
    align-items: center;
    overflow: hidden;
    padding: clamp(2.2rem, 5vw, 4rem) 1.5rem 5rem;
    background: transparent;
}

.news-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1120px);
    margin: 0 auto;
}

.news-eyebrow,
.news-section-kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.9rem;
    color: #8b5a2b;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.news-eyebrow span {
    width: 1.5rem;
    height: 1px;
    background: #a66d3a;
}

.news-hero h1 {
    margin: 0;
    color: #201a17;
    font-size: clamp(3rem, 6.8vw, 5.6rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.99;
}

.news-hero h1 em {
    color: #80341f;
    font-style: normal;
}

.news-hero-description {
    max-width: 590px;
    margin: 1.2rem 0 1.6rem;
    color: #6b625c;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.news-hero-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.68rem 1.05rem;
    border-radius: 999px;
    background: #783a25;
    color: #fffaf6;
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(120, 58, 37, 0.17);
    transition: transform 160ms ease, background-color 160ms ease;
}

.news-hero-link:hover {
    transform: translateY(-2px);
    background: #642d1c;
}

.news-hero-ornament {
    position: absolute;
    top: 50%;
    right: max(7vw, calc((100vw - 1280px) / 2));
    display: grid;
    width: clamp(9rem, 18vw, 15rem);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(128, 52, 31, 0.12);
    border-radius: 50%;
    color: rgba(128, 52, 31, 0.12);
    font-size: clamp(4rem, 8vw, 7rem);
    transform: translateY(-50%) rotate(-12deg);
}

.news-hero-ornament::before,
.news-hero-ornament::after {
    position: absolute;
    inset: 0.8rem;
    border: 1px solid rgba(128, 52, 31, 0.1);
    border-radius: 50%;
    content: '';
}

.news-hero-ornament::after {
    inset: -0.8rem;
}

.news-library {
    padding: 0 1.5rem 5rem;
    scroll-margin-top: 5rem;
}

.news-library-inner {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.news-library-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.8rem;
}

.news-section-kicker {
    margin-bottom: 0.5rem;
}

.news-library-heading h2 {
    margin: 0;
    color: #29221e;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 730;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.news-library-description {
    margin: 0.55rem 0 0;
    color: #746a63;
    font-size: 0.92rem;
    line-height: 1.6;
}

.news-toolbar {
    display: flex;
    flex: 0 1 510px;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.news-search-control {
    position: relative;
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.9rem;
    border: 1px solid #e8ded6;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.86);
    color: #8b5a2b;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.news-search-control:focus-within {
    border-color: #b88c6b;
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

.news-year-control { position:relative; flex:0 0 46px; }
.news-year-trigger { position:relative; display:grid; width:46px; height:46px; place-items:center; border:1px solid #e8ded6; border-radius:.85rem; background:rgba(255,255,255,.86); color:#8b5a2b; font:inherit; cursor:pointer; transition:border-color 150ms ease,box-shadow 150ms ease,background 150ms ease; }
.news-year-trigger:hover,.news-year-trigger[aria-expanded="true"] { border-color:#b88c6b; background:#fff; }
.news-year-trigger:focus-visible { outline:0; border-color:#b88c6b; box-shadow:0 0 0 3px rgba(139,90,43,.12); }
.news-filter-dot { position:absolute; top:8px; right:8px; width:7px; height:7px; border:1px solid #fff; border-radius:50%; background:#8b3e24; }
.news-year-menu { position:absolute; z-index:1100; top:calc(100% + .5rem); left:0; display:grid; width:max-content; min-width:150px; max-height: min(18rem,60vh); gap:.2rem; overflow-y:auto; padding:.4rem; border:1px solid #eadbd1; border-radius:.85rem; background:#fffdfb; box-shadow:0 14px 34px rgba(62,40,28,.16); }
.news-year-menu[hidden] { display:none!important; }
.news-year-option { min-height:40px; padding:0 .8rem; border:0; border-radius:.55rem; background:transparent; color:#50453d; font:inherit; font-size:.86rem; text-align:left; cursor:pointer; }
.news-year-option:hover,.news-year-option:focus-visible { outline:0; background:#f8eee6; color:#80341f; }
.news-year-option.is-selected { background:#f3e7dc; color:#80341f; font-weight:700; }

.news-search-control {
    flex: 1 1 250px;
    min-width: 0;
}

.news-search-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #302720;
    font: inherit;
    font-size: 0.88rem;
}

.news-search-control input::placeholder {
    color: #998e86;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eee5de;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(62, 40, 28, 0.055);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #dfc5b2;
    box-shadow: 0 16px 34px rgba(62, 40, 28, 0.12);
}

.news-card[hidden] {
    display: none !important;
}

.news-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.news-card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.62 / 1;
    background: #f1e8e0;
}

.news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.news-card:hover .news-image {
    transform: scale(1.035);
}

.news-card-image-wrap::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(24, 17, 13, 0.48));
    content: '';
    pointer-events: none;
}

.news-featured-badge,
.news-views {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.news-featured-badge {
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.45rem 0.65rem;
    background: rgba(112, 54, 31, 0.86);
}

.news-views {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.4rem 0.6rem;
    background: rgba(31, 25, 22, 0.65);
}

.news-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem 1.2rem 1.2rem;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: #8a7e75;
    font-size: 0.72rem;
    line-height: 1.5;
}

.news-meta time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b58a6b;
}

.news-card-content h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.65rem 0 0;
    color: #29221e;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.55rem 0 1rem;
    color: #70665f;
    font-size: 0.85rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    color: #7c4028;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-read-link i {
    transition: transform 150ms ease;
}

.news-card:hover .news-read-link i {
    transform: translateX(3px);
}

.news-source {
    overflow: hidden;
    margin-top: 0.8rem;
    color: #a0958c;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card-featured {
    grid-column: span 2;
}

.news-card-featured .news-card-link {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
}

.news-card-featured .news-card-image-wrap {
    min-height: 300px;
    aspect-ratio: auto;
}

.news-card-featured .news-card-content {
    justify-content: center;
    padding: clamp(1.35rem, 2.6vw, 2.2rem);
}

.news-card-featured .news-card-content h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    -webkit-line-clamp: 3;
}

.news-card-featured .news-excerpt {
    -webkit-line-clamp: 5;
}

.news-empty-state {
    padding: 2.5rem 1rem;
    color: #76675d;
    text-align: center;
}

.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.news-pagination[hidden] {
    display: none;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.pagination a,
.pagination span {
    display: grid;
    min-width: 2.6rem;
    min-height: 2.6rem;
    place-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid #eadfd6;
    border-radius: 0.75rem;
    background: #fff;
    color: #685a50;
    font-size: 0.84rem;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.pagination a:hover:not(.active) {
    border-color: #d8c1ae;
    background: #f8f0e9;
    color: #713a24;
}

.pagination a.active {
    border-color: #783a25;
    background: #783a25;
    color: white;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-card-featured {
        grid-column: span 2;
    }

    .news-hero-ornament {
        right: 4vw;
        opacity: 0.55;
    }
}

@media (max-width: 640px) {
    .news-hero {
        min-height: 0;
        padding: 2.2rem 1.1rem 3.2rem;
    }

    .news-hero-inner {
        padding-right: 0.5rem;
    }

    .news-hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .news-hero-description {
        max-width: 440px;
        margin: 1rem 0 1.35rem;
        font-size: 0.96rem;
    }

    .news-hero-ornament {
        top: auto;
        right: -2rem;
        bottom: 1rem;
        width: 7rem;
        font-size: 2.6rem;
        transform: rotate(-12deg);
    }

    .news-library {
        padding: 0 1rem 3.5rem;
    }

    .news-library-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .news-toolbar {
        flex: auto;
        width: 100%;
        justify-content: stretch;
    }

    .news-year-control { flex-basis:46px; }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
    }

    .news-card-featured {
        grid-column: auto;
    }

    .news-card-featured .news-card-link {
        display: flex;
    }

    .news-card-image-wrap,
    .news-card-featured .news-card-image-wrap {
        min-height: 0;
        aspect-ratio: 1.65 / 1;
    }

    .news-card-featured .news-card-content {
        padding: 1.05rem 1.1rem 1.15rem;
    }

    .news-card-featured .news-card-content h3 {
        font-size: 1.15rem;
    }

    .news-card-featured .news-excerpt {
        -webkit-line-clamp: 3;
    }

    .news-pagination {
        margin-top: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-image,
    .news-hero-link,
    .news-read-link i {
        transition: none;
    }
}
