.news {
    padding: 5rem 0;
    background: #fff;
}

.news__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.news__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news__filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: #eef1f8;
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.news__filter-count {
    min-width: 1.15rem;
    padding: 0.05rem 0.38rem;
    border-radius: 999px;
    background: rgba(0, 32, 104, 0.1);
    font-size: 0.68rem;
    line-height: 1.35;
    text-align: center;
}

.news__filter.is-active .news__filter-count,
.news__filter:hover .news__filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.news__filter.is-active,
.news__filter:hover {
    background: var(--color-navy);
    color: #fff;
}

.news__layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

.news__layout--single {
    grid-template-columns: minmax(0, 1.4fr);
}

.news__filter:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

.news__featured {
    position: relative;
    min-height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 2.5rem;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(0, 32, 104, 0.15) 0%, rgba(0, 32, 104, 0.85) 100%),
        var(--news-bg) center/cover no-repeat;
}

.news__featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-self: start;
}

.news__featured-tag {
    background: var(--color-success);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
}

.news__featured-tag--campaign {
    background: rgba(50, 191, 109, 0.22);
    color: #1f8f4e;
}

.news__featured:not(.news__featured--plain) .news__featured-tag--campaign {
    background: rgba(255, 255, 255, 0.92);
    color: #1f8f4e;
}

.news__featured h3 {
    margin: 1rem 0 0;
    max-width: 18ch;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.news__featured p {
    margin: 0.75rem 0 0;
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.85);
}

.news__featured-link {
    margin-top: 1.25rem;
    font-weight: 700;
}

.news__featured--plain {
    min-height: 0;
    padding: 0;
    color: var(--color-navy);
    background: #f3f5fb;
    justify-content: flex-start;
}

.news__featured-photo {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    object-position: center;
    background: #e7ebf5;
    display: block;
}

.news__featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.75rem 1.75rem;
}

.news__featured--plain h3,
.news__featured--plain .news__featured-link {
    color: var(--color-navy);
}

.news__featured--plain h3 {
    max-width: 28ch;
}

.news__featured--plain p {
    max-width: 62ch;
    color: var(--color-muted);
}

.news__group-title {
    margin: 0 0 1.15rem;
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--color-navy);
    padding-bottom: 0.35rem;
    border-bottom: 3px solid var(--color-navy);
}

.news__group-title--spaced {
    margin-top: 2.5rem;
}

.news__past {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 360px));
    gap: 1.15rem;
}

.news__past-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.05);
}

.news__past-card:hover {
    color: inherit;
}

.news__past-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    background: #eef2f7;
}

.news__past-media img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.news__past-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem 1.1rem;
}

.news__past-body h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--color-navy);
}

.news__past-body time {
    color: var(--color-muted);
    font-size: 0.85rem;
}

@media (min-width: 800px) {
    .news__layout--single .news__featured--plain {
        display: grid;
        grid-template-columns: minmax(240px, 440px) minmax(0, 1fr);
        align-items: stretch;
    }

    .news__layout--single .news__featured-photo {
        width: 100%;
        height: 100%;
        max-height: 520px;
        min-height: 420px;
        object-fit: contain;
    }

    .news__layout--single .news__featured-body {
        justify-content: center;
        padding: 2rem 2.25rem;
    }
}

.news__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news__item {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.news__item img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 10px;
    background: #e8eefc;
}

.news__item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.news__item-cat {
    color: var(--color-navy);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news__item-campaign {
    color: #1f8f4e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news__item h4 {
    margin: 0.4rem 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-navy);
    line-height: 1.35;
}

.news__item time {
    color: var(--color-muted);
    font-size: 0.85rem;
}

@media (max-width: 980px) {
    .news__header,
    .news__layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .news__header {
        align-items: start;
    }

    .news__item {
        grid-template-columns: 96px 1fr;
    }

    .news__item img {
        width: 96px;
        height: 96px;
    }

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