/* ==========================================================================
   edSmart Spelling Bee — marketing site stylesheet
   --------------------------------------------------------------------------
   Hand-written, self-contained CSS for the public pages (home, about,
   categories, team, contact). Deliberately NOT part of the Tailwind/Vite
   build, so the marketing site renders correctly on shared hosting without a
   front-end build step — you only upload this file.

   Palette mirrors the app's Tailwind theme (honey + ink).
   ========================================================================== */

:root {
    --honey-50:  #fffbeb;
    --honey-100: #fef3c7;
    --honey-200: #fde68a;
    --honey-300: #fcd34d;
    --honey-400: #fbbf24;
    --honey-500: #f59e0b;
    --honey-600: #d97706;
    --honey-700: #b45309;

    --ink-50:  #f8f7f4;
    --ink-100: #eeece6;
    --ink-200: #dcd8cd;
    --ink-300: #c2bcab;
    --ink-400: #a39a84;
    --ink-500: #8a8069;
    --ink-600: #726858;
    --ink-700: #5d554a;
    --ink-800: #4f4840;
    --ink-900: #453f39;
    --ink-950: #26221e;

    --practice: #10b981;
    --challenge: #f59e0b;
    --competition: #8b5cf6;

    /* Home-page accents (student = honey, teacher = blue, dark bands = navy) */
    --navy: #1d2a4d;
    --blue: #2ec4f1;

    --shadow-sm: 0 1px 2px rgba(38, 34, 30, .06);
    --shadow-md: 0 8px 24px rgba(38, 34, 30, .10);
    --shadow-lg: 0 24px 60px rgba(38, 34, 30, .16);

    --radius: 14px;
    --maxw: 1180px;
    --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink-800);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink-950);
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    color: var(--honey-700);
    background: var(--honey-100);
    padding: .35rem .8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-head p { color: var(--ink-600); font-size: 1.05rem; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    padding: .8rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--honey-500); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--honey-600); }
.btn-dark { background: var(--ink-950); color: #fff; }
.btn-dark:hover { background: var(--ink-800); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; border-color: var(--ink-200); color: var(--ink-900); }
.btn-outline:hover { border-color: var(--honey-400); color: var(--honey-700); }
.btn-outline-honey { background: #fff; border-color: var(--honey-400); color: var(--honey-700); }
.btn-outline-honey:hover { background: var(--honey-50); border-color: var(--honey-500); color: var(--honey-800); }
.btn-lg { padding: .7rem 1.5rem; font-size: .98rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
    background: var(--ink-950);
    color: var(--ink-100);
    font-size: .82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar p { margin: 0; color: var(--ink-300); }
.topbar-social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.topbar-social a {
    width: 28px; height: 28px; display: grid; place-items: center;
    border-radius: 50%; background: rgba(255,255,255,.06); color: var(--ink-200);
    transition: background .15s, color .15s;
}
.topbar-social a:hover { background: var(--honey-500); color: #fff; }
.topbar-social svg { width: 14px; height: 14px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--ink-100);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink-950); }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.35rem;
    background: linear-gradient(135deg, var(--honey-300), var(--honey-500));
    box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
    font-weight: 600; font-size: .95rem; color: var(--ink-700);
    padding: .55rem .9rem; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--honey-700); background: var(--honey-50); }
.nav a.active { color: var(--honey-700); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .link { font-weight: 600; font-size: .95rem; color: var(--ink-700); padding: .5rem .6rem; }
.header-actions .link:hover { color: var(--ink-950); }
/* Compact header buttons so the bar never overflows on smaller screens. */
.header-actions .btn { padding: .5rem 1.05rem; font-size: .88rem; border-width: 1.5px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink-900); }
.menu-toggle svg { width: 26px; height: 26px; }

/* Mobile nav drawer */
.mobile-nav { display: none; border-top: 1px solid var(--ink-100); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-nav a { display: block; padding: 12px 20px; font-weight: 600; color: var(--ink-800); }
.mobile-nav a:hover { background: var(--honey-50); color: var(--honey-700); }
.mobile-nav .mobile-cta { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px 20px; }
.mobile-nav .mobile-cta .btn { flex: 1; }

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.slides { position: relative; }
.slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity .8s ease;
    display: grid; align-items: center;
    min-height: 560px;
}
.slide.active { position: relative; opacity: 1; visibility: visible; }
.slide-1 { background: radial-gradient(1200px 500px at 80% -10%, #ffe9a8 0%, transparent 60%), linear-gradient(135deg, #fff7e0 0%, #fde8b8 100%); }
.slide-2 { background: radial-gradient(1000px 500px at 15% 0%, #4f4840 0%, transparent 55%), linear-gradient(135deg, #2c2723 0%, #4a4038 100%); }
.slide-3 { background: radial-gradient(1000px 600px at 90% 10%, #c9b6ff 0%, transparent 55%), linear-gradient(135deg, #ede7ff 0%, #d9c9ff 100%); }
.slide-2 h1, .slide-2 p { color: #fff; }
.slide-2 .eyebrow { background: rgba(255,255,255,.14); color: #fff; }

/* Hero slide background images (admin-uploadable; the gradient is the fallback). */
.slide.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #fdf3d3; }
.slide.has-image::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(90deg, rgba(255,251,240,.96) 0%, rgba(255,251,240,.82) 30%, rgba(255,251,240,.42) 56%, rgba(255,251,240,0) 78%);
}
.slide.has-image .container { position: relative; z-index: 1; }
.slide.has-image h1, .slide.has-image .slide-trust { color: var(--ink-900); }
.slide.has-image p { color: var(--ink-700); }
.slide.has-image .eyebrow { background: #fef3c7; color: #92400e; }
.slide.has-image .btn-ghost { background: rgba(38,34,30,.06); color: var(--ink-800); border: 2px solid rgba(38,34,30,.18); }
@media (max-width: 768px) {
    /* Near-solid wash on small screens so text never sits over a busy photo. */
    .slide.has-image::before { background: rgba(255,251,240,.9); }
}

.slide-inner { max-width: 720px; padding: 80px 0; }
.slide h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.02em; }
.slide p { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--ink-700); max-width: 560px; margin-bottom: 1.8rem; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(38,34,30,.25); cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.hero-dots button.active { background: var(--honey-500); width: 30px; border-radius: 999px; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.7); color: var(--ink-900); display: grid; place-items: center;
    box-shadow: var(--shadow-sm); transition: background .2s;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats { background: var(--ink-950); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 44px; padding-bottom: 44px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--honey-400); }
.stat .label { font-size: .9rem; color: var(--ink-300); text-transform: uppercase; letter-spacing: .08em; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-art {
    border-radius: 20px; min-height: 380px; position: relative; overflow: hidden;
    background: radial-gradient(600px 300px at 30% 20%, #ffe9a8, transparent 60%), linear-gradient(135deg, var(--honey-400), var(--honey-600));
    box-shadow: var(--shadow-lg);
    display: grid; place-items: center;
}
.about-art .bee { font-size: 8rem; filter: drop-shadow(0 12px 24px rgba(0,0,0,.2)); }
.about-body h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.about-body p { color: var(--ink-600); margin-bottom: 1rem; }
.quote { border-left: 4px solid var(--honey-400); padding: .4rem 0 .4rem 1.2rem; margin-top: 1.4rem; font-style: italic; color: var(--ink-700); }
.quote cite { display: block; font-style: normal; font-weight: 600; color: var(--ink-900); margin-top: .5rem; }

/* ==========================================================================
   Cards (categories, modes)
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
    background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
    padding: 34px 28px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--honey-200); }
.card .icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.7rem; margin-bottom: 18px; color: #fff;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-600); font-size: .96rem; margin-bottom: 1rem; }
.card .more { font-weight: 700; color: var(--honey-700); font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.card .more::after { content: '→'; transition: transform .15s; }
.card:hover .more::after { transform: translateX(4px); }

.ic-primary { background: linear-gradient(135deg, #34d399, #10b981); }
.ic-secondary { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.ic-tertiary { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.ic-practice { background: linear-gradient(135deg, #34d399, #059669); }
.ic-challenge { background: linear-gradient(135deg, var(--honey-400), var(--honey-600)); }
.ic-competition { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.mode-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 999px; margin-bottom: 12px; }
.badge-free { background: #dcfce7; color: #166534; }
.badge-ranked { background: var(--honey-100); color: var(--honey-700); }
.badge-prize { background: #ede9fe; color: #6d28d9; }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; position: relative; }
.step .n {
    width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--honey-100); color: var(--honey-700); font-family: var(--font-display);
    font-weight: 800; font-size: 1.4rem; display: grid; place-items: center;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-600); font-size: .95rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    background: radial-gradient(800px 300px at 20% 0%, rgba(255,255,255,.16), transparent 60%), linear-gradient(135deg, var(--honey-500), var(--honey-700));
    color: #fff; text-align: center; border-radius: 24px;
    padding: 60px 30px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.testi-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.stars { color: var(--honey-500); letter-spacing: 2px; margin-bottom: 14px; }
.testi-card p { color: var(--ink-700); font-style: italic; margin-bottom: 20px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--honey-400), var(--honey-600)); }
.testi-who strong { display: block; color: var(--ink-950); font-size: .98rem; }
.testi-who span { font-size: .85rem; color: var(--ink-500); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-950); color: var(--ink-300); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: .92rem; color: var(--ink-400); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .92rem; color: var(--ink-300); transition: color .15s; }
.footer-links a:hover { color: var(--honey-400); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .92rem; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--honey-400); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: .86rem; color: var(--ink-500); }

/* ==========================================================================
   Simple content pages (about/team/contact/legal)
   ========================================================================== */
.page-hero { background: linear-gradient(135deg, #fff7e0, #fde8b8); padding: 70px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: var(--ink-600); max-width: 620px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; color: var(--ink-500); margin-top: 14px; }
.breadcrumb a { color: var(--honey-700); font-weight: 600; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-700); }
.prose ul { padding-left: 1.2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 46px; align-items: start; }
.contact-card { background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; }
.contact-card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--honey-100); color: var(--honey-700); display: grid; place-items: center; margin-bottom: 12px; }
.contact-card h4 { margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--ink-600); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-800); margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; padding: .8rem 1rem; border: 1px solid var(--ink-200); border-radius: 10px;
    font: inherit; color: var(--ink-900); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--honey-400); box-shadow: 0 0 0 3px var(--honey-100); }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-error { color: #dc2626; font-size: .82rem; margin-top: 4px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.member { text-align: center; }
.member .photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: #fff; background: linear-gradient(135deg, var(--honey-400), var(--honey-600)); box-shadow: var(--shadow-md); }
.member h3 { margin: 0; font-size: 1.1rem; }
.member span { color: var(--honey-700); font-weight: 600; font-size: .9rem; }
.member p { color: var(--ink-600); font-size: .9rem; margin-top: 8px; }
.member .photo.has-photo { padding: 0; background: none; overflow: hidden; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Legal pages — Terms & Conditions, Privacy Policy */
.legal { max-width: 820px; margin: 0 auto; }
.legal .legal-lead { font-size: 1.05rem; color: var(--ink-700); margin: 0 0 8px; }
.legal .legal-section { margin-top: 30px; }
.legal .legal-section h2 { font-size: 1.15rem; color: var(--ink-900); margin: 0 0 10px; }
.legal .legal-section p { color: var(--ink-600); line-height: 1.75; margin: 0 0 12px; }

/* Blog list */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ink-100); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #fef3c7, #fde68a); display: grid; place-items: center; overflow: hidden; }
.blog-thumb span { font-size: 2.4rem; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-meta { font-size: .72rem; color: var(--ink-400); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.blog-body h2 { font-size: 1.15rem; line-height: 1.35; margin: 0; }
.blog-body h2 a { color: var(--ink-900); }
.blog-body h2 a:hover { color: #b45309; }
.blog-body p { color: var(--ink-600); font-size: .92rem; margin: 0; flex: 1; }
.blog-more { color: #b45309; font-weight: 700; font-size: .88rem; margin-top: 6px; }
.blog-pager { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }

/* Single post */
.post-narrow { max-width: 760px; }
.post-draft { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin-bottom: 16px; }
.post-title { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 10px; }
.post-meta { color: var(--ink-400); font-size: .9rem; margin-bottom: 22px; }
.post-hero { border-radius: 18px; overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow-lg); }
.post-hero img { width: 100%; height: auto; display: block; }
.post-content { color: var(--ink-700); font-size: 1.05rem; line-height: 1.8; }
.post-content h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.post-content h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.post-content p { margin: 0 0 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px; padding-left: 1.3em; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: #b45309; font-weight: 600; text-decoration: underline; }
.post-content blockquote { border-left: 4px solid #fcd34d; margin: 0 0 16px; padding: 4px 0 4px 16px; color: var(--ink-500); font-style: italic; }
.post-content code { background: var(--ink-100); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; }
.post-back { margin-top: 34px; }
.post-more-title { font-size: 1.3rem; margin: 0 0 18px; }

@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Blog — two-column layout with sidebar
   ========================================================================== */
.blog-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 34px; align-items: start; }
.blog-main { min-width: 0; }
.blog-searchnote { color: var(--ink-500); font-size: .9rem; margin: 0 0 18px; }

.blog-list { display: flex; flex-direction: column; gap: 22px; }
.blog-row { display: grid; grid-template-columns: 240px 1fr; gap: 20px; background: #fff; border: 1px solid var(--ink-100); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); transition: transform .15s, box-shadow .15s; }
.blog-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.blog-row-thumb { display: grid; place-items: center; background: linear-gradient(135deg,#fef3c7,#fde68a); overflow: hidden; min-height: 190px; }
.blog-row-thumb span { font-size: 2.6rem; }
.blog-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-row-body { padding: 18px 20px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.blog-row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cat-badge { font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.blog-row-date { font-size: .78rem; color: var(--ink-400); }
.blog-row-body h2 { font-size: 1.35rem; line-height: 1.3; margin: 0; }
.blog-row-body h2 a { color: var(--ink-900); }
.blog-row-body h2 a:hover { color: #b45309; }
.blog-row-body > p { color: var(--ink-600); font-size: .95rem; margin: 0; flex: 1; }
.blog-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.blog-author { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-700); font-weight: 600; }
.blog-author img, .blog-author .av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.blog-author .av { display: grid; place-items: center; background: #f59e0b; color: #fff; font-size: .8rem; font-weight: 700; }
.blog-read { font-size: .82rem; font-weight: 700; color: #b45309; white-space: nowrap; }

.blog-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 34px; }
.blog-pager a { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ink-200); color: var(--ink-700); font-weight: 700; font-size: .9rem; }
.blog-pager a:hover { border-color: #fbbf24; color: #b45309; }
.blog-pager a.active { background: linear-gradient(135deg,#f59e0b,#d97706); border-color: transparent; color: #fff; }

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 22px; }
.side-card { background: #fff; border: 1px solid var(--ink-100); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-md); }
.side-card h3 { font-size: 1.05rem; margin: 0 0 14px; }
.side-search { display: flex; gap: 8px; }
.side-search input { flex: 1; min-width: 0; border: 1px solid var(--ink-200); border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.side-search input:focus { outline: none; border-color: #fbbf24; box-shadow: 0 0 0 3px #fef3c7; }
.side-search button { flex-shrink: 0; width: 44px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; cursor: pointer; display: grid; place-items: center; }
.side-search svg { width: 18px; height: 18px; }
.side-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-700); font-weight: 500; font-size: .92rem; }
.side-cats a:hover { background: #f8f9fb; }
.side-cats a.active { background: #fffbeb; color: #b45309; font-weight: 700; }
.side-cats .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.side-cats .count { margin-left: auto; font-size: .72rem; font-weight: 700; background: var(--ink-100); color: var(--ink-500); border-radius: 999px; padding: 2px 9px; }
.side-cats a.active .count { background: #fde68a; color: #92400e; }
.side-popular { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.side-popular li { display: flex; gap: 12px; }
.pp-thumb { width: 64px; height: 56px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg,#fef3c7,#fde68a); display: grid; place-items: center; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-meta { min-width: 0; }
.pp-title { display: block; font-weight: 700; font-size: .88rem; color: var(--ink-900); line-height: 1.35; }
.pp-title:hover { color: #b45309; }
.pp-date { font-size: .72rem; color: var(--ink-400); margin-top: 2px; }
.side-news { background: radial-gradient(240px 120px at 80% -20%,#fde68a 0,transparent 70%),linear-gradient(135deg,#fffbeb,#fef3c7); border-color: #fde68a; }
.side-news p { color: #92400e; font-size: .85rem; margin: 0 0 12px; }
.news-form { display: flex; flex-direction: column; gap: 8px; }
.news-form input[type=email] { border: 1px solid #fde68a; border-radius: 12px; padding: 11px 14px; font-size: .9rem; background: #fff; }
.news-form input[type=email]:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.news-form button { border: 0; border-radius: 12px; padding: 11px; font-weight: 700; color: #fff; cursor: pointer; background: linear-gradient(135deg,#f59e0b,#d97706); }
.news-ok { background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; border-radius: 12px; padding: 10px 12px; font-size: .85rem; }
.news-err { color: #b91c1c; font-size: .8rem; margin-top: 6px; }

/* Single post furniture */
.post-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.post-metaline { font-size: .85rem; color: var(--ink-400); }
.post-byline { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; font-weight: 600; color: var(--ink-700); }
.post-byline img, .post-byline .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-byline .av { display: grid; place-items: center; background: #f59e0b; color: #fff; font-weight: 700; }
.post-share { display: flex; align-items: center; gap: 10px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--ink-100); }
.post-share > span { font-size: .85rem; color: var(--ink-500); font-weight: 600; }
.post-share a, .post-share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-700); display: grid; place-items: center; cursor: pointer; }
.post-share a:hover, .post-share button:hover { border-color: #fbbf24; color: #b45309; }
.post-share svg { width: 17px; height: 17px; }
.post-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; }
.post-nav-item { flex: 1; max-width: 48%; border: 1px solid var(--ink-200); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.post-nav-item:hover { border-color: #fbbf24; background: #fffbeb; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav .dir { font-size: .75rem; color: #b45309; font-weight: 700; }
.post-nav .ttl { font-size: .85rem; color: var(--ink-700); font-weight: 600; }

/* Footer newsletter */
.footer-news { display: flex; gap: 8px; margin-top: 14px; max-width: 320px; }
.footer-news input[type=email] { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: .85rem; }
.footer-news input[type=email]::placeholder { color: rgba(255,255,255,.5); }
.footer-news button { border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 700; color: #fff; background: #f59e0b; cursor: pointer; font-size: .85rem; }
.footer-news-ok { color: #86efac; font-size: .82rem; margin-top: 8px; }

@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .blog-row { grid-template-columns: 1fr; }
    .blog-row-thumb { min-height: 170px; }
    .blog-row-body { padding: 16px 18px; }
    .post-nav { flex-direction: column; }
    .post-nav-item { max-width: 100%; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .cards, .steps, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .stats .container { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 720px) {
    .nav, .header-actions .desktop-only { display: none; }
    .menu-toggle { display: block; }
    .section { padding: 56px 0; }
    .testi { grid-template-columns: 1fr; }
    .hero-arrow { display: none; }
    .slide { min-height: 480px; }
    .topbar .topbar-tagline { display: none; }
}

@media (max-width: 520px) {
    .cards, .steps, .team-grid, .footer-grid { grid-template-columns: 1fr; }
    .stats .container { grid-template-columns: repeat(2, 1fr); }
    .slide-actions .btn, .cta-actions .btn { width: 100%; }
}

[x-cloak] { display: none !important; }

/* ==========================================================================
   Home page v2 — audience fork, how-it-works, features, category note,
   trust strip, FAQ and final CTA. Prefixed .hp-* to avoid clashes.
   ========================================================================== */

/* Hero trust line under the slider buttons */
.slide-trust { margin-top: 16px; color: var(--ink-600); font-size: .9rem; font-weight: 600; }
.slide-2 .slide-trust { color: rgba(255,255,255,.85); }

/* ---------- Audience fork ---------- */
.hp-fork-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hp-fork-card {
    border-radius: 22px; padding: 36px 32px; border: 1px solid var(--ink-100);
    box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 16px;
}
.hp-fork-card.student { background: linear-gradient(165deg, var(--honey-50) 0%, #fff 62%); }
.hp-fork-card.teacher { background: linear-gradient(165deg, #eafbff 0%, #fff 62%); }
.hp-fork-card h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-950); }
.hp-fork-lead { font-weight: 700; color: var(--ink-600); margin: -4px 0 2px; }
.hp-badge {
    width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center;
    justify-content: center; font-size: 1.6rem;
}
.hp-fork-card.student .hp-badge { background: linear-gradient(135deg, var(--honey-400), var(--honey-200)); }
.hp-fork-card.teacher .hp-badge { background: linear-gradient(135deg, var(--blue), #9fe9ff); }
.hp-fork-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hp-fork-card ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-700); font-weight: 600; font-size: .98rem; }
.hp-fork-card ul li .ic { flex-shrink: 0; }
.hp-fork-card .btn { margin-top: 8px; align-self: flex-start; }

/* ---------- Mission / purpose ---------- */
.hp-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.hp-pillar-card { background: #fff; border: 1px solid var(--ink-100); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm); text-align: left; }
.hp-pillar-card .ic { font-size: 1.6rem; margin-bottom: 10px; }
.hp-pillar-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; color: var(--ink-950); }
.hp-pillar-card p { color: var(--ink-600); font-size: .92rem; font-weight: 600; }

/* ---------- How it works ---------- */
.hp-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hp-how-col h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; color: var(--ink-950); }
.hp-how-col h3 .dot { width: 10px; height: 10px; border-radius: 50%; }
.hp-how-col.students h3 .dot { background: var(--honey-500); }
.hp-how-col.teachers h3 .dot { background: var(--blue); }
.hp-step { display: flex; gap: 16px; margin-bottom: 20px; }
.hp-step .num {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-100);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display); color: var(--honey-700);
}
.hp-how-col.teachers .hp-step .num { color: var(--blue); }
.hp-step .txt { font-weight: 700; color: var(--ink-800); padding-top: 7px; font-size: .98rem; }

/* ---------- Feature spotlights ---------- */
.hp-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hp-feature-card {
    border: 1px solid var(--ink-100); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; background: #fff;
}
.hp-feature-shot { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: #fff; overflow: hidden; }
.hp-feature-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-feature-shot.f1 { background: linear-gradient(135deg, var(--honey-500), var(--honey-300)); }
.hp-feature-shot.f2 { background: linear-gradient(135deg, var(--blue), #3fd1b8); }
.hp-feature-shot.f3 { background: linear-gradient(135deg, var(--navy), #3c4e82); }
.hp-feature-shot.f4 { background: linear-gradient(135deg, #ff8a5c, var(--honey-400)); }
.hp-feature-body { padding: 22px 24px; }
.hp-feature-body h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; color: var(--ink-950); }
.hp-feature-body p { color: var(--ink-600); font-size: .95rem; }

/* ---------- Category note ---------- */
.hp-catnote { text-align: center; }
.hp-catnote-h { font-size: 1.4rem; font-family: var(--font-display); color: var(--ink-950); margin-top: 6px; }
.hp-chip-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hp-chip { background: #fff; border: 1px solid var(--ink-100); border-radius: 14px; padding: 14px 20px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-sm); color: var(--ink-600); max-width: 280px; }
.hp-chip b { color: var(--ink-950); display: block; font-size: .95rem; margin-bottom: 3px; }

/* ---------- Trust strip ---------- */
.hp-trust { background: linear-gradient(135deg, var(--navy), #2c3e6b); color: #fff; padding: 36px 0; }
.hp-trust .container { display: flex; flex-wrap: wrap; gap: 22px 34px; justify-content: center; align-items: center; text-align: center; }
.hp-trust-item { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .98rem; }
.hp-trust-item .ic { font-size: 1.25rem; }

/* ---------- 3D icons (icons8) with emoji fallback ---------- */
.icon3d { object-fit: contain; display: inline-block; vertical-align: middle; }
.hp-badge .icon3d { width: 32px; height: 32px; }
.hp-pillar-card .ic .icon3d { width: 42px; height: 42px; }
.hp-trust-item .icon3d { width: 22px; height: 22px; }

/* ---------- FAQ ---------- */
.hp-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.hp-faq-item { border: 1px solid var(--ink-100); border-radius: 16px; overflow: hidden; background: var(--ink-50); }
.hp-faq-q {
    width: 100%; text-align: left; background: none; border: none; padding: 19px 22px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 1rem;
    font-family: var(--font-sans); color: var(--ink-950);
}
.hp-faq-q .plus { font-size: 1.4rem; color: var(--honey-700); transition: transform .2s; flex-shrink: 0; margin-left: 16px; }
.hp-faq-item.open .plus { transform: rotate(45deg); }
.hp-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 22px; }
.hp-faq-item.open .hp-faq-a { max-height: 320px; padding: 0 22px 20px; }
.hp-faq-a p { color: var(--ink-600); font-size: .95rem; }

/* ---------- Final CTA ---------- */
.hp-finalcta { background: linear-gradient(135deg, var(--navy), #3c4e82 60%, var(--honey-700)); color: #fff; text-align: center; padding: 84px 0; }
.hp-finalcta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; color: #fff; }
.hp-finalcta p { color: #dbe0f0; margin-bottom: 28px; font-weight: 600; max-width: 560px; margin-left: auto; margin-right: auto; }
.hp-finalcta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hp-finalcta .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.hp-finalcta .btn-outline { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .hp-fork-grid, .hp-how-grid, .hp-feature-grid, .hp-pillar-grid { grid-template-columns: 1fr; }
}
