.news-page-hero,
.news-article-hero {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    color: #fff;
    background:
        radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.19), transparent 26%),
        linear-gradient(135deg, #080c12 0%, #111c28 65%, #24313b 100%);
}

.news-page-hero h1,
.news-article-hero h1 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.5rem, 5.8vw, 4.7rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.news-page-hero__lead {
    max-width: 68ch;
    margin: 1.25rem 0 1.6rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.4rem;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.news-back-link:hover {
    color: var(--color-primary, #f97316);
}

.news-page-hero .news-back-link {
    margin: 1.6rem 0 0;
}

.news-page-eyebrow {
    margin: 1.35rem 0 0.7rem;
    color: #ffad70;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
    margin-top: 1.3rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.news-article-hero__excerpt {
    max-width: 76ch;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.7;
}

.news-listing-section {
    min-height: 30vh;
}

.news-card__media {
    display: block;
    position: relative;
    text-decoration: none;
}

.news-card__image,
.news-card__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.news-card__placeholder {
    display: grid;
    place-items: center;
    color: var(--color-primary, #f97316);
    background:
        radial-gradient(circle at 70% 25%, rgba(249, 115, 22, 0.18), transparent 28%),
        linear-gradient(135deg, #111a24, #30404e);
    font-size: 2.2rem;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    color: var(--color-text-muted, #697586);
    font-size: 0.75rem;
}

.news-card__category {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    color: #8c3c0a;
    background: #fff0e5;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.news-card h3 a,
.news-card h2 a {
    color: inherit;
    text-decoration: none;
}

.news-card h3 a:hover,
.news-card h2 a:hover {
    color: var(--color-primary-deep, #b94d0e);
}

.news-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.25;
}

.news-card .news-content > p {
    min-height: 4.4em;
    line-height: 1.65;
}

.news-page-message {
    grid-column: 1 / -1;
}

.news-article-section {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.news-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.news-article-main {
    min-width: 0;
    max-width: 850px;
}

.news-article-cover {
    display: block;
    width: 100%;
    max-height: 460px;
    margin: 0 0 2rem;
    border-radius: var(--radius-lg, 1rem);
    object-fit: cover;
    background: #e9edf0;
}

.news-article-cover[hidden] {
    display: none;
}

.markdown-content {
    color: var(--color-text, #1d2732);
    font-size: 1.025rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.markdown-content > :first-child {
    margin-top: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 2.1em 0 0.7em;
    color: var(--color-heading, #141b23);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.markdown-content h1 {
    font-size: 2rem;
}
.markdown-content h2 {
    font-size: 1.65rem;
}
.markdown-content h3 {
    font-size: 1.35rem;
}
.markdown-content h4 {
    font-size: 1.15rem;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol,
.markdown-content blockquote,
.markdown-content pre,
.markdown-content table {
    margin-bottom: 1.35rem;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 1.45rem;
}

.markdown-content li + li {
    margin-top: 0.45rem;
}

.markdown-content blockquote {
    margin-left: 0;
    padding: 0.3rem 0 0.3rem 1.2rem;
    border-left: 4px solid var(--color-primary, #f97316);
    color: var(--color-text-muted, #697586);
}

.markdown-content a {
    color: var(--color-primary-deep, #b94d0e);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.markdown-content pre {
    overflow: auto;
    padding: 1rem 1.1rem;
    border: 1px solid #263545;
    border-radius: 0.7rem;
    color: #e8eef4;
    background: #101820;
    font-size: 0.88rem;
    line-height: 1.65;
}

.markdown-content :not(pre) > code {
    padding: 0.15em 0.35em;
    border-radius: 0.3rem;
    color: #8c3c0a;
    background: #fff0e5;
    font-size: 0.9em;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.65rem;
}

.markdown-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.markdown-content th,
.markdown-content td {
    min-width: 100px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border, #dbe1e7);
    text-align: left;
}

.markdown-content th {
    background: #f1f4f6;
    font-weight: 800;
}

.news-article-sidebar {
    position: sticky;
    top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border, #dbe1e7);
    border-radius: var(--radius-lg, 1rem);
    background: #fff;
    box-shadow: var(--shadow-sm, 0 6px 20px rgba(12, 25, 38, 0.06));
}

.news-article-sidebar h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
}

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

.news-related-list li {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--color-border, #dbe1e7);
}

.news-related-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.news-related-list a {
    color: var(--color-text, #1d2732);
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.45;
    text-decoration: none;
}

.news-related-list a:hover {
    color: var(--color-primary-deep, #b94d0e);
}

.news-related-list time {
    color: var(--color-text-muted, #697586);
    font-size: 0.75rem;
}

.news-article-footer {
    margin-top: 2.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border, #dbe1e7);
}

@media (max-width: 991.98px) {
    .news-article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-article-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .news-card .news-content > p {
        min-height: 0;
    }

    .news-article-meta {
        flex-direction: column;
        gap: 0.35rem;
    }
}

.news-results-summary {
    margin: 0 0 1.25rem;
    color: var(--color-text-muted, #697586);
    font-size: 0.9rem;
}

.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.news-pagination[hidden],
.news-results-summary[hidden] {
    display: none !important;
}

.news-pagination__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.news-pagination__button {
    display: inline-flex;
    min-width: 2.6rem;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--color-border, #dbe1e7);
    border-radius: 0.55rem;
    color: var(--color-heading, #141b23);
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.news-pagination__button:hover:not(:disabled) {
    border-color: var(--color-primary, #f97316);
    color: var(--color-primary-deep, #b94d0e);
}

.news-pagination__button:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.35);
    outline-offset: 2px;
}

.news-pagination__button:disabled {
    color: #8993a0;
    background: #f3f5f7;
    cursor: not-allowed;
}

.news-pagination__button.is-current {
    border-color: var(--color-primary, #f97316);
    color: #fff;
    background: var(--color-primary, #f97316);
}

.news-pagination__ellipsis {
    display: inline-flex;
    min-width: 1.25rem;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted, #697586);
}

@media (max-width: 575.98px) {
    .news-pagination__controls {
        gap: 0.3rem;
    }

    .news-pagination__button {
        min-width: 2.35rem;
        min-height: 2.35rem;
        padding: 0.5rem 0.65rem;
    }
}
