/* News Cards — latest posts (Figma 454:20 "Latest News").
   Two layouts: centered (homepage) and left-aligned "page" mode (eyebrow +
   heading + intro + divider + featured + grid + Load More). The card image
   fills the whole card; a magenta panel pinned to the bottom shows the title
   and grows upward to reveal the excerpt on hover. */
.news-cards {
    background: #fff;
    padding: 82px 0 92px;
    text-align: center;
}
.news-cards .container {
    max-width: 1440px;          /* match home_hero + other new-design blocks */
    width: 100%;
    margin: 0 auto;
    padding: 0 86px;
    box-sizing: border-box;
}

/* ---- Page-mode header (left aligned) ---- */
.news-cards--page {
    text-align: left;
    padding: 60px 0 90px;
}
.news-cards__eyebrow {
    color: var(--ct-navy);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin: 0 0 28px;
}
.news-cards__eyebrow a {
    color: inherit;
    text-decoration: none;
}
.news-cards__eyebrow a:hover,
.news-cards__eyebrow a:focus {
    text-decoration: underline;
}
.news-cards__heading {
    color: var(--ct-navy);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 56px);
    margin: 0 0 46px;
}
.news-cards--page .news-cards__heading {
    font-size: clamp(34px, 3.6vw, 51px);
    margin: 0 0 20px;
}
.news-cards__intro {
    color: var(--ct-navy);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.55;
    max-width: 1168px;
    margin: 0;
}
.news-cards__divider {
    border: 0;
    border-top: 2px solid var(--ct-blue);
    margin: 38px 0 44px;
}

/* ---- Featured post ---- */
.news-featured {
    display: block;
    text-decoration: none;
    margin-bottom: 26px;
}
.news-featured__media {
    position: relative;
    aspect-ratio: 1176 / 370;
    background: #c9d4d6 center/cover no-repeat;
    background-image: var(--featured-bg);
}
.news-featured__badge {
    position: absolute;
    top: 47px;
    right: 0;
    background: #77095f;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(15px, 1.4vw, 20px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 16px 28px;
}
.news-featured__bar {
    background: #b0068b;
    padding: 30px clamp(20px, 2.2vw, 32px);
}
.news-featured__title {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.22;
    margin: 0;
}

/* ---- Card grid ---- */
.news-cards__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto;
}
.news-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 580 / 493;    /* image area + the default magenta bar */
    text-align: left;
    text-decoration: none;
    background: #c9d4d6;
}
.news-card__media {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
}
.news-card__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: #b0068b;
    padding: 22px clamp(20px, 1.8vw, 32px) 26px;
}
.news-card__title {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
}
.news-card__excerpt {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease, margin-top .4s ease;
}
.news-card:hover .news-card__excerpt,
.news-card:focus-within .news-card__excerpt {
    max-height: 180px;
    opacity: 1;
    margin-top: 12px;
}

/* ---- Footer actions ---- */
.news-cards__more {
    text-align: center;
    margin-top: 46px;
}
.news-cards__more-btn[hidden] {
    display: none;
}
.news-cards__more-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}
.news-cards__cta {
    margin-top: 46px;
}
.news-cards__empty {
    grid-column: 1 / -1;
    color: var(--ct-navy);
}

@media (max-width: 767px) {
    .news-cards__grid { grid-template-columns: 1fr; }
    .news-card { aspect-ratio: 16 / 11; }
    .news-featured__media {
        aspect-ratio: 16 / 10;
        background-image: var(--featured-bg-mobile, var(--featured-bg));
    }
    .news-featured__badge { top: 20px; font-size: 14px; padding: 12px 18px; }
    /* Mobile: show the card title only — hide the excerpt/short text. */
    .news-card__excerpt { display: none; }
}
