.news-listing {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: #f5f8fa;
}

.news-listing__header,
.news-article-heading {
    max-width: 760px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.news-pages-eyebrow {
    display: inline-block;
    margin-bottom: .7rem;
    color: #087da0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.news-listing__header h2,
.news-article-heading h2 {
    margin: 0 0 .75rem;
    color: #112b3b;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
}

.news-listing__header > p,
.news-article-heading > p {
    margin: 0;
    color: #617380;
    font-size: 1.04rem;
    line-height: 1.7;
}

.news-listing__count {
    display: inline-flex;
    margin-top: 1.2rem;
    padding: .45rem .9rem;
    border: 1px solid #d8e8ee;
    border-radius: 999px;
    background: #fff;
    color: #3c5a69;
    font-size: .82rem;
    font-weight: 700;
}

.news-listing__grid,
.news-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.news-listing-card,
.news-related-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2ebef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(17, 43, 59, .065);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-listing-card:hover,
.news-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(17, 43, 59, .13);
}

.news-listing-card__media {
    position: relative;
    display: block;
    height: 235px;
    overflow: hidden;
    background: #e7eff2;
}

.news-listing-card__media::after {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(10, 32, 45, .5));
    content: "";
}

.news-listing-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.news-listing-card:hover .news-listing-card__media img {
    transform: scale(1.045);
}

.news-listing-card__category {
    position: absolute;
    z-index: 1;
    bottom: .9rem;
    left: .9rem;
    max-width: calc(100% - 1.8rem);
    overflow: hidden;
    padding: .4rem .7rem;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    background: rgba(10, 45, 62, .72);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.news-listing-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.3rem 1.35rem 1.4rem;
}

.news-listing-card__body time,
.news-related-card__body time {
    margin-bottom: .65rem;
    color: #748894;
    font-size: .82rem;
    font-weight: 600;
}

.news-listing-card__body h3,
.news-related-card__body h3 {
    margin: 0 0 .65rem;
    color: #112b3b;
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1.42;
}

.news-listing-card__body h3 a,
.news-related-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.news-listing-card__body h3 a:hover,
.news-related-card__body h3 a:hover {
    color: #087da0;
}

.news-listing-card__body > p,
.news-related-card__body > p {
    display: -webkit-box;
    margin: 0 0 1rem;
    overflow: hidden;
    color: #617380;
    font-size: .94rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-listing-card__link,
.news-related-card__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    color: #087da0;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.news-listing-card__link span,
.news-related-card__link span {
    transition: transform .2s ease;
}

.news-listing-card__link:hover span,
.news-related-card__link:hover span {
    transform: translateX(4px);
}

.news-listing__empty {
    padding: 3rem 1.5rem;
    border: 1px dashed #b7cbd3;
    border-radius: 1rem;
    background: #fff;
    color: #617380;
    text-align: center;
}

.news-listing__empty h3 {
    margin: 0 0 .5rem;
    color: #112b3b;
    font-size: 1.35rem;
}

.news-listing__empty p {
    margin: 0;
}

.news-pages-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem auto 0;
}

.news-pages-pagination__numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
}

.news-pages-pagination__numbers a,
.news-pages-pagination__numbers span,
.news-pages-pagination__edge {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: .5rem .75rem;
    border: 1px solid #d4e1e6;
    border-radius: .65rem;
    background: #fff;
    color: #087da0;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.news-pages-pagination__edge {
    gap: .35rem;
}

.news-pages-pagination__numbers a:hover,
.news-pages-pagination__numbers span.is-active,
.news-pages-pagination__edge:hover {
    border-color: #087da0;
    background: #087da0;
    color: #fff;
}

.news-pages-pagination__summary {
    margin: .8rem 0 0;
    color: #70838e;
    font-size: .86rem;
    text-align: center;
}

.news-article {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: #f5f8fa;
}

.news-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.news-article__main {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2ebef;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 16px 42px rgba(17, 43, 59, .07);
}

.news-article__image {
    display: block;
    width: 100%;
    max-height: 560px;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    background: #e7eff2;
}

.news-article__body {
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.news-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1.1rem;
}

.news-article__category {
    display: inline-flex;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: #e6f7fb;
    color: #087da0;
    font-size: .75rem;
    font-weight: 800;
}

.news-article__date {
    color: #718591;
    font-size: .88rem;
    font-weight: 600;
}

.news-article__body h2 {
    margin: 0 0 1.4rem;
    color: #112b3b;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.news-article__content {
    color: #435b69;
    font-size: 1.04rem;
    line-height: 1.9;
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: anywhere;
}

.news-article__content p {
    margin: 0 0 1.25rem;
}

.news-article__content p:last-child {
    margin-bottom: 0;
}

.news-article__aside {
    position: sticky;
    top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2ebef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(17, 43, 59, .06);
}

.news-article__aside h2 {
    margin: 0 0 1rem;
    color: #112b3b;
    font-size: 1.15rem;
    font-weight: 800;
}

.news-article__aside p {
    margin: 0 0 1.2rem;
    color: #617380;
    font-size: .94rem;
    line-height: 1.7;
}

.news-article__back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #087da0;
    font-weight: 800;
    text-decoration: none;
}

.news-related {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: #fff;
}

.news-related-card {
    overflow: hidden;
    border-radius: .9rem;
}

.news-related-card__media {
    display: block;
    height: 185px;
    overflow: hidden;
    background: #e7eff2;
}

.news-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-related-card:hover .news-related-card__media img {
    transform: scale(1.04);
}

.news-related-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem;
}

.news-related-card__body h3 {
    font-size: 1rem;
}

.news-related-card__body p {
    -webkit-line-clamp: 2;
}

@media (max-width: 991.98px) {
    .news-listing__grid,
    .news-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-article__layout {
        grid-template-columns: 1fr;
    }

    .news-article__aside {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .news-listing__grid,
    .news-related__grid {
        grid-template-columns: 1fr;
    }

    .news-listing-card__media {
        height: 220px;
    }

    .news-pages-pagination {
        flex-wrap: wrap;
        gap: .6rem;
    }

    .news-pages-pagination__edge {
        min-height: 38px;
    }

    .news-article__image {
        aspect-ratio: 4 / 3;
    }

    .news-article__content {
        font-size: 1rem;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-listing-card,
    .news-related-card,
    .news-listing-card__media img,
    .news-related-card__media img,
    .news-listing-card__link span,
    .news-related-card__link span {
        transition: none;
    }
}
