/* ============================================
   School Optional - Dark Theme
   Pure CSS, no frameworks, no build step
   ============================================ */

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

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #E86F6F;
    --accent-hover: #d45a5a;
    --accent-dim: rgba(232,111,111,0.15);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Navigation --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.nav-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.1rem; color: var(--text);
}

.nav-logo img {
    width: 36px; height: 36px; border-radius: 8px; object-fit: contain;
}

.logo-icon { display: flex; align-items: center; }

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-links a {
    font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
    padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.15s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta {
    background: var(--accent) !important; color: var(--text) !important;
    font-weight: 600 !important; transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}

.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-secondary); border-radius: 2px; transition: 0.2s;
}

.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border);
    padding: 16px 24px; flex-direction: column; gap: 8px; z-index: 99;
    box-shadow: var(--shadow-lg);
}

.mobile-menu a {
    font-size: 1rem; font-weight: 500; color: var(--text-secondary);
    padding: 12px 16px; border-radius: var(--radius-sm); display: block;
}

.mobile-menu a:hover { background: rgba(255,255,255,0.05); }
.mobile-menu .nav-cta { text-align: center; margin-top: 8px; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu.open { display: flex; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font); font-weight: 600; font-size: 0.925rem;
    padding: 12px 24px; border-radius: var(--radius-sm);
    border: none; cursor: pointer; transition: all 0.15s; text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent); color: var(--text);
    box-shadow: 0 1px 3px rgba(232,111,111,0.3);
}

.btn-primary:hover {
    background: var(--accent-hover); transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232,111,111,0.3);
}

.btn-secondary {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--text-muted); color: var(--text); }

.btn-ghost {
    background: transparent; color: var(--accent);
    padding: 12px 16px;
}

.btn-ghost:hover { background: var(--accent-dim); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }

.section-head { text-align: center; margin-bottom: 48px; }

.section-eyebrow {
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700;
    color: var(--text); line-height: 1.2; letter-spacing: -0.02em;
}

.section-sub {
    font-size: 1.05rem; color: var(--text-secondary); max-width: 560px;
    margin: 14px auto 0; line-height: 1.65;
}

/* --- Hero --- */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(232,111,111,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
    color: var(--text); line-height: 1.12; letter-spacing: -0.03em;
    margin-bottom: 16px; position: relative;
}

.hero h1 .highlight { color: var(--accent); }

.hero .hero-sub {
    font-size: 1.15rem; color: var(--text-secondary); max-width: 600px;
    margin: 0 auto 32px; line-height: 1.65; position: relative;
}

.hero-actions {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
    position: relative;
}

/* --- Data Bar --- */
.data-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.data-items {
    display: flex; justify-content: center; align-items: center;
    gap: 40px; flex-wrap: wrap;
}

.data-item { text-align: center; }

.data-number {
    font-size: 1.75rem; font-weight: 700; color: var(--accent); line-height: 1.2;
}

.data-label {
    font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-top: 2px;
}

.data-sep {
    width: 1px; height: 36px; background: var(--border);
}

@media (max-width: 600px) {
    .data-sep { display: none; }
    .data-items { gap: 24px; }
}

/* --- Article Cards --- */
.articles-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.2s;
    display: flex; flex-direction: column;
}

.article-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-card-tag {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--accent);
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 1.05rem; font-weight: 600; color: var(--text);
    margin-bottom: 8px; line-height: 1.3;
}

.article-card p {
    font-size: 0.875rem; color: var(--text-secondary);
    line-height: 1.6; flex: 1;
}

.article-card .read-link {
    font-size: 0.85rem; font-weight: 600; color: var(--accent);
    margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.15s;
}

.article-card:hover .read-link { gap: 10px; }

@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

/* --- Article Page --- */
.article-hero {
    padding: 120px 0 48px;
    border-bottom: 1px solid var(--border);
}

.article-hero .breadcrumb {
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px;
}

.article-hero .breadcrumb a { color: var(--accent); }
.article-hero .breadcrumb a:hover { text-decoration: underline; }
.article-hero .breadcrumb .sep { margin: 0 8px; }

.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
    color: var(--text); line-height: 1.15; margin-bottom: 16px;
}

.article-hero h1 .highlight { color: var(--accent); }

.article-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 0.85rem; color: var(--text-muted);
}

.article-meta .dot { margin: 0; }

/* --- Article Content --- */
.article-body {
    max-width: 720px; margin: 0 auto;
    padding: 48px 24px 80px;
}

.article-body h2 {
    font-size: 1.35rem; font-weight: 700; color: var(--text);
    margin: 40px 0 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.article-body h3 {
    font-size: 1.1rem; font-weight: 600; color: var(--text);
    margin: 28px 0 10px;
}

.article-body p {
    font-size: 1rem; color: var(--text-secondary); line-height: 1.8;
    margin-bottom: 16px;
}

.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }

.article-body ul, .article-body ol {
    padding-left: 20px; margin-bottom: 16px;
}

.article-body li {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 6px;
}

.article-body li strong { color: var(--text); }

.article-body strong { color: var(--text); }

/* --- Data Callout --- */
.data-callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    margin: 24px 0;
}

.data-callout-number {
    font-size: 2.2rem; font-weight: 800; color: var(--accent);
    line-height: 1.1; margin-bottom: 6px;
}

.data-callout-text {
    font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
}

.data-callout-source {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 8px;
}

/* --- Pull Quote --- */
.pull-quote {
    border-left: 3px solid var(--accent);
    padding: 16px 0 16px 24px;
    margin: 32px 0;
}

.pull-quote p {
    font-size: 1.1rem; font-style: italic; color: var(--text);
    line-height: 1.6; margin-bottom: 0;
}

.pull-quote .attribution {
    font-size: 0.85rem; font-style: normal; color: var(--text-muted);
    margin-top: 8px;
}

/* --- Blue Folder CTA (mid-article + end) --- */
.bf-cta {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232,111,111,0.08) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin: 40px 0;
    text-align: center;
}

.bf-cta h3 {
    font-size: 1.15rem; font-weight: 700; color: var(--text);
    margin-bottom: 8px;
}

.bf-cta p {
    font-size: 0.925rem; color: var(--text-secondary);
    margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto;
}

.bf-cta .btn { margin: 0 auto; }

/* --- Sources Section --- */
.sources {
    margin-top: 48px; padding-top: 32px;
    border-top: 1px solid var(--border);
}

.sources h3 {
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px;
}

.sources ol {
    padding-left: 20px; list-style: decimal;
}

.sources li {
    font-size: 0.85rem; color: var(--text-muted);
    line-height: 1.6; margin-bottom: 8px;
}

.sources li a { color: var(--accent); }
.sources li a:hover { text-decoration: underline; }

/* --- Keep Reading --- */
.keep-reading {
    margin-top: 56px; padding-top: 40px;
    border-top: 1px solid var(--border);
}

.keep-reading h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    margin-bottom: 24px;
}

.keep-reading .articles-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
    .keep-reading .articles-grid { grid-template-columns: 1fr; }
}

/* --- Email Capture --- */
.email-capture {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px; text-align: center;
}

.email-capture h3 {
    font-size: 1.15rem; font-weight: 700; color: var(--text);
    margin-bottom: 8px;
}

.email-capture p {
    font-size: 0.925rem; color: var(--text-secondary);
    margin-bottom: 20px;
}

.email-form {
    display: flex; gap: 8px; max-width: 420px; margin: 0 auto;
}

.email-form input {
    flex: 1; padding: 12px 16px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-family: var(--font); font-size: 0.925rem;
}

.email-form input::placeholder { color: var(--text-muted); }

.email-form input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,111,111,0.12);
}

@media (max-width: 500px) {
    .email-form { flex-direction: column; }
}

/* --- Steps (Take Action page) --- */
.steps-row {
    display: flex; align-items: flex-start; justify-content: center; gap: 12px;
}

.step-item { flex: 1; max-width: 280px; text-align: center; }

.step-num {
    width: 48px; height: 48px; background: var(--accent); color: var(--text);
    font-size: 1.1rem; font-weight: 700; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}

.step-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.step-item p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.step-arrow {
    display: flex; align-items: center; padding-top: 14px; color: var(--text-muted);
}

@media (max-width: 768px) {
    .steps-row { flex-direction: column; align-items: center; }
    .step-item { max-width: 360px; }
    .step-arrow { transform: rotate(90deg); }
}

/* --- About Page --- */
.about-content {
    max-width: 720px; margin: 0 auto;
    padding: 48px 24px 80px;
}

.about-content p {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 16px;
}

.about-content strong { color: var(--text); }

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
}

.cta-box {
    text-align: center; padding: 56px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(232,111,111,0.12) 100%);
    border: 1px solid var(--border);
    border-radius: 20px; color: var(--text);
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 10px;
}

.cta-box p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 24px; }

/* --- Footer --- */
.footer {
    padding: 56px 0 28px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex; justify-content: space-between; gap: 48px; margin-bottom: 36px;
}

.footer-brand { max-width: 260px; }
.footer-brand .nav-logo { margin-bottom: 10px; }
.footer-tagline { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

.footer-cols { display: flex; gap: 56px; }

.footer-col h5 {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px;
}

.footer-col a {
    display: block; font-size: 0.875rem; color: var(--text-secondary);
    margin-bottom: 8px; transition: color 0.15s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; border-top: 1px solid var(--border);
    font-size: 0.78rem; color: var(--text-muted);
}

.footer-social { display: flex; gap: 14px; }

.footer-social a {
    color: var(--text-muted); transition: color 0.15s; display: flex;
}

.footer-social a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .footer-grid { flex-direction: column; gap: 32px; }
    .footer-cols { flex-wrap: wrap; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* --- Resources Page --- */
.resource-list { list-style: none; }

.resource-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.resource-item:last-child { border-bottom: none; }

.resource-item h4 {
    font-size: 0.95rem; font-weight: 600; color: var(--text);
    margin-bottom: 4px;
}

.resource-item p {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
}

.resource-item a { color: var(--accent); }
.resource-item a:hover { text-decoration: underline; }

/* --- Disclaimer --- */
.disclaimer {
    font-size: 0.8rem; color: var(--text-muted); line-height: 1.6;
    padding: 20px 0; border-top: 1px solid var(--border); margin-top: 40px;
}

.disclaimer a { color: var(--accent); }

/* --- Utility --- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* --- Print --- */
@media print {
    .nav, .footer, .cta-banner, .mobile-menu { display: none; }
    body { background: #fff; color: #000; }
    .hero, .article-hero { background: none; padding-top: 20px; }
}
