:root {
    --brand: #c1121f;
    --brand-dark: #780000;
    --ink: #151515;
    --muted: #626b77;
    --paper: #ffffff;
    --soft: #f5f7fb;
    --line: #e3e7ee;
    --accent: #0b7285;
}

* {
    letter-spacing: 0;
}

body {
    font-family: "Noto Sans", Arial, sans-serif;
    color: var(--ink);
    background: var(--soft);
}

body.content-protected {
    -webkit-touch-callout: none;
}

body.content-protected main,
body.content-protected .breaking-news,
body.content-protected .site-footer,
body.content-protected .navbar {
    -webkit-user-select: none;
    user-select: none;
}

body.content-protected img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

body.content-protected a,
body.content-protected button,
body.content-protected input,
body.content-protected textarea,
body.content-protected select,
body.content-protected [contenteditable="true"] {
    -webkit-user-select: auto;
    user-select: auto;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 10000;
    padding: .5rem .75rem;
    background: var(--ink);
    color: #fff;
}

.top-bar {
    background: var(--ink);
    color: #fff;
    font-size: .88rem;
    padding: .38rem 0;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.navbar {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    padding: .45rem 0;
}

.navbar-brand {
    color: var(--brand-dark) !important;
    font-weight: 800;
}

.navbar-brand img {
    border-radius: 8px;
}

.nav-link {
    color: #2f343b;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--brand);
}

.btn-brand {
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
}

.btn-brand:hover {
    background: var(--brand-dark);
    color: #fff;
}

.breaking-news {
    width: 100%;
    background: var(--brand-dark);
    color: #fff;
    font-weight: 700;
    z-index: 999;
    padding: .5rem 0;
    overflow: hidden;
    --marquee-speed: 50s;
}

.breaking-label {
    flex: 0 0 auto;
    background: #fff;
    color: var(--brand-dark);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    padding: .32rem .72rem;
    font-size: .78rem;
}

.news-scroll {
    align-items: center;
    display: flex;
    gap: 1rem;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.marquee-track {
    animation: marquee-scroll var(--marquee-speed) linear infinite;
    display: flex;
    width: fit-content;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
    animation-play-state: paused;
}

.marquee-content {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 1rem;
    padding-right: 1rem;
}

.marquee-content a {
    color: #fff;
    text-decoration: none;
}

.marquee-content a:hover,
.marquee-content a:focus {
    text-decoration: underline;
}

.marquee-content .separator {
    opacity: .55;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.hero-news {
    background: #10141b;
    color: #fff;
    min-height: 330px;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3.2rem) 0;
    position: relative;
}

.hero-news::before {
    background: url("../images/news-studio-hero.webp") center/cover no-repeat;
    content: "";
    filter: blur(5px);
    inset: -10px;
    opacity: .78;
    position: absolute;
    transform: scale(1.02);
}

.hero-news::after {
    background: linear-gradient(90deg, rgba(8, 12, 18, .94) 0%, rgba(8, 12, 18, .78) 48%, rgba(8, 12, 18, .45) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.hero-news .container {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #ffccd1;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
}

.hero-news h1 {
    max-width: 920px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
    font-weight: 800;
    margin: .7rem 0 1rem;
}

.hero-news p {
    max-width: 720px;
    color: #d7dde7;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-news--editorial h1 {
    letter-spacing: 0;
}

.hero-news--compact {
    min-height: 240px;
}

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

.section-heading h2,
.section-heading h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 800;
}

.section-eyebrow {
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
}

.lead-card,
.news-card,
.article-shell {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(17, 24, 39, .07);
}

.lead-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    min-height: 320px;
}

.lead-card img,
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-card__body {
    padding: clamp(1rem, 2.5vw, 1.8rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lead-card h2 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.08;
    font-weight: 800;
}

.meta-line {
    color: var(--muted);
    font-size: .9rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.badge-topic {
    background: rgba(193, 18, 31, .1);
    color: var(--brand-dark);
    border-radius: 999px;
    display: inline-flex;
    padding: .35rem .75rem;
    font-size: .78rem;
    font-weight: 800;
}

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

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

.news-card {
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, .11);
}

.news-card__image {
    aspect-ratio: 16 / 10;
    background: #dde3ec;
}

.news-card__body {
    padding: .9rem;
}

.news-card h3 {
    font-size: 1.05rem;
    line-height: 1.28;
    font-weight: 800;
}

.news-card p,
.lead-card p {
    color: var(--muted);
}

.news-shell {
    margin-top: 2rem;
}

.front-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 320px;
    margin-top: 1rem;
}

.front-lead article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(17, 24, 39, .07);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    height: 100%;
    overflow: hidden;
}

.front-lead__image {
    background: #dde3ec;
    min-height: 360px;
}

.front-lead__image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.front-lead__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.front-lead__content h2 {
    font-size: clamp(1.7rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.08;
    margin: .8rem 0;
}

.front-lead__content p {
    color: var(--muted);
}

.front-sidebar {
    display: grid;
    gap: 1rem;
}

.mini-headlines {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(17, 24, 39, .07);
    display: grid;
    gap: .75rem;
    padding: 1rem;
}

.mini-headlines a {
    border-top: 1px solid var(--line);
    font-weight: 800;
    line-height: 1.25;
    padding-top: .75rem;
    text-decoration: none;
}

.mini-headlines a:hover {
    color: var(--brand);
}

.category-zone {
    display: grid;
    gap: 1.2rem;
}

.category-block {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.category-block.is-loading {
    opacity: .62;
    pointer-events: none;
}

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

.category-block__head h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 800;
    margin: 0;
}

.ajax-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: center;
    margin-top: 1rem;
}

.pager-btn {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    min-width: 2.25rem;
    padding: .48rem .7rem;
}

.pager-btn:hover,
.pager-btn.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pager-btn:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.pager-ellipsis {
    color: var(--muted);
    padding: .35rem;
}

.ad-slot {
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .2), transparent 28%),
        linear-gradient(135deg, #0b7285 0%, #111318 42%, #c1121f 100%);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(17, 24, 39, .16);
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 92px;
    overflow: hidden;
    padding: 1rem 1.1rem;
    position: relative;
    text-align: left;
}

.ad-slot--box {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.ad-slot__badge {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: .68rem;
    font-weight: 800;
    padding: .34rem .6rem;
}

.ad-slot__creative {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.ad-slot__label {
    color: rgba(255, 255, 255, .78);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ad-slot strong {
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.15;
}

.ad-slot__creative span:not(.ad-slot__label) {
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
}

.ad-slot__contact {
    color: rgba(255, 255, 255, .92) !important;
    font-weight: 800;
}

.ad-slot__cta {
    background: #fff;
    border-radius: 999px;
    color: var(--brand-dark);
    flex: 0 0 auto;
    font-size: .82rem;
    font-weight: 800;
    padding: .45rem .8rem;
    text-decoration: none;
}

.ad-slot__cta:hover {
    color: var(--brand);
}

.base-ad-wrap {
    margin-top: 1rem;
}

.article-hero {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: clamp(1.5rem, 4vw, 3rem) 0 1.5rem;
}

.article-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
}

.article-shell {
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.article-image {
    border-radius: 8px;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.85;
}

.share-pill {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    gap: .45rem;
    padding: .45rem .8rem;
    text-decoration: none;
    font-weight: 700;
}

.share-pill:hover {
    color: var(--brand);
    border-color: rgba(193, 18, 31, .45);
}

.site-footer {
    background: #111318;
    color: #cfd4dc;
    padding: 2rem 0 1rem;
}

.footer-brand {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-title {
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: .8rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.footer-links a {
    color: #cfd4dc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 1.8rem;
    padding-top: 1rem;
    font-size: .88rem;
}

@media (max-width: 991px) {
    .lead-card,
    .front-grid,
    .front-lead article,
    .news-grid,
    .news-grid--four {
        grid-template-columns: 1fr 1fr;
    }

    .front-sidebar {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .lead-card,
    .front-grid,
    .front-lead article,
    .front-sidebar,
    .news-grid,
    .news-grid--four {
        grid-template-columns: 1fr;
    }

    .lead-card {
        min-height: unset;
    }

    .lead-card__image {
        aspect-ratio: 16 / 10;
        order: -1;
    }

    .breaking-news {
        --marquee-speed: 260s;
    }

    .top-bar {
        font-size: .8rem;
    }

    .nav-link {
        padding: .45rem 0;
    }

    .hero-news {
        min-height: 280px;
        padding: 1.4rem 0;
    }

    .front-lead__image {
        min-height: 220px;
    }

    .category-block__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ad-slot {
        align-items: flex-start;
        flex-direction: column;
    }
}
