/*
 * fsnews.css — Fair Side News Design System
 * Used by: index-test.php (new homepage), breaking.php, and future pages
 * DO NOT include alongside styles.css on the same page.
 * Version: 1.0 — April 2026
 */

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    font-family: 'Source Sans 3', sans-serif;
    color: #1a1a2e;
    background: #f7f8fc;
    margin: 0; padding: 0;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none !important; margin: 0; padding: 0; }
li { list-style: none !important; }
li::before, li::marker { display: none !important; content: none !important; }
h1,h2,h3,h4,h5,h6 { margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
input, textarea { font-family: inherit; }

/* ══════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Design Tokens)
══════════════════════════════════════════════════════ */
:root {
    --navy:   #1a237e;
    --navyd:  #0d1457;
    --red:    #c62828;
    --white:  #fff;
    --border: #e4e6ef;
    --text:   #1a1a2e;
    --muted:  #666;
    --bg:     #f7f8fc;
    --maxw:   1240px;
    --sbw:    295px;
    --gap:    18px;
}

/* ══════════════════════════════════════════════════════
   TICKER BAR
══════════════════════════════════════════════════════ */
.tk-bar {
    background: var(--navy);
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 900;
}
.tk-badge {
    flex-shrink: 0;
    background: var(--red);
    color: #fff;
    font: 800 10px/1 'Raleway', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    margin: 0 14px 0 12px;
    border-radius: 2px;
    white-space: nowrap;
}
.tk-scroll { flex: 1; overflow: hidden; height: 100%; }
.tk-inner {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: tkScroll 180s linear infinite;
    will-change: transform;
}
.tk-bar:hover .tk-inner { animation-play-state: paused; }
@keyframes tkScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.tk-item { display: inline-flex; align-items: center; margin-right: 32px; font-size: 13px; }
.tk-item a { color: #fdd835; font-weight: 600; transition: color .15s; }
.tk-item a:hover { color: #fff; text-decoration: underline; }
.tk-item.tk-breaking a { color: #fff; }
.tk-brk { color: #fdd835; font: 800 10px/1 'Raleway',sans-serif; letter-spacing:.06em; margin-right: 4px; }
.tk-ann { color: rgba(255,255,255,.78); font-style: italic; }
.tk-sep { color: rgba(255,255,255,.35); margin-right: 32px; font-size: 13px; }

/* ══════════════════════════════════════════════════════
   SITE HEADER — white top bar
═══════════════════════════════════════════════════════ */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--border); }
.h-top {
    max-width: var(--maxw); margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.h-logo { display: flex; flex-direction: column; gap: 2px; }
.h-logo img { height: 44px; width: auto; max-width: 320px; object-fit: contain; }
.h-logo span { font-size: .80em; color: var(--muted); font-style: italic; margin-top: 1px; }
.h-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.h-search {
    display: flex; align-items: center;
    background: var(--bg); border: 1px solid var(--border); border-radius: 3px;
}
.h-search input {
    border: none; background: none; padding: 7px 10px;
    font-size: .82em; width: 180px; outline: none; color: var(--text);
}
.h-search button {
    background: none; border: none; padding: 7px 10px;
    cursor: pointer; color: var(--muted); display: flex; align-items: center;
}
.h-search button:hover { color: var(--navy); }
.h-sub {
    background: var(--red); color: #fff;
    font: 700 .82em/1 'Raleway', sans-serif;
    letter-spacing: .04em; padding: 9px 18px;
    border-radius: 3px; border: none; cursor: pointer;
    white-space: nowrap; transition: background .15s; position: relative;
}
.h-sub:hover { background: #a51919; }
.h-sub-tip {
    display: none; position: absolute; bottom: calc(100% + 8px); right: 0;
    background: var(--navyd); color: #fff; font-size: .76em; font-weight: 400;
    padding: 6px 10px; border-radius: 4px; white-space: nowrap; z-index: 10;
    font-family: 'Source Sans 3', sans-serif;
}
.h-sub:hover .h-sub-tip { display: block; }

/* ══════════════════════════════════════════════════════
   SITE NAV — navy bar with red top border
═══════════════════════════════════════════════════════ */
.site-nav {
    background: var(--navy);
    border-top: 3px solid var(--red);
    position: relative; z-index: 800;
}
.nav-wrap {
    max-width: var(--maxw); margin: 0 auto; padding: 0 16px;
    display: flex; align-items: stretch;
}
.nav-list { display: flex; align-items: stretch; }
.nav-list > li { position: relative; display: block; }
.nav-list > li > a {
    display: flex; align-items: center; padding: 11px 15px;
    color: rgba(255,255,255,.82); font: 600 .8em/1 'Raleway', sans-serif;
    letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
    transition: color .15s, background .15s;
}
.nav-list > li > a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-list > li.has-drop > a::after { content: ' ▾'; font-size: .8em; margin-left: 2px; }
.nav-drop {
    display: none;
    position: absolute; top: 100%; left: 0;
    background: var(--navyd); min-width: 200px;
    border-top: 2px solid var(--red);
    box-shadow: 0 4px 16px rgba(0,0,0,.3); z-index: 900;
}
.nav-list > li.has-drop:hover .nav-drop { display: block; }
.nav-drop li { display: block; }
.nav-drop li a {
    display: block; padding: 9px 16px;
    color: rgba(255,255,255,.78); font-size: .82em;
    font-family: 'Source Sans 3', sans-serif;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: color .15s, background .15s;
}
.nav-drop li a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-mobile-btn {
    display: none; margin-left: auto;
    background: none; border: none; color: #fff;
    font-size: 1.3em; padding: 10px 12px; cursor: pointer;
}
/* Mobile: show hamburger on RIGHT, nav list drops below full width */
@media (max-width: 600px) {
    .nav-wrap {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding: 0 12px;
    }
    .nav-mobile-btn {
        display: flex;
        margin-left: auto;
        order: 2;
    }
    .nav-list {
        order: 3;
        width: 100%;
    }
}

/* ══════════════════════════════════════════════════════
   STICKY NAV — appears on scroll past header
══════════════════════════════════════════════════════ */
.sticky-nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--navyd);
    border-bottom: 3px solid var(--red);
    z-index: 1500;
    transform: translateY(-100%);
    transition: transform .25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.sticky-nav.visible { transform: translateY(0); }
.sticky-wrap {
    max-width: var(--maxw); margin: 0 auto;
    padding: 0 16px; height: 48px;
    display: flex; align-items: center; gap: 12px;
}
.sticky-logo { flex-shrink: 0; }
.sticky-logo img { height: 28px; width: auto; }
.sticky-links {
    display: flex; align-items: center; gap: 2px; flex: 1;
}
.sticky-links a {
    color: rgba(255,255,255,.8); font: 600 .75em/1 'Raleway', sans-serif;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 8px 10px; border-radius: 3px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.sticky-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.sticky-links a.sticky-breaking { color: #fdd835; }
.sticky-sub {
    background: var(--red); color: #fff; border: none; cursor: pointer;
    font: 700 .75em/1 'Raleway', sans-serif; letter-spacing: .04em;
    padding: 7px 14px; border-radius: 3px;
    transition: background .15s; white-space: nowrap; flex-shrink: 0;
}
.sticky-sub:hover { background: #a51919; }
/* Hamburger — hidden on desktop */
.sticky-hamburger {
    display: none;
    background: none; border: none; color: #fff;
    font-size: 1.4em; padding: 4px 6px; cursor: pointer; flex-shrink: 0;
    line-height: 1;
}
/* Sticky dropdown — slides down below sticky bar */
.sticky-dropdown {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navyd);
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    z-index: 1600;
}
.sticky-dropdown.open { display: block; }
.sticky-dropdown a {
    display: block; padding: 14px 20px;
    color: rgba(255,255,255,.88); font: 600 .88em/1 'Raleway', sans-serif;
    text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .12s;
}
.sticky-dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sticky-dropdown a.sd-breaking { color: #fdd835; }

@media (max-width: 860px) {
    .sticky-links { display: none; }
    .sticky-hamburger { display: flex; align-items: center; }
    .sticky-logo img { height: 24px; }
    .sticky-sub { font-size: .7em; padding: 6px 10px; }
}


/* ══════════════════════════════════════════════════════
   TOP AD SLOT
══════════════════════════════════════════════════════ */
.ad-header-wrap {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 6px 0; text-align: center;
}
.ad-header-wrap .ad-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 16px;
}
.ad-header-wrap .ad-lbl-sm {
    font-size: .62em; color: #ccc; text-transform: uppercase;
    letter-spacing: .05em; margin-bottom: 3px;
}
/* Desktop: horizontal only, hide vertical */
.ad-header-wrap .vertical-banner { display: none !important; }
@media (max-width: 768px) {
    .ad-header-wrap .vertical-banner { display: block !important; }
    .ad-header-wrap .horizontal-banner { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   PAGE BODY GRID
══════════════════════════════════════════════════════ */
.page-body {
    max-width: var(--maxw); margin: 0 auto; padding: 18px 16px;
    display: grid;
    grid-template-columns: 1fr var(--sbw);
    grid-template-areas:
        "banner  sidebar"
        "feature sidebar"
        "second  sidebar"
        "heads   sidebar"
        "stand   stand"
        "mid-ad  mid-ad"
        "cats    cats";
    gap: var(--gap);
    align-items: start;
}

/* ══════════════════════════════════════════════════════
   SECTION HEADERS (red underline)
══════════════════════════════════════════════════════ */
.sec-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding-bottom: 7px; border-bottom: 3px solid var(--red);
}
.sec-head h2 {
    font: 800 .88em/1 'Raleway', sans-serif;
    text-transform: uppercase; letter-spacing: .07em; color: var(--navy); margin: 0;
}
.sec-head a {
    font-size: .72em; color: var(--muted);
    border: 1px solid var(--border); padding: 2px 8px; border-radius: 3px;
    font-family: 'Raleway', sans-serif;
}
.sec-head a:hover { background: #f0f0f0; }

/* ══════════════════════════════════════════════════════
   EDITORIAL BANNER (dismissable)
═══════════════════════════════════════════════════════ */
.it-banner {
    grid-area: banner;
    background: #2d3a8c;
    color: #fff;
    border-radius: 6px;
    padding: .9rem 3rem .9rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--red);
}
.it-banner-inner { flex: 1; }
.it-banner-label {
    font-size: .7rem; text-transform: uppercase;
    letter-spacing: .08em; color: #c7d2ff; margin-bottom: .2rem;
}
.it-banner-text { font-size: .88rem; line-height: 1.5; }
.it-banner-text b, .it-banner-text strong { color: #fff; }
.bn-close {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; color: #c7d2ff;
    font-size: 1.1rem; cursor: pointer; padding: 4px 6px;
}
.bn-close:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
.sidebar {
    grid-area: sidebar;
    display: flex; flex-direction: column; gap: 14px;
    position: sticky; top: 64px; /* clears sticky nav */
}
.sb-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden;
}
.sb-head {
    background: var(--navy); color: #fff; padding: 8px 12px;
    font: 800 .73em/1 'Raleway', sans-serif; letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: center; gap: 6px;
}
.sb-head.sponsor-head { background: #2e3a5e; }
.sb-live {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--red); animation: livepulse 1.5s ease-in-out infinite; flex-shrink: 0;
}
@keyframes livepulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(1.3); }
}
.sb-editor-body { padding: 10px 12px; }
.sb-editor-body p { font-size: .82em; line-height: 1.55; color: #444; margin-bottom: 8px; }
.sb-editor-body a { font-size: .76em; color: var(--navy); font-weight: 600; }
.sb-editor-body a:hover { text-decoration: underline; }
/* Stub / breaking list */
.stub-list { padding: 6px 0; }
.stub-a {
    display: block; padding: 8px 12px; border-bottom: 1px solid var(--border);
    transition: background .12s;
}
.stub-a:last-child { border-bottom: none; }
.stub-a:hover { background: #fff8f8; }
.stub-time {
    font: 700 .67em/1 'Raleway', sans-serif; color: var(--red);
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px;
}
.stub-ttl {
    font-size: .82em; font-weight: 600; color: var(--text); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stub-a:hover .stub-ttl { color: var(--red); }
.stub-view-all {
    display: block; text-align: center; padding: 8px 12px;
    font: 700 .72em/1 'Raleway', sans-serif; color: var(--navy);
    border-top: 1px solid var(--border); transition: background .12s;
    text-transform: uppercase; letter-spacing: .05em;
}
.stub-view-all:hover { background: #f0f2ff; }
/* Ad in sidebar */
.sb-ad-body { padding: 10px; text-align: center; }
.sb-ad-lbl { font-size: .62em; color: #aaa; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.sb-ad-placeholder {
    background: #f5f5f5; border: 1px dashed #ddd; border-radius: 4px;
    padding: 40px 16px; color: #ccc; font-size: .8em; text-align: center;
}

/* ══════════════════════════════════════════════════════
   FEATURED CAROUSEL — 2-col layout
   IMPORTANT: This CSS was carefully tuned to fix scroll-jump
   and height issues. Do not change without testing thoroughly.
══════════════════════════════════════════════════════ */
.feature-wrap { grid-area: feature; }
.feature-layout {
    display: grid;
    grid-template-columns: 1fr 230px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.feature-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
#featuredSwiper {
    width: 100%;
    overflow: hidden;
}

/* Let Swiper manage its own internals — minimal overrides only */
.featured-swiper { overflow: hidden; }

/* Override Swiper bundle's height:100% on wrapper — it pushes pagination off-screen.
   The wrapper height must be auto so the flex column can size correctly. */
.featured-swiper .swiper-wrapper {
    height: auto !important;
    align-items: stretch;
}

/* Pagination — pull it out of absolute positioning into normal flow */
.featured-swiper .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    text-align: center;
    padding: 8px 0;
    background: #fafafa;
    border-top: 1px solid var(--border);
    width: 100%;
    display: block;
}
.featured-swiper .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: var(--navy); opacity: .35;
    display: inline-block; margin: 0 3px; border-radius: 50%;
    cursor: pointer; transition: opacity .2s, background .2s;
}
.featured-swiper .swiper-pagination-bullet-active { background: var(--red); opacity: 1; }

/* Focus — prevent scroll jump on slide change */
.featured-swiper a:focus,
.featured-swiper .swiper-slide:focus,
#featuredSwiper:focus {
    outline: none !important;
    scroll-margin: 0 !important;
}

/* Slide layout — flex column so image stacks above text */
.feature-slide {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Fixed pixel height — do NOT use padding-top % here */
.feature-img {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center center;
    background-color: #e8eaf6;
    position: relative;
    flex-shrink: 0;
}
.feature-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.25) 0%, transparent 60%);
}
.feature-brk-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--red); color: #fff;
    font: 800 .68em/1 'Raleway', sans-serif;
    padding: 3px 8px; border-radius: 2px;
    letter-spacing: .06em; text-transform: uppercase;
}
.feature-body {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column; gap: 6px; background: #fff;
}
.feature-cat { font: 700 .68em/1 'Raleway', sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.feature-title { font: 700 1.05em/1.3 'Libre Baskerville', Georgia, serif; color: var(--text); }
.feature-title a:hover { color: var(--red); }
.feature-meta { font-size: .72em; color: #aaa; }
.feature-summary {
    font-size: .84em; color: var(--muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feature-read {
    display: inline-block; background: var(--navy); color: #fff !important;
    padding: 7px 14px; border-radius: 3px;
    font: 700 .76em/1 'Raleway', sans-serif; letter-spacing: .04em;
    transition: background .15s; align-self: flex-start; margin-top: 4px;
}
.feature-read:hover { background: var(--navyd); }

/* Right column — scrollable title list */
.feature-list {
    border-left: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    display: flex;
    flex-direction: column;
    max-height: 480px;
    align-self: stretch;
}
.fli {
    display: block; padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background .12s; flex-shrink: 0;
}
.fli:last-child { border-bottom: none; }
.fli:hover { background: #f8f9ff; }
.fli.active { background: #e8eaf6; border-left: 4px solid var(--red); padding-left: 9px; }
.fli-cat {
    font: 700 .62em/1 'Raleway', sans-serif; text-transform: uppercase;
    letter-spacing: .06em; color: var(--red); margin-bottom: 3px;
}
.fli-brk { color: var(--red); margin-right: 2px; }
.fli-title {
    font-size: .8em; font-weight: 600; color: var(--text); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fli.active .fli-title { color: var(--navy); }
.fli-meta { font-size: .68em; color: #aaa; margin-top: 3px; }

/* ═══════════════════════════════════════════════════════
   SECONDARY ARTICLES — 3-col card grid
══════════════════════════════════════════════════════ */
.secondary-wrap { grid-area: second; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sec-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden; transition: box-shadow .15s;
}
.sec-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.sec-img { aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: #e8eaf6; }
.sec-body { padding: 10px 12px; }
.sec-cat { font: 700 .67em/1 'Raleway', sans-serif; color: var(--red); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.sec-title { font: 700 .88em/1.35 'Libre Baskerville', serif; color: var(--text); margin-bottom: 4px; }
.sec-title a:hover { color: var(--red); }
.sec-sum {
    font-size: .78em; color: var(--muted); line-height: 1.4; margin-bottom: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sec-meta { font-size: .7em; color: #aaa; }

/* ══════════════════════════════════════════════════════
   HEADLINE ARTICLES — auto-fill card grid
══════════════════════════════════════════════════════ */
.headline-wrap { grid-area: heads; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.hl-card {
    background: #fff; border: 1px solid var(--border); border-radius: 6px;
    display: flex; gap: 10px; padding: 10px; transition: box-shadow .15s;
}
.hl-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.hl-thumb {
    flex: 0 0 68px; height: 68px; background-size: cover; background-position: center;
    border-radius: 4px; background-color: #e8eaf6; flex-shrink: 0;
}
.hl-body { flex: 1; min-width: 0; }
.hl-cat { font: 700 .64em/1 'Raleway', sans-serif; color: var(--red); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.hl-title { font: 700 .83em/1.3 'Libre Baskerville', serif; color: var(--text); }
.hl-title a:hover { color: var(--red); }
.hl-meta { font-size: .68em; color: #aaa; margin-top: 4px; }

/* ══════════════════════════════════════════════════════
   STANDARD ARTICLES — full-width 2-col list
═══════════════════════════════════════════════════════ */
.standard-wrap { grid-area: stand; }
.std-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2px; background: var(--border);
    border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.std-item { background: #fff; padding: 9px 12px; transition: background .12s; }
.std-item:hover { background: #f8f9ff; }
.std-item a { display: block; }
.std-ttl {
    font-size: .84em; font-weight: 600; color: var(--text); line-height: 1.35;
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.std-item:hover .std-ttl { color: var(--red); }
.std-meta { font-size: .7em; color: #aaa; margin-top: 2px; display: flex; gap: 8px; }

/* ══════════════════════════════════════════════════════
   MID-PAGE AD  full width
═══════════════════════════════════════════════════════ */
.mid-ad-wrap { grid-area: mid-ad; text-align: center; }
.mid-ad-wrap .ad-lbl { font-size: .65em; color: #ccc; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.mid-ad-wrap .vertical-banner { display: none !important; }
@media (max-width: 768px) {
    .mid-ad-wrap .vertical-banner { display: block !important; }
    .mid-ad-wrap .horizontal-banner { display: none !important; }
}

/* ══════════════════════════════════════════════════════
   BROWSE CATEGORIES
══════════════════════════════════════════════════════ */
.cats-wrap { grid-area: cats; }
.cats-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
    background: #fff; border: 1px solid var(--border); border-radius: 20px;
    padding: 6px 14px; font: 600 .82em/1 'Raleway', sans-serif; color: var(--navy);
    display: flex; align-items: center; gap: 5px; transition: all .15s;
}
.cat-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-pill span { font-size: .8em; color: #aaa; font-weight: 400; }
.cat-pill:hover span { color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════════════════
   SUBSCRIBE MODAL
══════════════════════════════════════════════════════ */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 2000;
    align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff; border-radius: 8px; max-width: 480px; width: 100%;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: mIn .25s ease;
}
@keyframes mIn { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
.modal-head { background: var(--navy); color: #fff; padding: 20px 24px; position: relative; }
.modal-head h3 { font: 800 1.1em/1 'Raleway', sans-serif; margin-bottom: 5px; }
.modal-head p { font-size: .84em; color: rgba(255,255,255,.75); }
.modal-close {
    position: absolute; right: 14px; top: 14px;
    background: rgba(255,255,255,.15); border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 50%; font-size: 1em;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,.25); }
.modal-body { padding: 20px 24px; }
.modal-body .field-label { display: block; font-size: .82em; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.modal-body input[type=email] {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 4px; font-size: .9em; margin-bottom: 14px; outline: none;
    font-family: inherit;
}
.modal-body input[type=email]:focus { border-color: var(--navy); }
.modal-checks { margin-bottom: 16px; }
.modal-check {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 10px; font-size: .82em; color: var(--text);
}
.modal-check input { margin-top: 2px; flex-shrink: 0; accent-color: var(--navy); }
.modal-check span { line-height: 1.4; }
.modal-check small { display: block; color: var(--muted); font-size: .88em; }
.modal-submit {
    width: 100%; background: var(--red); color: #fff; border: none;
    padding: 12px; border-radius: 4px; font: 700 .9em/1 'Raleway', sans-serif;
    cursor: pointer; transition: background .15s;
}
.modal-submit:hover { background: #a51919; }
.modal-footer {
    padding: 10px 24px 16px; font-size: .72em; color: var(--muted);
    text-align: center; border-top: 1px solid var(--border);
}
.modal-footer a { color: var(--navy); }

/* ══════════════════════════════════════════════════════
   FOOTER — new design
══════════════════════════════════════════════════════ */
.site-footer {
    background: var(--navyd); color: rgba(255,255,255,.8);
    margin-top: 40px; padding: 48px 16px 0;
}

/* Subscribe CTA band — full width, above the 4-col grid */
.foot-subscribe-band {
    max-width: var(--maxw); margin: 0 auto 36px;
    background: rgba(198,40,40,.15);
    border: 1px solid rgba(198,40,40,.4);
    border-radius: 8px;
    padding: 28px 32px;
    display: flex; align-items: center; gap: 32px;
    flex-wrap: wrap;
}
.foot-subscribe-band .fsb-left { flex: 1; min-width: 220px; }
.foot-subscribe-band .fsb-left h3 {
    font: 800 1.25em/1 'Raleway', sans-serif; color: #fff;
    margin-bottom: 6px;
}
.foot-subscribe-band .fsb-left p {
    font-size: .86em; color: rgba(255,255,255,.7); line-height: 1.5;
}
.foot-subscribe-band .fsb-right { flex: 0 0 auto; }
.fsb-right .fsb-email-row {
    display: flex; gap: 8px; align-items: center;
}
.fsb-right input[type=email] {
    padding: 11px 14px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.12); color: #fff;
    font-size: .9em; outline: none; width: 240px;
    font-family: inherit;
}
.fsb-right input[type=email]::placeholder { color: rgba(255,255,255,.45); }
.fsb-right input[type=email]:focus { border-color: rgba(255,255,255,.5); }
.fsb-right .fsb-btn {
    background: var(--red); color: #fff; border: none;
    border-radius: 4px; padding: 11px 22px;
    font: 700 .88em/1 'Raleway', sans-serif;
    cursor: pointer; white-space: nowrap; transition: background .15s;
}
.fsb-right .fsb-btn:hover { background: #a51919; }
#fsb-msg { font-size: .78em; color: #90caf9; margin-top: 6px; min-height: 16px; }

/* 4-col grid */
.foot-inner {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px; margin-bottom: 28px;
}
.foot-brand h2 { font: 800 1.1em/1 'Raleway', sans-serif; color: #fff; margin-bottom: 8px; }
.foot-brand-logo { height: 36px; width: auto; margin-bottom: 12px; }
.foot-brand p { font-size: .82em; line-height: 1.6; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.foot-chip {
    display: inline-block; padding: 4px 10px; border-radius: 3px;
    font: 600 .72em/1 'Raleway', sans-serif; letter-spacing: .04em; margin-bottom: 6px;
}
.foot-chip.red { background: rgba(198,40,40,.25); border: 1px solid rgba(198,40,40,.5); color: #ef9a9a; }
.foot-chip.blue { background: rgba(26,35,126,.3); border: 1px solid rgba(26,35,126,.5); color: #9fa8da; }
.foot-col h3 {
    font: 700 .76em/1 'Raleway', sans-serif; color: #fff;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.foot-col ul li { margin-bottom: 6px; }
.foot-col ul li a { font-size: .82em; color: rgba(255,255,255,.6); transition: color .15s; }
.foot-col ul li a:hover { color: #fff; }

/* Bottom bar */
.foot-bottom {
    max-width: var(--maxw); margin: 0 auto; padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; font-size: .74em; color: rgba(255,255,255,.4);
}
.foot-bottom a { color: rgba(255,255,255,.5); }
.foot-bottom a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════════════════════ */
#it-cookie {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(13,20,87,.96); color: rgba(255,255,255,.85);
    padding: 12px 20px; z-index: 1999;
    align-items: center; justify-content: space-between; gap: 12px; font-size: .82em;
}
#it-cookie.show { display: flex; }
#it-cookie a { color: #90caf9; }
#it-cookie button {
    background: var(--red); color: #fff; border: none;
    padding: 6px 16px; border-radius: 3px; cursor: pointer;
    font-size: .9em; white-space: nowrap; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   BREAKING NEWS PAGE — public list (/breaking.php)
══════════════════════════════════════════════════════ */
.breaking-page-header {
    background: linear-gradient(135deg, var(--red) 0%, #8b0000 100%);
    color: #fff; padding: 20px 24px;
    border-radius: 8px;
    display: flex; align-items: center; gap: 12px;
}
.breaking-page-header h1 {
    font: 800 1.4em/1 'Raleway', sans-serif; text-transform: uppercase;
    letter-spacing: .06em;
}
.breaking-page-header .brk-pulse {
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; animation: livepulse 1.2s ease-in-out infinite; flex-shrink: 0;
}
.breaking-list-wrap {
    max-width: var(--maxw); margin: 24px auto; padding: 0 16px;
}
.breaking-card {
    background: #fff; border: 1px solid var(--border);
    border-left: 5px solid var(--red); border-radius: 6px;
    padding: 14px 16px; margin-bottom: 10px;
    display: flex; align-items: flex-start; gap: 14px;
    transition: box-shadow .15s;
}
.breaking-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.brk-card-thumb {
    flex: 0 0 80px; height: 60px; border-radius: 4px;
    background-size: cover; background-position: center;
    background-color: #e8eaf6; flex-shrink: 0;
}
.brk-card-body { flex: 1; min-width: 0; }
.brk-card-age { font: 700 .68em/1 'Raleway', sans-serif; color: var(--red); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.brk-card-title { font: 700 .94em/1.35 'Libre Baskerville', serif; color: var(--text); margin-bottom: 4px; }
.brk-card-title a:hover { color: var(--red); }
.brk-card-summary { font-size: .8em; color: var(--muted); line-height: 1.45; }
.breaking-empty {
    text-align: center; padding: 48px 16px; color: var(--muted); font-size: .9em;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Tablet
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) { :root { --sbw: 260px; } }

@media (max-width: 860px) {
    .page-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "banner"
            "feature"
            "second"
            "heads"
            "stand"
            "sidebar"
            "mid-ad"
            "cats";
    }
    .sidebar { position: static; flex-direction: row; flex-wrap: wrap; top: auto; }
    .sb-card { flex: 1 1 260px; }
    .sec-grid { grid-template-columns: 1fr 1fr; }
    .std-grid { grid-template-columns: 1fr; }
    .foot-inner { grid-template-columns: 1fr 1fr; }
    .feature-list { display: none !important; }
    .feature-layout { grid-template-columns: 1fr !important; }
    .sticky-links { display: none; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Mobile
══════════════════════════════════════════════════════ */
@media (max-width: 600px) {

    /* ── Prevent ANY horizontal overflow ────────────── */
    html, body { overflow-x: hidden; max-width: 100%; }
    .page-body, main, .feature-wrap, .feature-layout,
    .feature-main, #featuredSwiper, .featured-swiper,
    .secondary-wrap, .headline-wrap,
    .standard-wrap, .cats-wrap, .mid-ad-wrap {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* ─ Header: stack logo + actions vertically, centered ── */
    .h-top {
        flex-direction: column;
        align-items: center;
        padding: 12px 16px 8px;
        gap: 10px;
    }
    .h-logo {
        align-items: center;
        text-align: center;
    }
    .h-logo img {
        height: 48px;
        margin: 0 auto;
    }
    .h-logo span {
        text-align: center;
        display: block;
    }
    .h-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .h-search { flex: 1; max-width: 220px; }
    .h-search input { width: 100%; }

    /* ─ Nav: hamburger + full-width dropdown ────────── */
    .nav-wrap { padding: 0; }
    .nav-mobile-btn {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding: 11px 16px;
        font-size: 1.4em;
    }
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--navyd);
    }
    .nav-list.open { display: flex; }
    .nav-list > li { display: block; width: 100%; }
    .nav-list > li > a {
        padding: 12px 20px;
        justify-content: flex-start;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,.06);
        font-size: .85em;
    }
    /* Dropdown sub-items */
    .nav-list > li.has-drop > a::after { content: ' ▾'; }
    .nav-drop {
        position: static !important;
        display: none;
        box-shadow: none;
        border-top: none;
        border-left: 4px solid var(--red);
        background: rgba(0,0,0,.15);
        width: 100%;
        min-width: 0;
    }
    /* Show dropdown when parent li has .drop-open class (toggled by JS) */
    .nav-list > li.drop-open .nav-drop { display: block; }
    /* Remove hover-based dropdown on mobile */
    .nav-list > li.has-drop:hover .nav-drop { display: none; }
    .nav-list > li.has-drop.drop-open .nav-drop { display: block; }
    .nav-drop li a {
        padding: 10px 20px 10px 28px;
        font-size: .82em;
    }

    /* ── Page grid ──────────────────────────────────── */
    .page-body { padding: 12px; }

    /* ── Carousel ───────────────────────────────────── */
    .feature-list { display: none !important; }
    .feature-layout {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
    .feature-main, #featuredSwiper, .featured-swiper {
        width: 100% !important;
        max-width: 100% !important;
    }
    .feature-img { height: 220px !important; }
    .feature-img-overlay { position: absolute; inset: 0; }

    /* ── Content grids ──────────────────────────────── */
    .sec-grid { grid-template-columns: 1fr; }
    .hl-grid { grid-template-columns: 1fr; }
    .std-grid { grid-template-columns: 1fr; }

    /* ── Footer ────────────────────────────────────── */
    .foot-inner { grid-template-columns: 1fr; }
    .foot-subscribe-band { flex-direction: column; gap: 16px; padding: 20px; }
    .fsb-right input[type=email] { width: 100%; }
    .fsb-right .fsb-email-row { flex-direction: column; }

    /* ── Sticky nav ────────────────────────────────── */
    .sticky-links { display: none; }
    .sticky-wrap { gap: 10px; }
  
  .fsn-main-wrap {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
    min-height: 70vh;
    
    .ad-article-wrap {
    margin: 2rem 0;
    text-align: center;
}

.ad-article-wrap .ad-inner {
    display: inline-block;
    max-width: 100%;
}

.ad-article-wrap .ad-lbl-sm {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.4rem;
    text-align: center;
    letter-spacing: 0.05em;
}
    /* ── Related Articles — mirrors homepage sec-card ──── */
/* ── Related Articles — complete override ────────────── */
.related-articles {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid #b22234;
}

.related-articles .sec-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.25rem;
    border-bottom: none;
}

.related-articles .sec-head h2 {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1c3c7c;
    margin: 0;
}

.related-articles .sec-head a {
    font-size: 0.82rem;
    color: #555;
    border: 1px solid #ccc;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.related-articles .sec-head a:hover {
    border-color: #1c3c7c;
    color: #1c3c7c;
}

.rel-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

/* Force the card to be a column flex container */
.rel-grid .sec-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    width: 100% !important;
}

/* The anchor wrapping the image — must be fixed height */
.rel-grid .sec-card > a:first-child {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
}

/* The image div itself */
.rel-grid .sec-card > a:first-child .sec-img,
.rel-grid .sec-img {
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: block !important;
}

.rel-grid .sec-body {
    padding: 0.9rem 1rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.rel-grid .sec-cat {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #b22234 !important;
    margin-bottom: 0.35rem !important;
}

.rel-grid .sec-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 0.4rem !important;
}

.rel-grid .sec-title a {
    color: #1c3c7c !important;
    text-decoration: none !important;
}

.rel-grid .sec-title a:hover { color: #b22234 !important; }

.rel-grid .sec-sum {
    font-size: 0.83rem !important;
    color: #555 !important;
    line-height: 1.5 !important;
    flex-grow: 1 !important;
    margin-bottom: 0.75rem !important;
}

.rel-read-btn {
    display: inline-block !important;
    padding: 0.4rem 0.9rem !important;
    background: #1c3c7c !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    align-self: flex-start !important;
    transition: background 0.2s !important;
}

.rel-read-btn:hover { background: #b22234 !important; }

@media (max-width: 768px) {
    .rel-grid {
        grid-template-columns: 1fr !important;
    }
}