/* ═══════════════════════════════════════════════
   DESIGN SYSTEM — EduFest Junior Academy
   Shared site-wide styles (extracted from base.html
   for browser caching). Served from 'self'.
═══════════════════════════════════════════════ */
:root {
    --primary:    #2563eb;
    --primary-dk: #1d4ed8;
    --dark:       #0f172a;
    --dark-2:     #1e293b;
    --success:    #16a34a;
    --warning:    #f59e0b;
    --danger:     #dc2626;
    --purple:     #7c3aed;
    --muted:      #64748b;
    --light:      #f8fafc;
    --border:     #e2e8f0;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --sh-sm: 0 1px 4px rgba(0,0,0,.06);
    --sh-md: 0 4px 16px rgba(0,0,0,.08);
    --sh-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Base ── */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #fff;
    color: var(--dark);
}

/* ── Navbar ── */
.navbar {
    background-color: #000 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    z-index: 1040;
    padding: 0.6rem 0;
}
.navbar-brand {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.navbar-brand:hover { color: #fbbf24 !important; }
.nav-link {
    color: rgba(255,255,255,.88) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.75rem !important;
    transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: #fff !important; }
.dropdown-menu {
    background: #111827;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-md);
    padding: 6px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.dropdown-item {
    color: rgba(255,255,255,.8);
    border-radius: var(--r-sm);
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background .15s;
}
.dropdown-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.dropdown-divider { border-color: rgba(255,255,255,.1); margin: 4px 8px; }
.btn-nav-cta {
    background: #f59e0b;
    color: #000 !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--r-sm);
    padding: 7px 16px !important;
    border: none;
    transition: background .2s, transform .2s;
    white-space: nowrap;
}
.btn-nav-cta:hover { background: #d97706; color: #000 !important; transform: translateY(-1px); }

/* ── Breadcrumb ── */
.breadcrumb-container {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.breadcrumb { background: transparent; margin: 0; padding: 0; font-size: 0.85rem; }
.breadcrumb-item { color: var(--muted); }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item + .breadcrumb-item::before { color: #cbd5e1; content: '/'; padding: 0 6px; }
.breadcrumb-item.active { color: var(--dark); font-weight: 500; }

/* ═══════════════════════════════════════════════
   SHARED PAGE COMPONENTS
═══════════════════════════════════════════════ */

/* ── Page Hero ── */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
    color: #fff;
    padding: 70px 0 60px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.7; }
.page-hero .eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fbbf24; margin-bottom: 10px; display: block; }
.hero-pill {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 3px;
}
.hero-info-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-lg);
    padding: 28px 22px;
}

/* ── Section Labels & Titles ── */
.sec-title { text-align: center; margin-bottom: 2.5rem; }
.sec-title h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.sec-title p { color: var(--muted); margin: 0; font-size: 1rem; }
.sec-label {
    display: inline-block;
    background: rgba(37,99,235,.1);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.sec-label-warn { background: rgba(245,158,11,.12); color: #b45309; }
.sec-label-green { background: rgba(22,163,74,.1); color: var(--success); }
.sec-label-red { background: rgba(220,38,38,.1); color: var(--danger); }

/* ── Cards ── */
.card-ds {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}
.card-ds:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.card-ds h5, .card-ds .card-title { font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.card-ds p, .card-ds .card-text { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin-bottom: 0; }

.card-light {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    height: 100%;
}

/* ── Feature Icons ── */
.fi {
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 14px;
    flex-shrink: 0;
}
.fi-blue   { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.fi-green  { background: linear-gradient(135deg, #16a34a, #4ade80); }
.fi-orange { background: linear-gradient(135deg, #f59e0b, #fcd34d); color: #1a1a1a !important; }
.fi-red    { background: linear-gradient(135deg, #dc2626, #f87171); }
.fi-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.fi-teal   { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.fi-dark   { background: linear-gradient(135deg, #0f172a, #334155); }
.fi-amber  { background: linear-gradient(135deg, #d97706, #fbbf24); color: #1a1a1a !important; }

/* ── Topic Pills ── */
.t-pill {
    display: inline-block;
    background: rgba(37,99,235,.08);
    color: var(--primary);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px;
}

/* ── Teaching Method Steps ── */
.method-step { text-align: center; }
.method-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    margin: 0 auto 12px;
}
.method-step h6 { font-weight: 700; color: var(--dark); font-size: 0.95rem; margin-bottom: 4px; }
.method-step p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.method-arrow { font-size: 1.5rem; color: #cbd5e1; align-self: center; margin-top: -20px; }

/* ── Check lists ── */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 5px 0; font-size: 0.92rem; color: #374151; display: flex; gap: 10px; align-items: flex-start; }
.check-list li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.check-list.green li i { color: var(--success); }

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
    color: #fff;
    padding: 70px 0;
}
.cta-section h2 { font-weight: 800; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 0; }

/* Subject-colored CTA variants */
.cta-blue   { background: linear-gradient(135deg, #1d4ed8, #0369a1); }
.cta-green  { background: linear-gradient(135deg, #166534, #0d9488); }
.cta-purple { background: linear-gradient(135deg, #5b21b6, #2563eb); }
.cta-amber  { background: linear-gradient(135deg, #92400e, #d97706); }

/* ── Accordion ── */
.accordion-item { border: 1px solid var(--border) !important; border-radius: var(--r-sm) !important; margin-bottom: 8px; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: 0.93rem; color: var(--dark); background: #fff; }
.accordion-button:not(.collapsed) { background: rgba(37,99,235,.04); color: var(--primary); box-shadow: none; }
.accordion-button::after { flex-shrink: 0; }
.accordion-body { color: var(--muted); font-size: 0.9rem; line-height: 1.7; background: #fff; }

/* ── Subject link cards (location pages) ── */
.subject-link-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.subject-link-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
    color: inherit;
    border-color: var(--primary);
}

/* ── Outcome stats ── */
.outcome-stat { text-align: center; }
.outcome-stat .num { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.outcome-stat p { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }

/* ── Footer ── */
.site-footer {
    background: #05070b;
    color: #dbeafe;
    overflow: hidden;
    position: relative;
}
.site-footer::before {
    background:
        radial-gradient(circle at 12% 20%, rgba(52,152,219,.2), transparent 24rem),
        radial-gradient(circle at 82% 12%, rgba(231,76,60,.14), transparent 22rem);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}
.site-footer-inner {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0,1.3fr) repeat(3,minmax(140px,.6fr));
    padding: 3.5rem 0 2rem;
    position: relative;
    z-index: 1;
}
.footer-brand {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 800;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    text-decoration: none;
}
.footer-brand:hover { color: #fbbf24; }
.footer-brand-mark {
    align-items: center;
    background: linear-gradient(135deg, #3498db, #27ae60);
    border-radius: 8px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
    flex-shrink: 0;
}
.footer-copy { color: #94a3b8; line-height: 1.7; margin: 0; font-size: 0.88rem; max-width: 280px; }
.footer-heading { color: #fff; font-size: 0.8rem; font-weight: 800; letter-spacing: .08em; margin-bottom: 0.9rem; text-transform: uppercase; }
.footer-list { display: grid; gap: 0.55rem; list-style: none; margin: 0; padding: 0; }
.footer-list a, .footer-list span { color: #94a3b8; text-decoration: none; font-size: 0.88rem; transition: color .2s; }
.footer-list a:hover { color: #fff; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.footer-social {
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 1.05rem;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    transition: background .2s, transform .2s;
    width: 40px;
}
.footer-social:hover { background: #fff; color: #05070b; transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
}

/* ── Mobile responsive ── */
@media (max-width: 991px) {
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
    .page-hero { padding: 50px 0 45px; }
}
@media (max-width: 575px) {
    body { font-size: 16px; }
    .navbar-brand { font-size: 0.95rem; max-width: calc(100vw - 100px); white-space: normal; line-height: 1.2; }
    .nav-link { font-size: 1rem; padding-bottom: 0.65rem !important; padding-top: 0.65rem !important; }
    .site-footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { display: grid; }
    .btn-nav-cta { display: none; }
}
