
.news-page-header {
    position: relative;
    overflow: hidden;
    padding: 92px 0 78px;
    color: var(--white);
    text-align: center;
    background-color: var(--accent-color);
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.62), rgba(var(--accent-rgb), 0.78)),
        url('/media/default_page_media/gallery.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.news-page-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 84px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.news-page-header .container {
    position: relative;
    z-index: 1;
}

.news-page-eyebrow,
.section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-page-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.news-page-header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    letter-spacing: -0.02em;
}

.news-page-header p {
    max-width: 620px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.news-featured-section,
.news-feed-section {
    padding: var(--section-padding);
}

.news-featured-section {
    background: var(--white);
}

.news-section-heading {
    margin-bottom: 28px;
}

.news-section-heading h2,
.news-feed-header h2 {
    margin: 0;
    color: var(--accent-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.news-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    min-height: 430px;
    overflow: hidden;
    color: inherit;
    background: var(--off-white);
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.news-featured-card:focus-visible,
.story-card:focus-visible,
.news-filter:focus-visible,
[data-news-load-more]:focus-visible,
[data-news-retry]:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.45);
    outline-offset: 4px;
}

.news-featured-card__image,
.news-card__image {
    position: relative;
    overflow: hidden;
    background: var(--accent-color);
}

.news-featured-card__image img,
.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-featured-card:hover .news-featured-card__image img,
.story-card:hover .news-card__image img {
    transform: scale(1.035);
}

.news-featured-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 5vw, 56px);
}

.news-card__meta,
.news-featured-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 18px;
}

.news-card__type,
.news-featured-card__type {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.news-card__date,
.news-featured-card__date {
    color: var(--text-medium);
    font-size: 0.78rem;
    font-weight: 500;
}

.news-featured-card__title {
    margin: 0 0 16px;
    color: var(--accent-color);
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    letter-spacing: -0.02em;
}

.news-featured-card__body > h2 {
    margin: 16px 0;
    color: var(--accent-color);
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    letter-spacing: -0.02em;
}

.news-featured-card__summary {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.75;
}

.news-featured-card__body > p {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.75;
}

.news-featured-card__body > .news-card__date {
    margin-left: 10px;
}

.news-card__read-more,
.news-card__link,
.news-featured-card__read-more,
.news-featured-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 600;
}

.news-featured-card:hover .news-featured-card__read-more,
.news-featured-card:hover .news-featured-card__link,
.story-card:hover .news-card__read-more,
.story-card:hover .news-card__link {
    color: var(--primary-dark);
}

.news-feed-section {
    background: var(--off-white);
}

.news-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 30px;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.news-filter {
    min-height: 42px;
    padding: 9px 16px;
    color: var(--text-medium);
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.news-filter:hover {
    color: var(--accent-color);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.news-filter.is-active {
    color: var(--white);
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.news-results-status {
    min-height: 24px;
    margin: 0 0 18px;
    color: var(--text-medium);
    font-size: 0.8rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.story-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    color: inherit;
    background: var(--white);
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.story-card:hover {
    border-color: rgba(var(--accent-rgb), 0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.news-card__image {
    aspect-ratio: 16 / 10;
}

.news-card__image > .news-card__type {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 1;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-xs);
}

.news-card__state {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 999px;
    box-shadow: var(--shadow-xs);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.news-card__state--registration_open {
    color: var(--primary-dark);
    border-color: rgba(var(--primary-rgb), 0.35);
}

.news-card__state--happening_soon {
    color: var(--accent-color);
}

.news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.news-card__body > .news-card__date {
    display: block;
    margin-bottom: 14px;
}

.news-card__title {
    margin: 0 0 11px;
    color: var(--accent-color);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.28;
}

.news-card__summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--text-medium);
    font-size: 0.88rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-card__read-more,
.news-card__link {
    margin-top: auto;
    padding-top: 20px;
}

.news-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.08em;
}

.news-image-placeholder[hidden] {
    display: none;
}

.news-expired-label {
    color: var(--text-medium);
    font-size: 0.72rem;
    font-weight: 600;
}

.news-load-more-wrap {
    margin-top: 42px;
    text-align: center;
}

.news-archive-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 34px 0 0;
}

.news-archive-pagination a,
.news-archive-pagination span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid rgba(26, 47, 74, 0.2);
    border-radius: 999px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.news-archive-pagination a:hover,
.news-archive-pagination a:focus-visible {
    border-color: var(--accent-color);
    outline: 3px solid rgba(191, 47, 54, 0.18);
    outline-offset: 2px;
}

.news-archive-pagination [aria-current="page"] {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.news-state {
    max-width: 620px;
    margin: 10px auto 0;
    padding: 52px 28px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-lg);
}

.news-state[hidden] {
    display: none;
}

.news-state h3 {
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.news-state p {
    color: var(--text-medium);
}

.news-state .btn {
    margin-top: 22px;
}

.news-empty-state {
    padding: 48px 28px;
    color: var(--text-medium);
    text-align: center;
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-lg);
}

.news-empty-state h2 {
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 1.6rem;
}

.news-calendar-note {
    margin: 54px 0 0;
    color: var(--text-medium);
    font-size: 0.8rem;
    text-align: center;
}

.news-calendar-note a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(var(--primary-rgb), 0.55);
    text-underline-offset: 3px;
}

.news-calendar-note a:hover {
    color: var(--primary-dark);
}

.news-calendar-note a:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.4);
    outline-offset: 3px;
}

.news-loading-card {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    min-height: 430px;
    overflow: hidden;
    border-radius: var(--border-radius-xl);
    background: var(--off-white);
}

.news-loading-card span,
.news-grid-loading {
    background: linear-gradient(100deg, var(--gray-light) 30%, var(--off-white) 50%, var(--gray-light) 70%);
    background-size: 300% 100%;
    animation: news-loading 1.4s ease infinite;
}

.news-loading-card span + span {
    margin: 70px 46px;
    border-radius: var(--border-radius);
}

.news-grid-loading {
    min-height: 390px;
    border-radius: var(--border-radius-lg);
}

.news-noscript {
    margin-top: 24px;
    color: var(--text-medium);
    text-align: center;
}

@keyframes news-loading {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@media (max-width: 1024px) {
    .news-featured-card {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-feed-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .news-page-header {
        padding: 68px 0 58px;
    }

    .news-featured-section,
    .news-feed-section {
        padding: var(--section-padding-sm);
    }

    .news-featured-card,
    .news-loading-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .news-featured-card__image,
    .news-loading-card span:first-child {
        min-height: 280px;
    }

    .news-featured-card__body {
        padding: 30px 24px 34px;
    }

    .news-loading-card span + span {
        min-height: 180px;
        margin: 30px 24px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .news-filters {
        flex-wrap: nowrap;
        width: calc(100% + 24px);
        margin-right: -24px;
        padding-right: 24px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .news-filter {
        flex: 0 0 auto;
    }

}

@media (max-width: 480px) {
    .news-page-header p {
        font-size: 0.95rem;
    }

    .news-featured-card__image {
        min-height: 230px;
    }

    .news-card__body {
        padding: 19px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .news-featured-card,
    .story-card,
    .news-featured-card img,
    .story-card img,
    .news-filter {
        transition: none;
    }

    .news-loading-card span,
    .news-grid-loading {
        animation: none;
    }
}

.news-card__topics,
.news-featured-card__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 13px 0 0;
}

.news-topic-badge {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 7px;
    border: 1px solid rgba(var(--accent-rgb), 0.13);
    border-radius: 999px;
    color: var(--text-medium);
    background: rgba(var(--accent-rgb), 0.025);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.015em;
}

.news-topic-badge--format {
    color: var(--accent-color);
    background: rgba(24, 40, 72, 0.05);
}

.news-card__credit,
.news-featured-card__credit {
    margin: -2px 0 15px;
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 600;
}
