.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.news-page {
    position: relative;
    isolation: isolate;
    padding-bottom: 2.5rem;
    background: linear-gradient(180deg, #f7f2ea 0%, #faf8f5 40%, #f4efe7 100%);
}

.news-page__bg {
    display: none;
}

.news-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 2.5rem 0 2.75rem;
    text-align: center;
    background: #0a0a0a;
}

.news-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("../../images/portal/news-bg.png") center center / cover no-repeat;
    opacity: 0.42;
    filter: grayscale(0.12) brightness(0.88);
}

.news-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0.72) 100%),
        radial-gradient(ellipse 90% 70% at 50% 45%, rgba(10, 10, 10, 0.25), rgba(10, 10, 10, 0.65));
}

.news-hero__inner {
    position: relative;
    z-index: 2;
}

.news-crumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--muted);
}

.news-crumbs a {
    color: var(--maroon);
}

.news-crumbs a:hover {
    text-decoration: underline;
}

.news-hero h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    color: var(--maroon);
}

.news-hero p {
    margin: 0.65rem auto 0;
    max-width: 40ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.4rem;
    align-items: start;
    padding-bottom: 1.5rem;
}

.news-stack {
    display: grid;
    gap: 1.35rem;
    padding-bottom: 0.5rem;
}

.news-main {
    display: grid;
    gap: 1.35rem;
    min-width: 0;
}

/* Featured */
.news-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.news-featured__media {
    display: block;
    min-height: 260px;
    background: #1a1214;
}

.news-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured__body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.35rem 1.4rem;
}

.news-featured__body h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.45;
    color: var(--ink);
}

.news-featured__body h2 a {
    color: inherit;
}

.news-featured__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.news-featured__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.4rem;
}

.news-featured__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.news-featured__meta svg {
    color: var(--maroon-soft);
}

.news-featured__cta {
    padding: 0.6rem 1rem;
    font-size: 0.84rem;
    border-radius: 10px;
    box-shadow: none;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.news-tag--overlay {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 1;
    background: rgba(122, 24, 36, 0.92);
}

/* Filters */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.news-filters__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.86rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.news-filters__btn:hover {
    color: var(--maroon);
    border-color: rgba(122, 24, 36, 0.28);
}

.news-filters__btn.is-active {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #fff;
}

.news-filters__icon {
    display: grid;
    place-items: center;
}

/* Grid cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #1a1214;
    overflow: hidden;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.news-card:hover .news-card__media img {
    transform: scale(1.05);
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.95rem 1rem 1.05rem;
    flex: 1;
}

.news-card__body h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.45;
}

.news-card__body h3 a {
    color: var(--ink);
}

.news-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1;
}

.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.news-card__more {
    color: var(--maroon);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.news-card__more:hover {
    text-decoration: underline;
}

/* Popular sidebar */
.news-popular {
    position: sticky;
    top: 5.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem 1rem 1rem;
    box-shadow: var(--shadow-sm);
}

.news-popular h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    padding-bottom: 0.55rem;
    border-bottom: 3px solid var(--gold);
    width: fit-content;
}

.news-popular__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.news-popular__item {
    display: grid;
    grid-template-columns: auto 56px 1fr;
    gap: 0.55rem;
    align-items: center;
}

.news-popular__num {
    width: 1.35rem;
    font-weight: 800;
    color: var(--maroon);
    font-size: 0.95rem;
}

.news-popular__thumb {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #efe6d8;
}

.news-popular__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-popular__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.news-popular__copy strong {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-popular__copy small {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.news-popular__more {
    display: block;
    margin-top: 1rem;
    padding: 0.7rem 0.8rem;
    text-align: center;
    border-radius: 10px;
    background: #f3eee6;
    color: var(--maroon);
    font-weight: 800;
    font-size: 0.84rem;
}

.news-popular__more:hover {
    background: #ebe3d6;
}

/* More news */
.news-more {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem 1.15rem 1.2rem;
    box-shadow: var(--shadow-sm);
}

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

.news-more__head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.news-more__all {
    color: var(--maroon);
    font-weight: 800;
    font-size: 0.88rem;
    white-space: nowrap;
}

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

.news-more__item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.7rem;
    align-items: center;
}

.news-more__thumb {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #efe6d8;
}

.news-more__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-more__copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.news-more__copy strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more__copy small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Newsletter */
.news-newsletter {
    margin-top: 0.5rem;
}

.news-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.5rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 80%, rgba(197, 160, 109, 0.18), transparent 42%),
        linear-gradient(120deg, var(--maroon-deep), var(--maroon) 55%, #8a2230);
    color: #fff;
    box-shadow: 0 16px 36px rgba(90, 16, 25, 0.22);
}

.news-newsletter__copy {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.news-newsletter__icon {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold-soft);
    flex-shrink: 0;
}

.news-newsletter__copy h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.news-newsletter__copy p {
    margin: 0.25rem 0 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

.news-newsletter__form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.news-newsletter__field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: min(280px, 70vw);
    height: 48px;
    padding: 0 0.9rem;
    border-radius: 12px;
    background: #fff;
    color: var(--muted);
}

.news-newsletter__field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
}

.news-newsletter__submit {
    height: 48px;
    padding: 0 1.2rem;
    border-radius: 12px;
    border: 1.5px solid var(--gold);
    background: transparent;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.news-newsletter__submit:hover {
    background: rgba(197, 160, 109, 0.16);
}

.news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
    padding: 1.35rem 1.15rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.news-empty__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(122, 24, 36, 0.08);
    color: var(--maroon);
    margin-bottom: 0.15rem;
}

.news-empty h2 {
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.12rem);
    font-weight: 800;
    line-height: 1.45;
    color: var(--ink);
}

.news-empty p {
    margin: 0;
    max-width: 28ch;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.news-empty__cta {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: 0.58rem 1.05rem;
    font-size: 0.84rem;
    border-radius: 10px;
    box-shadow: none;
}

.news-layout--empty {
    grid-template-columns: 1fr;
    justify-items: stretch;
}

.news-layout--empty .news-main {
    display: flex;
    justify-content: center;
}

.news-aside {
    min-width: 0;
}

/* Article detail */
.news-page--article .news-article {
    position: relative;
    padding: 1.4rem 0 2rem;
    max-width: 860px;
}

.news-article h1 {
    margin: 0.7rem 0 0.45rem;
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
}

.news-article__date {
    margin: 0 0 1.2rem;
    color: var(--muted);
    font-weight: 700;
}

.news-article__cover {
    border-radius: 18px;
    overflow: hidden;
    background: #1a1214;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.4rem;
}

.news-article__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-article__body {
    display: grid;
    gap: 1rem;
    color: var(--ink-soft, #3d342f);
    font-size: 1.05rem;
    line-height: 1.9;
}

.news-article__body p {
    margin: 0;
}

.news-related {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.news-related h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 800;
}

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

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

    .news-layout--empty .news-main {
        max-width: 28rem;
        margin-inline: auto;
    }

    .news-popular {
        position: static;
    }

    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-featured__media {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

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

    .news-more__list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .news-hero {
        padding: 1.75rem 0 2rem;
    }

    .news-hero__bg {
        opacity: 0.36;
        background-position: center 35%;
    }

    .news-crumbs {
        justify-content: center;
        font-size: 0.8rem;
    }

    .news-hero h1 {
        font-size: clamp(1.65rem, 7vw, 2.2rem);
    }

    .news-hero p {
        font-size: 0.92rem;
        padding-inline: 0.5rem;
    }

    .news-stack {
        gap: 1rem;
    }

    .news-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.15rem 0.1rem 0.35rem;
        margin-inline: -0.15rem;
    }

    .news-filters::-webkit-scrollbar {
        display: none;
    }

    .news-filters__btn {
        flex-shrink: 0;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .news-empty {
        max-width: none;
        padding: 1.15rem 1rem;
    }

    .news-empty__icon {
        width: 2.85rem;
        height: 2.85rem;
    }

    .news-empty__cta {
        width: 100%;
        max-width: 16rem;
    }

    .news-grid,
    .news-grid--related {
        grid-template-columns: 1fr;
    }

    .news-newsletter__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.1rem 1rem;
    }

    .news-newsletter__copy {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .news-newsletter__form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .news-newsletter__field {
        width: 100%;
        min-width: 0;
    }

    .news-newsletter__submit {
        width: 100%;
    }
}
