/* Online Quran Academy — Ustad Anwar Abbasi (v2, 7 Oct 2026). Deep emerald and gold, ivory paper, an eight-point
   star pattern, the Quran in Amiri Quran. Urdu (Nastaliq) is the base; Sindhi in Naskh; English in Nunito. Mobile first. */
:root {
  --green-950: #072a20;
  --green-900: #0b3b2e;
  --green-800: #0f4c3a;
  --green-700: #136349;
  --green-600: #1a7a5a;
  --green-100: #e6f2ec;
  --gold-700: #8f6a1d;
  --gold-600: #b8892c;
  --gold-500: #cfa245;
  --gold-300: #ecd18f;
  --gold-200: #f5e6bb;
  --gold-100: #faf1dc;
  --cream: #fbf7ee;
  --paper: #fffdf8;
  --ink: #1c2a24;
  --muted: #55665e;
  --on-dark: #e9f4ee;
  --on-dark-soft: #bcd9cb;
  --wa-1: #2fd06a;
  --wa-2: #1faa52;
  --radius: 24px;
  --shadow: 0 22px 50px rgba(11, 59, 46, .13);
  --shadow-sm: 0 8px 22px rgba(11, 59, 46, .09);
  --font-body: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --font-head: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --font-quran: "Amiri Quran", "Amiri", "Noto Naskh Arabic", serif;
  --lh: 2.15;
  --lh-head: 1.8;
  --lh-ui: 1.95;
}
html[lang="sd"] {
  --font-body: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-head: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --lh: 1.95;
  --lh-head: 1.5;
  --lh-ui: 1.7;
}
html[lang="en"] {
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-head: "Nunito", "Segoe UI", system-ui, sans-serif;
  --lh: 1.65;
  --lh-head: 1.16;
  --lh-ui: 1.4;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: var(--lh);
  overflow-x: hidden; text-rendering: optimizeLegibility; }
html[lang="en"] body { font-size: 17.5px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: var(--lh-head); }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 900; letter-spacing: -.4px; }
.ar { font-family: var(--font-quran); direction: rtl; }
.saw { font-family: "Amiri Quran", "Amiri", "Noto Naskh Arabic", serif; font-size: 1.15em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 32px); }
.center { text-align: center; justify-content: center; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 60; padding: 8px 14px; border-radius: 10px;
  background: var(--green-800); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 8px; }
.flag { width: 30px; height: 20px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .18); }

/* Patterns */
.pattern-light { background-color: var(--cream); background-image: url("pattern.svg"); background-size: 96px 96px; }

/* ---- Top bar: Bismillah ---------------------------------------------------------------------------------------- */
.topbar { background: var(--green-950) url("pattern-dark.svg"); background-size: 96px 96px; color: var(--on-dark-soft);
  border-bottom: 1px solid rgba(236, 209, 143, .22); }
.topbar-row { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; }
.bismillah { margin: 0; font-size: 23px; line-height: 1.75; color: var(--gold-300); text-align: center; white-space: nowrap;
  text-shadow: 0 1px 12px rgba(236, 209, 143, .25); }
.tb-side { display: none; align-items: center; gap: 10px; font-size: 13.5px; text-decoration: none; line-height: var(--lh-ui); }
.tb-wa { color: #fff; font-family: "Nunito", system-ui, sans-serif; font-weight: 800; letter-spacing: .3px; }
.tb-wa svg { width: 18px; height: 18px; color: var(--wa-1); }
.tb-pk .flag { width: 24px; height: 16px; }
@media (min-width: 900px) {
  .topbar-row { justify-content: space-between; }
  .tb-side { display: inline-flex; flex: 1 1 0; }
  .tb-wa { justify-content: flex-end; }
  .bismillah { font-size: 25px; }
}

/* ---- Header ------------------------------------------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 248, .93);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(184, 137, 44, .22); box-shadow: 0 6px 24px rgba(11, 59, 46, .06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 4px 8px rgba(11, 59, 46, .2)); }
.brand-text { display: grid; line-height: 1.3; min-width: 0; }
html[lang="ur"] .brand-text { line-height: 1.85; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--green-900); white-space: nowrap; }
html[lang="en"] .brand-name { font-weight: 900; }
.brand-tag { font-size: 12.5px; color: var(--gold-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; align-items: center; gap: 2px; }
.nav a { padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--green-800); font-size: 15.5px; line-height: var(--lh-ui); }
.nav a:hover, .nav a:focus-visible { background: var(--green-100); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-wa { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, var(--wa-1), var(--wa-2)); box-shadow: 0 8px 18px rgba(31, 170, 82, .32); }
.hdr-wa svg { width: 24px; height: 24px; }
.hdr-wa span { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(15, 76, 58, .18);
  background: var(--paper); color: var(--green-800); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; padding: 4px 0 16px; }
.mobile-nav.open { display: grid; gap: 6px; }
.mobile-nav a { padding: 8px 16px; border-radius: 14px; text-decoration: none; color: var(--green-800); background: var(--paper);
  border: 1px solid rgba(15, 76, 58, .1); line-height: var(--lh-ui); }

/* Language switch: a segmented control, in the header on wide screens and as its own bar on phones */
.langs { display: inline-flex; padding: 4px; gap: 3px; border-radius: 999px; background: var(--paper);
  border: 1.5px solid rgba(184, 137, 44, .55); box-shadow: 0 4px 14px rgba(184, 137, 44, .16); }
.langs a { display: inline-grid; place-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; text-decoration: none;
  font-size: 14.5px; color: var(--green-800); white-space: nowrap; transition: background .15s ease, color .15s ease; }
.langs a[lang="en"] { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; }
.langs a[lang="sd"] { font-family: "Noto Naskh Arabic", sans-serif; font-weight: 700; }
.langs a[lang="ur"] { font-family: "Noto Nastaliq Urdu", serif; font-weight: 700; line-height: 2; }
.langs a:hover { background: var(--gold-100); }
.langs a[aria-current="page"] { background: linear-gradient(180deg, var(--green-700), var(--green-900)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(236, 209, 143, .5); }
.langs-head { display: none; }
.lang-bar { background: linear-gradient(180deg, var(--gold-100), var(--cream)); border-bottom: 1px solid rgba(184, 137, 44, .25); }
.lang-bar-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.lb-label { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--gold-700); font-size: 13.5px; line-height: var(--lh-ui); }
.lb-label svg { width: 20px; height: 20px; }
.langs-bar { flex: 1; }
.langs-bar a { flex: 1; min-height: 40px; font-size: 15.5px; }
@media (max-width: 380px) { .lb-label { display: none; } }
@media (min-width: 760px) {
  .langs-head { display: inline-flex; }
  .lang-bar { display: none; }
  .hdr-wa { width: auto; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
  html[dir="rtl"] .hdr-wa { padding: 0 12px 0 16px; }
  .hdr-wa span { display: inline-block; font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .3px; }
}
@media (min-width: 1200px) {
  .nav { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---- Buttons ----------------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 4px 26px; border-radius: 999px;
  text-decoration: none; font-family: var(--font-body); font-size: 16.5px; font-weight: 700; line-height: var(--lh-ui); border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
html[lang="en"] .btn { font-weight: 800; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: linear-gradient(180deg, var(--wa-1), var(--wa-2)); color: #fff; box-shadow: 0 12px 26px rgba(31, 170, 82, .34); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(31, 170, 82, .4); }
.btn-call { background: transparent; color: var(--green-800); border: 1.6px solid rgba(15, 76, 58, .35); }
.btn-call:hover { background: var(--green-100); }
.btn-gold { background: linear-gradient(180deg, #f1d58d, var(--gold-500)); color: #1d1606; box-shadow: 0 12px 26px rgba(207, 162, 69, .35); }
.btn-gold:hover { transform: translateY(-2px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- Hero -------------------------------------------------------------------------------------------------------- */
.hero { position: relative; color: var(--on-dark); padding: 40px 0 96px; overflow: hidden;
  background: radial-gradient(55% 45% at 78% 18%, rgba(207, 162, 69, .22), rgba(207, 162, 69, 0) 70%),
    radial-gradient(45% 55% at 8% 92%, rgba(26, 122, 90, .5), rgba(26, 122, 90, 0) 70%),
    url("pattern-dark.svg") 0 0 / 96px 96px,
    linear-gradient(160deg, var(--green-800), var(--green-900) 55%, var(--green-950)); }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, rgba(207, 162, 69, 0), var(--gold-500), rgba(207, 162, 69, 0)); opacity: .7; }
.hero-grid { display: grid; gap: 34px; align-items: center; }
.iqra { display: inline-grid; justify-items: start; gap: 0; padding: 10px 20px 8px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(236, 209, 143, .14), rgba(236, 209, 143, .05)); border: 1px solid rgba(236, 209, 143, .4); }
.iqra-k { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-300); font-size: 14px; line-height: var(--lh-ui); }
.iqra-k svg { width: 14px; height: 14px; color: var(--gold-500); }
.iqra-ar { font-size: clamp(26px, 4.2vw, 36px); line-height: 1.9; color: #fff3cf; }
.iqra small { color: var(--on-dark-soft); font-size: 12.5px; line-height: var(--lh-ui); }
.hero h1 { margin: 18px 0 10px; color: #fff; font-size: clamp(34px, 6.4vw, 62px); }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero .lead { margin: 0 0 24px; color: var(--on-dark-soft); font-size: clamp(16px, 2.1vw, 19px); max-width: 36em; }
.hero .btn-call { color: #fff; border-color: rgba(236, 209, 143, .55); }
.hero .btn-call:hover { background: rgba(236, 209, 143, .12); }
.offer { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 4px 16px 4px 6px; border-radius: 999px;
  background: rgba(236, 209, 143, .12); color: var(--gold-200); font-size: 15px; border: 1px solid rgba(236, 209, 143, .45); line-height: var(--lh-ui); }
html[dir="rtl"] .offer { padding: 4px 6px 4px 16px; }
.offer b { color: #fff; }
.offer .pill { padding: 2px 11px; border-radius: 999px; background: linear-gradient(180deg, #f1d58d, var(--gold-500)); color: #1d1606;
  font-size: 13px; line-height: 1.8; font-family: "Nunito", system-ui, sans-serif; font-weight: 900; }
.points { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--on-dark); font-size: 15px; }
.points li { display: inline-flex; align-items: center; gap: 8px; }
.points svg { width: 19px; height: 19px; color: var(--gold-300); flex: none; }
.hero-art { position: relative; width: 100%; max-width: 600px; margin-inline: auto; padding: 0 6px 22px; }
.arch { position: relative; padding: 7px; aspect-ratio: 4 / 3.45;
  background: linear-gradient(160deg, #f6dfa0, var(--gold-500) 45%, #9b7420);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V34C0 16 24 6 50 0 76 6 100 16 100 34V100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V34C0 16 24 6 50 0 76 6 100 16 100 34V100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .35)); }
.arch picture, .arch img { display: block; width: 100%; height: 100%; }
.arch img { object-fit: cover; object-position: 50% 62%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V34C0 16 24 6 50 0 76 6 100 16 100 34V100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V34C0 16 24 6 50 0 76 6 100 16 100 34V100Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px;
  background: rgba(255, 253, 248, .96); color: var(--green-900); font-size: 13.5px; font-weight: 700; line-height: var(--lh-ui);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22); border: 1px solid rgba(184, 137, 44, .4); white-space: nowrap; }
.badge svg { width: 18px; height: 18px; color: var(--green-700); }
.badge .flag { width: 24px; height: 16px; }
.b-live { top: 20%; inset-inline-start: 0; }
.b-live i { width: 10px; height: 10px; border-radius: 50%; background: #e5372e; box-shadow: 0 0 0 0 rgba(229, 55, 46, .6); animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(229, 55, 46, .55); } 70% { box-shadow: 0 0 0 9px rgba(229, 55, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 55, 46, 0); } }
.b-teams { top: 46%; inset-inline-end: 0; }
.b-pk { bottom: 4px; left: 50%; transform: translateX(-50%); }
@media (max-width: 520px) { .b-teams { display: none; } .badge { font-size: 12.5px; } }
@media (min-width: 980px) {
  .hero { padding: 64px 0 110px; }
  .hero-grid { grid-template-columns: 1.04fr .96fr; gap: 44px; }
}

/* ---- Hadith card ------------------------------------------------------------------------------------------------- */
.hadith-wrap { position: relative; z-index: 3; margin-top: -58px; }
.hadith { margin: 0 auto; max-width: 900px; display: grid; justify-items: center; gap: 2px; text-align: center; padding: 20px 26px 18px;
  border-radius: var(--radius); background: linear-gradient(180deg, var(--paper), var(--gold-100)); border: 1.5px solid var(--gold-300);
  box-shadow: var(--shadow); position: relative; }
.hadith::before { content: ""; position: absolute; inset: 6px; border-radius: 19px; border: 1px solid rgba(184, 137, 44, .3); pointer-events: none; }
.hadith-k { color: var(--gold-700); font-size: 14.5px; line-height: var(--lh-ui); }
.hadith .ar { margin: 0; font-size: clamp(28px, 4.6vw, 42px); color: var(--green-800); line-height: 1.9; }
.hadith p { margin: 0; color: var(--ink); font-size: 16px; }
.hadith small { color: var(--gold-700); font-size: 13.5px; }
.orn { position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; color: var(--gold-500); }
.orn.a { inset-inline-start: 16px; } .orn.b { inset-inline-end: 16px; transform: scaleX(-1); }
@media (max-width: 600px) { .orn { display: none; } }

/* ---- Sections ---------------------------------------------------------------------------------------------------- */
section { scroll-margin-top: 84px; }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.section-head.start { text-align: start; margin: 0 0 26px; }
.section-head.start .divider { margin-inline: 0; }
.kicker { display: inline-flex; align-items: center; gap: 6px; padding: 1px 16px; border-radius: 999px; background: var(--gold-100); color: var(--gold-700);
  font-size: 14px; line-height: var(--lh-ui); border: 1px solid rgba(184, 137, 44, .3); }
.section-head h2, .teacher-copy h2 { margin: 12px 0 2px; color: var(--green-900); font-size: clamp(27px, 4.4vw, 42px); }
.divider { width: 190px; height: 20px; margin: 4px auto 10px; color: var(--gold-500); }
.section-head p { margin: 0; color: var(--muted); }

/* ---- Verses ------------------------------------------------------------------------------------------------------ */
.verse { margin: 0; text-align: center; }
.verse blockquote { margin: 0; font-size: clamp(25px, 3.6vw, 34px); line-height: 2.05; color: var(--green-900); }
.verse figcaption { display: grid; gap: 2px; margin-top: 4px; }
.verse .tr { margin: 0; color: var(--ink); font-size: 16px; }
.verse cite { font-style: normal; color: var(--gold-700); font-size: 13.5px; line-height: var(--lh-ui); }
.an { position: relative; display: inline-block; width: 1.12em; height: 1.12em; margin-inline: .12em; vertical-align: -.18em; color: var(--gold-600); }
.an svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.an b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 .36em/1 "Noto Naskh Arabic", serif; color: var(--green-800); }
.head-verse { max-width: 920px; margin: -8px auto 40px; padding: 18px 24px 16px; border-radius: var(--radius); position: relative;
  background: var(--paper); border: 1.5px solid var(--gold-300); box-shadow: var(--shadow-sm); }
.head-verse::before { content: ""; position: absolute; inset: 6px; border-radius: 19px; border: 1px dashed rgba(184, 137, 44, .38); pointer-events: none; }
.verse.mini blockquote { font-size: 23px; line-height: 2; }
.verse.mini .tr { font-size: 14.5px; color: var(--muted); }
.verse.mini cite { font-size: 12.5px; }

/* ---- Course cards ------------------------------------------------------------------------------------------------ */
.cards { display: grid; gap: 20px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; padding: 28px 24px 22px; border-radius: var(--radius); background: var(--paper);
  box-shadow: var(--shadow); border: 1px solid rgba(15, 76, 58, .08); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--green-700), var(--gold-500), var(--green-700)); }
.card:hover { transform: translateY(-5px); box-shadow: 0 28px 60px rgba(11, 59, 46, .17); }
.card .icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(160deg, var(--green-700), var(--green-900));
  color: var(--gold-300); box-shadow: 0 10px 20px rgba(11, 59, 46, .25); }
.card .icon svg { width: 34px; height: 34px; }
.card.gold .icon { background: linear-gradient(160deg, #e2bc62, var(--gold-600)); color: #fff; }
.card .tag { position: absolute; top: 26px; inset-inline-end: 22px; padding: 0 12px; border-radius: 999px; background: var(--gold-100);
  color: var(--gold-700); font-size: 13px; border: 1px solid rgba(184, 137, 44, .3); line-height: var(--lh-ui); }
.card h3 { margin: 18px 0 6px; color: var(--green-900); font-size: 21px; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }
.card-verse { margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(184, 137, 44, .45); }

/* ---- Teacher ----------------------------------------------------------------------------------------------------- */
.teacher-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 940px) { .teacher-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.teacher-art { max-width: 420px; width: 100%; margin-inline: auto; padding: 20px; border-radius: 32px;
  background: radial-gradient(circle at 50% 40%, rgba(236, 209, 143, .5), rgba(236, 209, 143, 0) 70%), var(--paper);
  border: 1.5px solid var(--gold-300); box-shadow: var(--shadow); }
.teacher-copy .kicker { margin-bottom: 0; }
.teacher-copy .divider { margin-inline: 0; }
.lead-sm { margin: 0 0 20px; color: var(--ink); font-size: 17px; }
.tpoints { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
@media (min-width: 560px) { .tpoints { grid-template-columns: 1fr 1fr; } }
.tpoints li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--paper);
  border: 1px solid rgba(15, 76, 58, .1); box-shadow: var(--shadow-sm); }
.ti { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--green-800); color: var(--gold-300); }
.ti svg { width: 24px; height: 24px; }
.tpoints b { display: block; color: var(--green-900); font-size: 15.5px; line-height: var(--lh-ui); }
.tpoints small { display: block; color: var(--muted); font-size: 13.5px; line-height: var(--lh-ui); }
.reach { padding: 14px 18px; border-radius: 18px; background: linear-gradient(180deg, var(--gold-100), var(--paper)); border: 1px solid var(--gold-300); }
.reach > span { display: block; color: var(--gold-700); font-size: 14px; line-height: var(--lh-ui); margin-bottom: 6px; }
.reach ul, .countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.reach li, .countries li { display: inline-flex; align-items: center; gap: 7px; padding: 2px 12px; border-radius: 999px; background: var(--paper);
  color: var(--green-800); font-size: 14px; border: 1px solid rgba(15, 76, 58, .14); line-height: var(--lh-ui); }
.reach li svg { width: 16px; height: 16px; color: var(--gold-600); }
.reach li .flag, .countries li .flag { width: 21px; height: 14px; }

/* ---- Learning path ----------------------------------------------------------------------------------------------- */
.path { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; margin: 0; padding: 0; list-style: none; counter-reset: p; }
@media (min-width: 860px) {
  .path { grid-template-columns: repeat(4, 1fr); }
  .path::before { content: ""; position: absolute; top: 34px; inset-inline: 12%; border-top: 2px dashed rgba(184, 137, 44, .55); }
}
.path li { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; }
.pn { position: relative; width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 8px; color: var(--green-900);
  font: 900 24px/1 "Nunito", "Noto Naskh Arabic", sans-serif;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 1.5 25.3 7.2 33.1 6.9 32.8 14.7 38.5 20 32.8 25.3 33.1 33.1 25.3 32.8 20 38.5 14.7 32.8 6.9 33.1 7.2 25.3 1.5 20 7.2 14.7 6.9 6.9 14.7 7.2Z' fill='%23faf1dc' stroke='%23cfa245' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='11' fill='%23fffdf8' stroke='%23cfa245'/%3E%3C/svg%3E") center / contain no-repeat; }
html[lang="ur"] .pn, html[lang="sd"] .pn { font-family: "Noto Naskh Arabic", serif; font-weight: 700; font-size: 25px; }
.path b { color: var(--green-900); font-family: var(--font-head); font-size: 18px; line-height: var(--lh-head); }
.path small { color: var(--muted); font-size: 14px; line-height: var(--lh-ui); }

/* ---- Features (with the girl's picture) ------------------------------------------------------------------------ */
.features { background: var(--paper); border-block: 1px solid rgba(184, 137, 44, .18); }
.features-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .features-grid { grid-template-columns: .92fr 1.08fr; gap: 56px; } }
.feat-art { position: relative; max-width: 560px; width: 100%; margin-inline: auto; padding-bottom: 20px; }
.arch-light { filter: drop-shadow(0 22px 36px rgba(11, 59, 46, .22)); }
.b-both { bottom: 2px; left: 50%; transform: translateX(-50%); }
.b-both svg { color: #d0463b; }
.feature-list { display: grid; gap: 12px; }
@media (min-width: 620px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: var(--cream); border: 1px solid rgba(15, 76, 58, .09); }
.feature .icon { width: 50px; height: 50px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--green-800); color: var(--gold-300); }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin: 0; color: var(--green-900); font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- Parents: the two duas ---------------------------------------------------------------------------------------- */
.parents { color: var(--on-dark);
  background: radial-gradient(60% 50% at 50% 0%, rgba(207, 162, 69, .2), rgba(207, 162, 69, 0) 70%),
    url("pattern-dark.svg") 0 0 / 96px 96px, linear-gradient(170deg, var(--green-800), var(--green-950)); }
.parents .section-head h2 { color: #fff; }
.parents .section-head p { color: var(--on-dark-soft); font-size: 17px; }
.parents .kicker { background: rgba(236, 209, 143, .14); color: var(--gold-300); border-color: rgba(236, 209, 143, .35); }
.duas { display: grid; gap: 18px; }
@media (min-width: 900px) { .duas { grid-template-columns: 1fr 1fr; } }
.dua { position: relative; display: grid; justify-items: center; gap: 8px; padding: 22px 22px 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid rgba(236, 209, 143, .35); }
.dua::before { content: ""; position: absolute; inset: 6px; border-radius: 19px; border: 1px solid rgba(236, 209, 143, .14); pointer-events: none; }
.dua-k { padding: 0 14px; border-radius: 999px; background: rgba(236, 209, 143, .16); color: var(--gold-300); font-size: 14px; line-height: var(--lh-ui); }
.verse.big blockquote { color: #fff3cf; font-size: clamp(27px, 3.4vw, 36px); }
.verse.big .tr { color: var(--on-dark); }
.verse.big cite { color: var(--gold-300); }
.verse.big .an { color: var(--gold-300); }
.verse.big .an b { color: #fff3cf; }
.muslim { max-width: 820px; margin: 26px auto 22px; text-align: center; padding: 14px 18px; border-radius: 18px; border: 1px dashed rgba(236, 209, 143, .4); }
.muslim .hadith-k { color: var(--gold-300); }
.muslim p { margin: 0; color: var(--on-dark); font-size: 15.5px; }
.muslim small { color: var(--gold-300); font-size: 13px; }

/* ---- Pearls of the Quran ------------------------------------------------------------------------------------------ */
.pearls { display: grid; gap: 18px; }
@media (min-width: 860px) { .pearls { grid-template-columns: 1fr 1fr; } }
.pearl { position: relative; display: grid; align-content: center; padding: 26px 24px 20px; border-radius: var(--radius); background: var(--paper);
  border: 1.5px solid var(--gold-300); box-shadow: var(--shadow-sm); }
.pearl::before { content: ""; position: absolute; inset: 7px; border-radius: 18px; border: 1px solid rgba(184, 137, 44, .28); pointer-events: none; }
.pearl::after { content: ""; position: absolute; top: -13px; left: 50%; width: 26px; height: 26px; margin-left: -13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 1.5 25.3 7.2 33.1 6.9 32.8 14.7 38.5 20 32.8 25.3 33.1 33.1 25.3 32.8 20 38.5 14.7 32.8 6.9 33.1 7.2 25.3 1.5 20 7.2 14.7 6.9 6.9 14.7 7.2Z' fill='%23cfa245'/%3E%3Ccircle cx='20' cy='20' r='6' fill='%23fffdf8'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- Steps, timings, clocks --------------------------------------------------------------------------------------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(184, 137, 44, .35); }
.step .num { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #1d1606;
  background: linear-gradient(180deg, #f1d58d, var(--gold-500)); font: 900 21px/1 "Nunito", "Noto Naskh Arabic", sans-serif;
  box-shadow: 0 8px 16px rgba(184, 137, 44, .35); }
.step h3 { margin: 14px 0 2px; color: var(--green-900); font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.schedule-box { display: grid; gap: 24px; margin-top: 28px; padding: 26px; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow);
  border: 1px solid rgba(15, 76, 58, .08); scroll-margin-top: 90px; }
@media (min-width: 900px) { .schedule-box { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 34px 40px; } }
.schedule-box h3 { margin: 10px 0 4px; color: var(--green-900); font-size: clamp(22px, 3.2vw, 30px); }
.schedule-box p { margin: 0 0 14px; color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.day { padding: 10px 2px; border-radius: 16px; text-align: center; background: var(--green-100); color: var(--green-800); font-size: 14.5px;
  border: 1px solid rgba(15, 76, 58, .1); line-height: var(--lh-ui); }
.day svg { width: 18px; height: 18px; margin: 0 auto 2px; color: var(--gold-600); }
.clocks { display: grid; gap: 10px; }
.clock { display: grid; gap: 0; padding: 14px 18px; border-radius: 20px; color: var(--on-dark);
  background: url("pattern-dark.svg") 0 0 / 96px 96px, linear-gradient(160deg, var(--green-800), var(--green-950)); border: 1px solid rgba(236, 209, 143, .3); }
.clock[hidden] { display: none; }
.cl-l { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-300); font-size: 14px; line-height: var(--lh-ui); }
.cl-l svg { width: 18px; height: 18px; }
.cl-l em { font-style: normal; color: var(--on-dark-soft); font-family: "Nunito", system-ui, sans-serif; font-size: 13px; }
.clock b { font: 900 clamp(30px, 4vw, 38px)/1.5 "Nunito", "Noto Naskh Arabic", sans-serif; color: #fff; letter-spacing: .5px; }
.cl-note { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- FAQ --------------------------------------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.qa { border-radius: 18px; background: var(--paper); border: 1px solid rgba(184, 137, 44, .35); box-shadow: var(--shadow-sm); overflow: hidden; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; cursor: pointer; list-style: none;
  color: var(--green-900); font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: var(--lh-head); }
.qa summary::-webkit-details-marker { display: none; }
.chev { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--gold-100); color: var(--gold-700);
  transition: transform .2s ease; }
.chev svg { width: 18px; height: 18px; }
html[dir="rtl"] .chev { transform: scaleX(-1); }
.qa[open] .chev { transform: rotate(90deg); }
.qa[open] summary { border-bottom: 1px dashed rgba(184, 137, 44, .4); }
.qa p { margin: 0; padding: 12px 20px 16px; color: var(--muted); font-size: 16px; }

/* ---- Contact ----------------------------------------------------------------------------------------------------- */
.contact { color: var(--on-dark);
  background: url("pattern-dark.svg") 0 0 / 96px 96px, linear-gradient(160deg, var(--green-800), var(--green-950)); }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: var(--on-dark-soft); }
.contact .kicker { background: rgba(236, 209, 143, .14); color: var(--gold-300); border-color: rgba(236, 209, 143, .35); }
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.35fr 1fr; } }
.contact-card { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(236, 209, 143, .3); }
.wa-card { display: flex; gap: 22px; align-items: center; justify-content: space-between; }
.contact-card .label { display: flex; align-items: center; gap: 10px; color: var(--gold-300); font-size: 15px; line-height: var(--lh-ui); }
.contact-card .label svg { width: 26px; height: 26px; }
.wa-card .label svg { color: var(--wa-1); }
.contact-card .big { display: block; margin: 6px 0 0; font: 900 clamp(30px, 5vw, 44px)/1.3 "Nunito", system-ui, sans-serif; letter-spacing: .5px;
  color: #fff; text-decoration: none; }
.contact-card .sub { display: block; margin: 4px 0 0; color: var(--on-dark-soft); font-size: 14.5px; line-height: var(--lh-ui); }
.contact-card .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact .btn-call { color: #fff; border-color: rgba(236, 209, 143, .55); }
.qr-box { display: none; flex: none; text-align: center; }
.qr-box .qr { width: 132px; height: 132px; border-radius: 14px; background: #fffdf8; padding: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.qr-box small { display: block; max-width: 150px; margin-top: 8px; color: var(--on-dark-soft); font-size: 12.5px; line-height: var(--lh-ui); }
@media (min-width: 760px) { .qr-box { display: block; } }
.teams-id { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(0, 0, 0, .22);
  font: 800 19px/1.4 "Nunito", system-ui, sans-serif; color: #fff; direction: ltr; }
.copy { padding: 2px 16px; border-radius: 999px; border: 0; background: var(--gold-500); color: #1d1606; font-family: var(--font-body); font-size: 14px;
  cursor: pointer; line-height: var(--lh-ui); }
.copy.done { background: var(--wa-1); color: #fff; }
.langs-note { display: inline-flex !important; align-items: center; gap: 8px; }
.langs-note svg { width: 18px; height: 18px; color: var(--gold-300); }

/* ---- Final band and footer --------------------------------------------------------------------------------------- */
.final { padding: 52px 0; text-align: center; background: linear-gradient(180deg, var(--gold-100), var(--cream));
  border-top: 1px solid var(--gold-300); }
.final h2 { margin: 0 0 18px; color: var(--green-900); font-size: clamp(23px, 3.6vw, 34px); }
.site-footer { padding: 48px 0 24px; color: var(--on-dark-soft); font-size: 14.5px;
  background: url("pattern-dark.svg") 0 0 / 96px 96px, var(--green-950); border-top: 4px solid var(--gold-500); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 10px; color: var(--gold-300); font-size: 16px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: var(--gold-300); }
.f-brand p { margin: 10px 0 0; }
.made { display: flex; align-items: center; gap: 10px; color: #fff; }
.f-links { display: grid; gap: 2px; }
.f-links a, .f-line { display: flex; align-items: center; gap: 8px; color: var(--on-dark-soft); text-decoration: none; line-height: var(--lh-ui); padding: 1px 0; }
.f-links a:hover, a.f-line:hover { color: #fff; }
.f-line svg { width: 18px; height: 18px; color: var(--gold-300); flex: none; }
.langs-foot { background: rgba(255, 255, 255, .06); border-color: rgba(236, 209, 143, .4); box-shadow: none; }
.langs-foot a { color: var(--on-dark); }
.langs-foot a:hover { background: rgba(236, 209, 143, .14); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 30px; padding-top: 16px;
  border-top: 1px solid rgba(236, 209, 143, .18); font-size: 13px; }

/* ---- Always-there contact: a bar on phones, a floating button on wide screens ----------------------------------------- */
.contact-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgba(184, 137, 44, .3); box-shadow: 0 -8px 24px rgba(11, 59, 46, .1); }
.contact-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 16px; text-decoration: none;
  font-weight: 700; font-size: 16px; line-height: var(--lh-ui); }
.contact-bar svg { width: 22px; height: 22px; }
.cb-wa { background: linear-gradient(180deg, var(--wa-1), var(--wa-2)); color: #fff; box-shadow: 0 8px 18px rgba(31, 170, 82, .3); }
.cb-call { background: var(--paper); color: var(--green-800); border: 1.6px solid rgba(15, 76, 58, .3); }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.float-wa { display: none; }
@media (min-width: 760px) {
  .contact-bar { display: none; }
  body { padding-bottom: 0; }
  .float-wa { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 45; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px 10px 14px; border-radius: 999px; background: linear-gradient(180deg, var(--wa-1), var(--wa-2)); color: #fff; text-decoration: none;
    font-weight: 700; line-height: var(--lh-ui); box-shadow: 0 14px 30px rgba(31, 170, 82, .42); transition: opacity .25s ease, transform .25s ease; }
  html[dir="rtl"] .float-wa { padding: 10px 14px 10px 20px; }
  .float-wa svg { width: 26px; height: 26px; }
  .js .float-wa:not(.show) { opacity: 0; transform: translateY(14px); pointer-events: none; }
}

/* ---- Reveal ------------------------------------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); 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; }
  .card:hover, .btn-wa:hover, .btn-gold:hover { transform: none; }
  .b-live i { animation: none; }
}
.langs-menu { justify-self: start; margin-top: 4px; }
.langs-menu a { min-height: 40px; }

/* ---- Fixes after the first look (v2b) ---------------------------------------------------------------------------- */
.dua { align-content: center; }
html[lang="ur"] .section-head h2, html[lang="ur"] .teacher-copy h2 { margin-top: 26px; }
html[lang="ur"] .hero h1 { margin-top: 24px; }
p, .lead, .lead-sm, .verse .tr { text-wrap: pretty; }
h1, h2, h3, .final h2 { text-wrap: balance; }
.cl-l .flag, .countries li .flag { width: 24px; height: 16px; }
.contact-card { padding: 20px 18px; min-width: 0; }
@media (min-width: 600px) { .contact-card { padding: 24px; } }
.wa-main { min-width: 0; }
.contact-card .big { font-size: clamp(24px, 7.4vw, 44px); }
.teams-id { flex-wrap: wrap; max-width: 100%; font-size: clamp(16px, 4.6vw, 19px); }
.share { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 2px 16px; border-radius: 999px; color: var(--green-800);
  text-decoration: none; font-size: 15px; line-height: var(--lh-ui); border: 1px dashed rgba(15, 76, 58, .35); background: rgba(255, 253, 248, .7); }
.share svg { width: 18px; height: 18px; color: var(--wa-2); }
.share:hover { background: var(--paper); border-style: solid; }

.qr-box .qr { width: 176px; height: 176px; padding: 10px; border-radius: 16px; }
.qr-box small { max-width: 180px; margin-inline: auto; }
