:root {
    --hm-news-coral: #f76652;
    --hm-news-ink: #20212d;
    --hm-news-muted: #677080;
    --hm-news-line: #e8e9ee;
    --hm-news-soft: #fff4f1;
}

.hm-news-site {
    min-height: 65vh;
    background: #fff;
    color: var(--hm-news-ink);
}

.hm-news-hero {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 85% 20%, rgba(247, 102, 82, .16), transparent 32%),
        linear-gradient(135deg, #20212d 0%, #37384a 100%);
    color: #fff;
}

.hm-news-hero--category {
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.hm-news-hero h1,
.hm-news-article__header h1 {
    max-width: 900px;
    margin: .65rem 0 1rem;
    color: #fff;
    font-size: clamp(2.25rem, 6vw, 4.7rem);
    line-height: 1.03;
}

.hm-news-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.hm-news-eyebrow {
    color: var(--hm-news-coral);
    font-family: Montserrat, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hm-news-category-nav {
    position: sticky;
    top: 75px;
    z-index: 20;
    overflow-x: auto;
    border-bottom: 1px solid var(--hm-news-line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(32, 33, 45, .04);
    backdrop-filter: blur(14px);
}

.hm-news-category-nav .container {
    display: flex;
    gap: .4rem;
    min-width: max-content;
    padding-block: .8rem;
}

.hm-news-category-nav a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .9rem;
    border-radius: 999px;
    color: #454858;
    font-weight: 800;
    line-height: 1;
}

.hm-news-category-nav a:hover,
.hm-news-category-nav a.is-active {
    background: var(--hm-news-soft);
    color: var(--hm-news-coral);
}

.hm-news-category-nav a span {
    display: grid;
    min-width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(247, 102, 82, .13);
    font-size: .72rem;
}

.hm-news-sections,
.hm-news-listing {
    padding-block: clamp(3rem, 7vw, 6rem);
}

.hm-news-section + .hm-news-section {
    margin-top: clamp(4rem, 7vw, 6.5rem);
    padding-top: clamp(4rem, 7vw, 6.5rem);
    border-top: 1px solid var(--hm-news-line);
}

.hm-news-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.hm-news-section__header h2 {
    margin: .35rem 0 0;
    color: var(--hm-news-ink);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.hm-news-section__header > a,
.hm-news-card__link,
.hm-news-article__back a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--hm-news-coral);
    font-weight: 900;
}

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

.hm-news-grid .hm-news-card:first-child:nth-last-child(4),
.hm-news-grid .hm-news-card:first-child:nth-last-child(4) ~ .hm-news-card {
    grid-column: span 3;
}

.hm-news-card {
    overflow: hidden;
    border: 1px solid var(--hm-news-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(32, 33, 45, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hm-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(32, 33, 45, .11);
}

.hm-news-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #fff0ed, #f1f2f5);
}

.hm-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.hm-news-card:hover .hm-news-card__image img {
    transform: scale(1.035);
}

.hm-news-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--hm-news-coral);
    font-size: 3.2rem;
}

.hm-news-card__body {
    padding: 1.5rem;
}

.hm-news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.hm-news-card__meta time,
.hm-news-article__date {
    color: var(--hm-news-muted);
    font-size: .84rem;
    font-weight: 700;
}

.hm-news-category-badge {
    display: inline-flex;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: var(--hm-news-soft);
    color: var(--hm-news-coral);
    font-size: .75rem;
    font-weight: 900;
}

.hm-news-card h2 {
    margin: 0 0 .8rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.25;
}

.hm-news-card h2 a {
    color: var(--hm-news-ink);
}

.hm-news-card h2 a:hover {
    color: var(--hm-news-coral);
}

.hm-news-card p {
    margin-bottom: 1.2rem;
    color: var(--hm-news-muted);
    line-height: 1.65;
}

.hm-news-empty {
    max-width: 680px;
    margin-inline: auto;
    padding: clamp(3rem, 8vw, 6rem) 1.5rem;
    text-align: center;
}

.hm-news-empty > i {
    display: inline-grid;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
    place-items: center;
    border-radius: 50%;
    background: var(--hm-news-soft);
    color: var(--hm-news-coral);
    font-size: 2.3rem;
}

.hm-news-empty h1,
.hm-news-empty h2 {
    color: var(--hm-news-ink);
}

.hm-news-empty p {
    color: var(--hm-news-muted);
}

.hm-news-button,
.hm-news-article__cta a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    padding: .85rem 1.2rem;
    border-radius: 12px;
    background: var(--hm-news-coral);
    color: #fff;
    font-weight: 900;
}

.hm-news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 3rem;
}

.hm-news-pagination a,
.hm-news-pagination span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--hm-news-muted);
    font-weight: 800;
}

.hm-news-pagination a {
    color: var(--hm-news-coral);
}

.hm-news-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, .64);
    font-size: .88rem;
    font-weight: 700;
}

.hm-news-breadcrumbs a {
    color: rgba(255, 255, 255, .84);
}

.hm-news-article__header {
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem);
    background:
        radial-gradient(circle at 82% 15%, rgba(247, 102, 82, .17), transparent 30%),
        var(--hm-news-ink);
}

.hm-news-article__narrow {
    max-width: 860px;
}

.hm-news-article__header h1 {
    margin-top: 1.2rem;
    font-size: clamp(2.1rem, 5.7vw, 4.5rem);
}

.hm-news-article__header .hm-news-article__date {
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, .68);
}

.hm-news-article__media {
    margin-top: clamp(-5rem, -7vw, -3rem);
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hm-news-article__media img {
    display: block;
    width: 100%;
    max-height: 680px;
    border: 8px solid #fff;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 24px 70px rgba(32, 33, 45, .2);
}

.hm-news-article__content {
    padding-block: 1rem 3rem;
    color: #3e4250;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.hm-news-article__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(247, 102, 82, .2);
    border-radius: 20px;
    background: var(--hm-news-soft);
}

.hm-news-article__cta strong {
    display: block;
    color: var(--hm-news-ink);
    font: 800 1.1rem Montserrat, sans-serif;
}

.hm-news-article__cta p {
    margin: .3rem 0 0;
    color: var(--hm-news-muted);
}

.hm-news-article__cta a {
    flex: none;
    margin: 0;
}

.hm-news-article__back {
    padding: 1.5rem 0 4.5rem;
    border-top: 1px solid var(--hm-news-line);
}

.hm-news-related {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    background: #f7f7f9;
}

@media (min-width: 992px) {
    .hm-news-grid .hm-news-card:first-child:nth-last-child(4),
    .hm-news-grid .hm-news-card:first-child:nth-last-child(4) ~ .hm-news-card {
        grid-column: auto;
    }

    .hm-news-grid .hm-news-card:first-child:nth-last-child(4) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .hm-news-grid .hm-news-card:first-child:nth-last-child(4) .hm-news-card__image {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 991px) {
    .hm-news-category-nav {
        top: 73px;
    }

    .hm-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hm-news-grid {
        grid-template-columns: 1fr;
    }

    .hm-news-grid .hm-news-card:first-child:nth-last-child(4),
    .hm-news-grid .hm-news-card:first-child:nth-last-child(4) ~ .hm-news-card {
        grid-column: auto;
    }

    .hm-news-section__header,
    .hm-news-article__cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .hm-news-card__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .hm-news-pagination {
        gap: .75rem;
        font-size: .8rem;
    }

    .hm-news-article__media img {
        border-width: 4px;
        border-radius: 18px;
    }
}
