@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    font-family: 'Playfair Display', serif;
    font-size: 160px;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(to top, var(--white) 50%, rgba(255,255,255,0.1) 50%);
    background-size: 100% 200%;
    background-position: 0 0%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: f-fill 2s infinite ease-in-out;
}

@keyframes f-fill {
    0% { background-position: 0 0%; opacity: 0.8; }
    50% { background-position: 0 100%; opacity: 1; }
    100% { background-position: 0 100%; opacity: 1; }
}

/* ==================== TOKENS ==================== */
:root {
    --black:  #000000;
    --white:  #FFFFFF;
    --orange: #00AEEF; /* Vibrant Cyan/Blue from screenshot */
    --liberia-blue: #00AEEF;
    --muted:  #777777;
    --border: #E5E5E5;
    --bg:     #F6F6F6;
    --overlay-color: rgba(0,0,0,0.45);

    --serif: 'Playfair Display', serif;
    --sans:  'Inter', sans-serif;

    --max-w: 1200px;
    --pad:   24px;       /* container side padding */
    --speed: 0.28s;
}

body.dark {
    --black:  #EEEEEE;
    --white:  #111111;
    --muted:  #999999;
    --border: #2A2A2A;
    --bg:     #1A1A1A;
    --overlay-color: rgba(0,0,0,0.72);
}

/* ==================== RESET ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--sans);
    color: var(--black);
    line-height: 1.5;
    background-color: #0C0C0C;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.brand-top-banner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    background: url('../psd.png') center top no-repeat;
    background-size: contain; /* Better for proportional fit */
    display: block;
    height: auto;
    aspect-ratio: 1200 / 240; /* Wider and shorter proportion to avoid 'stretch' */
}

/* Content Area */
.site-wrapper {
    background: var(--white);
    max-width: var(--max-w);
    margin: 0 auto; 
    position: relative;
    z-index: 10;
    box-shadow: 0 0 80px rgba(0,0,0,0.9);
    min-height: 100vh;
}

body.dark .site-wrapper {
    background: var(--dark-bg);
}

@media (max-width: 1200px) {
    .site-wrapper { margin: 0 auto; }
    body { background-color: var(--white); }
    body.dark { background-color: var(--dark-bg); }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--sans); }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ==================== HEADER ==================== */
header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: background var(--speed), border-color var(--speed);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 8px; /* Tighter top padding */
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.logo-main {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
}
.logo-country {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--liberia-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-subscribe {
    background: var(--black);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 22px;
    border: none;
    white-space: nowrap;
    transition: opacity var(--speed);
}
.btn-subscribe:hover { opacity: 0.75; }

.icon-btn {
    background: none;
    border: none;
    color: var(--black);
    display: flex;
    align-items: center;
    transition: opacity var(--speed);
}
.icon-btn:hover { opacity: 0.55; }

.main-nav { padding: 2px 0 12px; }
.main-nav ul {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: color var(--speed);
    position: relative;
    padding-bottom: 4px;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--black);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.main-nav a:hover::after, .main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==================== TICKER ==================== */
.ticker-section {
    border-bottom: 1px solid var(--border);
    padding: 16px 0 0;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
    flex: 1;
}

/* Right-side fade hint */
.ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--white));
    pointer-events: none;
    transition: opacity var(--speed);
    opacity: 1;
}

/* Hide gradient when at the end — no more content to the right */
.ticker-wrapper.at-end::after {
    opacity: 0;
}

.ticker-list {
    display: flex;
    gap: 40px;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.ticker-item { min-width: 280px; }

.ticker-time {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 5px;
}

.ticker-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticker-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-bottom: 14px;
}

.ticker-progress {
    flex: 1;
    height: 2px;
    background: var(--border);
    position: relative;
    margin-right: 20px;
}
.ticker-progress-bar {
    position: absolute;
    height: 100%;
    background: var(--black);
    left: 0;
    width: 25%;
    transition: left 0.45s ease;
}

.ticker-controls { display: flex; gap: 8px; flex-shrink: 0; }
.control-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: none;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}
.control-btn:hover { border-color: var(--black); }

/* ==================== HERO SECTION (DESKTOP: split | MOBILE: stack) ==================== */
.hero-section {
    border-bottom: 1px solid var(--border);
}

/* The hero container: same padding on both sides as regular container */
.hero-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);   /* aligned with header/ticker/section */
    display: grid;
    grid-template-columns: 2fr 3fr;
    align-items: center;
    min-height: 420px;
}

/* Left text column */
.hero-text {
    padding: 36px var(--pad) 36px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Right image column — bleeds to viewport edge */
.hero-image {
    height: 100%;
    min-height: 420px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: linear-gradient(135deg, var(--bg) 0%, var(--border) 100%);
}

/* Category tag */
.category-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
}

/* Hero title — large serif with underline */
.hero-title {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

/* Excerpt */
.hero-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

/* Hero meta */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}
.author-name { font-weight: 700; color: var(--black); }
.meta-sep { color: var(--muted); }
.read-time { display: flex; align-items: center; gap: 4px; }

.meta-right { display: flex; align-items: center; gap: 10px; }

.bookmark-btn {
    background: none;
    border: none;
    color: var(--muted);
    display: flex;
    align-items: center;
    transition: color var(--speed);
}
.bookmark-btn:hover { color: var(--black); }

/* ==================== MONEY & ECONOMY SECTION ==================== */
.main-section { padding: 36px 0 60px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    transition: opacity var(--speed);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-link:hover { opacity: 0.7; }

.section-link-text {
    display: inline;
}

@media (max-width: 768px) {
    .section-link-text {
        display: none;
    }
    .section-link {
        font-size: 18px; /* High visibility arrow */
    }
}

/* Side article cards — 3-col grid */
.side-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card image with overlaid category */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}

.card-image .image-placeholder {
    min-height: unset;
    height: 100%;
}

.card-category-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--white);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    white-space: nowrap;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    margin-top: auto;
    padding-top: 4px;
}

/* ==================== LOAD MORE ==================== */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.load-more-btn {
    background: none;
    border: 1.5px solid var(--black);
    color: var(--black);
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--speed);
}

.load-more-btn:hover {
    background: var(--black);
    color: var(--white);
}

body.dark .load-more-btn {
    border-color: var(--white);
    color: var(--white);
}

body.dark .load-more-btn:hover {
    background: var(--white);
    color: var(--black);
}

/* ==================== ANIMATIONS ==================== */
.article-card.entry-animation {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-overlay {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--speed), visibility var(--speed);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--pad);
    border-bottom: 1px solid var(--border);
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Reuse logo styles — already defined globally */

.search-close-btn {
    background: none;
    border: none;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity var(--speed);
    font-size: 42px; /* Much larger X */
    padding: 10px;
    line-height: 1;
    font-weight: 300; /* Sleek but big */
}
.search-close-btn:hover { opacity: 0.5; }

.search-overlay-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px var(--pad) 0;
    overflow-y: auto;
}

.search-results-container {
    width: 100%;
    max-width: 680px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: opacity var(--speed);
    text-align: left;
}
.search-result-row:hover { opacity: 0.7; }

.search-result-thumb {
    width: 80px;
    height: 54px;
    background: var(--bg);
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
}

.search-result-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 680px;
    border: 1.5px solid var(--black);
    padding: 0 14px;
}

.search-main-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 400;
    color: var(--black);
    background: transparent;
    padding: 16px 0;
}

.search-main-input::placeholder { color: var(--muted); }

.search-submit-btn {
    background: none;
    border: none;
    color: var(--black);
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    transition: opacity var(--speed);
}
.search-submit-btn:hover { opacity: 0.6; }

.search-topics {
    margin-top: 40px;
    text-align: center;
}

.search-topics-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.search-topics-links {
    display: flex;
    gap: 28px;
    justify-content: center;
}

.search-topics-links a {
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    color: var(--black);
    transition: opacity var(--speed);
}
.search-topics-links a:hover { opacity: 0.5; }

/* ==================== OVERLAY ==================== */
.overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-color);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--speed), visibility var(--speed);
}
.overlay.active { opacity: 1; visibility: visible; }

/* ==================== SIDEMENU ==================== */
.sidemenu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 380px;
    height: 100%;
    background: var(--white);
    z-index: 1002;
    overflow-y: auto;
    transition: transform var(--speed) ease, background var(--speed);
}
.sidemenu.active { transform: translateX(0); }

.menu-header {
    display: flex;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.menu-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: var(--muted);
    transition: color var(--speed);
    margin-left: auto; /* Pushes to right */
    cursor: pointer;
}
.close-btn:hover { color: var(--black); }

.menu-content { padding: 24px 28px 40px; }

.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 28px;
}
.user-icon-box {
    width: 26px;
    height: 26px;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.menu-list { display: flex; flex-direction: column; }
.menu-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.plus-icon { font-weight: 300; font-size: 22px; color: var(--muted); }

.menu-footer { margin-top: 28px; display: flex; flex-direction: column; }
.footer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

/* Dark Mode Toggle */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; cursor: pointer; transition: .35s; }
.slider:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .35s; }
input:checked + .slider { background: var(--orange); }
input:checked + .slider:before { transform: translateX(18px); }

/* ==================== TABLET ==================== */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title { font-size: 24px; }
    .side-articles { grid-template-columns: 1fr; }
}

/* ==================== MOBILE ==================== */
@media (max-width: 600px) {
    /* Logo stacked */
    .logo { flex-direction: column; align-items: flex-start; gap: 0; }
    .logo-main { font-size: 32px; }
    .logo-country { font-size: 10px; letter-spacing: 1px; }

    /* Inputs 16px to prevent zoom on focus */
    input, textarea, select { font-size: 16px !important; }

    .btn-subscribe { padding: 8px 14px; font-size: 12px; }

    /* Ticker */
    .ticker-item { min-width: 240px; }

    /* Hero: stack (image on top, text below) */
    .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding-left: 0;           /* full bleed both sides */
        padding-right: 0;
        min-height: unset;
    }

    /* Image comes first on mobile */
    .hero-image {
        order: -1;
        min-height: 260px;
        height: 60vw;
    }

    .hero-text {
        padding: 20px var(--pad) 24px;
        gap: 12px;
    }

    .hero-title {
        font-size: 26px;
        font-weight: 800;
        line-height: 1.2;
    }

    .hero-excerpt { font-size: 14px; }

    /* Section header */
    .section-title { font-size: 22px; }
    .section-link-text { display: none; }
    .section-link { font-size: 20px; }

    /* Cards — 1 col on mobile */
    .side-articles { grid-template-columns: 1fr; gap: 20px; }
    .card-title { font-size: 16px; }

    /* Sidemenu full-width on mobile */
    .sidemenu { width: 100%; }

    /* Search overlay mobile */
    .search-overlay-header {
        padding: 18px var(--pad);
    }
    .search-overlay-body {
        padding: 32px var(--pad) 0;
        align-items: flex-start;
    }
    .search-input-wrap {
        max-width: 100%;
    }
    .search-submit-btn {
        display: none; /* hidden on mobile — full-width input */
    }
    .search-topics {
        margin-top: 48px;
        text-align: left;
    }
    .search-topics-label {
        font-size: 26px;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    .search-topics-links {
        justify-content: flex-start;
        gap: 20px;
    }
    .search-topics-links a {
        font-size: 16px;
    }

    .mobile-only { display: block !important; }
    .mobile-only-flex { display: flex !important; }
}

.mobile-only, .mobile-only-flex { display: none !important; }

/* ==================== EDITORS' PICKS ==================== */
.editors-picks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pick-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pick-image {
    aspect-ratio: 1/1;
    background: var(--bg);
    overflow: hidden;
}

.pick-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--black);
}

.pick-meta {
    font-size: 10px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
}

/* ==================== NEWSLETTER ==================== */
.newsletter-section {
    background: var(--bg);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 40px;
}

.newsletter-title {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 0;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-right: none;
    outline: none;
    font-family: var(--sans);
    font-size: 14px;
    background: var(--white);
    color: var(--black);
}

.newsletter-btn {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
    padding: 14px 24px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: opacity var(--speed);
}

.newsletter-btn:hover { opacity: 0.8; }

/* ==================== FOOTER ==================== */
footer {
    background: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: var(--black);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: var(--muted);
    transition: color var(--speed);
}

.footer-links a:hover { color: var(--black); }

.footer-about p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--black);
    transition: opacity var(--speed);
}

.social-links a:hover { opacity: 0.6; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-copy { font-size: 12px; color: var(--muted); }

.footer-legal {
    display: flex;
    gap: 24px;
    font-size: 12px;
    color: var(--muted);
}

/* ==================== ELITE SLIDER ==================== */
.elite-slider-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.01);
}

.slider-outer {
    position: relative;
}

@media (max-width: 600px) {
    .slider-outer::after {
        content: '';
        position: absolute;
        top: 20px;
        right: -1px;
        width: 60px;
        height: calc(100% - 60px);
        background: linear-gradient(to right, rgba(255,255,255,0), var(--white));
        pointer-events: none;
        z-index: 5;
    }
}

.slider-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    display: flex;
    padding: 20px 0 40px;
}

.slider-viewport::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */

.slider-track {
    display: flex;
    gap: 24px;
}

.slider-track .article-card {
    flex: 0 0 calc(25% - 18px); /* 4 cards desktop */
    scroll-snap-align: start;
    transition: transform 0.4s ease;
}

.slider-track .article-card:hover { transform: translateY(-5px); }

.slider-nav-btn {
    position: absolute;
    top: 45%;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

.slider-outer:hover .slider-nav-btn {
    visibility: visible;
    opacity: 1;
}

.slider-nav-btn:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.slider-nav-btn.prev { left: -25px; }
.slider-nav-btn.next { right: -25px; }

/* ==================== ARTICLE LINKS ==================== */
.article-body a, .rich-editor a {
    color: var(--black);
    text-decoration: none;
    border-bottom: 2px solid var(--liberia-blue);
    font-weight: 700;
    transition: all 0.2s ease;
}

.article-body a:hover, .rich-editor a:hover {
    color: var(--liberia-blue);
    border-bottom-color: var(--black);
}

@media (max-width: 1100px) {
    .slider-track .article-card { flex: 0 0 calc(50% - 12px); }
    .slider-nav-btn { width: 40px; height: 40px; }
}

@media (max-width: 600px) {
    .elite-slider-section { padding: 40px 0; }
    .slider-track .article-card { flex: 0 0 85vw; }
    .slider-nav-btn { display: none; }
    .slider-track { gap: 16px; }
}

.footer-legal a:hover { text-decoration: underline; }

.footer-disclaimer-box {
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--border);
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
    border-radius: 4px;
}

body.dark .footer-disclaimer-box {
    background: rgba(255,255,255,0.03);
}

.disclaimer-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--black);
}

.footer-disclaimer-box p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.newsletter-text-wrap {
    margin-bottom: 30px;
}

.newsletter-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.newsletter-subtitle {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.newsletter-disclaimer {
    font-size: 11px;
    color: var(--muted);
    margin-top: 20px;
}
.newsletter-disclaimer a { text-decoration: underline; color: var(--muted); }

/* Tablet footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    max-width: 450px;
    background: var(--white);
    padding: 24px;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.cookie-text {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--liberia-blue);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: var(--black);
    color: var(--white);
}

.cookie-btn.decline {
    background: #f0f0f0;
    color: #666;
}

.cookie-btn:hover {
    opacity: 0.8;
}

body.dark .cookie-banner {
    background: #1a1a1a;
    border-color: #333;
}
body.dark .cookie-text { color: #aaa; }
body.dark .cookie-btn.decline { background: #333; color: #999; }

@media (max-width: 600px) {
    .cookie-banner {
        left: 15px;
        right: 15px;
        bottom: 15px;
        padding: 20px;
    }
}

/* Mobile adjustments for new sections */
@media (max-width: 600px) {
    .editors-picks-grid {
        grid-template-columns: 1fr 1fr;
    }
    .newsletter-section { padding: 40px 0; }
    .newsletter-title { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
