/* Maths Clinic — Brand UI (logo: blue + green) */
:root {
    --mc-blue: #2196f3;
    --mc-blue-dark: #1565c0;
    --mc-blue-light: #e3f2fd;
    --mc-green: #8bc34a;
    --mc-green-dark: #558b2f;
    --mc-green-light: #f1f8e9;
    --mc-orange: #ff9800;
    --mc-dark: #1a2b3c;
    --mc-muted: #64748b;
    --mc-bg: #f8fafb;
    --mc-white: #ffffff;
    --mc-radius: 16px;
    --mc-radius-lg: 24px;
    --mc-shadow: 0 4px 24px rgba(33, 150, 243, 0.08);
    --mc-shadow-lg: 0 12px 40px rgba(26, 43, 60, 0.12);
    --mc-gradient: linear-gradient(135deg, #2196f3 0%, #42a5f5 45%, #8bc34a 100%);
    --mc-gradient-soft: linear-gradient(180deg, #e3f2fd 0%, #f1f8e9 100%);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: var(--mc-white);
    color: var(--mc-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Navbar ─── */
.mc-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(33, 150, 243, 0.1);
    padding: 0.5rem 0;
    transition: box-shadow 0.3s;
}
.mc-navbar.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }

.navbar-brand.mc-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mc-brand-logo {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
@media (max-width: 576px) {
    .mc-brand-logo { height: 42px; max-width: 160px; }
}

.mc-navbar .nav-link {
    color: var(--mc-dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.mc-navbar .nav-link:hover,
.mc-navbar .nav-link.active {
    color: var(--mc-blue);
    background: var(--mc-blue-light);
}

.navbar-toggler {
    border: none;
    padding: 0.35rem 0.5rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25); }

/* ─── Buttons ─── */
.btn-mc-primary {
    background: linear-gradient(135deg, var(--mc-blue) 0%, var(--mc-blue-dark) 100%);
    border: none;
    color: #fff !important;
    border-radius: 50px;
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-mc-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.45);
    color: #fff !important;
}

.btn-mc-green {
    background: linear-gradient(135deg, var(--mc-green) 0%, var(--mc-green-dark) 100%);
    border: none;
    color: #fff !important;
    border-radius: 50px;
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(139, 195, 74, 0.35);
}
.btn-mc-green:hover { color: #fff !important; transform: translateY(-2px); }

.btn-mc-outline {
    border: 2px solid var(--mc-blue);
    color: var(--mc-blue) !important;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}
.btn-mc-outline:hover {
    background: var(--mc-blue);
    color: #fff !important;
}

.btn-mc-outline-green {
    border: 2px solid var(--mc-green);
    color: var(--mc-green-dark) !important;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
}
.btn-mc-outline-green:hover {
    background: var(--mc-green);
    color: #fff !important;
}

/* ─── Hero ─── */
.hero-section {
    background: var(--mc-gradient-soft);
    position: relative;
    overflow: hidden;
    padding: 3rem 0 4rem;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.15) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid rgba(33, 150, 243, 0.2);
    color: var(--mc-blue-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: var(--mc-shadow);
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--mc-dark);
}
.hero-title .text-blue { color: var(--mc-blue); }
.hero-title .text-green { color: var(--mc-green-dark); }

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--mc-muted);
    max-width: 520px;
}
.hero-tagline .fear { color: var(--mc-blue); font-weight: 600; }
.hero-tagline .confidence { color: var(--mc-green-dark); font-weight: 600; }

.hero-logo-wrap {
    background: #fff;
    border-radius: var(--mc-radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--mc-shadow-lg);
    text-align: center;
}
.hero-logo-wrap img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.hero-stats .stat-item {
    background: #fff;
    border-radius: var(--mc-radius);
    padding: 0.85rem 1.15rem;
    box-shadow: var(--mc-shadow);
    border-left: 4px solid var(--mc-blue);
    min-width: 100px;
}
.hero-stats .stat-item:nth-child(2) { border-left-color: var(--mc-green); }
.hero-stats .stat-item:nth-child(3) { border-left-color: var(--mc-orange); }
.hero-stats .stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mc-dark);
    line-height: 1.2;
}
.hero-stats .stat-label { font-size: 0.75rem; color: var(--mc-muted); }

/* Math symbols floating decoration */
.math-float {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.15;
    pointer-events: none;
}
.math-float.m1 { top: 15%; left: 5%; color: var(--mc-blue); }
.math-float.m2 { top: 25%; right: 8%; color: var(--mc-green); }
.math-float.m3 { bottom: 20%; left: 10%; color: var(--mc-orange); }

/* ─── Sections ─── */
.section-padding { padding: 4rem 0; }
.section-bg { background: var(--mc-bg); }

.section-title {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--mc-dark);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--mc-gradient);
    border-radius: 2px;
    margin: 0.5rem auto 0;
}
.text-center .section-title::after { margin-left: auto; margin-right: auto; }

.section-sub { color: var(--mc-muted); font-size: 1rem; }

/* ─── Feature cards ─── */
.feature-pill {
    background: #fff;
    border-radius: var(--mc-radius);
    padding: 1.5rem;
    height: 100%;
    border: 1px solid rgba(33, 150, 243, 0.08);
    box-shadow: var(--mc-shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-pill:hover {
    transform: translateY(-6px);
    box-shadow: var(--mc-shadow-lg);
    border-color: rgba(139, 195, 74, 0.3);
}
.feature-pill .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.icon-blue { background: var(--mc-blue-light); color: var(--mc-blue); }
.icon-green { background: var(--mc-green-light); color: var(--mc-green-dark); }
.icon-mixed { background: linear-gradient(135deg, var(--mc-blue-light), var(--mc-green-light)); color: var(--mc-blue-dark); }

/* ─── Mission visuals ─── */
.mission-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 52%, #f1f8e9 100%);
    border: 1px solid rgba(33, 150, 243, 0.1);
    border-radius: var(--mc-radius-lg);
    box-shadow: var(--mc-shadow-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
}
.mini-mission {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--mc-shadow);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    font-weight: 700;
}
.mini-mission i { color: var(--mc-blue); font-size: 1.15rem; }
.mission-teaser-img,
.mission-about-img,
.mission-poster {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--mc-shadow-lg);
}
.mission-teaser-img {
    max-height: 380px;
    object-fit: cover;
    object-position: top;
}
.e-study-visual {
    min-height: 360px;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 20%, rgba(33, 150, 243, 0.2), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(139, 195, 74, 0.24), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #e3f2fd 58%, #f1f8e9 100%);
    border: 1px solid rgba(33, 150, 243, 0.12);
    box-shadow: var(--mc-shadow-lg);
}
.study-screen {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 155px;
    border-radius: 22px;
    background: #0f4fb8;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 22px 48px rgba(21, 101, 192, 0.25);
}
.study-screen::after {
    content: '';
    position: absolute;
    width: 285px;
    height: 20px;
    border-radius: 999px;
    background: #1a2b3c;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
}
.study-screen i { font-size: 3.2rem; }
.screen-line {
    position: absolute;
    left: 42px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}
.line-one { width: 146px; bottom: 38px; }
.line-two { width: 96px; bottom: 22px; background: rgba(139, 195, 74, 0.9); }
.study-badge {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--mc-blue-dark);
    font-size: 1.6rem;
    box-shadow: var(--mc-shadow);
}
.badge-book { left: 11%; bottom: 14%; color: var(--mc-green-dark); }
.badge-calc { right: 11%; bottom: 16%; }
.badge-chart { right: 14%; top: 12%; color: var(--mc-green-dark); }
.study-symbol {
    position: absolute;
    font-weight: 800;
    color: var(--mc-blue-dark);
}
.symbol-pi { left: 14%; top: 16%; font-size: 2.4rem; color: #ef4444; }
.symbol-root { left: 23%; top: 34%; font-size: 1.8rem; }
.symbol-plus { right: 25%; top: 34%; font-size: 2.1rem; color: var(--mc-green-dark); }
.mission-about-img {
    max-height: 620px;
    object-fit: cover;
    object-position: top;
}
.founder-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(33, 150, 243, 0.1);
    border-radius: var(--mc-radius-lg);
    box-shadow: var(--mc-shadow-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
.founder-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 8px solid var(--mc-blue-light);
    box-shadow: var(--mc-shadow);
    overflow: hidden;
}
.founder-logo img {
    width: 145px;
    height: 145px;
    object-fit: contain;
}
.founder-story {
    position: relative;
    background: #fff;
    border: 1px solid rgba(33, 150, 243, 0.1);
    border-radius: var(--mc-radius-lg);
    box-shadow: var(--mc-shadow);
    padding: 1.5rem;
}
.founder-story-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--mc-blue-light);
    color: var(--mc-blue-dark);
    margin-bottom: 1rem;
}
.founder-story p {
    color: var(--mc-muted);
    margin-bottom: 0.85rem;
}
.founder-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mc-blue-light), var(--mc-green-light));
    color: var(--mc-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
}
.founder-chip i { color: var(--mc-blue-dark); }
.mission-poster-stack {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    align-items: end;
    gap: 1rem;
}
.mission-poster-main { max-height: 620px; object-fit: cover; object-position: top; }
.mission-poster-secondary { max-height: 520px; object-fit: cover; object-position: top; }
.mission-math-visual {
    min-height: 420px;
    border-radius: 34px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 25%, rgba(33, 150, 243, 0.18), transparent 30%),
        radial-gradient(circle at 75% 70%, rgba(139, 195, 74, 0.22), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #e3f2fd 55%, #f1f8e9 100%);
    border: 1px solid rgba(33, 150, 243, 0.12);
    box-shadow: var(--mc-shadow-lg);
}
.math-core {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--mc-gradient);
    box-shadow: 0 22px 60px rgba(33, 150, 243, 0.28);
    font-size: 4rem;
}
.math-orbit {
    position: absolute;
    inset: 50% auto auto 50%;
    border: 2px dashed rgba(21, 101, 192, 0.22);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
}
.math-orbit-one { width: 300px; height: 300px; }
.math-orbit-two { width: 380px; height: 220px; transform: translate(-50%, -50%) rotate(22deg); }
.math-chip {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: var(--mc-shadow);
    color: var(--mc-blue-dark);
    font-size: 1.7rem;
    font-weight: 800;
}
.chip-plus { top: 16%; left: 22%; color: var(--mc-blue); }
.chip-pi { top: 18%; right: 20%; color: #ef4444; }
.chip-percent { bottom: 20%; left: 18%; color: var(--mc-green-dark); }
.chip-equals { bottom: 18%; right: 24%; color: var(--mc-blue-dark); }
.math-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--mc-shadow);
    font-weight: 700;
}
.math-card i { color: var(--mc-green-dark); }
.math-card-left { left: 8%; bottom: 8%; }
.math-card-right { right: 8%; top: 8%; }
.mission-steps {
    display: grid;
    gap: 0.85rem;
}
.mission-step {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(33, 150, 243, 0.08);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--mc-shadow);
}
.mission-step span {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mc-blue-light);
    color: var(--mc-blue-dark);
    flex: 0 0 auto;
}
.mission-step small {
    display: block;
    color: var(--mc-muted);
}

/* ─── Course / Test cards ─── */
.course-card, .test-card {
    border: none;
    border-radius: var(--mc-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--mc-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}
.course-card:hover, .test-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--mc-shadow-lg);
}

.course-card .card-visual {
    height: 140px;
    background: var(--mc-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.course-card .card-visual i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
}
.course-card .card-body,
.test-card .card-body { padding: 1.25rem; }

.price-tag {
    font-weight: 700;
    color: var(--mc-blue);
    font-size: 1.1rem;
}

/* ─── Testimonials ─── */
.testimonial-card {
    background: #fff;
    border-radius: var(--mc-radius);
    padding: 1.5rem;
    height: 100%;
    border: 1px solid #e8f0fe;
    box-shadow: var(--mc-shadow);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: var(--mc-blue-light);
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-card .stars { color: #ffc107; font-size: 0.9rem; }
.testimonial-card .quote { padding-top: 1.5rem; font-size: 0.95rem; color: var(--mc-muted); }

/* ─── FAQ ─── */
.faq-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
    background: #fff;
}
.faq-item .accordion-button {
    font-weight: 600;
    color: var(--mc-dark);
    background: #fff;
    box-shadow: none !important;
}
.faq-item .accordion-button:not(.collapsed) {
    background: var(--mc-blue-light);
    color: var(--mc-blue-dark);
}

/* ─── CTA ─── */
.cta-section {
    background: var(--mc-gradient);
    color: #fff;
    border-radius: var(--mc-radius-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: 'π';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.08;
    font-weight: 800;
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
    background: var(--mc-gradient-soft);
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}
.page-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--mc-dark);
    margin: 0;
}
.page-hero .breadcrumb {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}
.page-hero .breadcrumb a { color: var(--mc-blue); text-decoration: none; }

/* ─── Forms / Auth cards ─── */
.mc-auth-card {
    border: none;
    border-radius: var(--mc-radius-lg);
    box-shadow: var(--mc-shadow-lg);
    overflow: hidden;
}
.mc-auth-card .card-header-bar {
    background: var(--mc-gradient);
    padding: 1.5rem;
    text-align: center;
}
.mc-auth-card .card-header-bar img {
    max-height: 80px;
    width: auto;
}
.form-control, .form-select {
    border-radius: 10px;
    border-color: #e2e8f0;
    padding: 0.6rem 0.85rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--mc-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

/* ─── Floating contact buttons (WhatsApp + enquiry form) ─── */
.floating-contact {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.floating-contact-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    font-size: 1.25rem;
    box-shadow: 0 10px 26px rgba(26, 43, 60, 0.24);
    transition: transform 0.2s, box-shadow 0.2s;
}
.floating-contact-link:hover {
    transform: translateX(-4px);
    box-shadow: 0 14px 30px rgba(26, 43, 60, 0.3);
    color: #fff !important;
}
.floating-contact-message {
    background: linear-gradient(135deg, var(--mc-blue) 0%, var(--mc-blue-dark) 100%);
}
.floating-contact-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

#enquiry-form {
    scroll-margin-top: 6rem;
}

/* ─── Footer ─── */
.mc-footer {
    background: linear-gradient(180deg, #1a2b3c 0%, #0f1923 100%);
    color: rgba(255, 255, 255, 0.85);
}
.mc-footer .footer-logo {
    max-height: 70px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: brightness(1.05);
}
.mc-footer .brand-tagline {
    font-size: 0.9rem;
}
.mc-footer .brand-tagline .fear { color: #64b5f6; }
.mc-footer .brand-tagline .confidence { color: #aed581; }

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--mc-green); }

.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    margin-right: 0.5rem;
    transition: background 0.2s;
}
.footer-social a:hover { background: var(--mc-blue); }

/* ─── Alerts ─── */
.alert-success {
    background: var(--mc-green-light);
    border-color: var(--mc-green);
    color: var(--mc-green-dark);
    border-radius: 12px;
}

/* ─── Exam / Dashboard ─── */
.exam-container { max-width: 900px; margin: 0 auto; }
.timer-badge {
    background: #ffebee;
    color: #c62828;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.dashboard-stat {
    background: #fff;
    border-radius: var(--mc-radius);
    padding: 1.25rem;
    border-left: 4px solid var(--mc-blue);
    box-shadow: var(--mc-shadow);
    height: 100%;
    text-align: center;
}
.dashboard-stat.green { border-left-color: var(--mc-green); }
.dashboard-stat .value { font-size: 1.75rem; font-weight: 800; color: var(--mc-dark); }

/* ─── Utilities ─── */
.text-blue { color: var(--mc-blue) !important; }
.text-green { color: var(--mc-green-dark) !important; }
.bg-mc-light { background: var(--mc-bg) !important; }

.lazy-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 640px;
}

/* Mobile nav collapse */
@media (max-width: 991px) {
    .mc-navbar .navbar-collapse {
        background: #fff;
        border-radius: var(--mc-radius);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--mc-shadow-lg);
    }
    .hero-section { padding: 2rem 0 3rem; }
    .hero-logo-wrap { margin-top: 1.5rem; padding: 1rem; }
    .section-padding { padding: 2.5rem 0; }
    .mission-poster-stack { grid-template-columns: 1fr; }
    .mission-poster-secondary { display: none; }
    .mission-math-visual { min-height: 340px; }
    .math-orbit-two { width: 320px; }
}

@media (max-width: 576px) {
    .hero-stats .stat-item { flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
    .btn-mc-primary, .btn-mc-outline { width: 100%; text-align: center; }
    .d-flex.flex-wrap.gap-3.hero-btns { flex-direction: column; }
    .floating-contact {
        right: 0.75rem;
        gap: 0.55rem;
    }
    .floating-contact-link {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* ─── Exam Boards & Syllabus (Bootstrap cards + modals) ─── */
.exam-boards-section {
    position: relative;
    overflow: hidden;
}
.exam-boards-section:not(.exam-boards-compact) {
    /*background: linear-gradient(180deg, #f8fafb 0%, #eef6ff 50%, #f4fbf0 100%);*/
}
.exam-boards-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.boards-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
}
.boards-orb-1 { width: 280px; height: 280px; top: -60px; left: -40px; background: rgba(33, 150, 243, 0.2); }
.boards-orb-2 { width: 240px; height: 240px; bottom: -30px; right: -30px; background: rgba(139, 195, 74, 0.18); }

.boards-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border: 1px solid rgba(33, 150, 243, 0.12);
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    box-shadow: var(--mc-shadow);
    font-size: 0.875rem;
    color: var(--mc-muted);
}
.boards-stat-pill strong { color: var(--mc-dark); font-weight: 800; }
.boards-stat-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Region nav pills */
.boards-nav-pills .nav-link {
    border-radius: 50px !important;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mc-muted);
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s ease;
}
.boards-nav-pills .nav-link:hover {
    color: var(--mc-blue);
    border-color: var(--mc-blue-light);
    background: var(--mc-blue-light);
}
.boards-nav-pills .nav-link.active {
    background: var(--mc-gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
}
.boards-nav-pills .nav-link.active .badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

/* Clickable board cards */
.board-select-card {
    border-radius: var(--mc-radius-lg) !important;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.board-select-card:hover,
.board-select-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--mc-shadow-lg) !important;
    outline: none;
}
.board-select-card-top {
    height: 4px;
    background: var(--mc-gradient);
}
.board-select-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mc-blue-light), var(--mc-green-light));
    border: 1px solid rgba(33, 150, 243, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mc-blue-dark);
    font-size: 1.2rem;
}
.board-select-icon-lg {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
}
.board-select-title {
    font-size: 1rem;
    color: var(--mc-dark);
    line-height: 1.35;
}
.board-meta-badge {
    background: var(--mc-blue-light) !important;
    color: var(--mc-blue-dark) !important;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.35em 0.65em;
}
.board-select-footer {
    border-color: #eef2f7 !important;
}

/* Modal */
.board-detail-modal .modal-content {
    border-radius: var(--mc-radius-lg);
    overflow: hidden;
}
.board-modal-header {
    background: linear-gradient(135deg, #f8fbff 0%, #f6fbf2 100%);
    padding: 1.25rem 1.5rem 0.75rem;
}
.board-detail-modal .modal-body {
    padding: 1rem 1.5rem 1.25rem;
}
.board-detail-modal .modal-footer {
    padding: 0 1.5rem 1.25rem;
    gap: 0.5rem;
}

/* Syllabus accordion inside modal */
.board-syllabus-accordion .accordion-button {
    font-size: 0.9rem;
    background: #fff;
    box-shadow: none !important;
}
.board-syllabus-accordion .accordion-button:not(.collapsed) {
    background: var(--mc-blue-light);
    color: var(--mc-blue-dark);
}
.board-syllabus-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(33, 150, 243, 0.2);
}

.exam-boards-compact .board-select-icon { width: 46px; height: 46px; font-size: 1.05rem; }

@media (max-width: 767px) {
    .boards-nav-pills {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 0.35rem;
        scrollbar-width: none;
    }
    .boards-nav-pills::-webkit-scrollbar { display: none; }
    .boards-nav-pills .nav-item { flex-shrink: 0; }
    .boards-stat-pill { font-size: 0.8rem; }
}

@media (max-width: 576px) {
    .board-detail-modal .modal-dialog { margin: 0.75rem; }
    .board-modal-header { padding: 1rem 1rem 0.5rem; }
    .board-detail-modal .modal-body,
    .board-detail-modal .modal-footer { padding-left: 1rem; padding-right: 1rem; }
}
