/* Quran Kids Haven — colours taken from the logo: navy, gold, maroon */
:root {
  --navy: #0E2A56;
  --navy-2: #163A6E;
  --navy-deep: #0A1F42;
  --gold: #C39A4A;
  --gold-2: #D6B263;
  --gold-deep: #A57C2F;
  --gold-soft: #F6EBD3;
  --maroon: #8E1B2E;
  --ink: #1B2437;
  --muted: #5E6778;
  --line: #E9E3D6;
  --cream: #FBF8F1;
  --mist: #F3F6FB;
  --white: #fff;
  --shadow: 0 10px 30px rgba(14, 42, 86, .08);
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Caveat', 'Segoe Script', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: 80px 0; position: relative; }
.section-title { font-size: clamp(26px, 3vw, 34px); }
.section-sub { color: var(--muted); margin-top: -6px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--maroon); margin: 0 0 10px; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mobile-only { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; border-radius: 999px; font: 600 14px/1.2 var(--sans); border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #fff; box-shadow: 0 8px 20px rgba(195, 154, 74, .35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(195, 154, 74, .45); }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-xs { padding: 6px 16px; font-size: 11.5px; box-shadow: none; }
.btn-block { width: 100%; margin-top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(14, 42, 86, .08); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }
.brand-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy); line-height: 1.1; }
.brand-name em { font-style: normal; color: var(--maroon); }
.brand-tag { display: block; font-size: 10.5px; font-style: italic; color: var(--gold-deep); }
.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.main-nav a { position: relative; padding: 6px 0; font-size: 14px; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 30px; background: linear-gradient(180deg, #F2F5FB 0%, #F8F6EF 100%); }
.hero::before { content: ''; position: absolute; left: 0; bottom: 0; width: 62%; height: 150px; background: url(../img/mosque-skyline.svg) left bottom / auto 100% repeat-x; opacity: .08; }
.hero::after { content: ''; position: absolute; right: -60px; top: 40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 178, 99, .18), transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: end; }
.hero-copy { padding: 40px 0 130px; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.08; margin-bottom: 18px; }
.hero h1 span { display: block; }
.hero .lead { max-width: 480px; color: var(--muted); font-size: 15.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 22px; font-size: 12.5px; font-weight: 500; }
.chips span { display: inline-flex; align-items: center; gap: 8px; }
.chips i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); font-size: 12px; }
.hero-art { position: relative; display: flex; justify-content: flex-start; align-items: flex-end; min-height: 500px; padding-right: 140px; }
.frame-wrap { position: relative; width: min(410px, 100%); }
.hero-frame { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(14, 42, 86, .18)); }
.hero-leaves { position: absolute; left: -12%; right: -12%; bottom: -4px; width: 124%; pointer-events: none; }
.lantern { position: absolute; transform-origin: top center; animation: sway 5s ease-in-out infinite; }
.hero-art .l1 { left: -40px; top: 0; width: 30px; }
.hero-art .l2 { right: 70px; top: -30px; width: 40px; animation-delay: -1.5s; }
.hero-art .l3 { right: 20px; top: 10px; width: 30px; animation-delay: -3s; }
.script-note { font-family: var(--script); font-size: 30px; font-weight: 500; line-height: 1.05; color: var(--navy); text-align: center; transform: rotate(-8deg); margin: 0; }
.script-note i { display: block; margin-top: 6px; font-size: 15px; color: var(--maroon); }
.hero .script-note { position: absolute; right: 0; top: 42%; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* Stats */
.stats { position: relative; z-index: 2; padding: 34px 0 54px; background: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; justify-items: center; margin-top: -90px; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 176px; aspect-ratio: 1; padding: 24px; text-align: center; background: url(../img/stat-badge.svg) center / contain no-repeat; filter: drop-shadow(0 8px 16px rgba(14, 42, 86, .06)); }
.stat i { font-size: 28px; color: var(--gold); margin-bottom: 6px; }
.stat strong { font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--navy); }
.stat span { max-width: 96px; margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--muted); }

/* About */
.about { background: var(--mist); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr 1.1fr; gap: 44px; align-items: center; }
.about-copy h2 { font-size: clamp(24px, 2.6vw, 30px); }
.about-copy p { font-size: 14px; color: var(--muted); }
.verse { text-align: center; }
.verse-art { display: grid; place-items: center; width: 200px; height: 200px; margin: 0 auto 18px; border: 1px solid #E1E7F1; border-radius: 50% 50% 26px 26px / 62% 62% 26px 26px; background: radial-gradient(circle at 50% 60%, #fff 0, #EAEFF8 75%); }
.verse-art img { width: 80%; }
.verse blockquote { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--navy); }
.verse cite { display: block; margin-top: 8px; font-size: 12.5px; font-style: normal; color: var(--muted); }
.vm { display: grid; gap: 34px; padding-left: 40px; border-left: 1px solid var(--line); }
.vm-item { display: flex; gap: 20px; align-items: flex-start; }
.vm-icon { flex: 0 0 68px; display: grid; place-items: center; height: 68px; border-radius: 50%; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); box-shadow: 0 0 0 7px var(--gold-soft); }
.vm-item h3 { font-size: 19px; margin-bottom: 4px; }
.vm-item p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Courses */
.courses { overflow: hidden; color: #fff; background: radial-gradient(ellipse at top right, var(--navy-2), var(--navy) 60%); }
.courses::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; background: url(../img/mosque-skyline.svg) center bottom / auto 100% repeat-x; opacity: .07; filter: invert(1); }
.courses .eyebrow { color: var(--gold-2); text-transform: none; letter-spacing: .08em; font-size: 13px; }
.courses h2 { color: #fff; }
.courses .section-sub { color: rgba(255, 255, 255, .78); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }
.section-head .section-sub { margin-bottom: 0; }
.course-grid { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.course-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.course-card { position: relative; display: flex; flex-direction: column; margin-top: 50px; padding: 0 16px 22px; text-align: center; color: var(--ink); background: #fff; border-radius: 0 0 16px 16px; box-shadow: 0 16px 30px rgba(0, 0, 0, .18); }
.course-card::before { content: ''; position: absolute; left: 0; right: 0; top: -49px; height: 50px; background: url(../img/dome-card.svg) center bottom / 100% 100% no-repeat; }
.course-thumb { position: relative; width: 112px; height: 112px; margin: -40px auto 14px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle, #FFFDF8 0, #F3EDE0 100%); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card h3 { margin: 0 0 6px; font: 600 15.5px/1.3 var(--sans); color: var(--navy); }
.course-card p { flex: 1; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.course-card .btn { align-self: center; }

/* Why */
.why { background: var(--cream); text-align: left; }
.why::before, .why::after { content: ''; position: absolute; bottom: 0; width: 280px; height: 120px; background: url(../img/mosque-skyline.svg) left bottom / auto 100% no-repeat; opacity: .06; }
.why::before { left: 0; }
.why::after { right: 0; transform: scaleX(-1); }
.why-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; margin-top: 36px; text-align: center; }
.why-item i { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; font-size: 34px; color: var(--gold); }
.why-item h3 { font: 600 13.5px/1.35 var(--sans); color: var(--navy); }

/* How it works */
.how { background: linear-gradient(180deg, #F3F6FB, #EDF2F9); }
.how-inner { position: relative; }
.steps { display: flex; align-items: flex-start; gap: 10px; margin-top: 40px; padding-right: 170px; }
.step { flex: 1; text-align: center; }
.step-icon { display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto 14px; border: 2px solid var(--gold-2); border-radius: 50%; font-size: 30px; color: var(--gold); background: #fff; box-shadow: var(--shadow); }
.step h3 { margin-bottom: 4px; font: 600 14.5px var(--sans); }
.step p { max-width: 170px; margin: 0 auto; font-size: 12.5px; color: var(--muted); }
.step-arrow { margin-top: 30px; font-size: 22px; color: var(--gold); }
.how .script-note { position: absolute; right: 0; top: 20px; }

/* Testimonials */
.testimonials { background: #fff; }
.testimonials::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: url(../img/mosque-skyline.svg) center bottom / auto 100% repeat-x; opacity: .04; }
.t-arrows { display: flex; gap: 10px; }
.t-arrows button { width: 40px; height: 40px; border: 1.5px solid var(--navy); border-radius: 50%; color: var(--navy); background: #fff; cursor: pointer; transition: .2s; }
.t-arrows button:hover:not(:disabled) { color: #fff; background: var(--navy); }
.t-arrows button:disabled { opacity: .35; cursor: default; }
.t-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; padding: 10px 4px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 24px 26px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.t-card blockquote { flex: 1; margin: 0; font-size: 14px; }
.t-person { display: flex; gap: 14px; align-items: center; }
.t-person img { width: 52px; height: 52px; object-fit: cover; border: 2px solid var(--gold-soft); border-radius: 50%; }
.t-person strong { display: block; font-size: 14px; color: var(--navy); }
.t-person small { display: block; font-size: 12px; color: var(--muted); }
.stars { color: #E3A92B; font-size: 12px; letter-spacing: 2px; }

/* Pricing */
.pricing { background: var(--cream); }
.pricing::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: url(../img/mosque-skyline.svg) center bottom / auto 100% repeat-x; opacity: .05; }
.country-switch { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.country-switch button { padding: 8px 22px; border: 0; border-radius: 999px; font: 600 13px var(--sans); color: var(--ink); background: none; cursor: pointer; }
.country-switch button.active { color: #fff; background: var(--navy); }
.price-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; margin-top: 20px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 34px 30px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.price-card.popular { padding-top: 52px; border: 2px solid var(--gold); transform: translateY(-10px); }
.price-card .badge { position: absolute; top: 0; left: 0; right: 0; padding: 6px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); border-radius: 13px 13px 0 0; }
.p-icon { font-size: 28px; color: var(--gold); }
.price-card h3 { margin: 10px 0 6px; font: 600 17px var(--sans); }
.price { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.price small { font: 500 13px var(--sans); color: var(--muted); }
.price-card ul { flex: 1; display: grid; gap: 10px; align-content: start; margin: 24px auto; padding: 0; list-style: none; text-align: left; font-size: 14px; }
.price-card li i { margin-right: 10px; color: var(--gold); }
.pricing-note { position: relative; margin: 26px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Call to action */
.cta { position: relative; margin-top: 70px; color: #fff; background: radial-gradient(ellipse at center, var(--navy-2), var(--navy) 70%); }
.cta-grid { display: grid; grid-template-columns: 270px 1fr 230px; gap: 30px; align-items: end; min-height: 230px; }
.cta-girl { width: 270px; margin-top: -80px; }
.cta-copy { align-self: center; padding: 40px 0; text-align: center; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); }
.cta-arch { position: relative; align-self: end; height: 220px; }
.cta-arch svg { height: 100%; }
.cta-arch .lantern { right: 0; top: -30px; width: 34px; }
.cta-script { position: absolute; left: 0; top: 70px; width: 200px; color: #fff; font-size: 27px; }
.cta-script i { color: var(--gold-2); }

/* Footer */
.site-footer { padding: 60px 0 0; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr 1fr; gap: 30px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand img { width: 72px; margin-bottom: 8px; }
.footer-grid h4 { margin-bottom: 14px; font: 600 14px var(--sans); }
.footer-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.footer-grid a:hover { color: var(--gold-deep); }
.contact-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact-list i { width: 18px; margin-right: 8px; color: var(--gold); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; color: #fff; transition: transform .2s; }
.socials a:hover { transform: translateY(-3px); }
.fb { background: #1877F2; }
.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.yt { background: #FF0000; }
.wa { background: #25D366; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-tag::after { content: ''; display: inline-block; width: 44px; height: 2px; margin-left: 10px; vertical-align: middle; background: var(--gold); }

/* Inner pages */
.page-banner { position: relative; overflow: hidden; padding: 56px 0; color: #fff; background: radial-gradient(ellipse at top right, var(--navy-2), var(--navy) 65%); }
.page-banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: url(../img/mosque-skyline.svg) center bottom / auto 100% repeat-x; opacity: .08; filter: invert(1); }
.page-banner h1 { position: relative; margin: 0; font-size: clamp(28px, 4vw, 42px); color: #fff; }
.crumbs { position: relative; margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .75); }
.crumbs a { color: var(--gold-2); }
.crumbs i { margin: 0 6px; font-size: 10px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; font-size: 24px; }
.prose h3 { margin-top: 1.4em; font-size: 20px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.lead-lg { font-size: 18px; color: var(--navy); }
details { margin-bottom: 12px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
summary { font-weight: 600; color: var(--navy); cursor: pointer; }
details[open] summary { margin-bottom: 8px; }
details p { margin: 0; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.info-card { position: sticky; top: 100px; padding: 28px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; }
.info-card h3 { font-size: 20px; }
.info-thumb { display: grid; place-items: center; width: 150px; height: 150px; margin: 0 auto 20px; overflow: hidden; border-radius: 50%; background: #fff; }
.info-thumb img { width: 100%; height: 100%; object-fit: cover; }
.meta-list { display: grid; gap: 12px; margin: 0 0 10px; padding: 0; list-style: none; }
.meta-list li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; padding-bottom: 10px; font-size: 14px; border-bottom: 1px dashed var(--line); }
.meta-list i { color: var(--gold); }
.meta-list span { color: var(--muted); }
.meta-list strong { color: var(--navy); font-weight: 600; }
.next-steps { display: grid; gap: 12px; margin: 0 0 24px; padding-left: 20px; font-size: 14px; color: var(--muted); }
.next-steps strong { color: var(--navy); }

/* Forms */
.form-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.form-card.narrow { max-width: 820px; margin: 40px auto 0; }
.form-card h2 { font-size: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--ink); background: #FCFCFD; border: 1px solid #D9DEE7; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195, 154, 74, .2); }
.type-toggle { display: flex; flex-wrap: wrap; gap: 12px; }
.type-toggle label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; font-weight: 500; color: var(--ink); border: 1px solid #D9DEE7; border-radius: 10px; cursor: pointer; }
.type-toggle label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.alert { margin-bottom: 20px; padding: 14px 18px; font-size: 14px; border-radius: 12px; }
.alert-error { color: var(--maroon); background: #FDECEE; border: 1px solid #F4C4CB; }
.success-box { padding: 20px 0; text-align: center; }
.success-box > i { font-size: 54px; color: #2E8B57; margin-bottom: 14px; }
.btn-wa { color: #fff; background: #25D366; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: #1EBE5A; transform: translateY(-2px); }
.wa-step { max-width: 470px; margin: 18px auto 22px; padding: 18px; background: #EFFBF3; border: 1px solid #BFE9CD; border-radius: 14px; }
.wa-step p { margin-bottom: 12px; }
.wa-step small { display: block; margin-top: 8px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; transition: transform .2s; }
a.contact-card:hover { transform: translateY(-3px); }
.contact-card i { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; font-size: 22px; color: #fff; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); }
.contact-card span { font-size: 12.5px; color: var(--muted); }
.contact-card strong { font-size: 14px; color: var(--navy); word-break: break-word; }

/* Course details page */
.course-hero { background: linear-gradient(180deg, #F2F5FB, #FBF8F1); }
.course-hero-grid { display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: center; }
.arch-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 34px rgba(14, 42, 86, .15)); }
.course-hero h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; font-size: 12.5px; font-weight: 500; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.chip i { color: var(--gold); }
.from-price { margin-bottom: 20px; font-size: 14px; }
.from-price strong { font-family: var(--serif); font-size: 26px; color: var(--navy); }
.from-price span { font-size: 13px; color: var(--muted); }
.fact-strip { color: #fff; background: var(--navy); }
.fact-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; padding: 26px 0; }
.fact { display: flex; gap: 12px; align-items: center; }
.fact > i { flex: 0 0 42px; display: grid; place-items: center; height: 42px; font-size: 17px; color: var(--gold-2); background: rgba(255, 255, 255, .1); border-radius: 12px; }
.fact span { display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.fact strong { font-size: 13.5px; font-weight: 600; }
.side-help { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.side-help a { font-weight: 600; color: var(--gold-deep); }
.steps.no-note { padding-right: 0; }
.cta-slim { padding: 34px 0; background: var(--cream); border-top: 1px solid var(--line); }
.cta-slim .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta-slim h2 { margin-bottom: 4px; font-size: clamp(20px, 2.4vw, 26px); }
.cta-slim p { margin: 0; color: var(--muted); }
.cta-slim .btn-row { margin: 0; }
.cta-slim .btn-ghost { color: var(--navy); border-color: var(--navy); }
.cta-slim .btn-ghost:hover { color: #fff; background: var(--navy); }
@media (max-width: 900px) {
  .course-hero-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .course-art { max-width: 290px; margin-inline: auto; }
  .chip-row, .course-hero .btn-row { justify-content: center; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-slim .container { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) { .fact-grid { grid-template-columns: 1fr; } }

/* All courses page */
.course-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.course-tile { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.course-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(14, 42, 86, .12); }
.tile-media { position: relative; display: grid; place-items: center; height: 150px; background: radial-gradient(circle, #FFFDF8, #F2ECDE); border-radius: 14px; }
.tile-media img { width: 78%; height: 78%; object-fit: contain; }
.tile-level { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); padding: 4px 12px; font-size: 11px; font-weight: 600; white-space: nowrap; color: #fff; background: var(--navy); border-radius: 999px; }
.tile-body h3 { margin: 0 0 6px; font: 600 18px var(--sans); }
.tile-body h3 a:hover { color: var(--gold-deep); }
.tile-body p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.tile-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.tile-meta i { margin-right: 6px; color: var(--gold); }
.tile-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.head-price { text-align: right; font-size: 13px; color: var(--muted); }
.head-price strong { font-family: var(--serif); font-size: 24px; color: var(--navy); }
.head-price span { display: block; font-size: 12px; color: var(--gold-deep); }
@media (max-width: 900px) { .course-list { grid-template-columns: 1fr; } .head-price { text-align: left; } }
@media (max-width: 520px) {
  .course-tile { grid-template-columns: 1fr; }
  .tile-media { height: 140px; }
  .tile-level { position: static; display: inline-block; margin-top: 10px; transform: none; }
}

/* Video modal */
.video-modal[hidden] { display: none; }
.video-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(10, 31, 66, .8); }
.video-box { position: relative; width: min(900px, 100%); aspect-ratio: 16 / 9; }
.video-box iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; background: #000; }
.modal-close { position: absolute; right: -8px; top: -48px; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 18px; color: var(--navy); background: #fff; cursor: pointer; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .lantern { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1100px) {
  .main-nav ul { gap: 22px; }
  .course-grid, .course-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .stat { width: 150px; }
  .cta-grid { grid-template-columns: 220px 1fr 200px; }
  .cta-girl { width: 220px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .mobile-only { display: list-item; }
  .main-nav { position: absolute; left: 0; right: 0; top: 80px; display: none; background: #fff; box-shadow: 0 16px 30px rgba(14, 42, 86, .12); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 20px 0 10px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .btn-row, .chips { justify-content: center; }
  .hero-art { justify-content: center; min-height: 0; padding-right: 0; }
  .hero .script-note, .hero-art .l1 { display: none; }
  .stats-row { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .vm { padding-left: 0; border-left: 0; }
  .steps { flex-direction: column; align-items: center; padding-right: 0; }
  .step-arrow { margin: 0; transform: rotate(90deg); }
  .how .script-note { display: none; }
  .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .price-card.popular { transform: none; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-girl, .cta-arch { display: none; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .course-grid, .course-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .course-card { padding: 0 10px 18px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { width: 150px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .t-track { grid-auto-columns: 88%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .country-switch button { padding: 8px 12px; }
  .form-card { padding: 22px; }
  .contact-cards { grid-template-columns: 1fr; }
  .brand-name { font-size: 17px; }
  .brand img { height: 44px; }
}
