:root {
    --sp-primary: #00286c;
    --sp-secondary: #0077a8;
    --sp-accent: #e30614;
    --sp-text: #212529;
    --sp-muted: #6c757d;
    --sp-bg: #f8f9fa;
    --sp-border: #e9ecef;
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--sp-text);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--sp-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--sp-secondary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--sp-secondary);
    outline-offset: 2px;
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-accent {
    color: var(--sp-accent) !important;
}

.btn-primary-sp {
    background-color: var(--sp-primary);
    border-color: var(--sp-primary);
    color: #fff;
}

.btn-primary-sp:hover {
    background-color: #001f52;
    border-color: #001f52;
    color: #fff;
}

.skip-link {
    position: absolute;
    top: -44px;
    left: 0;
    background: var(--sp-accent);
    color: #fff;
    padding: 8px 12px;
    z-index: 2000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

#top-header-bar {
    background-color: #fff;
    border-bottom: 1px solid var(--sp-border);
    padding: 20px 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}

.header-hidden #top-header-bar {
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.sp-logo {
    width: min(220px, 80vw);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-logo img,
.navbar-brand-scroll img {
    width: 100%;
    height: auto;
}

.ad-placeholder {
    background-color: #f0f2f5;
    color: var(--sp-muted);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: 1px dashed #c6ccd3;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0;
}

#main-navbar {
    background-color: var(--sp-accent);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.navbar-brand-scroll {
    display: none;
    align-items: center;
    max-width: 180px;
}

.header-hidden .navbar-brand-scroll {
    display: flex;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.75rem 0.8rem !important;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--sp-secondary);
}

.nav-search {
    min-width: 360px;
    margin-left: 0.75rem;
}

.nav-search form {
    gap: 0.35rem;
}

.nav-search .form-select {
    width: 116px;
}

.carousel-item {
    height: 450px;
    background-color: #000;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.carousel-caption {
    text-align: left;
    bottom: 3rem;
}

.carousel-caption a {
    color: #fff;
}

.carousel-indicators [data-bs-target] {
    text-indent: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.72);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 5px;
    border: none;
}

.carousel-indicators .active {
    background-color: var(--sp-accent);
    color: #fff;
}

.hero-section .carousel-item {
    height: 560px;
}

.hero-section .carousel-caption {
    max-width: 76%;
}

.hero-latest {
    display: flex;
    flex-direction: column;
}

.hero-latest .mini-card {
    margin-bottom: 0.75rem;
}

.news-card {
    border: none;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card img {
    border-radius: 4px;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.mini-card .row {
    min-height: 112px;
}

.mini-card-media img,
.mini-card img {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.mini-card h3 {
    font-size: 1rem;
    line-height: 1.22;
}

.horizontal-card {
    margin-bottom: 1.6rem;
}

.horizontal-card-media img {
    width: 100%;
    min-height: 150px;
    aspect-ratio: 16 / 10;
}

.horizontal-card h3 {
    line-height: 1.2;
}

.category-side-list .horizontal-card:last-child {
    margin-bottom: 0;
}

.category-section .col-lg-6:first-child .news-card-image {
    aspect-ratio: 16 / 9;
}

.category-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--sp-secondary);
    font-weight: 800;
    margin-bottom: 5px;
    display: inline-block;
    letter-spacing: 0;
}

.news-headline {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--sp-primary);
    margin-bottom: 0.5rem;
}

.news-meta {
    font-size: 0.82rem;
    color: var(--sp-muted);
}

.news-teaser {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.section-title {
    border-bottom: 2px solid var(--sp-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-title h2 {
    display: inline-block;
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--sp-primary);
    font-size: 1.5rem;
}

.section-title a {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.compact-title {
    margin-bottom: 1rem;
}

.card-overlay {
    position: relative;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-bottom: 2rem;
    background-color: #000;
}

.card-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.card-overlay-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.card-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
    z-index: 2;
}

.card-overlay-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    color: #fff;
    width: 100%;
}

.card-overlay-content .news-headline {
    color: #fff;
    font-size: 1.8rem;
}

.brief-panel {
    min-height: 100%;
}

.section-kicker {
    color: var(--sp-accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
}

.empty-state {
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: 6px;
    padding: 2rem;
}

.search-panel {
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: 6px;
    padding: 1rem;
}

.search-panel .form-label {
    color: var(--sp-primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.article-header {
    margin: 1rem 0 1.5rem;
}

.article-header h1 {
    color: var(--sp-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-weight: 900;
    margin: 0.5rem 0 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    color: var(--sp-muted);
    font-size: 0.92rem;
}

.article-meta span:not(:last-child)::after,
.article-meta time::after {
    content: "";
}

.article-figure {
    margin: 0 0 1.5rem;
}

.article-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-figure figcaption,
.article-body figcaption {
    color: var(--sp-muted);
    font-size: 0.84rem;
    margin-top: 0.45rem;
}

.article-figure figcaption span:not(:empty)::before {
    content: " ";
}

.article-body {
    font-size: 1.08rem;
    line-height: 1.72;
}

.article-body p {
    margin-bottom: 1.15rem;
}

.article-body figure {
    margin: 1.75rem 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pa-quote,
.article-body blockquote {
    border-left: 5px solid var(--sp-accent);
    background: var(--sp-bg);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 1.12rem;
    font-weight: 700;
}

.pa-quote p {
    margin-bottom: 0.35rem;
}

.pa-quote footer {
    color: var(--sp-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.twitter-tweet {
    border: 1px solid var(--sp-border);
    border-radius: 6px;
    padding: 1rem;
    background: #fff;
}

.article-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sp-border);
}

.article-tags a {
    display: inline-block;
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    margin: 0 0.35rem 0.5rem 0;
    color: var(--sp-primary);
    font-size: 0.86rem;
    font-weight: 700;
}

.article-sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-block {
    margin-bottom: 1.75rem;
}

.sidebar-block .section-title h2 {
    font-size: 1.25rem;
}

.ad-block {
    min-height: 280px;
    border: 1px dashed #c6ccd3;
    background: #f0f2f5;
    color: var(--sp-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
}

.ad-block.slim {
    min-height: 160px;
}

.sidebar-topics {
    border-top: 2px solid var(--sp-primary);
    padding-top: 1rem;
}

.sidebar-topics h2 {
    color: var(--sp-primary);
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-topics a {
    display: inline-block;
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    margin: 0 0.35rem 0.5rem 0;
    color: var(--sp-primary);
    font-size: 0.86rem;
    font-weight: 700;
}

.legal-page h2 {
    color: var(--sp-primary);
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 2rem;
}

.legal-content {
    font-size: 1.02rem;
    line-height: 1.75;
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content code {
    color: var(--sp-primary);
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: 4px;
    padding: 0.1rem 0.25rem;
}

.legal-updated {
    color: var(--sp-muted);
    font-size: 0.92rem;
    margin-top: 2rem;
}

.legal-details {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 0.5rem 1rem;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: 6px;
    padding: 1rem;
}

.legal-details dt {
    font-weight: 800;
}

.legal-details dd {
    margin: 0;
}

footer {
    background-color: #1a1a1a;
    color: #adb5bd;
    padding-top: 3rem;
    padding-bottom: 1rem;
    font-size: 0.9rem;
}

footer h2 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

footer a {
    color: #adb5bd;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer li {
    margin-bottom: 0.5rem;
}

.social-icons a {
    font-size: 1.15rem;
    margin-right: 15px;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 4px solid var(--sp-secondary);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    display: none;
}

.cookie-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--sp-border);
    padding: 0.85rem 0;
}

.cookie-choice:last-child {
    border-bottom: none;
}

.cookie-choice p {
    margin: 0.2rem 0 0;
    color: var(--sp-muted);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    #top-header-bar .row > div {
        text-align: center;
        margin-bottom: 10px;
    }

    .sp-logo {
        margin: 0 auto;
    }

    .navbar-brand-scroll {
        display: flex;
        max-width: 150px;
    }

    .nav-search {
        min-width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .nav-search .form-select {
        width: 132px;
    }

    .carousel-item {
        height: 330px;
    }

    .hero-section .carousel-item {
        height: 380px;
    }

    .hero-section .carousel-caption {
        max-width: none;
    }

    .article-sidebar {
        position: static;
    }

    .card-overlay {
        height: 320px;
    }

    .card-overlay-content {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-caption {
        bottom: 2rem;
        left: 8%;
        right: 8%;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .legal-details {
        grid-template-columns: 1fr;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .nav-search form {
        flex-wrap: wrap;
    }

    .nav-search input {
        min-width: 0;
        flex: 1 1 100%;
    }

    .nav-search .form-select {
        flex: 1 1 auto;
    }

    .hero-section .carousel-item {
        height: 330px;
    }

    .carousel-caption h1 {
        font-size: 1.25rem;
    }
}
