.news-section {
    padding-top: 10px;
    position: relative;
}

.news-section h2 {
    margin: 8px auto 0;
    max-width: 900px;
    text-align: center;
    font-size: clamp(34px, 3.2vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-weight: 600;
}

.news-stack {
    position: relative;
    margin-top: 30px;
    overflow: visible;
    border-radius: 24px;
}

.news-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(92px, auto);
    align-items: start;
}

.news-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: 18px;
    overflow: clip;
    border: 1px solid #e2e6ee;
    background: #ffffff;
    box-shadow: 0 14px 32px -30px rgba(22, 40, 86, 0.45);
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.98);
    transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.62s ease, box-shadow 0.34s ease, border-color 0.34s ease, background-color 0.34s ease;
}

.news-card::after {
    content: "";
    position: absolute;
    inset: auto -22% -58% -22%;
    height: 64%;
    background: radial-gradient(closest-side, rgba(27, 67, 148, 0.22), transparent 72%);
    opacity: 0;
    transition: opacity 0.34s ease;
    pointer-events: none;
}

.news-card[data-news-enter="left"] {
    transform: translate3d(-56px, 42px, 0) scale(0.97) rotate(-0.8deg);
}

.news-card[data-news-enter="right"] {
    transform: translate3d(56px, 42px, 0) scale(0.97) rotate(0.8deg);
}

.news-card[data-news-enter="up"] {
    transform: translate3d(0, 68px, 0) scale(0.97);
}

.news-card.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.news-card:hover {
    transform: translate3d(0, -7px, 0) scale(1.012);
    border-color: #d0d8e7;
    background: #ffffff;
    box-shadow: 0 24px 44px -30px rgba(18, 35, 79, 0.45);
}

.news-card:hover::after {
    opacity: 0.8;
}

.news-media {
    display: block;
    position: relative;
    height: 210px;
    overflow: hidden;
}

.news-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 19, 42, 0) 48%, rgba(9, 19, 42, 0.18) 100%);
    z-index: 1;
    pointer-events: none;
}

.news-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}

.news-card:hover img {
    transform: scale(1.07);
    filter: saturate(1.12) contrast(1.04);
}

.news-content {
    padding: 12px 14px 14px;
    display: grid;
    gap: 8px;
}

.news-pill {
    width: max-content;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid #d7dfec;
    color: #20305d;
    background: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    letter-spacing: 0.02em;
    font-weight: 600;
    text-transform: uppercase;
}

.news-meta,
.news-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #91949c;
    font-size: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.news-card h3 {
    font-size: clamp(19px, 1.25vw, 23px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    min-height: 72px;
    font-weight: 600;
    color: #101a32;
    transition: transform 0.34s ease, color 0.34s ease;
}

.news-foot {
    margin-top: 2px;
    align-items: center;
}

.news-foot a {
    color: #18397f;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-weight: 600;
    transition: transform 0.28s ease, color 0.28s ease;
}

.news-card:hover .news-meta {
    transform: translateY(-1px);
}

.news-card:hover h3 {
    transform: translateY(-1px);
    color: #0d214b;
}

.news-card:hover .news-foot {
    transform: translateY(-1px);
}

.news-card:hover .news-foot a {
    transform: translateX(4px);
    color: #0f2f73;
}

.news-card--feature {
    grid-column: 1 / span 8;
    grid-row: 1 / span 2;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr;
}

.news-card--feature .news-media {
    height: 100%;
    min-height: 300px;
}

.news-card--feature .news-content {
    padding: 16px;
    align-content: start;
}

.news-card--feature h3 {
    font-size: clamp(24px, 1.9vw, 32px);
    min-height: 126px;
}


.news-card--b {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
}

.news-card--b .news-media {
    height: clamp(230px, 18vw, 300px);
}
.news-card--tall {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
}

.news-card--tall .news-media {
    height: clamp(230px, 18vw, 300px);
}

.news-card--wide {
    grid-column: 1 / span 6;
    grid-row: 3;
}

.news-card--c {
    grid-column: 1 / span 6;
    grid-row: 3;
}

.news-card--d {
    grid-column: 7 / span 3;
    grid-row: 3;
}

.news-card--e {
    grid-column: 10 / span 3;
    grid-row: 3;
}


@media (max-width: 1024px) {
    .news-section h2 {
        font-size: 30px;
    }

    .news-stack {
        border-radius: 18px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        grid-auto-rows: auto;
    }

    .news-card,
    .news-card[data-news-enter="left"],
    .news-card[data-news-enter="right"],
    .news-card[data-news-enter="up"] {
        transform: translate3d(0, 30px, 0) scale(0.985);
    }

    .news-media {
        height: 206px;
    }

    .news-card--feature {
        grid-column: span 2;
        grid-template-columns: 1fr;
        grid-row: auto;
    }

    .news-card--b,
    .news-card--tall,
    .news-card--wide,
    .news-card--c,
    .news-card--d,
    .news-card--e {
        grid-column: span 1;
        grid-row: auto;
    }

    .news-card--feature .news-media {
        min-height: 220px;
    }



    .news-card h3,
    .news-card--feature h3 {
        font-size: 21px;
        min-height: auto;
    }
}

@media (max-width: 680px) {

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card--feature,
    .news-card--b,
    .news-card--tall,
    .news-card--wide,
    .news-card--c,
    .news-card--d,
    .news-card--e {
        grid-column: auto;
    }


}
/* Featured news image split. */
.news-card--feature {
    grid-column: 1 / span 8;
    grid-row: 1 / span 2;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.98fr);
    grid-template-rows: 1fr;
    min-height: clamp(380px, 32vw, 520px);
    align-items: stretch;
}

.news-card--feature .news-media {
    height: 100%;
    min-height: clamp(380px, 32vw, 520px);
    border-radius: 18px 0 0 18px;
}

.news-card--feature .news-media img,
.news-card--feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card--feature .news-content {
    min-height: clamp(380px, 32vw, 520px);
    padding: clamp(22px, 2.2vw, 34px);
    align-content: start;
    grid-template-rows: auto auto 1fr auto;
}

.news-card--feature h3 {
    max-width: 540px;
    min-height: 0;
    font-size: clamp(30px, 2.3vw, 44px);
    line-height: 1.12;
}

.news-card--feature .news-foot {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .news-card--feature {
        grid-column: span 2;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .news-card--feature .news-media {
        min-height: 260px;
        border-radius: 18px 18px 0 0;
    }

    .news-card--feature .news-content {
        min-height: auto;
    }
}

@media (max-width: 680px) {
    .news-card--feature {
        grid-column: auto;
    }
}
