/* ==========================================================================
   وكالة العراق أولاً الإخبارية - Modern News Agency Stylesheet
   ========================================================================== */

:root {
    --bg-body: #f8fafc;
    --navy-dark: #0f172a;
    --navy-blue: #1e3a8a;
    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-red: #ef4444;
    --accent-gold: #f59e0b;
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0f172a 100%);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 0.5rem;
    --radius-md: 0.85rem;
    --radius-lg: 1.25rem;
    --font: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul { list-style: none; }

.container {
    width: 92%;
    max-width: 1260px;
    margin: 0 auto;
}

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* TOP THIN BAR */
.top-thin-bar {
    background: #0b1120;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.date-sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}
.top-social {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-social a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.top-social a:hover {
    color: #38bdf8;
    transform: translateY(-1px);
}

/* MIDDLE HEADER */
.middle-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-logo-img {
    max-height: 58px;
    width: auto;
    object-fit: contain;
}
.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}
.logo-text {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--navy-dark);
    line-height: 1.2;
    /* Arabic is cursive: negative tracking splits joined letterforms. */
    letter-spacing: normal;
}
.logo-slogan {
    font-size: 0.825rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 2px;
}
.live-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--white);
    padding: 9px 22px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    transition: all 0.2s;
}
.live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    color: #ffffff;
}
.pulse {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
    70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* NAVIGATION BAR */
.red-nav {
    background: var(--gradient-hero);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}
.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.nav-menu a {
    display: block;
    padding: 13px 18px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 0.925rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}
.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.admin-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.admin-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* The header variant sits on white, so the translucent white fill tuned for
   the red navigation bar would leave white text on a white background. */
.admin-link-btn--header {
    padding: 9px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--navy-blue);
    font-size: 0.85rem;
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.15);
}
.admin-link-btn--header:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -8px rgba(37, 99, 235, 0.9);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* The desktop header already carries the panel link; this copy only matters
   once the header row wraps or the mobile menu takes over. */
.nav-menu__admin {
    display: none;
}
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.24);
}
.nav-toggle-icon-close {
    display: none;
}
.nav-toggle.is-open .nav-toggle-icon-open {
    display: none;
}
.nav-toggle.is-open .nav-toggle-icon-close {
    display: inline-block;
}

/* BREAKING NEWS TICKER */
.ticker-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 25px;
}
.ticker-title {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--white);
    padding: 8px 18px;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    letter-spacing: normal;
}
.ticker-title-text {
    white-space: nowrap;
    display: inline-block;
}
.ticker-pulse {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}
.ticker-scroll {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    direction: rtl;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}
.ticker-track {
    display: flex;
    direction: rtl;
    width: max-content;
    white-space: nowrap;
    animation: ticker-scroll-ltr var(--ticker-duration, 35s) linear infinite;
    will-change: transform;
}
.ticker-track:hover,
.ticker-track:focus-within {
    animation-play-state: paused;
}
.ticker-track a:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 3px;
}
.ticker-set {
    display: flex;
    align-items: center;
    direction: rtl;
    flex-shrink: 0;
}
.ticker-track a {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--text-main);
    transition: color 0.2s;
}
.ticker-track a:hover {
    color: var(--primary-blue);
}
.ticker-bullet {
    color: var(--accent-red);
    font-size: 0.75rem;
    margin-left: 6px;
}
.ticker-separator {
    color: #cbd5e1;
    font-weight: 300;
}
@keyframes ticker-scroll-ltr {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(50%, 0, 0); }
}

/*
 * TV-STYLE NEWS CRAWL
 * A second, screen-level strip pinned to the bottom of the viewport, the way
 * news channels run a crawl under the picture. It is independent of the ticker
 * above: the reader can pause it, or dismiss it, without losing the strip in the
 * page.
 */
.tvb-crawl {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 9999;
    background: #0b1220;
    color: #f8fafc;
    border-top: 3px solid var(--accent-red);
    box-shadow: 0 -6px 24px rgba(2, 6, 23, 0.28);
    font-size: 0.95rem;
    /*
     * The page is pushed rather than covered, so the crawl never hides the
     * footer or the last line of an article.
     */
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.tvb-crawl__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
}
.tvb-crawl__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-red);
    color: #fff;
    font-weight: 900;
    padding: 7px 16px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.2;
}
.tvb-crawl__label-text {
    white-space: nowrap;
    display: inline-block;
}
.tvb-crawl__dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
    flex-shrink: 0;
}
.tvb-crawl__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    direction: rtl;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}
.tvb-crawl__track {
    display: flex;
    direction: rtl;
    width: max-content;
    white-space: nowrap;
    animation: ticker-scroll-ltr var(--tvb-duration, 35s) linear infinite;
    will-change: transform;
}
/* Paused by the reader, or while it holds keyboard focus. */
.tvb-crawl.is-paused .tvb-crawl__track,
.tvb-crawl__viewport:hover .tvb-crawl__track,
.tvb-crawl__viewport:focus-within .tvb-crawl__track {
    animation-play-state: paused;
}
.tvb-crawl__set {
    display: flex;
    align-items: center;
    direction: rtl;
    flex-shrink: 0;
}
.tvb-crawl__set a {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: #f1f5f9;
    font-weight: 700;
    transition: color 0.2s;
}
.tvb-crawl__set a:hover,
.tvb-crawl__set a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tvb-crawl__bullet {
    color: var(--accent-red);
    font-size: 0.7rem;
    margin-left: 6px;
}
.tvb-crawl__separator {
    color: #475569;
}
.tvb-crawl__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.tvb-crawl__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.09);
    color: #e2e8f0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.tvb-crawl__btn:hover,
.tvb-crawl__btn:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.tvb-crawl__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}
/*
 * The native colour picker is hidden and opened from the palette button instead,
 * because a bare swatch sitting in a control row reads as decoration.
 */
.tvb-crawl__color {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
/* Visible to screen readers, invisible on screen. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
/* TV Crawl Toggle Button: only one icon displayed at a time */
.tvb-crawl__btn .tvb-icon-play {
    display: none;
}
.tvb-crawl__btn .tvb-icon-pause {
    display: inline-block;
}
.tvb-crawl.is-paused .tvb-icon-play {
    display: inline-block;
}
.tvb-crawl.is-paused .tvb-icon-pause {
    display: none;
}
/* Dismissed: the strip slides away and leaves nothing behind. */
.tvb-crawl.is-dismissed {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
/* The way back, once the reader has dismissed the crawl. */
.tvb-crawl-restore {
    position: fixed;
    inset-inline-start: 16px;
    bottom: 16px;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--navy-dark);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.3);
}
.tvb-crawl-restore.is-visible {
    display: inline-flex;
}
.tvb-crawl-restore:hover,
.tvb-crawl-restore:focus-visible {
    background: var(--primary-blue);
}
/* Keeps the footer clear of the crawl while it is on screen. */
body.has-tvb-crawl {
    padding-bottom: 52px;
}
@media (max-width: 768px) {
    body.has-tvb-crawl {
        padding-bottom: 60px;
    }
    .tvb-crawl {
        font-size: 0.85rem;
    }
    .tvb-crawl__label {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .tvb-crawl__inner {
        padding: 7px 0;
    }
    .tvb-crawl__actions {
        gap: 2px;
    }
    .tvb-crawl__btn {
        width: 28px;
        height: 28px;
    }
}
@keyframes tvb-crawl-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(50%, 0, 0); }
}

/* MAIN CONTENT */
.main-content {
    padding-bottom: 40px;
}

/* HERO GRID SECTION */
.hero-top-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.hero-top-grid--full {
    grid-template-columns: 1fr;
}
@media (max-width: 992px) {
    .hero-top-grid {
        grid-template-columns: 1fr;
    }
}
.hero-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .hero-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.hero-slider-wrap {
    height: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.hero-swiper {
    width: 100%;
    height: 100%;
}
.hero-side-wrap {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    height: 440px;
}

.hero-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #0b1120;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-card:hover img {
    transform: scale(1.06);
    opacity: 0.95;
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 35px 24px 22px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
    color: var(--white);
}
.hero-overlay .badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient-primary);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.big-hero h2 {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* HERO SLIDER CONTROLS */
.hero-swiper {
    position: relative;
}
.hero-pagination {
    position: absolute;
    bottom: 18px;
    right: 24px;
    z-index: 5;
    display: flex;
    gap: 7px;
}
.hero-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}
.hero-pagination .swiper-pagination-bullet-active {
    width: 26px;
    background: var(--white);
}
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s, transform 0.2s;
}
.hero-slider-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
}
.hero-slider-btn--prev {
    right: 18px;
}
.hero-slider-btn--prev::after {
    transform: translate(-30%, -50%) rotate(-135deg);
}
.hero-slider-btn--next {
    left: 18px;
}
.hero-slider-btn--next::after {
    transform: translate(-70%, -50%) rotate(45deg);
}
.hero-slider-wrap:hover .hero-slider-btn,
.hero-slider-btn:focus-visible {
    opacity: 1;
}
.hero-slider-btn:hover {
    background: var(--primary-blue);
}
.hero-slider-btn:disabled {
    opacity: 0 !important;
    cursor: default;
}
/* Touch devices have no hover, so keep the arrows permanently visible. */
@media (hover: none) {
    .hero-slider-btn {
        opacity: 1;
    }
}

.hero-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 5;
}
.hero-progress__bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right center;
}
.hero-swiper .swiper-paused .hero-progress__bar {
    animation-play-state: paused;
}
.small-hero h3 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.45;
}
.med-hero {
    height: 240px;
}
.med-hero h3 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
}

/* MAIN TWO COLUMN LAYOUT */
.main-layout {
    display: grid;
    grid-template-columns: 2.6fr 1fr;
    gap: 30px;
}
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* SECTION TITLES */
.section-box {
    margin-bottom: 40px;
}
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 22px;
    padding-bottom: 10px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-blue);
}
.title-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--navy-dark);
}
.title-right i {
    color: var(--primary-blue);
}
.red-line {
    display: inline-block;
    width: 5px;
    height: 1.6rem;
    border-radius: 9999px;
    background: var(--gradient-primary);
    flex-shrink: 0;
}
.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 9999px;
    transition: background-color 0.2s, gap 0.2s;
}
.more-link:hover {
    background: rgba(37, 99, 235, 0.1);
    gap: 10px;
}

/* NEWS GRIDS & CARDS */
.news-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .news-grid-2 {
        grid-template-columns: 1fr;
    }
}
.news-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 992px) {
    .news-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .news-grid-3 {
        grid-template-columns: 1fr;
    }
}
.news-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 992px) {
    .news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .news-grid-4 {
        grid-template-columns: 1fr;
    }
}
.news-card-box {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.news-card-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}
.news-thumb-wrap {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}
.news-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card-box:hover .news-thumb-wrap img {
    transform: scale(1.05);
}
.news-card-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.45;
    margin-bottom: 10px;
}
.news-card-title:hover {
    color: var(--primary-blue);
}
.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: 10px;
}

/* STANDARD CARD (latest news + category blocks) */
.standard-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.standard-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.18);
}
.standard-card .card-img {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
    background: #0f172a;
}
.standard-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.standard-card:hover .card-img img {
    transform: scale(1.06);
}
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.card-badge:empty {
    display: none;
}
.standard-card .card-info {
    padding: 14px 15px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.55;
    margin-bottom: 12px;
}
.card-title:hover {
    color: var(--primary-blue);
}
.card-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
    background: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}
.empty-state i {
    font-size: 3rem;
    opacity: 0.25;
    margin-bottom: 18px;
    display: block;
}
.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 6px;
}
.empty-state p {
    font-size: 0.9rem;
}

/* SIDEBAR WIDGETS */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.widget-heading {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--navy-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-heading i {
    color: var(--primary-blue);
}

/* WIDGET TITLE (homepage sidebar) */
.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--navy-dark);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 46px;
    height: 2px;
    background: var(--gradient-primary);
}
.widget-body {
    position: relative;
}

/* MOST READ LIST */
.most-read-list {
    display: flex;
    flex-direction: column;
}
.most-read-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}
.most-read-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.mr-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    color: var(--text-muted);
    font-weight: 900;
    font-size: 0.85rem;
    transition: all 0.25s;
}
.most-read-item:nth-child(-n + 3) .mr-num {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.most-read-item:hover .mr-num {
    background: var(--accent-red);
    color: var(--white);
}
.mr-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--text-main);
}
.most-read-item:hover .mr-title {
    color: var(--primary-blue);
}

/* FOLLOW US WIDGET */
.follow-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.follow-widget a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.05rem;
    transition: all 0.25s;
}
.follow-widget .f-fb { background: #1877f2; }
.follow-widget .f-tw { background: #1da1f2; }
.follow-widget .f-yt { background: #ff0000; }
.follow-widget .f-ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.follow-widget .f-tg { background: #29a9eb; }
.follow-widget a:hover {
    transform: translateY(-3px);
    filter: brightness(0.92);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

/* AD SLOT — no external request, styled placeholder */
.ad-slot {
    background: repeating-linear-gradient(
        45deg,
        #f8fafc,
        #f8fafc 12px,
        #f1f5f9 12px,
        #f1f5f9 24px
    );
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}
.ad-slot i {
    font-size: 1.6rem;
    opacity: 0.5;
}
.ad-slot-tall {
    width: 100%;
    aspect-ratio: 3 / 4;
}
.ad-slot-box {
    width: 100%;
    aspect-ratio: 300 / 250;
}

/* QUICK LINKS WIDGET */
.quick-links__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.quick-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.quick-link > i:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary-blue);
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
}
.quick-link span {
    flex: 1;
}
.quick-link__arrow {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #cbd5e1;
    transition: transform 0.2s, color 0.2s;
}
.quick-link:hover {
    background: #f8fafc;
    color: var(--primary-blue);
}
.quick-link:hover > i:first-child {
    background: var(--primary-blue);
    color: var(--white);
}
.quick-link:hover .quick-link__arrow {
    color: var(--primary-blue);
    transform: translateX(-3px);
}

/* DEMO NOTICE */
.demo-notice {
    background: #fffbeb;
    border-color: #fde68a;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.08);
}
.demo-notice__body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.demo-notice__body > i {
    margin-top: 3px;
    font-size: 1.05rem;
    color: var(--accent-gold);
    flex-shrink: 0;
}
.demo-notice__body p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.7;
    color: #92400e;
}

/* STATIC PAGE VIEW */
.page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 0 50px;
}
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.page-breadcrumb a {
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.page-breadcrumb a:hover {
    text-decoration: underline;
}
.page-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--navy-dark);
    margin: 0 0 10px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--border-color);
}
.page-updated {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 30px;
}
/*
 * The story body is editor-supplied HTML, so it is rendered as markup and
 * needs its own rules for the elements an article actually uses. Paragraph
 * spacing and line height live here rather than inline on the element so
 * nested markup inherits sensible rhythm instead of a flat wall of text.
 */
.article-content {
    font-size: 1.15rem;
    line-height: 2;
    color: #334155;
    font-weight: 500;
    overflow-wrap: break-word;
}
.article-content > *:first-child {
    margin-top: 0;
}
.article-content > *:last-child {
    margin-bottom: 0;
}
.article-content p {
    margin: 0 0 1.1em;
    text-align: justify;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--navy-dark);
    font-weight: 900;
    line-height: 1.4;
    margin: 1.8em 0 0.7em;
}
.article-content h2 {
    font-size: 1.6rem;
}
.article-content h3 {
    font-size: 1.35rem;
}
.article-content h4 {
    font-size: 1.15rem;
}
.article-content strong,
.article-content b {
    font-weight: 800;
    color: #1e293b;
}
.article-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content a:hover {
    color: var(--accent-red);
}
.article-content ul,
.article-content ol {
    margin: 0 0 1.1em;
    padding-inline-start: 1.6em;
}
.article-content ul {
    list-style: disc;
}
.article-content ol {
    list-style: decimal;
}
.article-content li {
    margin-bottom: 0.5em;
}
.article-content blockquote {
    margin: 1.4em 0;
    padding: 14px 20px;
    border-inline-start: 4px solid var(--primary-blue);
    background: #f8fafc;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #475569;
    font-style: italic;
}
.article-content blockquote p:last-child {
    margin-bottom: 0;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 1.2em auto;
    display: block;
}
.article-content figure {
    margin: 1.5em 0;
}
.article-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.article-content hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2em 0;
}
.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 1.2em;
}
.article-content code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9em;
}
.article-content > code,
.article-content p code,
.article-content li code {
    background: #f1f5f9;
    color: #b91c1c;
    padding: 2px 6px;
    border-radius: 4px;
    direction: ltr;
    display: inline-block;
}
.page-body {
    font-size: 1.1rem;
    line-height: 2;
    color: #334155;
}
.page-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* PAGINATION */
.pagination-nav {
    margin-top: 10px;
}
.pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.pagination-list li {
    display: block;
}
.pagination-list a,
.pagination-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--navy-dark);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.pagination-list a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}
.pagination-list .is-active span {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.pagination-list .is-disabled span {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
}
.pagination-list .is-gap span {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER — four columns over a legal bar
   ========================================================================== */
.site-footer {
    --footer-ink: #cbd5e1;
    --footer-ink-strong: #f1f5f9;
    --footer-ink-dim: #94a3b8;
    --footer-line: rgba(148, 163, 184, 0.16);

    background:
        radial-gradient(760px 320px at 100% 0%, rgba(37, 99, 235, 0.16), transparent 62%),
        linear-gradient(180deg, #0b1424 0%, #0f1b2e 60%, #132339 100%);
    color: var(--footer-ink);
    padding-top: 3.25rem;
    /* Hairline plus a faint inner highlight so the footer reads as its own
       panel rather than a flat block of black. */
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    /* The brand column gets extra width; the two link columns share the rest. */
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 2.5rem 2rem;
    padding-bottom: 2.75rem;
}

/* Column 1 — brand ------------------------------------------------------- */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}
.footer-brand__mark {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.375rem;
    box-shadow: 0 8px 18px -10px rgba(37, 99, 235, 0.9);
}
.footer-brand__logo {
    max-height: 52px;
    width: auto;
}
.footer-brand__name {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--footer-ink-strong);
    line-height: 1.3;
}
.footer-brand__tagline {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #93c5fd;
    margin-top: 0.125rem;
}
.footer-brand__about {
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--footer-ink-dim);
    max-width: 42ch;
}

/* Column headings -------------------------------------------------------- */
.footer-col__title {
    position: relative;
    font-size: 1rem;
    font-weight: 800;
    color: var(--footer-ink-strong);
    margin-bottom: 1.125rem;
    padding-bottom: 0.625rem;
}
.footer-col__title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 34px;
    height: 3px;
    border-radius: 9999px;
    background: var(--accent-red);
}

/* Columns 2 & 3 — link lists --------------------------------------------- */
.footer-col__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-col__list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--footer-ink);
}
.footer-col__list a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--footer-ink-dim);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.footer-col__list a:hover {
    color: var(--footer-ink-strong);
}
.footer-col__list a:hover::before {
    background: var(--accent-red);
    transform: scale(1.4);
}
.footer-col__empty {
    font-size: 0.8125rem;
    color: var(--footer-ink-dim);
}

/* Column 4 — newsletter -------------------------------------------------- */
.footer-newsletter__lead {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--footer-ink-dim);
    margin-bottom: 0.875rem;
}
.footer-newsletter__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--footer-ink-dim);
    margin-bottom: 0.375rem;
}
.footer-newsletter__controls {
    display: flex;
    gap: 0.5rem;
}
.footer-newsletter__controls input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--footer-ink-strong);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--footer-line);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.footer-newsletter__controls input::placeholder {
    color: #7c8ba1;
}
.footer-newsletter__controls input:hover {
    background: rgba(255, 255, 255, 0.09);
}
.footer-newsletter__controls input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.footer-newsletter__controls input[aria-invalid='true'] {
    border-color: var(--accent-red);
}
.footer-newsletter__controls button {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--white);
    background: var(--accent-red);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.footer-newsletter__controls button:hover {
    background: #dc2626;
}
.footer-newsletter__controls button:active {
    transform: translateY(1px);
}
.footer-newsletter__error {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fca5a5;
}
.footer-newsletter__ok {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    margin-top: 0.625rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-sm);
}

/* Contact block ---------------------------------------------------------- */
.footer-contact {
    list-style: none;
    margin-top: 1.375rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--footer-line);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.7;
}
.footer-contact__icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #93c5fd;
    font-size: 0.8125rem;
}
.footer-contact__label {
    font-weight: 800;
    color: var(--footer-ink-strong);
    min-width: 3.5rem;
}
.footer-contact__value,
.footer-contact a {
    color: var(--footer-ink-dim);
    overflow-wrap: anywhere;
}
.footer-contact a:hover {
    color: var(--footer-ink-strong);
}

/* Social icons ----------------------------------------------------------- */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.375rem;
}
.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--footer-line);
    color: var(--footer-ink);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Legal bar -------------------------------------------------------------- */
.footer-bar {
    border-top: 1px solid var(--footer-line);
    background: rgba(0, 0, 0, 0.22);
}
.footer-bar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem 1.5rem;
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
    font-size: 0.8125rem;
    color: var(--footer-ink-dim);
}
.footer-bar__copy {
    font-weight: 600;
}
.footer-bar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.footer-bar__links a {
    font-weight: 600;
    color: var(--footer-ink-dim);
}
.footer-bar__links a:hover {
    color: var(--footer-ink-strong);
}
.footer-bar__credit a {
    font-weight: 700;
    color: #93c5fd;
}
.footer-bar__credit a:hover {
    color: #bfdbfe;
    text-decoration: underline;
}
.footer-bar__demo {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 9999px;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.25rem 1.75rem;
    }
    .footer-col--brand,
    .footer-col--newsletter {
        grid-column: 1 / -1;
    }
    .footer-brand__about {
        max-width: 60ch;
    }
}
@media (max-width: 640px) {
    .site-footer {
        padding-top: 2.25rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    .footer-bar .container {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }
    .footer-bar__links {
        gap: 0.875rem 1.125rem;
    }
    .footer-newsletter__controls {
        flex-wrap: wrap;
    }
    .footer-newsletter__controls button {
        width: 100%;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 4px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    top: -100px;
    right: 16px;
    z-index: 999;
    background: var(--navy-dark);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 800;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
    .hero-progress__bar {
        animation: none !important;
        transform: scaleX(1);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .red-nav .container {
        position: relative;
        min-height: 60px;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        z-index: 90;
        flex-direction: column;
        align-items: stretch;
        background: var(--navy-dark);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        box-shadow: 0 20px 45px -15px rgba(2, 6, 23, 0.7);
        max-height: 72vh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .nav-menu.is-open {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 13px 16px;
    }
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    .admin-link-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .hero-slider-wrap,
    .hero-side-wrap {
        height: 320px;
    }
    .hero-side-wrap {
        grid-template-rows: repeat(2, 1fr);
    }
    .hero-top-grid,
    .main-layout {
        margin-bottom: 0;
    }
    .main-layout {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    /* Two links in the header would crowd a small screen, so the navigation
       copy becomes the single tap target there. */
    .nav-menu__admin {
        display: block;
    }
    .header-left {
        gap: 8px;
    }
    .admin-link-btn--header {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .hero-slider-wrap {
        height: 260px;
    }
    .hero-side-wrap {
        height: auto;
        grid-template-rows: none;
    }
    .hero-side-wrap .hero-card,
    .med-hero {
        height: 180px;
    }
    .big-hero h2 {
        font-size: 1.35rem;
    }
    .hero-overlay {
        padding: 26px 16px 14px;
    }
    .section-title {
        margin-bottom: 16px;
    }
    .title-right {
        font-size: 1.15rem;
    }
    .red-line {
        height: 1.3rem;
    }
    .top-thin-bar {
        font-size: 0.72rem;
    }
    .top-date {
        gap: 5px;
    }
    .top-social {
        gap: 9px;
    }
    .logo-text {
        font-size: 1.4rem;
    }
    .logo-slogan {
        font-size: 0.72rem;
    }
    .live-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    .sidebar-widget {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    .logo-slogan {
        display: none;
    }
    .top-social {
        display: none;
    }
    .most-read-item {
        padding: 10px 0;
    }
}
