/* ==========================================================================
   BaitUlHudaQuranAcademy — public site styles
   Palette: deep emerald, ivory, restrained gold, charcoal.
   ========================================================================== */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Amiri";
    src: url("../fonts/amiri-arabic.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
    --emerald-900: #0B3B2E;
    --emerald-800: #0F4C3A;
    --emerald-700: #14614A;
    --emerald-600: #1B7A5C;
    --emerald-100: #E3EFE9;
    --emerald-50: #F0F6F2;
    --ivory: #FBF8F1;
    --ivory-dark: #F4EFE3;
    --white: #FFFFFF;
    --gold: #B8913A;
    --gold-light: #D9BE7C;
    --gold-dark: #8A6A22;
    --charcoal: #1F2421;
    --muted: #4F5A55;
    --border: #E6DFCF;
    --border-strong: #D3C9B2;
    --error: #A3261B;
    --error-bg: #FCEEEC;
    --success: #1B6B45;

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-arabic: "Amiri", "Traditional Arabic", "Scheherazade New", serif;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 76, 58, .06), 0 1px 3px rgba(15, 76, 58, .05);
    --shadow: 0 2px 6px rgba(15, 76, 58, .05), 0 12px 32px -12px rgba(15, 76, 58, .16);
    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-space: clamp(3.5rem, 8vw, 6rem);
    --header-height: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 1rem); }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--ivory);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
    margin: 0 0 .6em;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--emerald-900);
    letter-spacing: -.005em;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--emerald-700); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--emerald-900); }
strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main:focus { outline: none; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -100px;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--emerald-900);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.narrow { max-width: 820px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon-lg { width: 2.25rem; height: 2.25rem; }
.icon-xl { width: 4rem; height: 4rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 44px;
    padding: .7rem 1.35rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: .975rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .85rem 1.75rem; font-size: 1.025rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--emerald-800); color: var(--white); }
.btn-primary:hover { background: var(--emerald-900); color: var(--white); }
.btn-outline { border-color: var(--emerald-800); color: var(--emerald-800); background: transparent; }
.btn-outline:hover { background: var(--emerald-800); color: var(--white); }
.btn-ghost { color: var(--emerald-800); background: var(--emerald-50); }
.btn-ghost:hover { background: var(--emerald-100); color: var(--emerald-900); }
.btn-whatsapp { background: var(--emerald-600); color: var(--white); }
.btn-whatsapp:hover { background: var(--emerald-700); color: var(--white); }
.btn-gold { background: var(--gold-light); color: var(--emerald-900); }
.btn-gold:hover { background: #E6CF97; color: var(--emerald-900); }
.btn-light { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn-light:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button-row-center { justify-content: center; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4em;
    font-weight: 600; text-decoration: none;
}
.link-arrow .icon { width: 1.1em; height: 1.1em; }
.link-arrow:hover { text-decoration: underline; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    margin-bottom: .9rem;
    font-size: .8rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-dark);
}
.eyebrow::before {
    content: "";
    width: 1.75rem; height: 1px;
    background: currentColor;
}
.eyebrow-light { color: var(--gold-light); }

/* ---------- Announcement & header ---------- */
.announcement {
    background: var(--emerald-900);
    color: var(--ivory);
    font-size: .9rem;
    text-align: center;
}
.announcement-inner { padding-block: .55rem; }
.announcement p { margin: 0; }
.announcement a { color: var(--ivory); text-decoration: none; }
.announcement a:hover { text-decoration: underline; color: var(--white); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 248, 241, .97);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
}
.brand {
    display: inline-flex; align-items: center; gap: .7rem;
    text-decoration: none; color: var(--emerald-900);
    min-width: 0;
}
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-logo { max-height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-line1 { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.brand-line2 { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); margin-top: .2rem; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
    display: block;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
}
.nav-list a:hover { color: var(--emerald-700); }
.nav-list a[aria-current="page"] { color: var(--emerald-800); }
.nav-actions { display: flex; gap: .6rem; align-items: center; }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--emerald-900);
    cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

@media (max-width: 1099.98px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        background: var(--ivory);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 24px -16px rgba(15, 76, 58, .25);
        padding: .5rem var(--gutter) 1.25rem;
    }
    .site-nav.is-open { display: block; }
    .nav-list a {
        padding: .85rem .25rem;
        border-bottom: 1px solid var(--border);
        font-size: 1.05rem;
    }
    .nav-list a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); padding-left: .85rem; }
    .nav-actions { flex-direction: column; align-items: stretch; margin-top: 1rem; }
    .nav-actions .btn { min-height: 48px; }
}
@media (min-width: 1100px) {
    .nav-toggle { display: none; }
    .site-nav { display: flex; align-items: center; gap: 1.75rem; }
    .nav-list { display: flex; gap: 1.5rem; }
    .nav-list a { padding: .5rem 0; position: relative; }
    .nav-list a[aria-current="page"]::after {
        content: ""; position: absolute; left: 0; right: 0; bottom: .1rem;
        height: 2px; background: var(--gold);
    }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 1.25rem; font-size: .875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--emerald-800); }
.breadcrumbs [aria-current] { color: var(--charcoal); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-space); }
.section-first { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section-tint { background: var(--ivory-dark); }
.section-pattern {
    background-color: var(--emerald-50);
    background-image: url("../img/pattern-light.svg");
    background-size: 96px 96px;
}
.section-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head > div { max-width: 680px; }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.section-title { margin-bottom: .4em; }
.section-intro { color: var(--muted); font-size: 1.075rem; margin: 0; }

.prose { color: var(--charcoal); }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.prose-lg { font-size: 1.075rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem);
    background-color: var(--ivory);
    background-image: url("../img/pattern-light.svg");
    background-size: 96px 96px;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
    background: linear-gradient(to bottom, rgba(251, 248, 241, 0), var(--ivory));
    pointer-events: none;
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid; gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-copy h1 { margin-bottom: .45em; max-width: 14ch; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero-arch {
    width: min(100%, 420px);
    aspect-ratio: 480 / 560;
}
.hero-arch img { width: 100%; height: 100%; }
.hero-photo {
    width: min(100%, 480px);
    border-radius: 240px 240px var(--radius) var(--radius);
    border: 6px solid var(--white);
    box-shadow: var(--shadow);
    object-fit: cover;
}
.hero-verse {
    margin: 0;
    text-align: center;
    max-width: 420px;
}
.hero-verse blockquote { margin: 0; }
.hero-verse p {
    margin: 0;
    font-family: var(--font-arabic);
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.9;
    color: var(--emerald-800);
}
.hero-verse figcaption { font-size: .9rem; color: var(--muted); font-style: italic; }
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border);
    background-color: var(--ivory);
    background-image: url("../img/pattern-light.svg");
    background-size: 96px 96px;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); max-width: 20ch; margin-bottom: .35em; }
.page-intro { font-size: clamp(1.05rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 42rem; margin-bottom: 0; }
.course-hero { display: grid; gap: 2rem; align-items: center; }
.course-hero .button-row { margin-top: 1.75rem; }
.course-hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.course-hero-media { display: flex; justify-content: center; }
@media (min-width: 900px) {
    .course-hero { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Highlights strip ---------- */
.highlights { position: relative; z-index: 2; margin-top: clamp(-2.5rem, -4vw, -1.5rem); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.feature-grid-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature-grid-cards .feature {
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.feature-grid-strip {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-grid-strip .feature {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.feature-grid-strip .feature:last-child { border-bottom: 0; }
@media (min-width: 560px) {
    .feature-grid-strip .feature { border-bottom: 0; border-right: 1px solid var(--border); }
    .feature-grid-strip .feature:last-child { border-right: 0; }
}
@media (min-width: 560px) and (max-width: 999.98px) {
    .feature-grid-strip { grid-template-columns: 1fr 1fr; }
    .feature-grid-strip .feature:nth-child(2n) { border-right: 0; }
    .feature-grid-strip .feature:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (min-width: 1000px) {
    .feature-grid-strip { grid-template-columns: repeat(4, 1fr); }
}
.feature-grid-list { grid-template-columns: 1fr; }
.feature-grid-list .feature { display: flex; gap: 1rem; }
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--emerald-50);
    color: var(--emerald-700);
    border: 1px solid var(--emerald-100);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-title {
    margin-bottom: .3rem;
    font-family: var(--font-body);
    font-size: 1.05rem; font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0;
}
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-grid .prose { margin-bottom: 1.25rem; }
@media (min-width: 900px) {
    .about-grid { grid-template-columns: 1.3fr 1fr; }
}
.mission-card {
    position: relative;
    padding: clamp(2rem, 4vw, 2.75rem);
    background-color: var(--emerald-800);
    background-image: url("../img/pattern-dark.svg");
    background-size: 96px 96px;
    color: var(--ivory);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.mission-mark { width: 56px; height: 56px; margin-bottom: 1.25rem; }
.mission-label {
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-light); margin-bottom: .5rem;
}
.mission-text { font-family: var(--font-heading); font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.35; margin: 0; }

/* ---------- Courses ---------- */
.course-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.course-card {
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.course-media {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9;
    background-color: var(--emerald-800);
    background-image: url("../img/pattern-dark.svg");
    background-size: 72px 72px;
}
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-emblem {
    display: inline-flex; align-items: center; justify-content: center;
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--ivory);
    color: var(--emerald-800);
    border: 2px solid var(--gold-light);
}
.course-emblem-lg {
    width: min(70vw, 240px); height: min(70vw, 240px);
    border-width: 3px;
    box-shadow: 0 0 0 12px var(--emerald-50), var(--shadow);
}
.course-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.course-level {
    margin-bottom: .4rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold-dark);
}
.course-title { font-size: 1.5rem; margin-bottom: .5rem; }
.course-title a { color: inherit; text-decoration: none; }
.course-title a:hover { color: var(--emerald-700); text-decoration: underline; }
.course-summary { color: var(--muted); font-size: .95rem; flex: 1; }
.course-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }

.course-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) {
    .course-layout { grid-template-columns: 1.6fr 1fr; }
    .course-aside { position: sticky; top: calc(var(--header-height) + 1.5rem); }
}
.course-aside { display: grid; gap: 1.25rem; }
.course-facts {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.course-facts div { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.course-facts div:last-child { border-bottom: 0; }
.course-facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); }
.course-facts dd { margin: .15rem 0 0; }
.aside-card {
    padding: 1.75rem;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius);
}
.aside-card h2, .aside-card h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.aside-card p { color: var(--muted); }
.aside-card .btn + .btn { margin-top: .6rem; }
.aside-note { margin: 1rem 0 0; font-size: .875rem; }

/* ---------- Steps ---------- */
.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    counter-reset: none;
}
.step {
    position: relative;
    padding: 2rem 1.5rem 1.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-bottom: 1.1rem;
    border-radius: 50%;
    background: var(--emerald-800);
    color: var(--ivory);
    font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
    box-shadow: 0 0 0 5px var(--emerald-50), 0 0 0 6px var(--gold-light);
}
.step-title { font-size: 1.4rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.mini-steps { list-style: none; margin: 0 0 1.75rem; padding: 0; counter-reset: mini; }
.mini-steps li {
    counter-increment: mini;
    position: relative;
    padding: 0 0 1.25rem 3rem;
}
.mini-steps li::before {
    content: counter(mini);
    position: absolute; left: 0; top: 0;
    width: 2rem; height: 2rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--emerald-800); color: var(--ivory);
    font-weight: 600; font-size: .9rem;
}
.mini-steps strong { display: block; color: var(--emerald-900); }
.mini-steps span { color: var(--muted); font-size: .95rem; }

/* ---------- Teachers ---------- */
.teacher-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.teacher-card {
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.teacher-photo, .teacher-avatar {
    width: 112px; height: 112px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    border: 3px solid var(--gold-light);
}
.teacher-photo { object-fit: cover; }
.teacher-avatar {
    display: flex; align-items: center; justify-content: center;
    background: var(--emerald-800); color: var(--ivory);
    font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700;
}
.teacher-name { font-size: 1.45rem; margin-bottom: .2rem; }
.teacher-subject { color: var(--gold-dark); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.teacher-qualifications { font-size: .9rem; color: var(--charcoal); }
.teacher-bio { font-size: .925rem; color: var(--muted); margin: 0; }

/* ---------- Fees ---------- */
.plan-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    align-items: stretch;
}
.plan {
    display: flex; flex-direction: column;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.plan:only-child { justify-self: center; width: 100%; max-width: 30rem; }
.plan-highlighted { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan-name { font-size: 1.6rem; margin-bottom: .5rem; }
.plan-price { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 700; color: var(--emerald-800); margin-bottom: .1rem; line-height: 1.2; }
.plan-note { color: var(--muted); font-size: .9rem; }
.plan-features { list-style: none; padding: 0; margin: .5rem 0 1.75rem; flex: 1; }
.plan-features li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .95rem; }
.plan-features .icon { color: var(--emerald-600); margin-top: .2rem; width: 1.1em; height: 1.1em; }
.plan .btn { align-self: flex-start; }
.plan-footnote { margin: 1.5rem 0 0; text-align: center; color: var(--muted); font-size: .925rem; }
.fee-contact {
    display: flex; gap: 1.25rem; align-items: flex-start;
    max-width: 760px; margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.fee-contact-text { font-size: 1.075rem; }
@media (max-width: 479.98px) {
    .fee-contact { flex-direction: column; }
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.testimonial {
    height: 100%;
    margin: 0;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column;
}
.testimonial-mark { width: 2rem; height: 2rem; color: var(--gold); margin-bottom: 1rem; }
.testimonial blockquote { margin: 0 0 1.25rem; flex: 1; font-size: 1.025rem; }
.testimonial-name { display: block; font-weight: 600; color: var(--emerald-900); }
.testimonial-detail { display: block; font-size: .875rem; color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
    .faq-layout { grid-template-columns: 1fr 1.6fr; gap: 4rem; }
}
.faq-list { border-top: 1px solid var(--border-strong); }
.faq { border-bottom: 1px solid var(--border-strong); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.25rem .25rem;
    font-weight: 600; font-size: 1.05rem;
    color: var(--emerald-900);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--emerald-700); }
.faq-icon {
    width: 1.5rem; height: 1.5rem; padding: .2rem;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--emerald-700);
    transition: transform .2s ease;
}
.faq[open] .faq-icon { transform: rotate(45deg); background: var(--emerald-800); color: var(--ivory); border-color: var(--emerald-800); }
.faq-answer { padding: 0 2.5rem 1.25rem .25rem; color: var(--muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-answer h3 { font-size: 1.2rem; }
.faq-more { margin-top: 2rem; text-align: center; color: var(--muted); }

/* ---------- Admission & forms ---------- */
.section-admission {
    background-color: var(--emerald-800);
    background-image: url("../img/pattern-dark.svg");
    background-size: 96px 96px;
    color: var(--ivory);
}
.admission-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) {
    .admission-grid { grid-template-columns: .9fr 1.3fr; }
    .admission-intro { position: sticky; top: calc(var(--header-height) + 2rem); }
}
.admission-intro .section-title { color: var(--white); }
.admission-intro p { color: rgba(251, 248, 241, .86); font-size: 1.075rem; }
.admission-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.admission-points li { display: flex; gap: .7rem; align-items: center; padding: .35rem 0; }
.admission-points .icon { color: var(--gold-light); }

.admission-page { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 960px) {
    .admission-page { grid-template-columns: 1.5fr 1fr; }
}
.admission-aside h2 { font-size: 1.75rem; }

.form-card {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--white);
    color: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .field-full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; font-size: .925rem; color: var(--charcoal); }
.required { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input:not([type="checkbox"]), .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: .7rem .9rem;
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("../img/chevron-down.svg");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 16px 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--emerald-700);
    box-shadow: 0 0 0 3px rgba(27, 122, 92, .2);
}
.field input::placeholder, .field textarea::placeholder { color: #7D8782; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(163, 38, 27, .18); }
.field-hint { margin: 0; font-size: .85rem; color: var(--muted); }
.field-error { margin: 0; font-size: .875rem; font-weight: 500; color: var(--error); }
.field-check {
    display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem;
    align-items: start;
    margin-top: 1.25rem;
}
.field-check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--emerald-800); }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--muted); }
.field-check .field-error { grid-column: 2; }
.field-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.alert {
    margin-bottom: 1.25rem;
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
    font-size: .95rem;
}
.alert p { margin: 0; }
.alert-error { background: var(--error-bg); border-color: var(--error); color: #7A1D14; }
.alert:focus { outline: 3px solid var(--gold); }
.inquiry-form { position: relative; }

/* ---------- Contact ---------- */
.contact-cards {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.contact-card {
    display: flex; gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.contact-card h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--charcoal); margin-bottom: .25rem; letter-spacing: 0; }
.contact-card p { color: var(--muted); font-size: .95rem; margin-bottom: .75rem; }
.contact-card > div { min-width: 0; }
.contact-social { margin-top: 2rem; text-align: center; }
.contact-social h3 { font-size: 1.3rem; }

.social-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.social-list a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(251, 248, 241, .3);
    color: var(--ivory);
}
.social-list a:hover { background: rgba(251, 248, 241, .1); color: var(--white); }
.social-list-light { justify-content: center; }
.social-list-light a { border-color: var(--border-strong); color: var(--emerald-800); background: var(--white); }
.social-list-light a:hover { background: var(--emerald-50); color: var(--emerald-900); }

/* ---------- CTA band ---------- */
.cta-band {
    padding-block: clamp(3rem, 7vw, 4.5rem);
    background-color: var(--emerald-900);
    background-image: url("../img/pattern-dark.svg");
    background-size: 96px 96px;
    color: var(--ivory);
}
.cta-band-inner { display: grid; gap: 1.5rem 3rem; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(251, 248, 241, .85); max-width: 40rem; }
@media (min-width: 900px) {
    .cta-band-inner { grid-template-columns: 1fr auto; }
}

/* ---------- Empty / error / thank-you ---------- */
.empty-state {
    padding: 2.5rem;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}
.error-page { padding-block: clamp(3rem, 10vw, 7rem); }
.error-page .button-row { margin-top: 2rem; }
.error-subheading { font-size: 1.5rem; margin-top: 2.5rem; }
.link-list { padding-left: 1.2em; }
.link-list li { margin-bottom: .35rem; }
.thank-you { padding-block: clamp(3rem, 8vw, 6rem); }
.thank-you-card {
    padding: clamp(2rem, 6vw, 3.5rem);
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.thank-you-card .page-intro { margin: 0 auto 1.5rem; }
.thank-you-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--emerald-800); color: var(--ivory);
    box-shadow: 0 0 0 6px var(--emerald-50), 0 0 0 7px var(--gold-light);
}

/* ---------- Promotions (Capital Minds, Settings → Promotions) ---------- */
.promo-strip {
    background: var(--ivory-dark);
    border-top: 1px solid var(--border);
    padding-block: clamp(1.75rem, 4vw, 2.5rem);
}
.promo-label {
    margin: 0 0 .75rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted);
}
.promo-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) {
    .promo-grid { grid-template-columns: 1fr 1fr; }
    .promo-grid-single { grid-template-columns: minmax(0, 760px); }
}
.promo-card {
    --promo-accent: #6CB4FF;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 1.4rem 1.5rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(108, 180, 255, .18);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(108, 180, 255, .16), transparent 55%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 22px,
        #0E1A2B;
    color: #C9D5E6;
    font-family: var(--font-body);
}
.promo-chart {
    position: absolute; top: 1rem; right: 1rem;
    width: 120px; height: auto;
    color: var(--promo-accent); opacity: .45;
}
.promo-eyebrow {
    margin: 0 0 .35rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--promo-accent);
}
.promo-heading {
    position: relative;
    margin: 0 0 .5rem; max-width: 22rem;
    font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: 0;
    color: #FFFFFF;
}
.promo-text { position: relative; margin: 0 0 1.1rem; max-width: 34rem; font-size: .95rem; line-height: 1.55; }
.promo-button {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: .4rem;
    min-height: 44px; padding: .6rem 1.1rem;
    border-radius: 999px;
    background: var(--promo-accent); color: #0B1422;
    font-weight: 600; font-size: .95rem; text-decoration: none;
}
.promo-button:hover { background: #FFFFFF; color: #0B1422; }
.promo-button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--charcoal);
    color: rgba(251, 248, 241, .78);
    font-size: .95rem;
    padding-top: clamp(3rem, 7vw, 4.5rem);
}
.site-footer a { color: rgba(251, 248, 241, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid {
    display: grid; gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    padding-bottom: 3rem;
}
@media (min-width: 1000px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; }
}
.footer-brand .brand { color: var(--ivory); margin-bottom: 1.1rem; }
.footer-brand .brand-line2 { color: var(--gold-light); }
.footer-brand p { max-width: 24rem; }
.footer-heading {
    font-family: var(--font-body);
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .3rem 0; }
.footer-contact li, .footer-contact a { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .2rem; width: 1.1em; height: 1.1em; color: var(--gold-light); }
.footer-contact span { min-width: 0; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(251, 248, 241, .12); font-size: .875rem; }
.footer-bottom-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem;
    padding-block: 1.25rem;
    padding-bottom: calc(1.25rem + 4.5rem);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-credit { color: rgba(251, 248, 241, .6); }
.footer-credit a { color: var(--gold-light); font-weight: 500; }
.footer-heart { font-size: .85em; }
@media (min-width: 768px) {
    .footer-bottom-inner { padding-bottom: 1.25rem; padding-right: 11rem; }
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 56px; padding: .9rem;
    border-radius: 999px;
    background: var(--emerald-700);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(11, 59, 46, .35);
    border: 2px solid var(--white);
}
.whatsapp-float .icon { width: 26px; height: 26px; }
.whatsapp-float:hover { background: var(--emerald-900); color: var(--white); }
.whatsapp-float-label { display: none; }
@media (min-width: 768px) {
    .whatsapp-float { right: 1.5rem; bottom: 1.5rem; padding: .8rem 1.25rem .8rem 1rem; }
    .whatsapp-float-label { display: inline; }
}

/* ---------- Small screens ---------- */
@media (max-width: 479.98px) {
    :root { --header-height: 64px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-line1 { font-size: 1.25rem; }
    .brand-line2 { font-size: .6rem; letter-spacing: .16em; }
    .button-row .btn-lg { width: 100%; }
    .course-actions .btn { flex: 1 1 auto; }
    .faq-answer { padding-right: .25rem; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    .site-header, .announcement, .whatsapp-float, .cta-band, .nav-toggle, .inquiry-form, .promo-strip { display: none !important; }
    body { background: #fff; }
}
