/* Al-Fitrah Academy — site styles
   Design: warm ivory "Zad" look with gold gradients + clear "Al-Rushd" style top bar, buttons and cards. */

/* ---------- Fonts (self-hosted): Cormorant Garamond for headings, Jost for text, Amiri for Arabic ---------- */
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url(/fonts/jost-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap; src: url(/fonts/jost-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 600; font-display: swap; src: url(/fonts/jost-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 700; font-display: swap; src: url(/fonts/cormorant-garamond-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/cormorant-garamond-latin-700-italic.woff2) format('woff2'); }
@font-face { font-family: 'Amiri Quran'; font-weight: 400; font-display: swap; src: url(/fonts/amiri-quran-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
/* Arabic words inside English text (e.g. a class name) use Amiri Quran, slightly enlarged so it sits evenly with the Latin letters. */
@font-face { font-family: 'AF Arabic'; font-weight: 100 900; font-display: swap; src: url(/fonts/amiri-quran-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; size-adjust: 118%; }
@font-face { font-family: 'Amiri'; font-weight: 400; font-display: swap; src: url(/fonts/amiri-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Amiri'; font-weight: 700; font-display: swap; src: url(/fonts/amiri-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0E1A3D;
  --navy-900: #091230;
  --navy-700: #1C2C5E;
  --gold: #C9A45C;
  --gold-600: #86672B; /* darker gold for small text (meets WCAG AA contrast) */
  --gold-200: #E8D5A8;
  --brown: #86672B;
  --grad-gold: linear-gradient(100deg, #DDBE7C 0%, #C9A45C 50%, #B08A42 100%);
  --teal: #86672B;
  --wa: #25A55F;
  --night: #0A1433;
  --night-2: #0E1A3D;
  --night-line: rgba(232, 213, 168, .14);
  --on-night: #EDE7DA;
  --on-night-muted: #9AA4BD;
  --mono: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --ivory: #FAF8F3;
  --beige: #F4EDE0;
  --sand: #EADFCB;
  --ink: #2A2F40;
  --heading: #0E1A3D;
  --muted: #646B7D;
  --line: #ECE4D6;
  --white: #fff;
  --danger: #B42318;
  --success: #1D7A55;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(58, 45, 20, .05), 0 10px 30px rgba(58, 45, 20, .07);
  --shadow-lg: 0 24px 60px rgba(40, 30, 10, .14);
  --sans: 'Jost', 'AF Arabic', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: 'Cormorant', 'AF Arabic', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --arabic: 'Amiri', 'Traditional Arabic', serif;
  --quran: 'Amiri Quran', 'Amiri', 'Traditional Arabic', serif;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--sans); font-size: 1.05rem; line-height: 1.75; font-weight: 400; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-600); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--serif); color: var(--heading); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-200); color: var(--navy); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.narrow-lg { max-width: 1000px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.d-block { display: block; }
.mt { margin-top: 1rem; } .mt-lg { margin-top: 2rem; } .mt-xl { margin-top: 4rem; }
.pre { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }
.sr-only, .hp { 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: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 12px; }
.arabic { font-family: var(--arabic); line-height: 1.9; }
.icon { flex: none; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--navy); --fg: #fff; --bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.7em; font: 500 .95rem/1.15 var(--sans); letter-spacing: .02em; color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd); border-radius: 12px; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, filter .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40, 30, 10, .16); color: var(--fg); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { --bg: var(--grad-gold); --fg: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-navy { --bg: var(--navy); }
.btn-navy:hover { --bg: var(--navy-700); }
.btn-line, .btn-outline { --bg: #fff; --fg: var(--heading); --bd: var(--sand); }
.btn-line:hover, .btn-outline:hover { --bd: var(--gold); --fg: var(--brown); }
.btn-ghost { --bg: rgba(255, 255, 255, .03); --fg: #fff; --bd: rgba(255, 255, 255, .28); }
.btn-glow { --bg: linear-gradient(100deg, #EFD79E, #D9B66E 55%, #C9A45C); --fg: #0A1433; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 220, 160, .35) inset, 0 10px 30px rgba(201, 164, 92, .35); }
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(255, 230, 180, .6) inset, 0 14px 40px rgba(201, 164, 92, .5); color: #0A1433; }
.btn-glow .dot { width: 7px; height: 7px; border-radius: 50%; background: #0A1433; opacity: .7; }
.hero .btn-ghost { border-radius: 999px; }
.btn-ghost:hover { --bg: rgba(255, 255, 255, .1); --bd: #fff; }
.btn-wa { --bg: var(--wa); --fg: #fff; }
.btn-wa:hover { --bg: #1E9152; }
.btn-danger { --bg: #fff; --fg: var(--danger); --bd: rgba(180, 35, 24, .3); }
.btn-sm { padding: .58em 1.05em; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 1em 2em; font-size: 1.02rem; }
.btn-block { width: 100%; margin-top: .6rem; }
.btn-pay { --bg: var(--navy); min-width: 200px; }
.btn-paypal { --bg: #FFC439; --fg: #142C8E; }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--gold-600); text-decoration: none; }
.more .icon { transition: transform .25s; }
.more:hover .icon, a:hover .more .icon { transform: translateX(4px); }

/* ---------- Top bar (logins) ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .85); font-size: .85rem; position: relative; z-index: 60; }
.topbar-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar-left { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: var(--gold-200); }
.topbar-ann { color: var(--gold-200); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 1.1rem; border-left: 1px solid rgba(255, 255, 255, .15); }
.login-tab { display: flex; align-items: center; gap: .6rem; padding: 0 1.4rem 0 1.8rem; background: var(--grad-gold); color: #fff; font-weight: 700; border-radius: 0 0 0 28px; margin-right: -20px; }
.login-tab span { opacity: .6; }
.login-tab a:hover { color: var(--navy-900); }
.login-tab form { margin: 0; display: inline; }
.login-tab button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 0; }
@media (max-width: 760px) { .topbar-ann { display: none; } .hide-sm { display: none; } .login-tab { padding: 0 1rem 0 1.2rem; font-size: .8rem; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(40, 30, 10, .04); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 82px; max-width: 1340px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; flex: none; }
.brand-emblem { width: 56px; height: auto; transition: transform .3s var(--ease); }
.brand:hover .brand-emblem { transform: translateY(-2px) rotate(-2deg); }
@media (max-width: 420px) { .brand-emblem { width: 48px; } }
.site-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: flex; align-items: center; gap: .4rem; padding: .55rem .7rem; font-size: .97rem; font-weight: 500; color: var(--heading); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.nav-list > li > a:hover, .nav-list > li > a[aria-current] { color: var(--gold-600); }
.nav-list > li > a[aria-current] { font-weight: 700; }
.dd-toggle { background: none; border: 0; padding: .3rem; min-width: 24px; min-height: 24px; justify-content: center; align-items: center; margin-left: -.5rem; color: var(--muted); cursor: pointer; border-radius: 6px; display: inline-flex; }
.dropdown { position: absolute; top: calc(100% + 6px); left: -.5rem; min-width: 290px; list-style: none; margin: 0; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease); z-index: 60; }
.dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown a { font-size: .92rem; padding: .6rem .8rem; white-space: normal; }
.dropdown a:hover { background: var(--ivory); color: var(--gold-600); }
.dropdown .icon { color: var(--gold); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
.cart-link { position: relative; display: inline-flex; padding: .5rem; color: var(--heading); border-radius: 50%; }
.cart-link:hover { background: var(--ivory); color: var(--gold-600); }
.cart-count { position: absolute; top: -1px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brown); color: #fff; font: 700 .68rem/18px var(--sans); text-align: center; }
.nav-toggle { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; color: var(--heading); cursor: pointer; }
/* 10 menu items: the "Contact Us" button (also in the top bar) hides first, then spacing tightens, then the mobile menu takes over */
/* 10 menu items: the "Contact Us" button (also in the top bar) hides first, then spacing tightens, then "Payments & Donations"
   shortens to "Payments" and the Donate button hides (Donations is in the menu), and below 1180 px the mobile menu takes over. */
.lbl-short { display: none; }
@media (max-width: 1700px) { .nav-actions .btn-line { display: none; } .nav-list a { padding: .5rem .55rem; font-size: .95rem; } .nav-list .dd-toggle { padding-left: .1rem; padding-right: .1rem; min-width: 24px; } }
@media (max-width: 1520px) { .nav-list a { padding: .5rem .4rem; font-size: .9rem; } .nav-actions { gap: .4rem; } .nav-actions .btn-sm { padding-left: .8rem; padding-right: .8rem; } }
@media (min-width: 1181px) and (max-width: 1400px) { .lbl-full { display: none; } .lbl-short { display: inline; } .nav-actions .btn-donate { display: none; } .nav-list a { padding: .45rem .32rem; font-size: .88rem; } .brand-emblem { width: 50px; } }
@media (max-width: 1180px) {
  .nav-actions .btn-line { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); flex-direction: column; align-items: stretch; gap: 1rem; padding: 90px 18px 24px; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .3s var(--ease); overflow-y: auto; margin: 0; z-index: 70; }
  .site-nav.open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: .85rem .4rem; font-size: 1.05rem; }
  .dd-toggle { padding: .6rem; }
  .dropdown { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .6rem .4rem; display: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open:hover .dropdown { display: block; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
  .nav-toggle[aria-expanded="true"] { position: fixed; right: 18px; top: 18px; z-index: 80; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(11, 23, 54, .45); z-index: 40; }
}

/* ---------- Decorative ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: .9rem auto 1.1rem; max-width: 200px; }
.divider span { height: 2px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); border-radius: 2px; }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.divider-light i { background: var(--gold-200); }
.watermark { position: absolute; font: 700 clamp(9rem, 26vw, 22rem)/1 var(--arabic); color: var(--brown); opacity: .045; white-space: nowrap; pointer-events: none; user-select: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section-ivory { background: var(--ivory); }
.section-tint { background: var(--beige); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.8rem; }
.section-head.left { text-align: left; margin: 0 0 1.4rem; }
.section-head h2 { margin-bottom: 0; }
.section-head.left h2 { margin-bottom: .6rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 500 .8rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 1rem; }
.tri { width: 26px; height: 1px; background: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Hero (dark, particle field) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: var(--on-night); background: radial-gradient(ellipse 70% 60% at 72% 42%, var(--hero-mid, #16244F) 0%, var(--night-2) 42%, var(--night) 100%); transition: background .6s; min-height: min(860px, calc(100svh - 120px)); display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-canvas { position: absolute; inset: 0; z-index: -1; display: block; pointer-events: none; }
.hero-glow { position: absolute; z-index: -2; width: 46vw; height: 46vw; right: 6%; top: 50%; transform: translateY(-58%); border-radius: 50%; background: radial-gradient(circle, rgba(201, 164, 92, .18), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; width: 100%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 500 .78rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-200); margin: 0 0 1.4rem; padding: .45rem .9rem; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #E8CD8E; box-shadow: 0 0 0 0 rgba(232, 205, 142, .6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(232, 205, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 205, 142, 0); } }
/* Qur'anic āyah: Amiri Quran in a slow gold shimmer, framed by hairlines */
.hero-copy { container-type: inline-size; }
.hero-ayah { margin: 0 0 1.5rem; max-width: 36rem; }
.ayah-ar { position: relative; margin: 0; padding: .3rem 0 .55rem; font-family: var(--quran); font-size: clamp(1.5rem, 7vw, 2.9rem); font-size: min(3rem, 8.4cqi); line-height: 1.7; white-space: nowrap; font-weight: 400; text-align: left; direction: rtl; unicode-bidi: plaintext; word-spacing: .06em;
  background: linear-gradient(100deg, #C9A45C 0%, #F3DFA8 22%, #E8CD8E 40%, #C9A45C 58%, #F6E7BF 78%, #C9A45C 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(201, 164, 92, .28)); }
.ayah-br { font-size: .82em; padding: 0 .12em; opacity: .9; }
.hero-ayah figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; padding-top: .7rem; border-top: 1px solid; border-image: linear-gradient(90deg, rgba(232, 205, 142, .7), rgba(232, 205, 142, 0) 85%) 1; }
.ayah-en { font: italic 600 1.12rem/1.4 var(--serif); color: var(--on-night); letter-spacing: .01em; }
.hero-ayah cite { font: 500 .7rem/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #E8CD8E; padding: .35rem .65rem; border: 1px solid rgba(232, 205, 142, .35); border-radius: 999px; }
.hero-title { font-family: var(--serif); font-size: clamp(3rem, 6.6vw, 5.6rem); line-height: 1; letter-spacing: 0; color: #fff; margin: 0 0 1.4rem; font-weight: 700; }
.hero-title .hl { font-style: italic; }
.hero-title .hl { display: inline; background: linear-gradient(100deg, #F3DFA8, #D9B66E 50%, #C9A45C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .hl .w { background: inherit; -webkit-background-clip: text; background-clip: text; }
.hero-text { font-size: 1.15rem; line-height: 1.65; color: var(--on-night-muted); max-width: 33rem; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.audience { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.audience li { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--on-night); padding: .35rem .8rem; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.audience .icon { color: #E8CD8E; }
.hero-stage { position: relative; align-self: stretch; min-height: 420px; display: flex; align-items: flex-end; justify-content: center; }
.hero-facts { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); }
.hero-facts li { display: flex; align-items: center; gap: .75rem; padding: 1.3rem 1rem 0 0; }
.hero-facts .icon { color: #E8CD8E; flex: none; }
.hero-facts strong { display: block; color: #fff; font-size: 1.05rem; line-height: 1.2; }
.hero-facts small { color: var(--on-night-muted); font-size: .85rem; }
/* word-by-word blur reveal */
.hero-title .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .w { animation: blurIn .7s var(--ease) both; animation-delay: calc(var(--i) * 55ms + .05s); }
  .hero-eyebrow { animation: blurIn .8s var(--ease) both; }
  .hero-ayah { animation: blurIn 1.2s var(--ease) both .05s; }
  .ayah-ar { animation: ayahShine 9s ease-in-out infinite 1.4s; }
  .hero-text { animation: blurIn .9s var(--ease) both .75s; }
  .hero-actions { animation: blurIn .9s var(--ease) both .9s; }
  .audience { animation: blurIn .9s var(--ease) both 1.05s; }
  .hero-facts li { animation: blurIn .8s var(--ease) both; animation-delay: calc(1.2s + var(--i) * 100ms); }
}
@keyframes ayahShine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blurIn { from { opacity: 0; filter: blur(14px); transform: translateY(10px); } to { opacity: 1; filter: blur(0); transform: none; } }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-stage { order: -1; min-height: 380px; align-items: flex-end; padding-bottom: 1.4rem; }
  .hero-eyebrow { font-size: .68rem; letter-spacing: .1em; }
  .hero-copy { text-align: left; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-glow { width: 90vw; height: 90vw; right: 5%; top: 170px; transform: none; }
}

/* ---------- Statement (scroll-lit words) ---------- */
.statement { background: var(--night); color: var(--on-night); padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.mono-label { font: 500 .8rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #D9B66E; margin: 0 0 1.4rem; }
.statement-text { font: 600 clamp(1.9rem, 3.9vw, 3.2rem)/1.25 var(--serif); letter-spacing: 0; color: #fff; margin: 0 0 2.4rem; }
.sw { transition: opacity .45s var(--ease), color .45s, filter .45s; }
.sw.gold { color: #E8CD8E; }
/* words start softly lit (still readable) and brighten as you scroll */
.js .statement-text .sw:not(.lit) { color: #8C96B0; }
.js .statement-text .sw.lit { color: #fff; }
.js .statement-text .sw.gold.lit { color: #E8CD8E; }
.without { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: 1.1rem; color: var(--on-night-muted); margin: 0 0 1.6rem; }
.strike { position: relative; isolation: isolate; display: inline-block; padding: .4rem 1rem; border: 1px solid rgba(232, 205, 142, .28); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #F4EFE3; font-size: 1rem; font-weight: 500; letter-spacing: .01em; }
.strike::after { content: ''; position: absolute; z-index: -1; left: .75rem; right: .75rem; top: calc(50% + 1px); height: 2px; background: #D9B66E; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); transition-delay: calc(.4s + var(--k) * .45s); }
.without.in .strike::after, html:not(.js) .strike::after { transform: scaleX(1); }
.without.in .strike { color: #E6DFCC; transition: color .4s; transition-delay: calc(.6s + var(--k) * .45s); }
.after { color: #fff; font-weight: 700; }
.more-light { color: #E8CD8E; }
.more-light:hover { color: #fff; }

/* ---------- What we teach (numbered cards, light) ---------- */
.teach { background: var(--ivory); padding: clamp(4rem, 8vw, 6rem) 0; }
.teach-head { max-width: 680px; margin: 0 auto 2.8rem; text-align: center; }
.teach-head h2 { margin: 0 0 .5rem; }
.teach-head .mono-label { color: var(--gold-600); }
.teach-head p:not(.mono-label) { color: var(--muted); margin: 0; }
.teach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tcard { position: relative; display: flex; flex-direction: column; padding: 1.3rem 1.3rem 1.6rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; overflow: hidden; }
.tcard::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--gold), transparent 65%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tcard:hover::before { opacity: 1; }
.tcard-img { display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin-bottom: 1.2rem; background: var(--beige); }
.tcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tcard:hover .tcard-img img { transform: scale(1.05); }
.tcard-kicker { font-weight: 500; color: var(--gold-600); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin: .2rem 0 .5rem; }
.tcard-text { color: var(--muted); font-size: .98rem; }
.tcard-go { position: absolute; right: 1.2rem; top: 1.1rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-600); transition: transform .3s var(--ease), background .3s; background: #fff; }
.tcard:hover .tcard-go { transform: rotate(-45deg); background: var(--ivory); }
@media (max-width: 900px) { .teach-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ivory), var(--beige)); text-align: center; padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2.4rem, 5vw, 3.4rem); isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url(/img/pattern.svg) center / 110px repeat; opacity: .16; z-index: -1; -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, #000 80%); mask-image: radial-gradient(ellipse at center, transparent 20%, #000 80%); }
.page-hero .watermark { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(7rem, 18vw, 14rem); z-index: -1; }
.page-hero h1 { margin: 0 auto; max-width: 26ch; text-wrap: balance; }
.page-hero-sub { font-size: 1.15rem; font-weight: 500; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; margin: .5rem 0 0; }
.page-hero-ar { color: var(--brown); font-size: 1.4rem; margin: 0 0 .2rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: var(--gold-600); text-decoration: none; }

/* ---------- Programme cards (Zad style) ---------- */
.prog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.pcard-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--beige); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-body { position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; }
.swoosh { position: absolute; right: 16px; top: -30px; width: 70px; color: var(--sw); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12)); }
.pcard-title { font: 700 1.7rem/1.2 var(--serif); color: var(--heading); }
.pcard-text { color: var(--muted); margin: .4rem 0 1rem; }
.pcard .more { margin-top: auto; }
@media (max-width: 900px) { .prog-cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- About band ---------- */
.about-band { background: var(--ivory); border-radius: 0 0 50% 50% / 0 0 60px 60px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-card { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); box-shadow: var(--shadow-lg); isolation: isolate; }
.about-card::before { content: ''; position: absolute; inset: 0; background: url(/img/pattern.svg) center / 70px; opacity: .14; z-index: -1; }
.about-card-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 2rem 2.4rem 2rem 4.8rem; color: #fff; }
.about-card-inner img { width: 64px; margin-bottom: .6rem; }
.about-k { font: 800 1.9rem/1.1 var(--sans); }
.about-tag { align-self: flex-start; background: #fff; color: var(--brown); font: 800 1.5rem/1.2 var(--sans); padding: .25rem .7rem; margin: .4rem 0 .6rem; border-radius: 4px; }
.about-card-inner small { color: var(--gold-200); }
.about-play { position: absolute; left: -2px; top: 50%; transform: translate(-30%, -50%); width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); display: grid; place-items: center; color: var(--gold-600); box-shadow: var(--shadow); z-index: 2; transition: transform .3s var(--ease); }
.about-card:hover .about-play { transform: translate(-30%, -50%) scale(1.07); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-band { border-radius: 0; } }

/* ---------- What we offer ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.offer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; text-align: center; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-200); }
.offer-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--navy); color: var(--gold-200); box-shadow: 0 0 0 4px var(--beige), 0 8px 18px rgba(14, 26, 61, .2); }
.offer h3 { margin-bottom: .35rem; }
.offer p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .offer-grid { grid-template-columns: 1fr; } }

/* ---------- Hadith band ---------- */
.quote-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--beige), #F7F1E6 50%, var(--beige)); padding: clamp(3.5rem, 7vw, 5.5rem) 0; isolation: isolate; }
.quote-band::before { content: ''; position: absolute; inset: 0; background: url(/img/pattern.svg) center / 140px; opacity: .1; z-index: -1; }
.quote-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); font: 700 26rem/1 Georgia, serif; color: var(--brown); opacity: .06; z-index: -1; }
.quote-intro { font-weight: 700; color: var(--heading); margin-bottom: .6rem; }
.quote-ar { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--brown); margin: 0 0 .4rem; }
.quote-text { margin: 0 auto; max-width: 30ch; font: italic 600 clamp(1.8rem, 3.6vw, 2.7rem)/1.35 var(--serif); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote-src { font-weight: 700; color: var(--heading); margin: 1rem 0 0; }

/* ---------- Learning path (zig-zag) ---------- */
.path { list-style: none; margin: 0 auto; padding: 0; max-width: 940px; display: grid; gap: 1.2rem; }
.step { position: relative; width: 60%; display: flex; align-items: center; gap: 1.1rem; background: var(--ivory); border-radius: 999px; padding: 1.2rem 1.4rem 1.2rem 1.8rem; }
.step.right { margin-left: auto; flex-direction: row-reverse; padding: 1.2rem 1.8rem 1.2rem 1.4rem; text-align: left; }
.step::after { content: ''; position: absolute; top: -6px; bottom: -6px; width: 108px; border: 3px dotted var(--gold); border-radius: 999px; pointer-events: none; }
.step.left::after { right: -6px; border-left-color: transparent; border-bottom-color: transparent; }
.step.right::after { left: -6px; border-right-color: transparent; border-top-color: transparent; }
.step-ic { color: var(--teal); flex: none; }
.step-body { flex: 1; display: flex; flex-direction: column; }
.step-body strong { color: var(--heading); font-size: 1.08rem; }
.step-body span { color: var(--muted); font-size: .95rem; }
.step-no { flex: none; font: 700 2.6rem/1 var(--serif); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .6rem; border-left: 1px solid var(--sand); }
.step.right .step-no { border-left: 0; border-right: 1px solid var(--sand); }
@media (max-width: 760px) { .step, .step.right { width: 100%; border-radius: 24px; } .step::after { display: none; } }

/* ---------- Price cards ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-top { background: var(--navy); color: #fff; padding: 1.2rem 1.4rem 1rem; border-bottom: 1px solid var(--line); }
.price-top { min-height: 7.4rem; }
.price-top h3 { margin: .7rem 0 0; font-size: 1.6rem; color: #fff; }
.price-top .tag { background: transparent; border-color: rgba(232, 213, 168, .4); color: var(--gold-200); }
.tag { display: inline-block; background: #fff; border: 1px solid var(--sand); border-radius: 999px; padding: .2rem .8rem; font-size: .78rem; font-weight: 500; letter-spacing: .06em; color: var(--gold-600); }
.price-mid { padding: 1.2rem 1.4rem 0; flex: 1; }
.price { font: 700 2.9rem/1 var(--serif); color: var(--heading); margin: 0 0 1rem; display: flex; align-items: baseline; gap: .4rem; }
.price small { font-size: .9rem; font-weight: 700; color: var(--muted); }
.ticks { list-style: none; padding: 1rem 0 0; margin: 0 0 1rem; border-top: 1px solid var(--line); display: grid; gap: .45rem; font-size: .94rem; }
.ticks li { display: flex; gap: .55rem; align-items: center; }
.ticks .icon { color: var(--teal); }
.price-desc { color: var(--muted); font-size: .92rem; }
.price-actions { padding: 0 1.4rem 1.4rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.price-actions .btn { flex: 1; }

/* ---------- Posters ---------- */
.poster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.poster { margin: 0; display: flex; flex-direction: column; }
.poster-frame { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--beige); box-shadow: var(--shadow); aspect-ratio: 4 / 5; transition: transform .35s var(--ease), box-shadow .35s; border: 6px solid #fff; }
.poster-frame:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.aspect-a4 .poster-frame { aspect-ratio: 1 / 1.414; }
.aspect-square .poster-frame { aspect-ratio: 1; }
.aspect-landscape .poster-frame { aspect-ratio: 16 / 9; }
.poster figcaption { padding: .9rem .3rem 0; display: flex; flex-direction: column; gap: .1rem; }
.poster-title { font-weight: 800; font-size: 1.2rem; color: var(--heading); }
.poster-cap { color: var(--muted); font-size: .95rem; }
.poster-link { font-weight: 700; font-size: .92rem; text-decoration: none; margin-top: .2rem; }
@media (max-width: 600px) { .poster-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11, 23, 54, .9); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; animation: fade .2s; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Testimonials carousel ---------- */
.tm-section { background: var(--ivory); border-radius: 50% 50% 0 0 / 60px 60px 0 0; }
.tm-carousel { position: relative; }
.tm-track { display: grid; grid-template-columns: 1fr; place-items: center; min-height: 330px; }
.tm { grid-area: 1 / 1; width: min(560px, 100%); margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.6rem 2rem 1.8rem; text-align: left; box-shadow: var(--shadow); opacity: 0; transform: scale(.9); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; position: relative; }
.tm.active { opacity: 1; transform: none; pointer-events: auto; z-index: 2; }
.tm.prev, .tm.next { opacity: .45; pointer-events: auto; cursor: pointer; z-index: 1; }
.tm.prev { transform: translateX(-62%) scale(.82); }
.tm.next { transform: translateX(62%) scale(.82); }
.tm-avatar { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; background: var(--grad-gold); color: #fff; display: grid; place-items: center; font: 700 1.6rem var(--serif); border: 4px solid #fff; box-shadow: var(--shadow); }
.tm > .icon { color: var(--teal); }
.tm blockquote { margin: .6rem 0 1rem; font: italic 600 1.45rem/1.45 var(--serif); color: var(--ink); }
.tm figcaption strong { display: block; color: var(--heading); font-weight: 600; }
.tm figcaption span { color: var(--muted); font-size: .9rem; }
.tm-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1.6rem; }
.tm-dots button { width: 16px; height: 6px; border-radius: 3px; border: 0; background: var(--sand); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.tm-dots button[aria-selected="true"] { width: 34px; background: var(--grad-gold); }
@media (max-width: 760px) { .tm.prev, .tm.next { opacity: 0; pointer-events: none; } .tm-section { border-radius: 0; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 370px)); justify-content: center; gap: 1.6rem; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-img { display: block; aspect-ratio: 16 / 10; background: var(--beige); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-img-ph { display: block; height: 100%; background: url(/img/pattern.svg) center / 60px, var(--beige); }
.news-body { padding: 1.2rem 1.3rem 1.4rem; }
.news-body time { font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); }
.news-body h3 { margin: .3rem 0 .4rem; }
.news-body h3 a { color: var(--heading); text-decoration: none; }
.news-body h3 a:hover { color: var(--gold-600); }
.news-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.article-img { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; box-shadow: var(--shadow); }

/* ---------- FAQ / accordion ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.accordion { display: grid; gap: .8rem; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.acc[open] { box-shadow: var(--shadow); border-color: var(--gold-200); }
.acc summary { list-style: none; display: flex; align-items: center; gap: .8rem; padding: 1.05rem 1.3rem; cursor: pointer; font-weight: 700; color: var(--heading); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--ivory); }
.acc summary > .icon:last-child { margin-left: auto; transition: transform .25s; color: var(--gold-600); }
.acc[open] summary > .icon:last-child { transform: rotate(180deg); }
.acc-title { display: flex; align-items: center; gap: .6rem; font-size: 1.08rem; }
.acc-title .icon { color: var(--teal); }
.acc-meta { margin-left: auto; font-size: .82rem; color: var(--muted); font-weight: 500; display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; }
.acc-meta + .icon { margin-left: .4rem !important; }
.acc-body { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.acc-body p:last-child { margin-bottom: 0; }

/* ---------- Audio ---------- */
.locked { display: flex; gap: .5rem; align-items: center; background: var(--ivory); padding: .9rem 1rem; border-radius: var(--radius-sm); margin: 0; color: var(--ink); }
.tracks { list-style: none; margin: 0; padding: 0; }
.track { display: flex; align-items: center; gap: .9rem; padding: .7rem .2rem; border-top: 1px solid var(--line); color: var(--ink); }
.track-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad-gold); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s; }
.track-play:hover { transform: scale(1.07); }
.track.playing .track-play { background: var(--navy); }
.track-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.track-title { font-weight: 500; }
.track-sub { font-size: .85rem; color: var(--muted); }
.track-progress { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; }
.track-progress input { flex: 1; accent-color: var(--gold); height: 4px; }
.track-time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 82px; text-align: right; }
.track-speed { font: inherit; font-size: .82rem; padding: .25rem .3rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.track-dl { color: var(--muted); padding: .4rem; border-radius: 50%; display: inline-flex; }
.track-dl:hover { color: var(--brown); background: var(--ivory); }

/* ---------- Fee table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.fee-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.fee-table th, .fee-table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fee-table thead th { background: var(--beige); color: var(--heading); font: 800 .82rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.fee-table tbody tr:hover { background: var(--ivory); }
.fee-table tbody tr:last-child > * { border-bottom: 0; }
.fee-table tbody th { font-weight: 400; }
.fee-cell { font-weight: 800; color: var(--brown); white-space: nowrap; }
@media (max-width: 720px) {
  .fee-table thead { display: none; }
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; width: 100%; }
  .fee-table tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .fee-table th, .fee-table td { padding: .2rem 0; border: 0; }
  .fee-table td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: .88rem; }
  .fee-table td:last-child { padding-top: .6rem; }
}

/* ---------- Forms ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card { padding: clamp(1.4rem, 4vw, 2.4rem); }
.form-h { display: flex; align-items: center; gap: .5rem; font-size: 1.6rem; margin-bottom: .4rem; }
.form-h .icon { color: var(--teal); }
.form-h.center { justify-content: center; }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; font-size: .95rem; font-weight: 500; color: var(--heading); }
.field > span small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .track-form input { font: inherit; font-weight: 400; font-size: 1rem; width: 100%; padding: .75rem .9rem; border: 1.5px solid #E1D8C8; border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 3rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, .18); outline: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem 1.1rem; margin: 0; display: grid; gap: 1rem; }
.fieldset legend { font-weight: 800; color: var(--heading); padding: 0 .4rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--brown); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.cf-turnstile { min-height: 65px; }
.radio-row, .amounts { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-pill, .amount-pill { position: relative; cursor: pointer; }
.radio-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid #E1D8C8; border-radius: 999px; padding: .5rem 1rem; font-size: .92rem; }
.radio-pill:has(input:checked) { border-color: var(--brown); background: var(--ivory); }
.amount-pill input { position: absolute; opacity: 0; }
.amount-pill span { display: inline-block; min-width: 76px; text-align: center; padding: .7rem 1rem; border: 1.5px solid #E1D8C8; border-radius: 12px; font-weight: 600; transition: .15s; }
.amount-pill input:checked + span { border-color: transparent; background: var(--grad-gold); color: #fff; }
.amount-pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.flash { margin: 1.2rem 0; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; border: 1px solid; }
.flash-success { background: #E8F5EE; border-color: #B7DFC8; color: var(--success); }
.flash-error { background: #FDEDEC; border-color: #F4C7C3; color: var(--danger); }
.notice { display: flex; gap: .75rem; align-items: flex-start; background: var(--ivory); border: 1px solid var(--gold-200); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.6rem; }
.notice p, .notice ul { margin: 0; }
.notice .icon { color: var(--gold-600); margin-top: 3px; }
.success-box { text-align: center; padding: 1rem 0; }
.success-box .icon, .form-card.center > .icon { margin: 0 auto 1rem; color: #fff; background: var(--success); border-radius: 50%; padding: 8px; width: 48px; height: 48px; }
.ref { font-family: ui-monospace, Menlo, monospace; background: var(--ivory); padding: .1em .45em; border-radius: 6px; letter-spacing: .05em; }
.pay-box { margin-top: 1.4rem; padding: 1.4rem; background: var(--ivory); border-radius: var(--radius-sm); }
.pay-amount { font-size: 1.15rem; }
.pay-buttons { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }

/* ---------- Content pages ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.8rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose ul li::marker { color: var(--gold); }
.prose strong { color: var(--heading); }
.aside-card { position: sticky; top: 110px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.aside-card > img { margin: 0 auto 1rem; max-width: 240px; }
.aside-h { font-size: 1.35rem; display: flex; align-items: center; gap: .5rem; }
.aside-h .icon { color: var(--teal); }
.aside-note { font-size: .92rem; color: var(--muted); text-align: center; }
.contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-list .icon { color: var(--teal); margin-top: 4px; }
.h-sub { font-size: 1.5rem; display: flex; align-items: center; gap: .5rem; margin-top: 2rem; }
.h-sub .icon { color: var(--teal); }
.prog-fee.big { font: 800 2rem/1.2 var(--sans); color: var(--heading); margin: 0 0 .6rem; }
.prog-meta { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .4rem; font-size: .95rem; }
.prog-meta li { display: flex; gap: .5rem; align-items: center; }
.prog-meta .icon { color: var(--teal); }

/* ---------- Resources / student ---------- */
.res-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.res-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1.6rem 1rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: .25s var(--ease); }
.res-tile:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.res-tile .icon { color: var(--teal); margin-bottom: .3rem; }
.res-tile strong { font-size: 1.15rem; color: var(--heading); }
.res-tile span { font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) { .res-tiles { grid-template-columns: 1fr; } }
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list li { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.res-list li:last-child { border-bottom: 0; }
.res-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--beige); color: var(--teal); flex: none; }
.res-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.res-main a { font-weight: 700; text-decoration: none; }
.res-desc { font-size: .9rem; color: var(--muted); }
.res-main audio { width: 100%; max-width: 420px; height: 36px; margin-top: .4rem; }
.res-section { border: 1px solid var(--line); border-radius: 12px; margin: .6rem 0; background: #fff; }
.res-section > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; list-style: none; }
.res-section > summary::-webkit-details-marker { display: none; }
.res-section > summary::after { content: '▾'; margin-left: auto; transition: transform .2s; }
.res-section[open] > summary::after { transform: rotate(180deg); }
.res-section > summary small { color: var(--muted); font-weight: 500; }
.res-section .res-list { padding: 0 1rem .4rem; }
.res-size { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.student-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding: .8rem 1.1rem; background: var(--ivory); border-radius: var(--radius-sm); }
.student-bar p { margin: 0; }
.student-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.res-card { padding: 1.4rem 1.6rem; margin-bottom: 1.4rem; }
.res-card .h-sub { margin-top: 0; }
@media (max-width: 860px) { .student-grid { grid-template-columns: 1fr; } }

/* ---------- Strips & CTA ---------- */
.strip { background: var(--ivory); border-block: 1px solid var(--line); padding: .9rem 0; }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap; text-align: center; color: var(--heading); }
.strip .icon { color: var(--gold-600); }
.strip-navy { background: var(--navy); color: #fff; border: 0; }
.strip-navy .strip-inner { color: #fff; }
.countdown .cd b { font-size: 1.4rem; color: var(--gold-200); margin: 0 .15rem 0 .5rem; }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--navy) 55%, var(--navy-700)); color: #fff; padding: clamp(2.8rem, 6vw, 4rem) 0; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: url(/img/pattern.svg) center / 90px; opacity: .1; z-index: -1; }
.cta-inner { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.cta-inner > img { width: 70px; flex: none; }
.cta-copy { flex: 1; min-width: 260px; }
.cta-copy h2 { color: #fff; margin-bottom: .3rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-copy p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.prayer-times { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-bottom: 1rem; }
.pt { background: #fff; border-radius: var(--radius-sm); padding: 1rem .5rem; text-align: center; box-shadow: var(--shadow); }
.pt span { display: block; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pt strong { font-size: 1.4rem; color: var(--heading); }
@media (max-width: 700px) { .prayer-times { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer (navy — mirrors the top bar and banner) ---------- */
.site-footer { position: relative; background: var(--navy-900); color: rgba(255, 255, 255, .78); padding: 4.2rem 0 0; isolation: isolate; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand img { width: 96px; height: auto; margin: 0 0 1rem; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.footer-name { font: 700 1.7rem/1.1 var(--serif); color: #fff; margin: 0 0 .2rem; }
.footer-tag { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-200); margin: 0 0 1rem; }
.footer-about { font-size: .97rem; max-width: 34ch; }
.footer-small { font-size: .9rem; color: var(--gold-200); }
.footer-social { display: flex; gap: .9rem; flex-wrap: wrap; }
.footer-social a { color: var(--gold-200); font-size: .92rem; }
.footer-h { font: 700 1.3rem/1.2 var(--serif); color: #fff; margin: .2rem 0 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .75); text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; font-size: .98rem; }
.footer-links a:hover { color: var(--gold-200); }
.footer-links .icon { color: var(--gold); }
.footer-links.dark a { color: var(--ink); }
.footer-links.dark a:hover { color: var(--gold-600); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 20px; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom .dev-credit { flex-basis: 100%; text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .5); }
.footer-bottom .dev-credit a { color: rgba(255, 255, 255, .65); }
.footer-bottom .dev-credit a:hover { color: var(--gold, #C9A24B); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Floating WhatsApp chat + back to top ---------- */
.wa-chat { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.wa-float { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(37, 165, 95, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out infinite; }
.wa-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #E74C3C; border: 2px solid #fff; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { display: none; } }
.wa-panel { width: min(340px, calc(100vw - 40px)); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .22); transform-origin: bottom right; animation: waIn .25s var(--ease); }
@keyframes waIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.wa-head { display: flex; align-items: center; gap: .7rem; background: #075E54; color: #fff; padding: .9rem 1rem; }
.wa-head img { width: 34px; height: 42px; background: #fff; border-radius: 10px; padding: 3px; }
.wa-head strong { display: block; font-size: 1.05rem; }
.wa-head span { font-size: .8rem; opacity: .85; line-height: 1.3; display: block; }
.wa-close { margin-left: auto; background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.wa-body { background: #ECE5DD; padding: 1.1rem; }
.wa-bubble { position: relative; background: #DCF8C6; border-radius: 0 12px 12px 12px; padding: .8rem .9rem .5rem; font-size: .92rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); max-width: 92%; }
.wa-bubble p { margin: 0 0 .3rem; }
.wa-bubble ul { margin: 0 0 .3rem; padding-left: 1.1rem; font-weight: 700; }
.wa-bubble time { display: block; text-align: right; font-size: .72rem; color: #667; }
.wa-send { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .8rem; padding: .8rem; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 800; text-decoration: none; }
.wa-send:hover { background: #1E9152; color: #fff; }
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 94; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.wa-chat.open ~ .to-top { display: none !important; }
.cookie-note { position: fixed; left: 18px; bottom: 18px; z-index: 96; max-width: 420px; display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .9rem 1rem; font-size: .92rem; }
.cookie-note p { margin: 0; }
@media (max-width: 560px) { .cookie-note { right: 96px; left: 12px; bottom: 12px; } .wa-chat { right: 14px; bottom: 14px; } .to-top { right: 24px; bottom: 88px; } }

/* ---------- Auth & cart ---------- */
.auth-section { background: linear-gradient(180deg, var(--ivory), var(--beige)); min-height: 70vh; }
.auth-wrap { max-width: 480px; }
.auth-logo { margin: 0 auto .8rem; }
.auth-links { text-align: center; font-size: .95rem; margin: 1rem 0 0; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .7rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table .r { text-align: right; }
.cart-table input { width: 64px; padding: .35rem; border: 1px solid #E1D8C8; border-radius: 6px; font: inherit; }
.cart-table tfoot th { font-size: 1.1rem; border-bottom: 0; }
.cart-table button { background: none; border: 0; color: var(--danger); cursor: pointer; padding: .3rem; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .topbar, .site-header, .site-footer, .wa-chat, .to-top, .cookie-note { display: none !important; } }
.aside-card > img.aside-emblem { max-width: 120px; }

/* ---------- Islamic & English calendar ---------- */
.calendar-section { background: #fff; }
.cal-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.6rem; align-items: stretch; }
.cal-today { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--on-night); border-radius: 22px; padding: 2rem 2rem 1.6rem; text-align: center; }
.cal-today::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(/img/pattern.svg) center / 70px; opacity: .08; }
.cal-today::after { content: ''; position: absolute; z-index: -1; width: 320px; height: 320px; left: 50%; top: -60px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(232, 213, 168, .18), transparent 65%); }
.cal-label { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-200); margin: 0 0 .6rem; }
.cal-hijri-ar { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: #fff; margin: 0; line-height: 1.6; }
.cal-hijri { font: italic 600 clamp(1.4rem, 2.4vw, 1.75rem)/1.2 var(--serif); color: var(--gold-200); margin: .2rem 0 0; }
.cal-today .divider { margin: 1.1rem auto; }
.cal-greg { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-muted); margin: 0; }
.cal-greg-date { font: 700 clamp(1.6rem, 2.8vw, 2rem)/1.2 var(--serif); color: #fff; margin: .2rem 0 0; }
.cal-up-h { font-size: 1.3rem; color: #fff; margin: 1.8rem 0 .7rem; text-align: left; }
.cal-up { list-style: none; margin: 0; padding: 0; text-align: left; }
.cal-up li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--night-line); }
.cal-up strong { display: block; color: #fff; font-weight: 500; }
.cal-up small { display: block; color: var(--on-night-muted); font-size: .82rem; }
.cal-when { text-align: right; white-space: nowrap; }
.cal-when b { display: block; color: var(--gold-200); font-weight: 500; }
.cal-month { display: flex; }
.cal { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1.4rem 1.1rem; box-shadow: var(--shadow); transition: opacity .25s; }
.cal.loading { opacity: .45; }
.cal-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.cal-titles { flex: 1; text-align: center; }
.cal-titles h3 { margin: 0; font-size: 1.9rem; }
.cal-htitle { margin: 0; color: var(--gold-600); font-size: .92rem; letter-spacing: .04em; }
.cal-htitle-ar { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--heading); display: grid; place-items: center; cursor: pointer; transform: rotate(90deg); transition: .2s; flex: none; }
.cal-nav.next { transform: rotate(-90deg); }
.cal-nav:hover { border-color: var(--gold); color: var(--gold-600); background: var(--ivory); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: .3rem 0 .5rem; }
.cal-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 58px; border-radius: 12px; background: var(--ivory); padding: .3rem .2rem; }
.cal-cell.empty { background: transparent; }
.cal-cell b { font: 700 1.25rem/1 var(--serif); color: var(--heading); }
.cal-cell small { font-size: .72rem; color: var(--gold-600); line-height: 1.2; text-align: center; }
.cal-cell.newmonth small { font-weight: 600; }
.cal-cell.event { background: var(--beige); box-shadow: inset 0 0 0 1px var(--gold-200); }
.cal-cell.event::after { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cal-cell.today { background: var(--navy); box-shadow: 0 6px 16px rgba(14, 26, 61, .25); }
.cal-cell.today b { color: #fff; }
.cal-cell.today small { color: var(--gold-200); }
.cal-events { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .88rem; color: var(--ink); }
.cal-events li { display: inline-flex; align-items: center; gap: .4rem; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.cal-src { margin: .7rem 0 0; font-size: .78rem; color: var(--muted); text-align: right; }
.cal-note { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1.2rem 0 0; font-size: .9rem; color: var(--muted); }
.cal-note .icon { color: var(--gold-600); }
@media (max-width: 900px) { .cal-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cal { padding: 1rem .7rem; } .cal-cell { min-height: 48px; border-radius: 9px; } .cal-cell b { font-size: 1.05rem; } .cal-cell small { font-size: .62rem; } .cal-titles h3 { font-size: 1.5rem; } }
.cal { display: flex; flex-direction: column; }
.cal-grid { flex: 1; grid-auto-rows: minmax(58px, 1fr); }
.tcard-no { font: italic 700 1.6rem/1 var(--serif); color: var(--gold); margin-bottom: .8rem; }
.tcard-title { font: 700 1.9rem/1.1 var(--serif); color: var(--heading); }

/* ---------- Islamic Tools ---------- */
.tools-section { background: var(--ivory); padding-top: 3rem; }
.tool-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 3rem; }
.tool-pick { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tool-pick:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-200); color: var(--ink); }
.tool-pick > .icon { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--navy); color: var(--gold-200); }
.tool-pick strong { display: block; font: 700 1.2rem/1.15 var(--serif); color: var(--heading); }
.tool-pick small { color: var(--muted); font-size: .82rem; line-height: 1.3; display: block; }
@media (max-width: 1000px) { .tool-picker { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tool-picker { grid-template-columns: 1fr 1fr; } .tool-pick small { display: none; } }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 3.5vw, 2.4rem); margin-bottom: 1.8rem; box-shadow: 0 1px 2px rgba(14, 26, 61, .04); scroll-margin-top: 110px; }
.tool-head { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.tool-no { font: italic 700 2rem/1 var(--serif); color: var(--gold-600); grid-row: span 2; }
.tool-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.tool-head p { margin: 0; color: var(--muted); grid-column: 2; }
.tool-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.6rem; align-items: start; }
.tool-grid.two-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .tool-grid, .tool-grid.two-even { grid-template-columns: 1fr; } }
.tool-form .fieldset { background: var(--ivory); }
.tool-sub { font-size: 1.4rem; margin: 0; }
.tool-result { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--on-night); border-radius: 20px; padding: 1.6rem; position: sticky; top: 110px; }
.tool-result::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(/img/pattern.svg) center / 60px; opacity: .07; }
.tool-result.due { box-shadow: 0 0 0 2px var(--gold), 0 18px 40px rgba(201, 164, 92, .25); }
.r-label { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-200); margin: 0 0 .3rem; }
.r-big { font: 700 clamp(2.4rem, 5vw, 3.2rem)/1.05 var(--serif); color: #fff; margin: 0 0 1rem; }
.r-list { margin: 0 0 1rem; display: grid; gap: 0; }
.r-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--night-line); }
.r-list dt { color: var(--on-night-muted); }
.r-list dd { margin: 0; color: #fff; font-weight: 500; text-align: right; }
.r-note { margin: 0; color: var(--gold-200); font-size: .95rem; }
.r-inline { font: 700 1.6rem/1.3 var(--serif); color: var(--heading); margin: .2rem 0 0; padding: 1rem 1.2rem; border-radius: 14px; background: var(--ivory); border: 1px solid var(--line); }
.tool-small { font-size: .9rem; color: var(--muted); margin: 1.2rem 0 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.inline-form .field { min-width: 180px; flex: 1; }
.pt-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.pt-list li { display: flex; justify-content: space-between; padding: .6rem .2rem; border-top: 1px solid var(--night-line); font-size: 1.05rem; }
.pt-list li b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.pt-list li.next { color: var(--gold-200); }
.pt-list li.next b { color: var(--gold-200); }
.ram-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.ram-table caption { text-align: left; font: 700 1.4rem var(--serif); color: var(--heading); padding: .8rem 1rem; }
.ram-table th, .ram-table td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ram-table thead th { background: var(--navy); color: #fff; font-weight: 500; font-size: .8rem; letter-spacing: .06em; }
.ram-table tbody tr:nth-child(even) { background: var(--ivory); }
.chip { font: inherit; font-size: .86rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.quick-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
/* qibla */
.qibla-result { text-align: center; }
.compass { position: relative; width: 210px; height: 210px; margin: 0 auto 1rem; border-radius: 50%; border: 2px solid var(--gold); background: radial-gradient(circle, rgba(232, 213, 168, .12), transparent 70%); }
.compass > span { position: absolute; font: 700 1rem var(--serif); color: var(--gold-200); }
.c-n { top: 6px; left: 50%; transform: translateX(-50%); } .c-s { bottom: 6px; left: 50%; transform: translateX(-50%); } .c-e { right: 10px; top: 50%; transform: translateY(-50%); } .c-w { left: 10px; top: 50%; transform: translateY(-50%); }
.c-dial { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.c-needle { position: absolute; left: 50%; top: 28px; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 4px; background: linear-gradient(var(--gold-200), var(--gold)); }
.c-needle::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--gold); }
.c-kaaba { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); font-size: 1.5rem; }
/* tasbih */
.tasbih { max-width: 520px; margin: 0 auto; }
.tasbih-opts { display: grid; grid-template-columns: 1.6fr 1fr; gap: .8rem; }
.tasbih-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(280px, 72vw); aspect-ratio: 1; margin: 1.4rem auto 1rem; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 50% 35%, var(--navy-700), var(--navy)); color: #fff; box-shadow: 0 0 0 8px var(--beige), 0 0 0 9px var(--gold-200), 0 24px 50px rgba(14, 26, 61, .3); transition: transform .1s; user-select: none; -webkit-tap-highlight-color: transparent; }
.tasbih-btn:active { transform: scale(.97); }
.tasbih-btn.pop .t-count { animation: pop .25s var(--ease); }
.tasbih-btn.done { box-shadow: 0 0 0 8px var(--beige), 0 0 0 10px var(--gold), 0 0 40px rgba(201, 164, 92, .6); }
@keyframes pop { 50% { transform: scale(1.15); } }
.t-ar { font-size: 1.6rem; color: var(--gold-200); }
.t-count { font: 700 4.6rem/1 var(--serif); }
.t-target { font-size: .85rem; color: var(--on-night-muted); letter-spacing: .1em; text-transform: uppercase; }
.tasbih-ring { height: 6px; border-radius: 3px; background: var(--beige); overflow: hidden; margin: 0 auto 1rem; max-width: 280px; }
.tasbih-ring span { display: block; height: 100%; width: 0; background: var(--grad-gold); transition: width .2s; }
/* hifz */
.hifz-top { margin-bottom: 1.2rem; }
.hifz-progress { height: 10px; border-radius: 5px; background: var(--beige); overflow: hidden; margin-bottom: .6rem; }
.hifz-progress span { display: block; height: 100%; width: 0; background: var(--grad-gold); transition: width .4s var(--ease); }
.hifz-filter { display: flex; flex-wrap: wrap; gap: .4rem; }
.surah-grid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.surah { width: 100%; display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; text-align: left; align-items: center; padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: .15s; }
.surah:hover { border-color: var(--gold); }
.s-no { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); font-size: .78rem; color: var(--gold-600); }
.s-name { font-weight: 500; font-size: .92rem; line-height: 1.2; }
.s-ayat { font-size: .74rem; color: var(--muted); }
.surah[data-state="1"] { background: var(--beige); border-color: var(--gold-200); }
.surah[data-state="1"] .s-no { background: var(--gold-200); color: var(--navy); }
.surah[data-state="2"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.surah[data-state="2"] .s-no { background: var(--gold); color: var(--navy); }
.surah[data-state="2"] .s-ayat { color: var(--gold-200); }
/* 99 names & baby names */
.names-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.2rem; }
.names-search { flex: 1; min-width: 220px; font: inherit; padding: .7rem 1rem; border: 1.5px solid #E1D8C8; border-radius: 999px; }
.names-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, .18); }
.names-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.name-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.2rem .8rem 1rem; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.name-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.nm-no { position: absolute; top: .5rem; left: .7rem; font: italic 700 .95rem var(--serif); color: var(--gold-600); }
.nm-ar { font-size: 1.9rem; color: var(--navy); line-height: 1.6; }
.nm-tr { font: 700 1.15rem/1.2 var(--serif); color: var(--heading); }
.nm-mean { font-size: .88rem; color: var(--muted); }
.names-grid.flash .name-card { cursor: pointer; }
.names-grid.flash .name-card:not(.flip) .nm-tr, .names-grid.flash .name-card:not(.flip) .nm-mean { visibility: hidden; }
.names-grid.flash .name-card:not(.flip)::after { content: 'Tap to reveal'; position: absolute; bottom: .9rem; font-size: .78rem; color: var(--gold-600); letter-spacing: .1em; text-transform: uppercase; }
.bn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.bn { padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.bn strong { font: 700 1.3rem/1.2 var(--serif); color: var(--heading); }
.bn span { font-size: .92rem; }
.bn small { color: var(--gold-600); font-size: .8rem; }
.bn[data-g="g"] { border-left: 3px solid var(--gold); }
.bn[data-g="b"] { border-left: 3px solid var(--navy); }
@media print {
  body.print-ramadan > *:not(main), body.print-ramadan .page-hero, body.print-ramadan .tool:not(#ramadan), body.print-ramadan .tool-picker, body.print-ramadan #ramadan form, body.print-ramadan .wa-chat { display: none !important; }
  body.print-ramadan .tool { border: 0; box-shadow: none; padding: 0; }
}

/* ---------- Shop ---------- */
.shop-section { background: var(--ivory); }
.shop-intro { max-width: 640px; margin: 0 auto 1.6rem; }
.shop-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.shop-bar .chip { text-decoration: none; }
.shop-ship { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.shop-ship .icon { color: var(--gold-600); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.product-grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; display: block; aspect-ratio: 1; background: var(--beige); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product-img img { transform: scale(1.04); }
.stock-badge { position: absolute; left: .8rem; top: .8rem; background: var(--navy); color: var(--gold-200); font-size: .75rem; letter-spacing: .06em; padding: .25rem .65rem; border-radius: 999px; }
.stock-badge.out { background: #fff; color: var(--danger); border: 1px solid #F4C7C3; }
.product-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 .2rem; }
.product-body h3 { margin: 0 0 .3rem; font-size: 1.45rem; }
.product-body h3 a { color: var(--heading); text-decoration: none; }
.product-body h3 a:hover { color: var(--gold-600); }
.product-sum { color: var(--muted); font-size: .94rem; margin: 0 0 1rem; }
.product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.product-price { font: 700 1.6rem/1 var(--serif); color: var(--heading); }
.product-page { background: #fff; }
.crumbs.left { text-align: left; margin-bottom: 1.4rem; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: start; }
.pp-img { border-radius: 24px; overflow: hidden; background: var(--beige); box-shadow: var(--shadow); position: sticky; top: 110px; }
.pp-img img { width: 100%; height: auto; }
.pp-info h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0 0 .4rem; }
.pp-price { font: 700 2.2rem/1 var(--serif); color: var(--gold-600); margin: 0 0 1rem; }
.pp-buy { display: flex; align-items: end; gap: .8rem; margin: 1.4rem 0; flex-wrap: wrap; }
.pp-buy .field.qty { width: 110px; }
.pp-buy .btn { padding: .85em 1.6em; font-size: 1rem; }
.pp-facts { list-style: none; margin: 0 0 1.4rem; padding: 1rem 0; border-block: 1px solid var(--line); display: grid; gap: .5rem; color: var(--ink); font-size: .95rem; }
.pp-facts li { display: flex; gap: .5rem; align-items: center; }
.pp-facts .icon { color: var(--gold-600); }
@media (max-width: 800px) { .pp-grid { grid-template-columns: 1fr; } .pp-img { position: static; } }
.cart-kind { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.cart-table tfoot td { padding: .6rem .4rem; border-bottom: 1px solid var(--line); }

/* ---------- Header: Donate button ---------- */
.btn-donate { --bg: #fff; --fg: var(--heading); --bd: var(--gold); }
.btn-donate .icon { color: var(--gold-600); }
.btn-donate:hover { --bg: var(--ivory); --fg: var(--brown); }
.price-top h3 a { color: #fff; text-decoration: none; }
.price-top h3 a:hover { color: var(--gold-200); }

/* ---------- Dawrah-e-Qur'an languages ---------- */
.lang-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 auto 1.6rem; }
.lang-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem; border-radius: 999px; border: 1.5px solid var(--sand); background: #fff; color: var(--heading); font-weight: 600; text-decoration: none; transition: .2s; }
.lang-tabs a:hover { border-color: var(--gold); color: var(--gold-600); }
.lang-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.lang-block { margin-top: 2.4rem; }
.lang-h { display: flex; align-items: center; gap: .6rem; font-size: 1.9rem; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.lang-h .icon { color: var(--gold-600); }
.lang-empty { background: var(--ivory); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }

/* ---------- Course pages ---------- */
.course-cat { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); background: var(--ivory); border: 1px solid var(--sand); border-radius: 999px; padding: .3rem .9rem; margin: 0 0 1.2rem; }
.course-block { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.course-block:last-child { border-bottom: 0; }
.course-block h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.course-out { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: 1.05rem; }
.course-out li { display: flex; gap: .7rem; align-items: flex-start; }
.course-out .icon { color: var(--gold-600); margin-top: 5px; }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; margin: 0 0 1rem; }
.facts-list > div { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.facts-list .icon { grid-row: span 2; color: var(--gold-600); margin-top: 4px; }
.facts-list dt { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts-list dd { margin: 0; font-weight: 600; color: var(--heading); }
.course-aside .prog-fee small { font-size: .9rem; font-weight: 500; color: var(--muted); }

/* ---------- Blog ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter-bar .chip { display: inline-flex; align-items: center; min-height: 42px; text-decoration: none; }
.chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .3rem; }
.blog-meta time { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.blog-role { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; background: var(--navy); color: var(--gold-200); }
.blog-role.role-student { background: var(--ivory); color: var(--heading); border: 1px solid var(--sand); }
.blog-by { margin: .8rem 0 0; font-size: .9rem; font-weight: 600; color: var(--heading); }
.blog-sign { margin-top: 2rem; font: italic 600 1.3rem/1.4 var(--serif); color: var(--gold-600); }
.help-box { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, var(--navy-700)); color: #fff; border-radius: var(--radius); padding: 2rem 2.2rem; }
.help-box h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 .3rem; }
.help-box p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 60ch; }
.help-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.empty-state { max-width: 560px; margin: 0 auto; text-align: center; background: #fff; border: 1px dashed var(--sand); border-radius: var(--radius); padding: 2.6rem 2rem; }
.empty-state .icon { margin: 0 auto 1rem; color: var(--gold-600); }
.empty-state h2 { font-size: 1.8rem; }
.empty-state p { color: var(--muted); }
@media (max-width: 360px) { .page-hero h1 { font-size: 2.15rem; } }

/* ---------- Our Teachers ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.4rem; }
.teacher { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.teacher-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.teacher-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--gold-200); }
.teacher-photo.initials { display: grid; place-items: center; background: var(--navy); color: var(--gold-200); font: 700 1.7rem var(--serif); }
.teacher-name { font-size: 1.6rem; margin: 0; }
.teacher-role { margin: .1rem 0 0; color: var(--gold-600); font-weight: 600; font-size: .95rem; }
.tag-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li { font-size: .8rem; font-weight: 600; color: var(--heading); background: var(--ivory); border: 1px solid var(--sand); border-radius: 999px; padding: .2rem .7rem; }
.teacher-qual { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; font-size: .96rem; }
.teacher-qual li { display: flex; gap: .5rem; align-items: flex-start; }
.teacher-qual .icon { color: var(--gold-600); margin-top: 5px; }
.teacher-bio { font-size: .98rem; color: var(--muted); }

/* Coming-soon mode: bar shown to logged-in staff */
.cs-staffbar{background:#B42318;color:#fff;text-align:center;font-size:.9rem;padding:.55rem 16px;line-height:1.45}
.cs-staffbar a{color:#fff;text-decoration:underline;font-weight:600;margin-left:.35rem}

/* Languages line in the hero, registration fee note */
.hero-langs { margin: 0 0 .9rem; color: var(--on-night-muted); font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; }
.hero-langs span { letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--gold-200); margin-right: .2rem; }
.hero-langs strong { color: #fff; font-weight: 500; }
.hero-langs i { color: var(--gold); font-style: normal; }
.reg-fee { margin: -.2rem 0 .6rem; font-size: .88rem; color: var(--gold-600); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { .hero-langs { animation: blurIn .9s var(--ease) both 1s; } }

/* Donation form: cause and amount groups */
.fieldset-plain { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.field-legend { font-weight: 600; font-size: .9rem; color: var(--heading); margin-bottom: .5rem; padding: 0; }
.cause-row { margin-bottom: .6rem; }

.cause-fixed { background: var(--beige); border-radius: 12px; padding: .75rem 1rem; margin: 0 0 1rem; }
.cause-fixed span { color: var(--muted); font-size: .85rem; margin-right: .35rem; }
.bank-details { display: grid; gap: .1rem; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bank-details div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: #fff; }
.bank-details div:nth-child(odd) { background: var(--ivory); }
.bank-details dt { color: var(--muted); }
.bank-details dd { margin: 0; font-weight: 600; color: var(--heading); text-align: right; }

.year-h { font-family: 'Cormorant', Georgia, serif; font-size: 1.5rem; color: var(--heading); margin: 1.6rem 0 .7rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }

/* Dawrah: years fold up; each year holds its Juz sections */
.year-list { display: grid; gap: .8rem; }
.year-block { border: 1px solid var(--line); border-radius: 16px; background: var(--ivory); overflow: hidden; }
.year-block[open] { background: #fff; border-color: var(--gold-200); box-shadow: var(--shadow); }
.year-block > summary { list-style: none; display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.3rem; cursor: pointer; }
.year-block > summary::-webkit-details-marker { display: none; }
.year-block > summary:hover { background: var(--beige); }
.year-title { font-family: 'Cormorant', Georgia, serif; font-weight: 700; font-size: 1.6rem; color: var(--heading); line-height: 1; }
.year-meta { margin-left: auto; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.year-block > summary > .icon:last-child { color: var(--gold-600); transition: transform .25s; flex: none; }
.year-block[open] > summary > .icon:last-child { transform: rotate(180deg); }
.year-block > .audio-acc { padding: 0 1rem 1rem; display: grid; gap: .6rem; }
@media (max-width: 520px) { .year-meta { font-size: .78rem; } .year-block > summary { padding: .9rem 1rem; } }

/* Memory match */
.mem-controls { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; margin-bottom: .9rem; }
.mem-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin-bottom: 1rem; font-size: .92rem; color: var(--muted); }
.mem-stats b { color: var(--heading); font-weight: 600; margin-left: .25rem; }
.mem-stats .btn { margin-left: auto; }
.mem-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; perspective: 1000px; max-width: 720px; margin: 0 auto; }
.mem-card { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; aspect-ratio: 4 / 3; min-height: 92px; min-width: 0; width: 100%; display: block; border-radius: 16px; font: inherit; }
.mem-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.mem-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.mem-card.up .mem-inner, .mem-card.matched .mem-inner { transform: rotateY(180deg); }
.mem-back, .mem-front { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .5rem; text-align: center; }
.mem-back { background: radial-gradient(circle at 50% 40%, #1C2C5E, #0E1A3D); border: 1px solid rgba(201,164,92,.35); }
.mem-back::after { content: '۞'; color: var(--gold); font-size: 1.9rem; opacity: .85; }
.mem-card:hover .mem-back { box-shadow: 0 0 0 2px rgba(201,164,92,.5) inset; }
.mem-front { transform: rotateY(180deg); background: var(--ivory); border: 1px solid var(--line); color: var(--heading); }
.mem-face { overflow-wrap: anywhere; font-weight: 600; font-size: clamp(.85rem, 2.4vw, 1rem); line-height: 1.25; }
.mem-face.arabic { font-family: 'Amiri Quran', 'Amiri', serif; font-weight: 400; font-size: clamp(1.4rem, 4.6vw, 2rem); line-height: 1.5; }
.mem-hint { display: none; font-size: .72rem; color: var(--muted); margin-top: .15rem; }
.mem-card.matched .mem-front { background: #FBF4E4; border-color: var(--gold); }
.mem-card.matched .mem-hint { display: block; }
.mem-card.matched { cursor: default; }
.mem-done { min-height: 1.6em; margin: 1rem 0 .2rem; font-weight: 600; color: var(--gold-600); text-align: center; }
@media (max-width: 560px) { .mem-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; } .mem-card { min-height: 84px; } }
@media (prefers-reduced-motion: reduce) { .mem-inner { transition: none; } }
/* Product photo gallery */
.pp-gallery { position: sticky; top: 110px; }
.pp-gallery .pp-img { position: relative; top: auto; aspect-ratio: 1; }
.pp-gallery .pp-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--heading); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); display: grid; place-items: center; }
.pp-nav.prev { left: .7rem; } .pp-nav.next { right: .7rem; }
.pp-nav:focus-visible, .pp-thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pp-count { position: absolute; right: .8rem; bottom: .8rem; background: rgba(14,26,61,.7); color: #fff; font-size: .8rem; padding: .2rem .6rem; border-radius: 99px; }
.pp-thumbs { display: flex; gap: .55rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .2rem; }
.pp-thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--beige); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-thumb[aria-current="true"], .pp-thumb:hover { opacity: 1; border-color: var(--gold); }
@media (max-width: 800px) { .pp-gallery { position: static; } }

/* Social links (logos) */
.footer-follow { margin: 1.1rem 0 .55rem; color: var(--gold-200); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.social-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.social-btn { display: inline-grid; place-items: center; border-radius: 12px; transition: transform .2s, box-shadow .2s; line-height: 0; }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.social-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.site-footer .social-btn { background: #fff; padding: 6px; border-radius: 14px; }
.topbar-social { display: inline-flex; align-items: center; line-height: 0; }
.aside-card .small-h { font-size: 1.05rem; margin: 1.2rem 0 .6rem; }
.yt-btn { display: inline-flex; align-items: center; gap: .6rem; }

/* Social logos in the header (right of Register Now) on wide screens, and inside the mobile menu */
.nav-social { display: none; gap: .45rem; }
.nav-social .social-btn { border-radius: 8px; }
@media (min-width: 1480px) {
  /* The menu lines up with the page content (same left edge as "Contact" in the top bar and the hero text);
     the logo sits just outside that edge, and the social logos at the right edge, with room for more. */
  .header-inner { position: static; max-width: var(--container); }
  /* logo near the left edge of the window (the sticky header is its frame) */
  .brand { position: absolute; left: clamp(24px, 4vw, 90px); top: 50%; transform: translateY(-50%); width: 56px; }
  .anniv-badge { position: absolute; left: calc(clamp(24px, 4vw, 90px) + 70px); top: 50%; transform: translateY(-50%); margin: 0; }
  .anniv-badge:hover { transform: translateY(-50%) rotate(-8deg) scale(1.06); }
  .brand .brand-emblem { max-width: none; }
  .site-nav { flex: 1; margin-left: -.7rem; }
  .site-nav .nav-actions { flex: 1; }
}
/* Social logos stay in the top bar on computers (the header is full with the menu); they also show inside the mobile menu. */
@media (max-width: 1180px) { .nav-social { display: flex; width: 100%; justify-content: center; padding-top: .6rem; } }

/* Hero colours (Dashboard → Site settings → Occasions & colours) — keep in step with src/lib/occasions.js */
.hero-tone-navy { --night: #0A1433; --night-2: #0E1A3D; --hero-mid: #16244F; }
.hero-tone-green { --night: #05261B; --night-2: #093626; --hero-mid: #0F4E37; }
.hero-tone-emerald { --night: #032628; --night-2: #063A3D; --hero-mid: #0B5257; }
.hero-tone-blue { --night: #061E3B; --night-2: #0A2B55; --hero-mid: #123F78; }
.hero-tone-purple { --night: #1B0A36; --night-2: #28104C; --hero-mid: #3A1A6A; }
.hero-tone-pink { --night: #3A0A24; --night-2: #4F1033; --hero-mid: #6E1B49; }
.hero-tone-maroon { --night: #2B090D; --night-2: #3F0E15; --hero-mid: #5C1A22; }
.hero-tone-charcoal { --night: #0A0A0D; --night-2: #131317; --hero-mid: #24242B; }

/* Occasion greeting (Ramadan, Eid, Muharram …) */
.occasion { display: flex; align-items: center; gap: 1.1rem; margin: 0; padding: .9rem 1.2rem .9rem .9rem; max-width: 36rem; border: 1px solid rgba(232, 205, 142, .35); border-radius: 20px; background: linear-gradient(120deg, rgba(232, 205, 142, .12), rgba(255, 255, 255, .03)); box-shadow: 0 10px 40px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .06); }
.occ-art { flex: none; width: 84px; height: auto; filter: drop-shadow(0 4px 14px rgba(201, 164, 92, .35)); }
.occ-lanterns { width: 110px; margin-top: -1.4rem; }
.occ-copy { min-width: 0; }
.occ-ar { margin: 0; font-family: var(--quran); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.35; background: linear-gradient(100deg, #F6E3AE, #D9B66E 55%, #C9A45C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.occ-title { margin: .1rem 0 .15rem; font: 700 clamp(1.25rem, 2.6vw, 1.6rem)/1.15 var(--serif); color: #fff; letter-spacing: .01em; }
.occ-text { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--on-night-muted); }
.topbar-occ { color: #F3DFA8; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .occasion { animation: blurIn 1s var(--ease) both; }
  .occ-lanterns .lantern { transform-box: fill-box; transform-origin: 50% 0; animation: swing 4s ease-in-out infinite alternate; }
  .occ-lanterns .lantern:nth-child(3) { animation-delay: -1.3s; } .occ-lanterns .lantern:nth-child(4) { animation-delay: -2.6s; }
  .occ-lanterns .flame { animation: flicker 1.8s ease-in-out infinite alternate; }
}
@keyframes swing { from { rotate: -3deg; } to { rotate: 3deg; } }
@keyframes flicker { from { opacity: .65; } to { opacity: 1; } }
@media (max-width: 560px) { .occasion { gap: .8rem; padding: .7rem .9rem .7rem .7rem; } .occ-art { width: 60px; } .occ-lanterns { width: 80px; } }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.video-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.video-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.video-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video-card:hover .video-pic img { transform: scale(1.04); }
.video-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.video-pic-facebook { background: linear-gradient(135deg, #1877F2, #0B3F8C); }
.video-pic-instagram { background: linear-gradient(135deg, #feda75, #d62976 50%, #4f5bd5); }
.video-pic-tiktok { background: #111; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 20, 51, .72); color: #fff; border: 2px solid rgba(255, 255, 255, .85); backdrop-filter: blur(2px); transition: background .2s, transform .2s; }
.video-play svg { margin-left: 3px; }
.video-card:hover .video-play { background: #E00; transform: translate(-50%, -50%) scale(1.06); }
.video-src { position: absolute; left: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem .2rem .3rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #222; font-size: .75rem; font-weight: 600; }
.video-body { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem 1.1rem; }
.video-series { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.video-title { font: 700 1.15rem/1.3 var(--serif); color: var(--heading); }
.video-group { margin-top: 2.6rem; }
.video-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.video-group-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.video-group-head .btn { margin-left: auto; }

/* Occasion greeting sits top-right, above the particle picture; the left side stays exactly as normal */
.hero-grid > .hero-copy { grid-column: 1; grid-row: 1; }
.hero-grid > .hero-stage { grid-column: 2; grid-row: 1; }
.hero-grid > .occasion { grid-column: 2; grid-row: 1; align-self: start; justify-self: center; position: relative; z-index: 2; width: min(100%, 34rem); margin-top: .4rem; }
@media (max-width: 900px) {
  .hero-grid > .hero-copy, .hero-grid > .hero-stage, .hero-grid > .occasion { grid-column: 1; grid-row: auto; }
  .hero-grid > .occasion { justify-self: stretch; width: auto; margin: 0 0 1.4rem; }
}

/* Blog writing guide */
.blog-write-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.blog-guide { position: sticky; top: 110px; padding: 1.4rem 1.5rem; background: var(--ivory); }
.blog-guide .h-sub { display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.guide-steps { padding-left: 1.2rem; margin: .6rem 0 1rem; }
.guide-steps li { margin-bottom: .55rem; font-size: .95rem; line-height: 1.55; }
.guide-rules { padding-left: 1.1rem; margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
.guide-rules li { margin-bottom: .35rem; }
.blog-guide .small-h { font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .blog-write-grid { grid-template-columns: 1fr; } .blog-guide { position: static; order: -1; } }
.tm-empty .btn { margin-top: .4rem; }

/* ---------- Fitrah Kids & Youth Club ---------- */
.kids-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(2.4rem, 5vw, 3.6rem); color: #fff; background: radial-gradient(ellipse 80% 90% at 50% 0%, #1F6F78 0%, #12485A 45%, #0E2F4A 100%); }
.kids-hero::after { content: ''; position: absolute; inset: auto 0 -1px 0; height: 46px; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: -1; }
.kh-deco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.kids-hero .crumbs, .kids-hero .crumbs a { color: rgba(255, 255, 255, .8); }
.kh-ar { margin: .2rem 0 0; font-family: var(--quran); font-size: clamp(1.5rem, 3.5vw, 2rem); color: #F3DFA8; }
.kids-hero h1 { margin: .1rem 0 .4rem; color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.kh-sub { max-width: 40rem; margin: 0 auto; color: #D8ECEE; font-size: 1.08rem; }
.kids-section { padding-top: 1.6rem; }
.age-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 auto 2rem; }
.age-switch a { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.2rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--heading); text-decoration: none; font-weight: 600; }
.age-switch a small { font-weight: 500; color: var(--muted); }
.age-switch a[aria-pressed="true"], .age-switch a[aria-current="page"] { background: #1F6F78; border-color: #1F6F78; color: #fff; }
.age-switch a[aria-pressed="true"] small, .age-switch a[aria-current="page"] small { color: #CFE8EA; }
.kids-h { display: flex; align-items: center; gap: .55rem; margin: 2.2rem 0 1rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.kids-h .icon { color: var(--gold); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.game-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.3rem; border-radius: 22px; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, #FFF8E7, #FDF1D6); border: 2px solid #F1DFB3; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.game-card:nth-child(2) { background: linear-gradient(160deg, #E9F6F4, #D7EFEC); border-color: #BFE3DE; }
.game-card:nth-child(3) { background: linear-gradient(160deg, #F4EDFB, #E9DDF7); border-color: #D9C6EF; }
.game-card:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.game-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.game-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: #fff; color: #1F6F78; box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.game-card strong { font: 700 1.35rem/1.2 var(--serif); color: var(--heading); margin-top: .4rem; }
.game-card > span:not(.game-ic):not(.game-go) { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.game-go { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: #1F6F78; }
.kids-filter { margin-bottom: 1.2rem; }
.kid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.3rem; }
.kid-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.kid-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: #EAF5F4; overflow: hidden; }
.kid-pic img { width: 100%; height: 100%; object-fit: cover; }
.kid-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #1F6F78; }
.kind-audio .kid-pic { background: #F4EDFB; } .kind-audio .kid-ph { color: #6B3FA0; }
.kind-pdf .kid-pic { background: #FFF4DE; } .kind-pdf .kid-ph { color: #A27424; }
.kind-story .kid-pic { background: #E9F3FF; } .kind-story .kid-ph { color: #2C5C9A; }
.kid-body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.kid-body h3 { margin: 0; font: 700 1.2rem/1.3 var(--serif); }
.kid-body h3 a { color: var(--heading); text-decoration: none; }
.kid-body p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.kid-body .btn { align-self: flex-start; margin-top: auto; }
.kid-body audio { width: 100%; margin-top: auto; }
.kid-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .1rem; }
.kid-kind, .kid-age { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.kid-kind { background: #EAF5F4; color: #1F6F78; }
.kid-age { background: #FFF4DE; color: #8A6420; }
.kid-age.age-youth { background: #F1EAFB; color: #5B3A8C; }
.kids-parents { margin-top: 3rem; }
.kid-prose { font-size: 1.12rem; line-height: 1.85; }
.kids-home { background: linear-gradient(180deg, #fff, #F3FAF9); }

/* Games */
.game-box { padding: clamp(1.3rem, 4vw, 2.2rem); border-radius: 24px; border: 2px solid #BFE3DE; background: #FBFEFD; }
.game-progress { height: 10px; border-radius: 99px; background: #E3F1EF; overflow: hidden; margin-bottom: .8rem; }
.game-progress span { display: block; height: 100%; background: linear-gradient(90deg, #1F6F78, #C9A45C); transition: width .3s; }
.game-count { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 600; }
.quiz-q { margin: .4rem 0 1.1rem; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.3; }
.quiz-opts, .order-pick { display: grid; gap: .7rem; }
.quiz-opt { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; text-align: left; padding: .95rem 1.1rem; border-radius: 16px; border: 2px solid var(--line); background: #fff; font: 600 1.08rem/1.35 var(--sans); color: var(--heading); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.quiz-opt small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.quiz-opt:hover:not(:disabled) { border-color: #1F6F78; transform: translateX(3px); }
.quiz-opt:focus-visible, .order-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.quiz-opt.right { border-color: #1D7A55; background: #E7F6EE; }
.quiz-opt.wrong { border-color: #C2410C; background: #FDECE6; }
.quiz-opt.other-age { opacity: .75; }
.quiz-why { margin: 1rem 0; padding: .8rem 1rem; border-radius: 14px; background: #FFF8E7; font-size: 1rem; }
.quiz-why.win { background: #E7F6EE; font-weight: 700; color: #1D7A55; }
.game-end { text-align: center; }
.game-stars { font-size: 2.6rem; color: #E0B04A; letter-spacing: .2rem; margin: 0; }
.game-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.order-done { display: flex; flex-wrap: wrap; gap: .5rem; padding-left: 0; list-style: none; counter-reset: o; min-height: 2.6rem; margin: 0 0 1rem; }
.order-done li { counter-increment: o; padding: .55rem .9rem; border-radius: 12px; background: #E7F6EE; color: #1D7A55; font-weight: 600; }
.order-done li::before { content: counter(o) '. '; }
.order-pool { display: flex; flex-wrap: wrap; gap: .6rem; }
.order-card { padding: .75rem 1.05rem; border-radius: 14px; border: 2px solid #BFE3DE; background: #fff; font: 600 1.02rem/1.3 var(--sans); color: var(--heading); cursor: pointer; }
.order-card:hover { border-color: #1F6F78; }
.order-card.shake { animation: shake .35s; border-color: #C2410C; }
.order-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .order-card.shake { animation: none; } .game-card:hover { transform: none; } }
.kids-filter .chip { display: inline-flex; align-items: center; gap: .35rem; }

/* Class resources: view / download buttons and the in-page viewer */
.res-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.res-actions .btn { padding: .35rem .7rem; }
@media (max-width: 560px) { .res-list li { flex-wrap: wrap; } .res-actions { width: 100%; justify-content: flex-end; } .hide-sm { display: none; } }
.viewer-section { padding-top: 1.6rem; }
.viewer-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.viewer-title { flex: 1; min-width: 200px; }
.viewer-title h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.viewer-title p { margin: 0; }
.viewer-only { display: inline-flex; align-items: center; gap: .3rem; }
.pdf-viewer { background: #E9E6DF; border-radius: 14px; padding: .8rem; user-select: none; -webkit-user-select: none; }
.pdf-tools { position: sticky; top: 72px; z-index: 5; display: flex; align-items: center; gap: .5rem; justify-content: center; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: .3rem .8rem; width: max-content; margin: 0 auto .8rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.pdf-tools [data-zoom-label] { min-width: 3.2em; text-align: center; font-weight: 600; }
.pdf-count { color: var(--muted); font-size: .9rem; margin-left: .4rem; }
.pdf-pages { display: flex; flex-direction: column; align-items: center; gap: .8rem; overflow-x: auto; }
.pdf-page { background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); max-width: none; }
.pdf-page canvas { display: block; }
.media-view { padding: 1.4rem; text-align: center; }
.media-view audio { width: 100%; max-width: 640px; }
.media-view video, .media-view img { max-width: 100%; border-radius: 10px; }
.class-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; margin: 0 0 2rem; }
.class-tile { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 14px; background: linear-gradient(135deg, var(--navy, #0E1A3D), #1B2C5E); color: #fff; text-decoration: none; box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.12)); }
.class-tile strong { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.class-tile span { grid-column: 1; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.class-tile .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--gold, #C9A24B); }
.class-tile:hover { transform: translateY(-2px); }
.res-help { display: flex; gap: .4rem; align-items: center; background: var(--ivory); padding: .6rem .8rem; border-radius: 10px; }
.join-block { background: #EEF7F1; border: 1px solid #CFE7D7; border-radius: 14px; padding: 1.2rem 1.4rem; }
.fee-group th { background: var(--ivory); font-family: var(--serif); font-size: 1.15rem; padding: .7rem 1rem; text-align: left; }
.kids-classes { margin-bottom: 2rem; }

/* WhatsApp chat link in the top bar: green so it is easy to spot */
.topbar .topbar-wa { background: #0F7A62; color: #fff; padding: .2rem .7rem; border-radius: 999px; font-weight: 600; }
.topbar .topbar-wa:hover { background: #0B634F; color: #fff; }
@media (max-width: 560px) { .topbar .topbar-wa { padding: .25rem .45rem; } }
.res-folder-body { padding: 0 0 .3rem .9rem; }
.res-section.depth-1, .res-section.depth-2, .res-section.depth-3 { margin: .4rem 0; background: var(--ivory); }
.res-cat-h { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.res-cat-h:first-of-type { border-top: 0; padding-top: 0; }
/* Online Qur'an classes landing page */
.land-intro p { font-size: 1.12rem; }
.land-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.land-card { display: flex; flex-direction: column; gap: .45rem; padding: 1.3rem 1.3rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.06)); transition: transform .2s, box-shadow .2s; }
.land-card:hover { transform: translateY(-3px); }
.land-card strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--heading); }
.land-tag { align-self: flex-start; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.land-meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.land-card .more { margin-top: auto; color: var(--gold-600); font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; }
.land-steps { display: grid; gap: .6rem; padding-left: 1.2rem; font-size: 1.05rem; }
/* Small advert strip above the footer's bottom line */
.promo-strip { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: 2rem 0 0; padding: .85rem 1.1rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .05); }
.promo-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .1rem .5rem; }
.promo-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #F3DFA8; color: #14213d; flex: none; }
.promo-text { flex: 1; min-width: 220px; margin: 0; color: rgba(255, 255, 255, .82); font-size: .93rem; line-height: 1.45; }
.promo-text strong { color: #fff; }
.promo-btn { flex: none; }
@media (max-width: 560px) { .promo-btn { width: 100%; justify-content: center; } }
/* ---------- Advertisements ---------- */
.promo-mark-link { display: inline-flex; flex: none; text-decoration: none; }
.promo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.promo-mark:has(img) { background: #0b1230; padding: 0; overflow: hidden; }
/* light versions (inside the page, not the navy footer) */
.promo-light { background: var(--ivory); border-color: var(--line); }
.promo-light .promo-label { color: var(--muted); border-color: var(--line); }
.promo-light .promo-text { color: var(--ink); }
.promo-light .promo-text strong { color: var(--heading); }
.ad-top { margin: 1rem 0 0; }
.ad-end-wrap { padding: 0 0 2.5rem; }
/* slow spin (stops for people who prefer less motion) */
.ad-spin { animation: adSpin 6s ease-in-out infinite; transform-style: preserve-3d; }
/* the picture turns on its own — no frame, circle or background behind it */
.ad-float-mark:has(img), .promo-mark:has(img) { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.ad-float-mark img, .promo-mark img { object-fit: contain; border-radius: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
/* gentle 3D sway: the cube turns left and right on its own spot, as if you are looking around it */
@keyframes adSpin {
  0%, 100% { transform: perspective(240px) rotateY(-30deg) rotateX(6deg); }
  50% { transform: perspective(240px) rotateY(30deg) rotateX(-6deg); }
}
@media (prefers-reduced-motion: reduce) { .ad-spin { animation: none; } }
/* floating badge: in the empty space at the left on wide screens, bottom-left corner on smaller ones */
.ad-float { position: fixed; z-index: 40; left: max(14px, calc((100vw - 1240px) / 2 - 225px)); top: 55%; }
.ad-float-link { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.ad-float-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: #0b1230; box-shadow: 0 10px 28px rgba(5, 10, 40, .45), 0 0 0 2px rgba(243, 223, 168, .55); overflow: hidden; }
.ad-float-mark img { width: 100%; height: 100%; object-fit: cover; }
.ad-float-mark b { color: #F3DFA8; font-size: 1.4rem; }
.ad-float-tip { display: flex; flex-direction: column; background: #fff; color: var(--heading); border-radius: 10px; padding: .4rem .7rem; font-weight: 700; font-size: .9rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); opacity: 0; transform: translateX(-6px); transition: .2s; pointer-events: none; white-space: nowrap; }
.ad-float-tip small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ad-float-tip em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .8rem; }
.ad-float-link:hover .ad-float-tip, .ad-float-link:focus-visible .ad-float-tip { opacity: 1; transform: none; }
@media (max-width: 1599px) {
  .ad-float { top: auto; bottom: 18px; left: 14px; }
  .ad-float-mark { width: 54px; height: 54px; border-radius: 14px; }
}
@media print { .ad-float, .promo-strip { display: none !important; } }
@media (max-width: 560px) { .ad-float-mark { width: 46px; height: 46px; border-radius: 12px; } }
.promo-strip .promo-mark { width: 50px; height: 50px; }

/* ---------- Tool pages: compact dark banner with the Arabic name in gold particles ---------- */
.tool-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--on-night); background: radial-gradient(ellipse 60% 80% at 74% 50%, #16244F 0%, var(--night-2) 45%, var(--night) 100%); padding: 1.1rem 0; }
.tool-hero .hero-glow { width: 26vw; height: 26vw; right: 12%; }
.tool-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: center; min-height: 170px; }
.tool-hero-copy { position: relative; z-index: 1; }
.tool-hero .crumbs { margin-bottom: .5rem; }
.tool-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 .25rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .8rem; }
.tool-hero .hero-eyebrow { display: none; }
.tool-hero-sub { color: var(--on-night-muted); font-size: 1rem; max-width: 48ch; margin: 0; }
.tool-hero-ar { font: 400 .95em/1 var(--quran); color: var(--gold-200); }
.hero-stage { min-height: 160px; height: 100%; }
.crumbs-dark { color: var(--on-night-muted); }
.crumbs-dark a { color: var(--gold-200); }
@media (max-width: 760px) {
  .tool-hero { padding: .6rem 0 .9rem; }
  .tool-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .tool-hero .hero-stage { min-height: 160px; order: -1; }
}
.tools-section.tool-page, .tools-section { padding-top: 1.2rem; padding-bottom: 2.4rem; }
.tool-page .tool { margin-bottom: 1.8rem; padding: clamp(1rem, 2.4vw, 1.6rem); }
.more-tools { text-align: center; margin: 0 0 .9rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.tool-pick { position: relative; overflow: hidden; }
.tool-pick-ar { position: absolute; right: .7rem; bottom: -.2rem; font: 400 1.9rem/1 var(--quran); color: var(--gold); opacity: .16; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.tool-pick:hover .tool-pick-ar { opacity: .4; transform: translateY(-3px); }
.tools-section .tool-picker { margin-bottom: 0; }

/* ---------- Zakat calculator (4 steps, compact) ---------- */
.zk-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.zk-steps li { position: relative; display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); padding-bottom: .5rem; }
.zk-steps li::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--line); }
.zk-steps li.done::after, .zk-steps li[aria-current]::after { background: var(--grad-gold); }
.zk-steps li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .85rem; background: var(--beige); color: var(--heading); transition: background .3s, color .3s, transform .3s var(--ease); }
.zk-steps li[aria-current] { color: var(--heading); font-weight: 600; }
.zk-steps li[aria-current] span { background: var(--navy); color: var(--gold-200); transform: scale(1.08); }
.zk-steps li.done span { background: var(--gold); color: #fff; }
.zk-steps li.done { cursor: pointer; }
@media (max-width: 640px) { .zk-steps li { font-size: 0; gap: 0; justify-content: center; } .zk-steps li span { font-size: .85rem; } }
.zk-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .zk-layout { grid-template-columns: 1fr; } .zk-side { position: static; } }
.zk-step h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: .1rem; }
.zk-step > .muted { margin: 0 0 .2rem; font-size: .95rem; }
.zk-step:not([hidden]) { animation: zkIn .4s var(--ease); }
@keyframes zkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.zk-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin: .8rem 0; }
@media (max-width: 1100px) { .zk-types { grid-template-columns: repeat(2, 1fr); } }
.zk-type { position: relative; cursor: pointer; }
.zk-type input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.zk-type-box { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .7rem .75rem .65rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease), background .2s; }
.zk-type-box > .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--ivory); color: var(--gold-600); transition: background .2s, color .2s; }
.zk-type-box strong { font: 700 1.05rem/1.15 var(--serif); color: var(--heading); }
.zk-type-box small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.zk-tick { position: absolute; top: .55rem; right: .55rem; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--sand); color: transparent; transition: all .2s; }
.zk-type:hover .zk-type-box { transform: translateY(-2px); box-shadow: var(--shadow); }
.zk-type input:focus-visible + .zk-type-box { outline: 3px solid var(--gold); outline-offset: 2px; }
.zk-type input:checked + .zk-type-box { border-color: var(--gold); background: linear-gradient(180deg, #fffaf0, #fff); box-shadow: 0 0 0 3px rgba(201, 164, 92, .18); }
.zk-type input:checked + .zk-type-box > .icon { background: var(--navy); color: var(--gold-200); }
.zk-type input:checked + .zk-type-box .zk-tick { background: var(--gold); border-color: var(--gold); color: #fff; }
.zk-help { background: var(--ivory); border-radius: 10px; padding: .55rem .8rem; color: var(--muted); margin: 0; }
.zk-group { border: 1px solid var(--line); border-radius: 14px; padding: .6rem .9rem .8rem; margin: .6rem 0 0; background: var(--ivory); }
.zk-group legend { display: inline-flex; align-items: center; gap: .4rem; font: 700 1.1rem var(--serif); color: var(--heading); padding: 0 .3rem; }
.zk-group legend .icon { color: var(--gold-600); }
.zk-group[hidden] { display: none; }
.zk-group .field { margin-bottom: .45rem; }
.zk-group .grid-2, .zk-group .grid-3 { align-items: start; gap: .2rem .8rem; }
.zk-group p { margin: 0 0 .4rem; }
.zk-field > span:first-child { font-size: .85rem; }
.zk-group .hint { font-size: .76rem; }
.zk-money { display: flex; align-items: stretch; border: 1px solid var(--sand); border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.zk-money:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.zk-money b { display: grid; place-items: center; padding: 0 .65rem; background: var(--beige); color: var(--gold-600); font-weight: 600; }
.zk-money input { border: 0; flex: 1; min-width: 0; padding: .45rem .7rem; font: 500 1rem var(--sans); text-align: right; background: transparent; outline: none; }
.zk-h3 { font-size: 1.05rem; margin: .4rem 0 .35rem; }
.zk-metal { display: grid; grid-template-columns: 132px auto 1fr auto 30px; gap: .45rem; align-items: center; margin-bottom: .4rem; }
.zk-metal select, .zk-metal input { padding: .42rem .55rem; border: 1px solid var(--sand); border-radius: 9px; font: inherit; background: #fff; min-width: 0; }
.zk-metal input { text-align: right; }
.zk-metal-val { font-weight: 600; color: var(--heading); min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.zk-del { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 8px; }
.zk-del:hover { color: #b33; background: #fbeaea; }
.zk-metal:only-child .zk-del { visibility: hidden; }
@media (max-width: 560px) { .zk-metal { grid-template-columns: 1fr 1fr; } .zk-metal input { grid-column: 1; } .zk-metal-val { grid-column: 2; } .zk-del { grid-column: 2; justify-self: end; grid-row: 1; } .zk-seg { grid-column: 1 / -1; } }
.zk-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--beige); gap: 2px; }
.zk-seg button { border: 0; background: none; font: 500 .8rem var(--sans); padding: .32rem .7rem; border-radius: 999px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.zk-seg button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 2px 6px rgba(14, 26, 61, .2); }
.zk-seg-dark { background: rgba(255, 255, 255, .08); }
.zk-seg-dark button { color: var(--on-night-muted); }
.zk-seg-dark button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.zk-group .btn-sm { padding: .3rem .7rem; font-size: .82rem; }
.zk-nav { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.zk-nav .btn { padding-top: .55rem; padding-bottom: .55rem; }
.zk-nav [data-zk-next] { margin-left: auto; }
.zk-nav [data-zk-back] .icon { transform: rotate(180deg); }
.zk-msg { margin: 0; color: #a2402d; }
.zk-side { padding: 1.1rem 1.2rem; }
.zk-side .r-big { font-size: clamp(2rem, 3.6vw, 2.5rem); margin-bottom: .6rem; transition: color .3s; }
.zk-side .r-list { margin-bottom: .6rem; }
.zk-side .r-list div { padding: .38rem 0; font-size: .92rem; }
.zk-meter { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); margin: 0 0 .35rem; overflow: visible; }
.zk-meter span { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--grad-gold); transition: width .6s var(--ease); }
.zk-meter i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; border-radius: 2px; left: 0; transition: left .6s var(--ease); }
.zk-meter-label { color: var(--on-night-muted); margin: 0 0 .5rem; font-size: .82rem; }
.zk-nisab { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; color: var(--on-night-muted); }
.zk-prices { border-top: 1px solid var(--night-line); padding-top: .5rem; margin-bottom: .5rem; }
.zk-prices summary { cursor: pointer; color: var(--gold-200); font-size: .88rem; }
.zk-prices .field span { color: var(--on-night-muted); }
.zk-prices input { background: rgba(255, 255, 255, .06); color: #fff; border-color: var(--night-line); }
.zk-prices p { color: var(--on-night-muted); }
.zk-side .r-note { font-size: .85rem; }
.zk-final { text-align: center; border-radius: 18px; padding: 1rem 1rem .9rem; background: radial-gradient(ellipse at 50% 0%, #fff8e8, var(--ivory)); border: 1px solid var(--gold-200); margin: .6rem 0 .8rem; }
.zk-final .r-label { color: var(--gold-600); }
.zk-big { font: 700 clamp(2.4rem, 6vw, 3.4rem)/1 var(--serif); color: var(--heading); margin: .1rem 0 .4rem; font-variant-numeric: lining-nums tabular-nums; }
.zk-final.due .zk-big { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zk-verdict { margin: 0 auto; max-width: 52ch; color: var(--ink); font-size: .95rem; }
.zk-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .6rem .9rem; border-radius: 12px; background: var(--ivory); margin-bottom: .8rem; font-size: .95rem; }
.zk-q p { margin: 0; }
.zk-bars { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .4rem; }
.zk-bars li { display: grid; grid-template-columns: 9rem 1fr 6.5rem; gap: .7rem; align-items: center; font-size: .9rem; }
.zk-bars .bar { height: 10px; border-radius: 10px; background: var(--beige); overflow: hidden; }
.zk-bars .bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: var(--grad-gold); transition: width .8s var(--ease); }
.zk-bars li.minus .bar i { background: #c9867a; }
.zk-bars b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .zk-bars li { grid-template-columns: 1fr auto; } .zk-bars .bar { grid-column: 1 / -1; grid-row: 2; } }
.zk-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.zk-actions .btn { padding-top: .5rem; padding-bottom: .5rem; font-size: .92rem; }
.zk-learn { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.1rem; }
@media (max-width: 1000px) { .zk-learn { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .zk-learn { grid-template-columns: 1fr; } }
.zk-learn details { border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; background: #fff; }
.zk-learn summary { cursor: pointer; font: 700 1rem var(--serif); color: var(--heading); }
.zk-learn p { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }
.tool-zakat .tool-small { margin-top: .7rem; font-size: .82rem; }
@media print {
  .tool-hero, .more-tools, .tool-picker, .zk-nav, .zk-actions, .zk-steps, .zk-learn, .zk-q .zk-seg { display: none !important; }
  .zk-step[hidden] { display: block !important; }
  .zk-step[data-step="1"] { display: none !important; }
  .zk-group[hidden] { display: none !important; }
  .zk-layout { grid-template-columns: 1fr; }
  .tool-result { position: static; background: #fff !important; color: #000 !important; border: 1px solid #ccc; }
  .tool-result * { color: #000 !important; }
}
.zk-metal select, .zk-metal input { height: 40px; padding-top: 0; padding-bottom: 0; }
.zk-money input { height: 38px; }

/* ---------- Adverts: turning 3D cube style (navy, orange & white tiles) ---------- */
.ad-accent { color: #FF6B35; }
.btn-accent { --bg: #C2410C; --fg: #fff; box-shadow: 0 6px 18px rgba(194, 65, 12, .28); }
.btn-accent:hover { filter: brightness(1.07); }
.cube3d { --s: 40px; display: inline-block; width: var(--s); height: var(--s); perspective: calc(var(--s) * 5); }
.cube3d-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; animation: cubeTurn 16s cubic-bezier(.45, .05, .35, 1) infinite; }
.cf { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7%; padding: 5%; background: #0c1020; border-radius: 12%; backface-visibility: hidden; }
.cf i { display: block; border-radius: 18%; background: linear-gradient(145deg, #2f3b63, #19213d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.cf i.t-o { background: linear-gradient(145deg, #ff8a5c, #e8501b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 6px rgba(255, 107, 53, .45); }
.cf i.t-w { background: linear-gradient(145deg, #ffffff, #cfd5e2); box-shadow: inset 0 1px 0 #fff; }
.cf1 { transform: translateZ(calc(var(--s) / 2)); }
.cf2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cf3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cf4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cf5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cf6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes cubeTurn {
  0% { transform: rotateX(-24deg) rotateY(-35deg); }
  25% { transform: rotateX(-24deg) rotateY(55deg); }
  50% { transform: rotateX(-24deg) rotateY(145deg) rotateZ(0deg); }
  75% { transform: rotateX(-30deg) rotateY(235deg); }
  100% { transform: rotateX(-24deg) rotateY(325deg); }
}
@media (prefers-reduced-motion: reduce) { .cube3d-in { animation: none; transform: rotateX(-24deg) rotateY(-35deg); } }
.is-cube { background: none !important; box-shadow: none !important; overflow: visible !important; }

/* the advert box in the cube style: dark, like the advertiser's own site */
.promo-cube { background: radial-gradient(ellipse 50% 140% at 0% 50%, rgba(255, 107, 53, .14), transparent 60%), linear-gradient(180deg, #11141d, #0b0d14); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: .8rem 1rem; gap: 1rem; }
.promo-cube .promo-mark { width: 46px; height: 46px; display: grid; place-items: center; }
.promo-cube .promo-label { color: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .18); }
.promo-cube .promo-text { color: #b9bfcc; }
.promo-title { font-weight: 800; letter-spacing: -.01em; }
.promo-cube .promo-title { color: #fff; font-size: 1.05rem; }
.promo-cube.promo-light { background: radial-gradient(ellipse 50% 140% at 0% 50%, rgba(255, 107, 53, .14), transparent 60%), linear-gradient(180deg, #11141d, #0b0d14); }

/* floating badge in the cube style: just the cube, floating, with a soft orange glow — no frame */
.ad-float-cube .ad-float-mark { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 53, .22), rgba(12, 16, 32, 0) 68%) !important; animation: cubeFloat 5s ease-in-out infinite; }
.ad-float-cube .ad-float-tip .promo-title { color: #11141d; }
@keyframes cubeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 760px) { .ad-float-cube .ad-float-mark { width: 54px; height: 54px; } .ad-float-cube .cube3d { --s: 34px !important; } }
@media (prefers-reduced-motion: reduce) { .ad-float-cube .ad-float-mark { animation: none; } }

/* ---------- Student area: class password + email login side by side ---------- */
.auth-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 900px; margin: 0 auto; align-items: start; }
@media (max-width: 760px) { .auth-duo { grid-template-columns: 1fr; } }
.auth-duo .auth-card { width: 100%; max-width: none; margin: 0; }
.class-pass-card { border: 1.5px solid var(--gold-200); background: linear-gradient(180deg, #fffaf0, #fff); }
.auth-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; background: var(--navy); color: var(--gold-200); box-shadow: 0 10px 24px rgba(14, 26, 61, .25); }
.tb-lock { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.tb-lock:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Chat assistant (inside the WhatsApp-style panel) ---------- */
.has-bot .wa-panel { width: min(380px, calc(100vw - 24px)); display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 120px)); }
.bot-log { flex: 1; min-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; padding: .9rem .8rem; overscroll-behavior: contain; }
.bot-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 14px; font-size: .93rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); animation: botIn .25s var(--ease); }
.bot-msg p { margin: 0; white-space: pre-line; }
.bot-msg.bot { align-self: flex-start; background: #fff; color: #1f2933; border-top-left-radius: 4px; }
.bot-msg.me { align-self: flex-end; background: #DCF8C6; color: #1f2933; border-top-right-radius: 4px; white-space: pre-line; }
.bot-msg.small { font-size: .78rem; color: #5b6573; background: rgba(255, 255, 255, .7); box-shadow: none; }
@keyframes botIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bot-msg.typing { display: inline-flex; gap: 4px; padding: .7rem .85rem; }
.bot-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b1; animation: botDot 1s infinite; }
.bot-msg.typing span:nth-child(2) { animation-delay: .15s; } .bot-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes botDot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.bot-btns, .bot-links, .bot-card-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.bot-chip { border: 1px solid #c8d3cf; background: #fff; color: #075E54; border-radius: 999px; padding: .38rem .75rem; font: 600 .8rem var(--sans); cursor: pointer; text-decoration: none; line-height: 1.2; }
.bot-chip:hover { background: #f0faf6; border-color: #25A55F; color: #075E54; }
.bot-chip.primary { background: #25A55F; border-color: #25A55F; color: #fff; }
.bot-chip:disabled { opacity: .45; cursor: default; }
.bot-cards { display: grid; gap: .45rem; margin-top: .5rem; }
.bot-card { border: 1px solid #e3e8ee; border-radius: 12px; padding: .55rem .65rem; background: #fafcfb; display: grid; gap: .15rem; }
.bot-card strong { font-size: .9rem; color: var(--heading); line-height: 1.25; }
.bot-card small { color: #5b6573; font-size: .76rem; }
.bot-fee { font-weight: 700; color: #1E7A4B; font-size: .82rem; }
.bot-link { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border-radius: 999px; background: #075E54; color: #fff; font: 700 .85rem var(--sans); text-decoration: none; }
.bot-link.primary { background: #FFC439; color: #003087; }
.bot-link.wa { background: #25A55F; }
.bot-link:hover { filter: brightness(1.07); color: inherit; }
.bot-input { display: flex; gap: .4rem; padding: .55rem .6rem; background: #f0f2f5; border-top: 1px solid #e3e6ea; }
.bot-input input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: .6rem .9rem; font: 400 .95rem var(--sans); background: #fff; outline: none; }
.bot-input input:focus { box-shadow: 0 0 0 2px #25A55F; }
.bot-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #25A55F; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.wa-send-sm { margin: .4rem .6rem .6rem; padding: .5rem; font-size: .85rem; font-weight: 700; }
.wa-send[hidden] { display: none; }
@media (max-width: 560px) { .has-bot .wa-panel { max-height: calc(100vh - 100px); } }

/* ---------- Qur'an recitation (/quran-recitation) ---------- */
.q-controls { display: grid; grid-template-columns: 1.2fr 1fr; gap: .9rem 1rem; align-items: end; margin-bottom: 1.4rem; padding: 1.1rem; background: var(--ivory); border: 1px solid var(--sand); border-radius: 18px; }
.q-controls .field { margin: 0; }
.q-controls select, .q-controls input[type=search] { width: 100%; }
.q-cont { grid-column: 1 / -1; margin: 0; }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.q-list li[hidden] { display: none; }
.q-item { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .75rem; padding: .7rem .85rem; background: #fff; border: 1px solid var(--sand); border-radius: 14px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.q-item:hover, .q-item:focus-visible { border-color: var(--gold); box-shadow: 0 6px 18px rgba(14, 26, 61, .08); transform: translateY(-1px); }
.q-num { position: relative; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; font-weight: 700; font-size: .82rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.q-num::before { content: ''; position: absolute; inset: 4px; border-radius: 7px; transform: rotate(45deg); background: var(--beige); border: 1px solid var(--gold-200); z-index: -1; }
.q-item { position: relative; z-index: 0; }
.q-names { display: flex; flex-direction: column; min-width: 0; }
.q-names strong { color: var(--heading); font-weight: 700; line-height: 1.2; }
.q-names small { color: #6B7184; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-ar { font-family: 'Amiri', 'Scheherazade New', serif; font-size: 1.35rem; color: var(--navy); line-height: 1; }
.q-icon { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; opacity: .85; }
.q-list li.playing .q-item { border-color: var(--gold); background: linear-gradient(100deg, #FFF9EC, #fff); box-shadow: 0 0 0 2px rgba(201, 164, 92, .35); }
.q-list li.playing .q-icon { background: var(--gold); color: var(--navy); }
.q-list li.is-on .q-icon { animation: q-pulse 1.6s ease-in-out infinite; }
@keyframes q-pulse { 50% { box-shadow: 0 0 0 6px rgba(201, 164, 92, .25); } }
.q-credit { margin-top: 1.6rem; }
.q-player { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; width: min(760px, calc(100% - 24px)); display: grid; grid-template-columns: 1fr auto; gap: .45rem .8rem; align-items: center; padding: .7rem .9rem; background: var(--navy); color: var(--on-night); border: 1px solid rgba(232, 213, 168, .25); border-radius: 18px; box-shadow: 0 18px 40px rgba(9, 18, 48, .35); }
.q-player[hidden] { display: none; }
.q-now { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.q-now-ar { font-family: 'Amiri', 'Scheherazade New', serif; font-size: 1.5rem; color: var(--gold-200); }
.q-now-txt { display: flex; flex-direction: column; min-width: 0; }
.q-now-txt strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-now-txt small { color: var(--on-night-muted); }
.q-buttons { display: flex; gap: .4rem; }
.q-btn { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(232, 213, 168, .35); background: transparent; color: var(--gold-200); cursor: pointer; }
.q-btn:hover { background: rgba(232, 213, 168, .12); }
.q-btn[data-q-prev] svg { transform: rotate(90deg); }
.q-btn[data-q-next] svg { transform: rotate(-90deg); }
.q-player audio { grid-column: 1 / -1; width: 100%; height: 40px; }
html.af-has-player .wa-chat { bottom: calc(var(--q-player-h, 110px) + 26px); }
html.af-has-player .to-top { bottom: calc(var(--q-player-h, 110px) + 100px); }
html.af-has-player body { padding-bottom: calc(var(--q-player-h, 110px) + 24px); }
html.af-has-player .cookie-note { bottom: calc(var(--q-player-h, 110px) + 26px); }
.q-btn { text-decoration: none; }
.af-player .q-buttons { gap: .35rem; }
@media (max-width: 560px) { .af-player { bottom: 8px; padding: .55rem .7rem; } .af-player .q-btn { width: 2.1rem; height: 2.1rem; } .af-player .q-now-ar { font-size: 1.2rem; } }
@media (max-width: 720px) {
  .q-controls { grid-template-columns: 1fr; }
  .q-list { grid-template-columns: 1fr; }
}

/* ---------- Read the Qur'an (/quran) ---------- */
/* Uthmani and Indo-Pak fonts: Quran Foundation CDN (their recommended way). Nastaleeq: Noto Nastaliq Urdu (OFL, self-hosted). */
@font-face { font-family: 'QF Hafs'; font-display: swap; src: url(https://verses.quran.foundation/fonts/quran/hafs/uthmanic_hafs/UthmanicHafs1Ver18.woff2) format('woff2'), url(https://verses.quran.foundation/fonts/quran/hafs/uthmanic_hafs/UthmanicHafs1Ver18.ttf) format('truetype'); }
@font-face { font-family: 'QF IndoPak'; font-display: swap; src: url(https://verses.quran.foundation/fonts/quran/hafs/nastaleeq/indopak/indopak-nastaleeq-waqf-lazim-v4.2.1.woff2) format('woff2'), url(https://verses.quran.foundation/fonts/quran/hafs/nastaleeq/indopak/indopak-nastaleeq-waqf-lazim-v4.2.1.woff) format('woff'); }
@font-face { font-family: 'Noto Nastaliq'; font-display: swap; src: url(/fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format('woff2'); }
.qr-scripts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; padding: .3rem; background: #fff; border: 1px solid var(--sand); border-radius: 14px; }
.qr-scripts a { display: flex; flex-direction: column; align-items: center; padding: .5rem .3rem; border-radius: 10px; text-decoration: none; color: var(--ink); text-align: center; line-height: 1.15; }
.qr-scripts a strong { font-weight: 700; color: var(--heading); }
.qr-scripts a small { font-size: .72rem; color: #6B7184; }
.qr-scripts a:hover { background: var(--ivory); }
.qr-scripts a.on { background: var(--navy); }
.qr-scripts a.on strong { color: #fff; }
.qr-scripts a.on small { color: var(--gold-200); }
.qr-index-controls { grid-template-columns: 1fr; }
.qr-index-controls .label { display: block; font-weight: 600; margin-bottom: .35rem; }
.qr-head { padding: 2.2rem 0 1rem; background: linear-gradient(180deg, var(--ivory), #fff); border-bottom: 1px solid var(--sand); }
.qr-crumbs { margin: 0 0 .6rem; }
.qr-crumbs a { display: inline-flex; gap: .35rem; align-items: center; color: var(--gold-700, #8a6a2c); font-weight: 600; text-decoration: none; }
.qr-title { text-align: center; margin-bottom: 1.2rem; }
.qr-title-ar { display: block; font-family: 'Amiri Quran', 'Amiri', serif; font-size: 2rem; color: var(--gold-700, #8a6a2c); line-height: 1.6; }
.qr-title h1 { margin: .1rem 0 .2rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.qr-title p { margin: 0; color: #6B7184; }
.qr-tools { display: grid; gap: .7rem; }
.qr-tools-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.qr-size { display: flex; gap: .4rem; }
.q-btn-l { min-width: 2.6rem; height: 2.3rem; border-radius: 10px; border: 1px solid var(--sand); background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }
.q-btn-l:hover { border-color: var(--gold); }
.qr-section { padding-top: 1.6rem; }
.qr-page { --qr-scale: 1; background: #FFFDF7; border: 1px solid var(--sand); border-radius: 20px; padding: clamp(1.1rem, 4vw, 2.4rem); box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px rgba(201, 164, 92, .35); color: #111; }
.qr-bism { text-align: center; margin: 0 0 1rem; color: var(--navy); }
.qr-text { margin: 0; text-align: justify; text-align-last: center; }
.qr-ayah { scroll-margin-top: 120px; }
.qr-ayah:target { background: rgba(201, 164, 92, .18); border-radius: 8px; }
.qr-no { display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; margin: 0 .2em; padding: 0 .15em; border: 1.5px solid var(--gold); border-radius: 50%; font-family: 'Amiri', serif; font-size: .55em; line-height: 1; color: var(--navy); vertical-align: middle; background: #fff; }
/* each script: its font, size and line spacing */
.qr-uthmani .qr-text, .qr-uthmani .qr-bism, .qr-uthmani .qr-ar-line { font-family: 'QF Hafs', 'Amiri Quran', serif; font-size: calc(1.95rem * var(--qr-scale)); line-height: 2.25; word-spacing: .06em; }
.qr-pakistani .qr-text, .qr-pakistani .qr-bism, .qr-pakistani .qr-ar-line { font-family: 'QF IndoPak', 'Amiri Quran', serif; font-size: calc(1.85rem * var(--qr-scale)); line-height: 2.5; }
.qr-nastaleeq .qr-text, .qr-nastaleeq .qr-bism, .qr-nastaleeq .qr-ar-line { font-family: 'Noto Nastaliq', 'QF IndoPak', serif; font-size: calc(1.55rem * var(--qr-scale)); line-height: 3.1; }
.qr-naskh .qr-text, .qr-naskh .qr-bism, .qr-naskh .qr-ar-line { font-family: 'Amiri Quran', 'Amiri', serif; font-size: calc(1.85rem * var(--qr-scale)); line-height: 2.35; }
.qr-uthmani .qr-no, .qr-naskh .qr-no { font-size: .5em; }
.qr-nav { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.q-read-list .q-item { text-decoration: none; }
@media (max-width: 720px) {
  .qr-scripts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-text { text-align: right; text-align-last: auto; }
  .qr-nav .btn { flex: 1; text-align: center; }
}
.qr-sign { color: #7a5a1c; white-space: nowrap; }
.qr-uthmani .qr-ayah { color: #111; }
@media (min-width: 900px) { .qr-page { font-size: 1.08em; } }
.qr-pakistani .qr-sign { font-family: 'Noto Nastaliq', serif; font-size: .78em; line-height: 1; vertical-align: .05em; }
/* following the recitation on the reading page */
.qr-page[title] .qr-ayah { cursor: pointer; border-radius: 10px; }
.qr-page .qr-ayah:hover { background: rgba(201, 164, 92, .10); }
.qr-ayah.qr-now { background: rgba(201, 164, 92, .22); box-shadow: 0 0 0 3px rgba(201, 164, 92, .22); color: #0b1533; }
.qr-pointer { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-inline-end: .15em; border-radius: 50%; background: var(--navy); color: var(--gold-200); vertical-align: middle; font-size: .62em; line-height: 1; box-shadow: 0 2px 8px rgba(14, 26, 61, .25); }
.qr-pointer svg { width: 66%; height: 66%; }
.qr-live .qr-pointer { animation: qr-nudge 1.4s ease-in-out infinite; }
@keyframes qr-nudge { 50% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) { .qr-live .qr-pointer { animation: none; } }
.qr-follow { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--q-player-h, 0px) + 28px); z-index: 61; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; font-weight: 700; box-shadow: 0 8px 22px rgba(14, 26, 61, .25); cursor: pointer; }
.qr-follow[hidden] { display: none; }

/* class times: UK time label and the visitor's own time */
.uk-tz { display: inline-block; padding: 0 .4em; margin-left: .15em; border-radius: 6px; background: var(--beige, #F3EBDD); color: var(--navy); font-size: .78em; font-weight: 600; white-space: nowrap; vertical-align: .05em; }
.local-tz { display: block; font-size: .85em; color: #5b6275; }
.partner-box { margin-bottom: 1rem; }
.privacy-box { margin: .4rem 0 1rem; padding: .7rem .9rem; border: 1px solid var(--sand); border-radius: 12px; background: #fff; font-size: .92rem; }
.privacy-box summary { cursor: pointer; font-weight: 700; color: var(--navy); display: flex; gap: .4rem; align-items: center; }
.privacy-box ul { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; }

/* homepage after the review: today's date line, trust band, short testimonials */
.today-strip { background: var(--ivory); border-bottom: 1px solid var(--sand); font-size: .95rem; }
.today-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem 1rem; padding: .7rem 0; color: var(--navy); }
.today-ic { color: var(--gold-700, #8a6a2c); display: inline-flex; }
.today-ar { font-family: 'Amiri', serif; font-size: 1.1em; }
.today-h { font-weight: 600; }
.today-g { color: #5b6275; }
.today-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--gold-700, #8a6a2c); text-decoration: none; }
.today-link:hover { text-decoration: underline; }
.trust-band { padding: 2.2rem 0; background: #fff; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.trust-item { display: flex; gap: .75rem; align-items: flex-start; }
.trust-ic { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; background: var(--beige, #F3EBDD); color: var(--navy); }
.trust-item h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.trust-item p { margin: 0; font-size: .9rem; color: #4d5466; line-height: 1.45; }
.trust-item a { font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.tm-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tm-clamp.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.tm-more { margin: .3rem 0 .6rem; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--gold-700, #8a6a2c); cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .7rem !important; }
  .offer { padding: 1rem .85rem !important; }
  .offer h3 { font-size: 1rem; }
  .offer p { font-size: .86rem; line-height: 1.4; }
  .offer-ic { width: 2.4rem; height: 2.4rem; }
}
.price-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* resources library */
.narrow-prose { max-width: 760px; margin: 0 auto 1.5rem; }
.lib-tools { position: sticky; top: 74px; z-index: 5; display: grid; gap: .6rem; padding: .9rem 1rem; margin-bottom: 1.6rem; background: rgba(250, 247, 240, .96); backdrop-filter: blur(6px); border: 1px solid var(--sand); border-radius: 16px; }
.lib-search { margin: 0; }
.lib-search input { width: 100%; }
.lib-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.lib-filters .chip { border: 1px solid var(--sand); background: #fff; color: var(--navy); border-radius: 999px; padding: .4rem .9rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.lib-filters .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.lib-legend { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.lib-group { margin-bottom: 2rem; }
.lib-group[hidden], [data-lib-item][hidden] { display: none !important; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.lib-card { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; background: #fff; border: 1px solid var(--sand); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lib-card:hover, .lib-card:focus-visible { border-color: var(--gold); box-shadow: 0 8px 20px rgba(14, 26, 61, .08); transform: translateY(-2px); }
.lib-ic { flex: none; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 12px; background: var(--beige, #F3EBDD); color: var(--navy); }
.lib-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.lib-body strong { color: var(--heading); font-size: 1.02rem; }
.lib-body > span:not(.lib-tag) { font-size: .9rem; color: #4d5466; line-height: 1.45; }
.lib-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .25rem; margin-top: .2rem; padding: .1rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.lib-free { background: #E5F4E4; color: #24662b; }
.lib-login { background: #E7F1FB; color: #1f4f86; }
@media (max-width: 720px) { .lib-tools { top: 64px; } }

.tool-pick-ar::before { content: attr(data-ar); } /* decorative Arabic watermark */

/* ---------- Mobile quick-action bar (Courses & fees · Register · Ask us) ---------- */
.m-bar { display: none; }
@media (max-width: 760px) {
  .m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 93; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: .4rem; padding: .45rem .6rem calc(.45rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(15, 30, 70, .12); }
  .m-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 48px; border-radius: 12px; color: var(--navy); font-size: .8rem; font-weight: 700; text-decoration: none; }
  .m-bar a:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 2px; }
  .m-bar .m-bar-main { flex-direction: row; gap: .45rem; background: var(--gold, #C9A24B); color: #0F1E46; font-size: 1rem; }
  body:has(> .m-bar) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body:has(> .m-bar) .wa-float { display: none; }
  body:has(> .m-bar) .wa-chat { bottom: calc(78px + env(safe-area-inset-bottom)); }
  body:has(> .m-bar) .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(> .m-bar) .cookie-note { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; }
  html.af-has-player .m-bar { display: none; }
  html.af-has-player body:has(> .m-bar) .wa-float { display: grid; }
  html.af-has-player body:has(> .m-bar) { padding-bottom: calc(var(--q-player-h, 110px) + 24px); }
  html.af-has-player body:has(> .m-bar) .wa-chat { bottom: calc(var(--q-player-h, 110px) + 26px); }
}
@media print { .m-bar { display: none !important; } }

/* Courses & fees: filter, language tag, short description; registration form extras */
.fee-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.2rem; }
.fee-filter .chip { min-height: 40px; }
.tag-lang { margin-left: .4rem; padding: .05rem .55rem; font-size: .72rem; letter-spacing: .02em; vertical-align: middle; }
.fee-desc { font-weight: 400; line-height: 1.45; margin-top: .2rem; max-width: 46ch; }
.fee-none { padding: 1.2rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-600); text-decoration: underline; cursor: pointer; }
.more-fields { border: 1px dashed var(--line); border-radius: 12px; padding: .7rem 1rem; margin: 0 0 1rem; }
.more-fields summary { cursor: pointer; font-weight: 600; color: var(--heading); min-height: 28px; }
.more-fields[open] summary { margin-bottom: .8rem; }
@media (max-width: 760px) { .tag-lang { margin-left: 0; margin-top: .25rem; } .fee-desc { display: none; } }

/* Mobile: shorter pages — posters and course cards scroll sideways (swipe) instead of stacking; compact footer */
@media (max-width: 600px) {
  .poster-grid, .price-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; max-width: none; margin: 0 -16px; padding: 4px 16px 14px; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
  .poster-grid > *, .price-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .poster-grid::after, .price-grid::after { content: ''; flex: 0 0 2px; }
  .swipe-hint { display: block; }
  .footer-about, .footer-follow { display: none; }
  .footer-links { columns: 2; column-gap: 1rem; }
  .footer-links li { break-inside: avoid; }
  .footer-grid { gap: 1.4rem; }
}
.swipe-hint { display: none; text-align: center; font-size: .82rem; color: var(--muted, #5b6478); margin: .2rem 0 0; }
@media (max-width: 760px) { body.nav-open .m-bar { display: none; } }

/* Articles: quoted Qur'an / hadith and pictures */
.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.3rem 1rem 1.2rem; border-left: 4px solid var(--gold, #C9A24B); background: var(--cream, #FBF7EE); border-radius: 0 14px 14px 0; }
.prose blockquote p { margin: .35rem 0; }
.prose blockquote p.ar { font-family: 'Amiri Quran', 'Amiri', serif; font-size: 1.55rem; line-height: 2.1; color: var(--navy, #0F1E46); text-align: right; }
.prose .md-fig { margin: 2rem 0; }
.prose .md-fig img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 30, 70, .12); }
.prose .md-fig figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted, #5b6478); text-align: center; }

/* Reading page: translation of the meanings under each ayah */
.qr-trsel { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--navy); flex: 1 1 100%; min-width: 0; max-width: 100%; }
.qr-trsel > span { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.qr-trsel select { flex: 1; width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; min-height: 40px; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 400; color: var(--text, #22304f); }
.qr-verses { display: flex; flex-direction: column; }
.qr-verse { padding: .9rem 0 1.1rem; border-bottom: 1px solid rgba(201, 164, 92, .28); }
.qr-verse:last-child { border-bottom: 0; }
.qr-ar-line { margin: 0 0 .45rem; text-align: right; }
.qr-tr { margin: 0; font-family: var(--font-body, 'Jost', sans-serif); font-size: calc(1.02rem * (0.6 + var(--qr-scale) * 0.4)); line-height: 1.75; color: #33405e; }
.qr-tr-ltr { text-align: left; }
.qr-tr-rtl { text-align: right; font-family: 'Noto Nastaliq', 'Amiri', serif; font-size: calc(1.1rem * (0.6 + var(--qr-scale) * 0.4)); line-height: 2.3; }
.qr-tr[lang="prs"], .qr-tr[lang="fa"], .qr-tr[lang="ps"] { font-family: 'Amiri', serif; line-height: 2; font-size: calc(1.18rem * (0.6 + var(--qr-scale) * 0.4)); }
.qr-tr-no { font-weight: 700; color: var(--gold-600, #9a7a2f); unicode-bidi: isolate; }
.qr-listen { margin-top: .6rem; }
.qr-listen .q-listen { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; font-weight: 600; color: var(--navy); }
.qr-listen .q-listen > span { white-space: nowrap; }
.qr-listen select, .q-listen select { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }

/* Reading page: "Go to ayah" bar, kept just under the site header while reading */
.qr-subbar { position: sticky; top: var(--qr-sub-top, 72px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: 0 0 1rem; padding: .55rem .8rem; background: rgba(250, 247, 240, .96); backdrop-filter: blur(6px); border: 1px solid var(--sand); border-radius: 14px; box-shadow: 0 4px 14px rgba(15, 30, 70, .06); }
.qr-subbar-name { margin-right: auto; color: var(--navy); font-size: .95rem; }
.qr-subbar-name small { color: var(--gold-600, #9a7a2f); font-weight: 700; margin-left: .2rem; }
.qr-goto { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .9rem; font-weight: 600; color: var(--navy); }
.qr-goto input { width: 6.2rem; min-height: 38px; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.qr-goto-msg { flex-basis: 100%; color: #b42318; }
.qr-goto-msg:empty { display: none; }
.qr-ayah { scroll-margin-top: 160px; }
.qr-ayah.qr-flash { animation: qrFlash 2.6s ease-out; border-radius: 8px; }
@keyframes qrFlash { 0%, 35% { background: rgba(201, 164, 92, .45); box-shadow: 0 0 0 4px rgba(201, 164, 92, .35); } 100% { background: transparent; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .qr-ayah.qr-flash { animation: none; background: rgba(201, 164, 92, .3); } }
.q-ayah-jump { display: block; margin: 0 0 .8rem; padding: .8rem 1rem; text-align: center; font-weight: 700; color: var(--navy); background: rgba(201, 164, 92, .18); border: 1px solid var(--gold, #C9A24B); border-radius: 14px; text-decoration: none; }
.q-ayah-jump[hidden] { display: none; }
@media (max-width: 480px) { .qr-subbar-name { flex-basis: 100%; margin-right: 0; } .qr-goto input { width: 5.4rem; } }

/* Hero: small Read / Listen to the Qur'an badges (top of the right-hand side on desktop) */
.hero-quick { display: flex; gap: .9rem; position: relative; z-index: 3; }
.hero-grid > .hero-quick { grid-column: 2; grid-row: 1; align-self: start; justify-self: center; margin-top: .2rem; transform: translateX(-12%); }
.hq-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: auto; color: var(--on-night, #e9edf7); text-decoration: none; text-align: center; font-size: .68rem; font-weight: 600; letter-spacing: .02em; line-height: 1.2; opacity: .92; transition: transform .25s ease, opacity .25s ease; }
.hq-item svg { display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); transition: filter .25s ease; }
.hq-item:hover, .hq-item:focus-visible { transform: translateY(-3px); opacity: 1; }
.hq-item:hover svg, .hq-item:focus-visible svg { filter: drop-shadow(0 0 10px rgba(232, 205, 142, .55)); }
.hq-item:focus-visible { outline: 2px solid #E8CD8E; outline-offset: 4px; border-radius: 10px; }
@media (max-width: 900px) {
  /* phones and tablets: in the top band, one badge each side of the particle picture */
  .hero-grid { position: relative; }
  .hero-grid > .hero-quick { grid-column: 1 / -1; grid-row: 1; justify-self: stretch; position: absolute; top: 1.1rem; left: 0; right: 0; justify-content: space-between; padding: 0 var(--gutter, 16px); margin: 0; transform: none; pointer-events: none; }
  .hero-grid > .hero-quick .hq-item { pointer-events: auto; }
  .hq-item svg { width: 38px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .hq-item, .hq-item svg { transition: none; } .hq-item:hover { transform: none; } }

/* Header strip: a gilded Qur'an cover, recoloured to the site's ivory and gold, softly behind the menu */
.site-header { background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)), url('/img/header-quran.webp') center 46% / cover no-repeat, #fff; }
.prose .md-video video { display: block; width: 100%; height: auto; border-radius: 16px; background: #0F1E46; box-shadow: 0 10px 30px rgba(15, 30, 70, .18); }

/* 5-year anniversary badge beside the logo (Site settings: anniversary.badge) */
.anniv-badge { flex: none; display: block; margin-left: -.2rem; transition: transform .3s var(--ease); }
.anniv-badge img { display: block; width: 48px; height: 48px; filter: drop-shadow(0 3px 8px rgba(15, 30, 70, .25)); }
.anniv-badge:hover { transform: rotate(-8deg) scale(1.06); }
@media (max-width: 760px) { .anniv-badge img { width: 40px; height: 40px; } }
.brand-wrap { display: flex; align-items: center; gap: .7rem; flex: none; }

/* Homepage: 5-year anniversary film, just after the hero */
.anniv { background: linear-gradient(180deg, #fbf7ee, #fff); }
.anniv-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.anniv-copy h2 { margin: .3rem 0 .8rem; }
.anniv-seal { width: 72px; height: 72px; display: block; margin-bottom: .6rem; filter: drop-shadow(0 6px 14px rgba(15, 30, 70, .2)); }
.anniv-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.anniv-video { margin: 0; }
.anniv-video video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 18px; background: #0F1E46; box-shadow: 0 18px 44px rgba(15, 30, 70, .22); border: 2px solid rgba(201, 164, 92, .55); }
.anniv-video figcaption { margin-top: .6rem; text-align: center; font-size: .9rem; color: var(--muted, #5b6478); }
@media (max-width: 900px) { .anniv-grid { grid-template-columns: 1fr; } .anniv-video { order: -1; } }
.anniv .text-gold { color: var(--gold-600, #8a6a24); }

/* 5-year anniversary film pop-up: a window on top of the page (site settings: anniversary.popup) */
.anniv-pop { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 12, 35, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s ease; }
.anniv-pop.open { opacity: 1; }
.anniv-pop[hidden] { display: none; }
.anniv-pop .anniv-pop-box { width: min(780px, 100%); transform: translateY(18px) scale(.97); transition: transform .35s ease; }
.anniv-pop.open .anniv-pop-box { transform: none; }
.anniv-pop-box { position: relative; overflow: hidden; border-radius: 18px; background: #0F1E46; border: 2px solid rgba(201, 164, 92, .7); box-shadow: 0 22px 60px rgba(5, 12, 35, .45); }
.anniv-pop video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #0F1E46; cursor: pointer; }
.anniv-pop-x { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(5, 12, 35, .72); color: #fff; cursor: pointer; }
.anniv-pop-x:hover, .anniv-pop-x:focus-visible { background: #C9A45C; color: #0F1E46; outline: none; }
.anniv-pop-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem .85rem; color: #e9edf7; font-size: .88rem; }
.anniv-pop-bar p { margin: 0 auto 0 0; }
.anniv-pop-bar strong { color: #E8CD8E; }
.anniv-pop-sound { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: .25rem .7rem; border-radius: 999px; border: 0; background: linear-gradient(135deg, #F3DFA8, #C9A45C); color: #0F1E46; font: inherit; font-weight: 600; cursor: pointer; }
.anniv-pop-bar a { color: #E8CD8E; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .2rem; }
.anniv-pop-bar a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .anniv-pop { transition: none; } }
/* Day & Night Adhkar */
.adhkar-list { display: grid; gap: 1rem; }
.adhkar-item h2 { margin: 0 0 .4rem; }
.adhkar-item audio { width: 100%; margin-top: .5rem; }
