
/* ═══════════════════════════════════════════════════════════════
   Pre-Trib Truth — "Watchful Hope" Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Colors */
    --navy: #0B1426;
    --navy-light: #162040;
    --parchment: #F7F4EC;
    --white-soft: #FFFEFA;
    --text: #172033;
    --text-muted: #657083;
    --gold: #C5A35A;
    --gold-light: #D4BC7E;
    --gold-bg: rgba(197, 163, 90, 0.08);
    --dawn: #8AAFC8;
    --dawn-light: #B8D4E5;
    --dawn-bg: rgba(138, 175, 200, 0.08);
    --border: #DED8CB;
    --border-light: #EBE5D5;
    --bg-dark: #0B1426;

    /* Fonts */
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;

    /* Layout */
    --article-width: 720px;
    --content-width: 760px;
    --site-width: 1220px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(11, 20, 38, 0.06);
    --shadow-md: 0 4px 16px rgba(11, 20, 38, 0.08);

    /* Transitions */
    --ease: 0.2s ease;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--parchment);
    -webkit-font-smoothing: antialiased;
}

/* ═══ LAYOUT ═══ */
.container { max-width: var(--site-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 1.5rem; }
.container-article { max-width: var(--article-width); margin: 0 auto; padding: 0 1.5rem; }

/* ═══ HEADER ═══ */
.site-header {
    background: var(--navy);
    color: white;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0; max-width: var(--site-width); margin: 0 auto;
}
.header-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.header-wordmark { line-height: 1.15; }
.header-wordmark .pre { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; color: white; }
.header-wordmark .trib { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
.header-tagline { font-size: 0.7rem; color: var(--dawn); letter-spacing: 0.03em; margin-top: 1px; }
.horizon-symbol { width: 32px; height: 24px; position: relative; flex-shrink: 0; }
.horizon-symbol::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.horizon-symbol::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 8px; height: 8px; border-radius: 50%;
    background: radial-gradient(circle, var(--gold-light) 0%, var(--gold) 70%);
    box-shadow: 0 0 12px 2px rgba(197, 163, 90, 0.4);
}

/* Nav */
.header-nav { display: flex; align-items: center; gap: 0.25rem; }
.header-nav a {
    color: var(--dawn-light); text-decoration: none; font-size: 0.82rem;
    padding: 0.4rem 0.7rem; border-radius: 6px; transition: all var(--ease);
    white-space: nowrap; font-weight: 500;
}
.header-nav a:hover, .header-nav a.active { color: white; background: rgba(255,255,255,0.08); }
.search-btn {
    background: none; border: 1px solid rgba(255,255,255,0.15); color: var(--dawn-light);
    padding: 0.35rem 0.6rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem;
    margin-left: 0.5rem; transition: all var(--ease);
}
.search-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Mobile menu */
.mobile-menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.4rem 0.6rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.mobile-nav { display: none; background: var(--navy-light); border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.75rem 1.5rem; color: var(--dawn-light); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--navy); color: var(--dawn-light); padding: 3rem 1.5rem 2rem;
    font-size: 0.85rem; line-height: 1.6;
}
.footer-grid {
    max-width: var(--site-width); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-col h4 { color: white; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.footer-col a { color: var(--dawn-light); text-decoration: none; display: block; margin-bottom: 0.35rem; transition: color var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-disclaimer {
    margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center; font-size: 0.8rem; color: var(--dawn); max-width: var(--site-width); margin-left: auto; margin-right: auto;
    font-style: italic;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; color: var(--text); }
h1 { font-size: 2rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.5rem; margin: 2em 0 0.75em; }
h3 { font-size: 1.2rem; margin: 1.5em 0 0.5em; }
p { margin: 0 0 1.25em; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); transition: all var(--ease); }
a:hover { color: var(--gold); text-decoration-color: var(--navy); }
blockquote {
    border-left: 3px solid var(--gold); margin: 1.5em 0;
    padding: 0.75em 1.25em; background: var(--gold-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: #3a3a3a; font-family: var(--font-heading);
}
blockquote p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.25em 1.5em; }
li { margin-bottom: 0.35em; }
strong { color: var(--text); font-weight: 600; }

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-block; padding: 0.7rem 1.5rem; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
    text-decoration: none !important; cursor: pointer; transition: all var(--ease);
    border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline {
    background: transparent; color: white; border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(197,163,90,0.1); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); }

/* ═══ BREADCRUMBS ═══ */
.breadcrumbs {
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem;
    font-family: var(--font-body);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }

/* ═══ HOMEPAGE ═══ */
/* Hero */
.hero {
    background: linear-gradient(170deg, var(--navy) 0%, #111d3a 50%, #172544 100%);
    color: white; padding: 3.5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(197, 163, 90, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(138, 175, 200, 0.04) 0%, transparent 50%);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-left h1 {
    font-size: 2.6rem; font-family: var(--font-heading); color: white; margin-bottom: 0.5rem;
    line-height: 1.2; letter-spacing: -0.01em;
}
.hero-left h1 span.gold { color: var(--gold); }
.hero-left .hero-sub { font-size: 1.15rem; color: var(--dawn-light); margin-bottom: 2rem; line-height: 1.5; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Panel */
.hero-panel {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius); padding: 1.75rem;
}
.hero-panel h3 {
    color: var(--gold); font-family: var(--font-body); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 1.25rem;
}
.hero-theme { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hero-theme:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.hero-theme-icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.hero-theme-icon svg { width: 100%; height: 100%; }
.hero-theme-text a { color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: color var(--ease); }
.hero-theme-text a:hover { color: var(--gold); }
.hero-theme-text p { color: var(--dawn); font-size: 0.8rem; margin: 2px 0 0; }

/* Trust strip */
.trust-strip {
    background: white; border-bottom: 1px solid var(--border);
    text-align: center; padding: 1.25rem 1.5rem;
}
.trust-strip p {
    font-size: 0.9rem; color: var(--text-muted); font-style: italic;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem;
}

/* Section titles */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Start Here cards */
.start-here-section { padding: 4rem 0; background: var(--white-soft); }
.start-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.start-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; text-align: center; transition: all var(--ease);
    box-shadow: var(--shadow);
}
.start-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }
.start-card .card-num { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; font-weight: 700; }
.start-card h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.start-card h3 a { color: var(--text); text-decoration: none; }
.start-card h3 a:hover { color: var(--navy); }
.start-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Question cards */
.questions-section { padding: 4rem 0; }
.questions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.question-card {
    background: white; border: 1px solid var(--border-light); border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem; transition: all var(--ease);
}
.question-card:hover { border-color: var(--dawn); box-shadow: var(--shadow); }
.question-card a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; display: block; }
.question-card a:hover { color: var(--navy); }

/* Series panel */
.series-section { padding: 4rem 0; background: var(--navy); color: white; }
.series-panel {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
}
.series-info h2 { color: white; font-size: 1.6rem; margin: 0 0 0.75rem; }
.series-info .series-badge {
    display: inline-block; background: rgba(197,163,90,0.2); color: var(--gold);
    padding: 0.25rem 0.75rem; border-radius: 16px; font-size: 0.75rem;
    font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem;
}
.series-info p { color: var(--dawn-light); font-size: 0.95rem; margin-bottom: 1.5rem; }
.series-nav { background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); padding: 1.25rem; }
.series-nav h4 { color: var(--dawn); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.75rem; }
.series-nav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.series-nav ol li { margin: 0; }
.series-nav ol li a { color: var(--dawn-light); text-decoration: none; font-size: 0.8rem; padding: 0.3rem 0; display: block; transition: color var(--ease); }
.series-nav ol li a:hover { color: var(--gold); }

/* Topic blocks */
.topics-section { padding: 4rem 0; background: var(--white-soft); }
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.topic-block {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; transition: all var(--ease);
}
.topic-block:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.topic-block h4 { font-size: 0.95rem; margin: 0 0 0.5rem; }
.topic-block h4 a { color: var(--text); text-decoration: none; }
.topic-block h4 a:hover { color: var(--navy); }
.topic-block p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Latest articles grid */
.latest-section { padding: 4rem 0; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.latest-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all var(--ease); box-shadow: var(--shadow);
}
.latest-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.latest-card-image { aspect-ratio: 16/9; background: var(--border-light); overflow: hidden; }
.latest-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.latest-card-image .no-image {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--gold); font-family: var(--font-heading); font-size: 2rem;
}
.latest-card-body { padding: 1.25rem; }
.latest-card-topic {
    display: inline-block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--gold); font-weight: 700; margin-bottom: 0.5rem;
}
.latest-card-body h3 { font-size: 1rem; margin: 0 0 0.4rem; line-height: 1.3; }
.latest-card-body h3 a { color: var(--text); text-decoration: none; }
.latest-card-body h3 a:hover { color: var(--navy); }
.latest-card-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Closing panel */
.closing-panel {
    background: var(--navy); color: white; text-align: center; padding: 4rem 1.5rem;
}
.closing-panel h2 { color: white; font-size: 1.8rem; margin: 0 0 0.75rem; }
.closing-panel p { color: var(--dawn-light); font-size: 1.05rem; max-width: 550px; margin: 0 auto 1.5rem; }

/* ═══ ARTICLE PAGE ═══ */
.article-page { padding: 3rem 0 4rem; }
.article-layout { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; max-width: var(--site-width); margin: 0 auto; padding: 0 1.5rem; }
.article-main { max-width: var(--article-width); margin: 0 auto; width: 100%; }

/* TOC */
.article-toc { position: sticky; top: 80px; align-self: start; }
.article-toc h4 {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); margin: 0 0 0.75rem; font-family: var(--font-body);
}
.article-toc nav { font-size: 0.82rem; line-height: 1.5; }
.article-toc a { display: block; color: var(--text-muted); text-decoration: none; padding: 0.2rem 0; border-left: 2px solid transparent; padding-left: 0.75rem; transition: all var(--ease); }
.article-toc a:hover, .article-toc a.active { color: var(--navy); border-left-color: var(--gold); }

/* TOC mobile */
.toc-mobile { display: none; margin-bottom: 2rem; }
.toc-mobile details { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.toc-mobile summary { padding: 0.75rem 1rem; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.toc-mobile nav { padding: 0.5rem 1rem 1rem; }
.toc-mobile a { display: block; padding: 0.3rem 0; color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.toc-mobile a:hover { color: var(--navy); }

/* Article header */
.article-header { margin-bottom: 2rem; text-align: center; }
.article-topic-label {
    display: inline-block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--gold); font-weight: 700; margin-bottom: 0.75rem;
}
.article-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.article-intro { color: var(--text-muted); font-size: 1.05rem; font-style: italic; margin-bottom: 1rem; }
.article-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin-top: 0.75rem; }
.featured-image { margin: 2rem 0; text-align: center; }
.featured-image img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* Article body */
.article-body { font-size: 1.05rem; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1.5em 0; }
.article-body h2 { margin-top: 2.5em; padding-bottom: 0.35em; border-bottom: 1px solid var(--border-light); }
.article-body h3 { margin-top: 2em; }

/* Content components */
.callout {
    margin: 2em 0; padding: 1.5rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.callout-key { background: var(--dawn-bg); border-left: 3px solid var(--navy); }
.callout-objection { background: #F1F5F9; border-left: 3px solid #94A3B8; }
.callout-response { background: var(--gold-bg); border-left: 3px solid var(--gold); }
.callout-takeaway { background: #F0FDF4; border-left: 3px solid #22C55E; }
.callout::before {
    display: block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.08em; font-weight: 700; margin-bottom: 0.75rem;
    font-family: var(--font-body);
}
.callout-key::before { content: 'Key Scripture'; color: var(--navy); }
.callout-objection::before { content: 'The Objection'; color: #64748B; }
.callout-response::before { content: 'The Response'; color: var(--gold); }
.callout-takeaway::before { content: 'Why This Matters'; color: #16A34A; }

.quick-answer {
    background: var(--gold-bg); border: 1px solid var(--gold);
    border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; margin: 1.5em 0;
}
.quick-answer::before {
    content: 'Quick Answer'; display: block; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
    color: var(--gold); margin-bottom: 0.5rem; font-family: var(--font-body);
}

/* Article ending */
.article-ending { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-ending h3 { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 0.75rem; }
.key-passages { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); background: var(--white-soft); padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.related-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.related-article { font-size: 0.85rem; }
.prev-next { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.prev-next a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; }
.prev-next a:hover { color: var(--navy); }
.author-box {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
}
.author-box p { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0 0; }
.author-box strong { font-size: 0.9rem; }

/* ═══ TOPIC HUB PAGE ═══ */
.topic-hub { padding: 3rem 0 4rem; }
.topic-header { text-align: center; margin-bottom: 3rem; }
.topic-header h1 { margin-bottom: 0.5rem; }
.topic-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.article-list { border-top: 1px solid var(--border); }
.article-row {
    display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: center;
    padding: 1.25rem 0; border-bottom: 1px solid var(--border-light);
}
.article-row-img img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.article-row-body h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.article-row-body h3 a { color: var(--text); text-decoration: none; }
.article-row-body h3 a:hover { color: var(--navy); }
.article-row-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ═══ ARTICLE LIBRARY ═══ */
.library-page { padding: 3rem 0 4rem; }
.library-header { text-align: center; margin-bottom: 2rem; }
.library-search {
    max-width: 500px; margin: 1.5rem auto 0;
}
.library-search input {
    width: 100%; padding: 0.75rem 1rem; font-size: 1rem;
    border: 2px solid var(--border); border-radius: var(--radius);
    font-family: var(--font-body); background: white;
}
.library-search input:focus { outline: none; border-color: var(--gold); }
.library-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem;
}
.filter-btn {
    padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: 20px;
    background: white; cursor: pointer; font-size: 0.8rem; font-family: var(--font-body);
    transition: all var(--ease); color: var(--text-muted);
}
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.library-sort { text-align: right; margin-bottom: 1rem; }
.library-sort select { padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8rem; font-family: var(--font-body); }
.library-count { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; text-align: center; }
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ═══ STATIC PAGES ═══ */
.static-page { padding: 3rem 0 4rem; }
.static-page h1 { text-align: center; margin-bottom: 2rem; }
.static-page .article-body { max-width: var(--article-width); margin: 0 auto; }

/* ═══ 404 ═══ */
.error-page { padding: 5rem 1.5rem; text-align: center; }
.error-page h1 { font-size: 4rem; color: var(--text-muted); }
.error-page p { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-panel { margin-top: 1.5rem; }
    .start-cards { grid-template-columns: 1fr; }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
    .library-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-toc { display: none; }
    .toc-mobile { display: block; }
    .article-main { max-width: 100%; }
    .series-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-left h1 { font-size: 1.8rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; text-align: center; }
    .topics-grid { grid-template-columns: 1fr; }
    .latest-grid { grid-template-columns: 1fr; }
    .library-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .article-row-img img { width: 100%; height: auto; max-height: 150px; }
    .questions-grid { grid-template-columns: 1fr; }
    .related-articles { grid-template-columns: 1fr; }
    .series-nav ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
