/* ============================================================
   VARIABLES & THEME
============================================================ */
:root {
    --accent: #dc2626;
    --accent-glow: rgba(220, 38, 38, 0.35);
    --bg: #09090b;
    --surface: #111113;
    --surface-2: #18181b;
    --text: #fafafa;
    --text-soft: #a1a1aa;
    --text-muted: #71717a;
    --border: #27272a;
    --border-soft: rgba(255, 255, 255, 0.06);
    --container: 80rem;
    --content: 72rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

html.light {
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-2: #ffffff;
    --text: #111827;
    --text-soft: #475569;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}

/* ============================================================
   RESET & BASE
============================================================ */
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}
html.light { color-scheme: light; }
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.25s ease, color 0.25s ease;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}
a {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}
button, input { font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
    line-height: 1.12;
    letter-spacing: -0.03em;
}
p { line-height: 1.8; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 2vw, 1.25rem);
}
.breaking-bar {
    display: flex; align-items: center; gap: 1rem;
    min-height: 42px; padding: 0.4rem 1rem;
    background: var(--accent); color: #fff;
    font-size: 0.78rem; font-weight: 800;
    overflow: hidden; position: relative; z-index: 50;
}
.breaking-label {
    flex: 0 0 auto; display: flex; align-items: center;
    gap: 0.45rem; text-transform: uppercase; letter-spacing: 0.08em;
    padding-right: 1rem; border-right: 1px solid rgba(255,255,255,0.4);
}
.breaking-ticker { flex: 1 1 auto; overflow: hidden; }
.ticker-content {
    display: inline-flex; align-items: center; gap: 1.25rem;
    white-space: nowrap; animation: ticker 50s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item::after { content: "|"; margin-left: 1.25rem; opacity: 0.65; }
.ticker-item:last-child::after { content: ""; margin: 0; }
.ticker-item a { color: #fff; }
.ticker-item a:hover { text-decoration: underline; }
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.section-block { padding-block: var(--space-10); }

/* ============================================================
   PLACEHOLDER & EMPTY
============================================================ */
.placeholder-image {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    color: var(--text-muted); font-weight: 600;
}
.placeholder-image--small, .placeholder-image--feed { min-height: 180px; }
.placeholder-image--feed { border-radius: var(--radius-md); }
.empty-state { color: var(--text-soft); padding: var(--space-4) 0; }

/* ============================================================
   SKIP LINK & SCROLL PROGRESS
============================================================ */
.skip-link {
    position: absolute; left: 1rem; top: -120%; z-index: 10000;
    background: var(--accent); color: #fff;
    padding: 0.75rem 1rem; border-radius: 0 0 0.75rem 0.75rem;
    font-weight: 700; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
#scroll-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    background: var(--accent); z-index: 10000;
}
/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a {
    color: var(--text-soft);
    font-weight: 600;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 700; }

/* ── Article meta ────────────────────────────────── */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 1rem 0 1.5rem;
}
.meta-sep {
    width: 4px; height: 4px;
    background: var(--border);
    border-radius: 50%;
}
.meta-updated { font-style: italic; }

/* ── Featured image ──────────────────────────────── */
.article-featured-image {
    margin: 1.5rem 0 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Article layout (content + sidebar) ──────────── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr 300px;
    }
}

/* ── Article content styling ─────────────────────── */
.article-content {
    color: var(--text-soft);
    line-height: 1.85;
    font-size: 1.05rem;
}
.article-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-soft);
}
.article-content img {
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}
.article-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}
.article-content a:hover { color: var(--text); }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content code {
    background: var(--surface-2);
    padding: 0.2em 0.5em;
    border-radius: 0.3rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.9em;
    color: var(--accent);
}
.article-content pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.article-content pre code {
    background: none;
    padding: 0;
    color: var(--text);
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}
.article-content th, .article-content td {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: left;
}
.article-content th {
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}

/* ── Tags ────────────────────────────────────────── */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.5rem 0 1.5rem;
}
.tag-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tag-badge:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ── Related articles ────────────────────────────── */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.related-articles h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.related-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
}
.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}
.related-card img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}
.related-card-img-placeholder {
    width: 70px; height: 70px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.related-card-body {
    min-width: 0;
}
.related-card-body h3 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.3rem;
}
.related-card-body time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Sidebar sticky ──────────────────────────────── */
.article-sidebar {
    /* only visible on larger screens */
}
.sidebar-sticky {
    position: sticky;
    top: 5rem;
}

/* ── Share buttons ───────────────────────────────── */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover { transform: translateY(-1px); opacity: 0.9; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-twitter { background: #0f1419; }

/* ── TOC list ────────────────────────────────────── */
.toc-list {
    list-style: none;
    padding: 0;
}
.toc-link {
    display: block;
    padding: 0.4rem 0.75rem;
    border-left: 3px solid transparent;
    color: var(--text-soft);
    font-size: 0.88rem;
    transition: all 0.2s;
}
.toc-link:hover {
    color: var(--accent);
    background: var(--surface);
    border-left-color: var(--accent);
}
.toc-link.sub-heading {
    padding-left: 2rem;
    font-size: 0.82rem;
}
.toc-list li.active .toc-link {
    color: var(--accent);
    font-weight: 700;
    border-left-color: var(--accent);
}

/* ── Mobile TOC FAB & Drawer ─────────────────────── */
.mobile-toc-fab {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
@media (max-width: 899px) {
    .mobile-toc-fab {
        display: flex;
    }
    .article-sidebar {
        display: none;
    }
}

.toc-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
}
.toc-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg);
    border-left: 1px solid var(--border);
    z-index: 10001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}
.toc-drawer.active {
    right: 0;
}
.toc-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.toc-drawer-header h3 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}
.toc-drawer-header button {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}
.toc-drawer-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.toc-drawer-share h4 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
/* ============================================================
   BREAKING NEWS TICKER
============================================================ */
.breaking-bar {
    display: flex; align-items: center; gap: 1rem;
    min-height: 42px; padding: 0.4rem 1rem;
    background: var(--accent); color: #fff;
    font-size: 0.78rem; font-weight: 800;
    overflow: hidden; position: relative; z-index: 50;
}
.breaking-label {
    flex: 0 0 auto; display: flex; align-items: center;
    gap: 0.45rem; text-transform: uppercase; letter-spacing: 0.08em;
    padding-right: 1rem; border-right: 1px solid rgba(255,255,255,0.4);
}
.breaking-ticker { flex: 1 1 auto; overflow: hidden; }
.ticker-content {
    display: inline-flex; align-items: center; gap: 1.25rem;
    white-space: nowrap; animation: ticker 28s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item::after { content: "|"; margin-left: 1.25rem; opacity: 0.65; }
.ticker-item:last-child::after { content: ""; margin: 0; }
.ticker-item a { color: #fff; }
.ticker-item a:hover { text-decoration: underline; }
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
/* ── Search form ─────────────────────────────────────── */
.search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
    margin-bottom: 2rem;
}
.search-input {
    flex: 1;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 0.8rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-form .btn-accent {
    white-space: nowrap;
    padding: 0 1.5rem;
}

/* ── Excerpt inside card ────────────────────────────── */
.article-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.5;
    margin: 0.35rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Pagination info text ───────────────────────────── */
.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
/* ============================================================
   NAVIGATION
============================================================ */
.glass-nav {
    position: sticky; top: 0; z-index: 999;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    background: rgba(9,9,11,0.86);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}
html.light .glass-nav { background: rgba(255,255,255,0.86); }
.nav-container {
    max-width: var(--container); height: 72px; margin: 0 auto;
    padding-inline: clamp(1rem, 2vw, 1.25rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo {
    font-size: 1.35rem; font-weight: 900;
    letter-spacing: -0.045em; white-space: nowrap;
}
.nav-logo .accent { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
.nav-links a {
    font-size: 0.875rem; font-weight: 700; color: var(--text-soft);
    text-transform: uppercase; letter-spacing: 0.06em;
    transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-outline, .btn-accent {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; padding: 0.55rem 0.9rem; border-radius: 0.8rem;
    font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-outline { border: 1px solid var(--border); color: var(--text-soft); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-accent:hover { background: #b91c1c; border-color: #b91c1c; transform: translateY(-1px); }
.menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 1px solid var(--border);
    border-radius: 0.8rem; background: transparent;
    color: var(--text); cursor: pointer;
}
.theme-toggle-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; height: 42px; padding: 0 0.85rem;
    border: 1px solid var(--border); border-radius: 0.8rem;
    background: transparent; color: var(--text); cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.theme-toggle-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 1rem;
}
html.light .mobile-menu { background: rgba(255,255,255,0.98); }
.mobile-menu.active { display: block; }
.mobile-menu a {
    display: block; padding: 0.9rem 0; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-soft);
}
.mobile-menu-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.mobile-theme { padding-inline: 0.9rem; }

/* ============================================================
   FLASH MESSAGES
============================================================ */
.flash-msg {
    max-width: var(--container); margin: 1rem auto 0;
    padding: 0.9rem 1rem; border-radius: 0.8rem; font-size: 0.94rem;
}
.flash-success {
    background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.38);
    color: #86efac;
}
.flash-error {
    background: rgba(239,68,68,0.14); border: 1px solid rgba(239,68,68,0.38);
    color: #fca5a5;
}

/* ============================================================
   HERO
============================================================ */
.hero-grid {
    display: grid; grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem;
}
.hero-featured {
    position: relative; overflow: hidden; border-radius: var(--radius-xl);
    aspect-ratio: 16/10; background: var(--surface-2); box-shadow: var(--shadow);
}
.hero-link, .sec-link { display: block; width: 100%; height: 100%; }
.hero-featured img, .sec-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.55s ease;
}
.hero-featured:hover img, .sec-card:hover img { transform: scale(1.06); }
.hero-overlay, .sec-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 45%, transparent);
}
.hero-content { position: absolute; inset: auto 0 0 0; padding: clamp(1.25rem, 2vw, 2rem); }
.hero-category {
    display: inline-flex; align-items: center; min-height: 28px;
    padding: 0 0.55rem; background: var(--accent); color: #fff;
    border-radius: 0.45rem; font-size: 0.7rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.hero-featured h1 {
    font-size: clamp(2rem, 4.8vw, 2rem); line-height: 1.04;
    font-weight: 900; color: #fff; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-excerpt {
    margin-top: 0.85rem; max-width: 62ch;
    font-size: clamp(0.95rem, 1vw, 1.05rem); line-height: 1.75;
    color: rgba(255,255,255,0.84);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.5rem 1rem; margin-top: 1rem; color: #fff;
    font-size: 0.88rem; font-weight: 600;
}
.hero-secondary { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.sec-card {
    position: relative; overflow: hidden; min-height: 180px;
    border-radius: var(--radius-xl); background: var(--surface-2);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sec-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border: 1px solid var(--accent); }
.sec-content { position: absolute; inset: auto 0 0 0; padding: 1rem; }
.sec-category {
    display: inline-block; margin-bottom: 0.35rem; font-size: 0.68rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
    color: #d8b4fe;
}
.sec-card h2 { font-size: 1.15rem; line-height: 1.28; color: #fff; }

/* ============================================================
   SECTION HEADING
============================================================ */
.section-heading {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; padding-bottom: 0.8rem; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.section-heading::after {
    content: ''; position: absolute; bottom: -1px; left: 0;
    width: 3rem; height: 3px; background: var(--accent); border-radius: 3px;
}
.section-heading h2 {
    font-size: clamp(1.2rem, 1.8vw, 1.75rem); font-weight: 900;
    text-transform: uppercase;
}
.section-heading a {
    font-size: 0.875rem; color: var(--text-soft); transition: color 0.2s ease;
}
.section-heading a:hover { color: var(--accent); }

/* ============================================================
   CATEGORIES & ARTICLE CARDS
============================================================ */
.categories-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem;
}
.article-card {
    background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl); overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220,38,38,0.45);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.article-card__link {
    display: flex; flex-direction: column; gap: 0.85rem;
    padding: 1rem; height: 100%;
}
.article-card__thumb {
    width: 100%; height: 160px; object-fit: cover;
    border-radius: 0.95rem; background: var(--surface-2);
}
.article-card__thumb--empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-weight: 600;
}
.article-card__body { display: flex; flex-direction: column; gap: 0.35rem; }
.article-card__title {
    font-size: 1rem; line-height: 1.35; font-weight: 800;
    transition: color 0.2s ease;
}
.article-card__title:hover { color: var(--accent); }
.article-card__meta { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   MAIN FEED
============================================================ */
.main-grid {
    display: grid; grid-template-columns: 1fr; gap: 2.5rem;
    padding-block: 2rem 4rem; border-top: 1px solid var(--border);
}
.feed-item {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
    padding-bottom: 1.5rem; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.thumb {
    display: block; width: 100%; aspect-ratio: 16/9;
    border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.feed-item:hover img { transform: scale(1.05); }
.feed-body { display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; }
.feed-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.35rem;
}
.feed-meta .cat { color: #60a5fa; }
.feed-item h3 {
    font-size: clamp(1.1rem, 1.35vw, 1.45rem); line-height: 1.3;
    font-weight: 800; margin-bottom: 0.35rem;
}
.feed-item h3 a:hover { color: var(--accent); }
.feed-excerpt {
    font-size: 0.95rem; line-height: 1.8; color: var(--text-soft);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem;
}
.pagination a {
    width: 44px; height: 44px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 0.9rem;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-soft); font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.pagination a:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.pagination a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination-dots {
    width: 44px; height: 44px; display: inline-flex;
    align-items: center; justify-content: center; color: var(--text-muted);
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-widget { margin-bottom: 0; }
.sidebar-widget h3 {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 1.2rem; padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}
.sidebar-widget h3 .dot {
    width: 0.55rem; height: 0.55rem; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px rgba(220,38,38,0.14);
}
.trending-list { counter-reset: trend; }
.trending-item {
    position: relative; padding-left: 2.8rem; margin-bottom: 1.1rem;
}
.trending-item::before {
    counter-increment: trend; content: counter(trend);
    position: absolute; left: 0; top: -0.1rem;
    font-family: 'Merriweather', serif; font-size: 1.7rem; line-height: 1;
    font-weight: 900; color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}
.trending-item:hover::before { color: var(--accent); transform: scale(1.1); }
.trending-item h4 {
    font-size: 0.97rem; line-height: 1.35; font-weight: 700;
    margin-bottom: 0.2rem; transition: color 0.2s ease;
}
.trending-item h4:hover { color: var(--accent); }
.trending-date { font-size: 0.77rem; color: var(--text-muted); }

.newsletter-widget {
    position: sticky; top: 6rem; display: grid; gap: 0.9rem;
    padding: 1.5rem; border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.newsletter-badge {
    justify-self: end; display: inline-flex; align-items: center;
    min-height: 26px; padding: 0 0.6rem; background: var(--accent);
    color: #fff; border-radius: 0.45rem; font-size: 0.65rem;
    font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em;
}
.newsletter-icon { font-size: 2rem; color: #60a5fa; }
.newsletter-widget h3 {
    font-size: 1.15rem; margin: 0; padding: 0; border: 0;
    text-transform: none; letter-spacing: -0.02em;
}
.newsletter-widget p { font-size: 0.95rem; color: var(--text-soft); }
.newsletter-form { display: grid; gap: 0.75rem; }
.newsletter-widget input {
    width: 100%; min-height: 52px; padding: 0 1rem;
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); border-radius: 0.9rem; outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-widget input:focus {
    border-color: rgba(220,38,38,0.65);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}
.newsletter-widget button {
    min-height: 52px; border: 0; border-radius: 0.9rem;
    background: var(--text); color: var(--bg); font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.newsletter-widget button:hover {
    transform: translateY(-1px); background: var(--accent); color: #fff;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    margin-top: 4rem; padding: 4rem 0 2rem;
    border-top: 1px solid var(--border); background: var(--bg);
}
.footer-content {
    max-width: var(--container); margin: 0 auto;
    padding-inline: clamp(1rem, 2vw, 1.25rem);
    display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand .logo {
    display: inline-block; font-size: 1.9rem; font-weight: 900;
    letter-spacing: -0.045em; margin-bottom: 0.75rem;
}
.footer-brand .accent { color: var(--accent); }
.footer-description { max-width: 30rem; color: var(--text-soft); font-size: 0.95rem; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social a {
    width: 42px; height: 42px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 50%;
    background: var(--surface-2); color: var(--text-soft);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover {
    transform: translateY(-1px); background: var(--accent);
    color: #fff; border-color: var(--accent);
}
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; }
.footer-links h4 {
    font-size: 0.82rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 1rem;
}
.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links ul li a { color: var(--text-soft); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links ul li a:hover { color: var(--accent); }
.footer-bottom {
    max-width: var(--container); margin: 2rem auto 0;
    padding: 1.25rem clamp(1rem, 2vw, 1.25rem) 0;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    color: var(--text-muted); font-size: 0.82rem;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .menu-toggle { display: none; }
    .hero-grid { grid-template-columns: minmax(0,2fr) minmax(320px,1fr); gap: 1.25rem; padding-block: 2.25rem; }
    .hero-secondary { grid-template-rows: repeat(2,minmax(0,1fr)); }
    .categories-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .feed-item { grid-template-columns: minmax(240px,300px) minmax(0,1fr); align-items: start; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .main-grid { grid-template-columns: minmax(0,2fr) minmax(320px,1fr); }
}
@media (max-width: 767px) {
    .nav-actions .btn-outline, .nav-actions .btn-accent { display: none; }
    .breaking-bar { font-size: 0.72rem; }
    .breaking-label { padding-right: 0.7rem; }
    .hero-featured { aspect-ratio: 8/11; }
    .hero-featured h1 { max-width: none; }
    .hero-excerpt { -webkit-line-clamp: 3; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .categories-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .nav-container { height: 68px; }
    .hero-content { padding: 1.1rem; }
    .hero-featured h1 { font-size: 1.2rem; }
    .sec-card { min-height: 160px; }
    .newsletter-widget { padding: 1.25rem; }
}
