/* ==========================================================================
   Tilawa Quran Academy — styles
   Design tokens mirror the Tilawa Quran Academy design system (tokens.json).
   ========================================================================== */

:root {
  /* Colour */
  --emerald-950: #031f0f;
  --emerald-900: #063a1c;
  --emerald-800: #0a4d27;
  --emerald-700: #12693a;
  --emerald-100: #dcebdf;
  --emerald-50:  #edf5ef;
  --ivory:       #fbf8f1;
  --cream:       #f5efe1;
  --white:       #ffffff;
  --gold:        #c9a23a;
  --gold-deep:   #80621a;
  --gold-soft:   #f1e6c2;
  --ink:         #1d2421;
  --ink-muted:   #56605b;
  --line:        #e5ddcc;
  --line-strong: #d6cbb3;
  --danger:      #a8322a;

  /* Type */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", "Traditional Arabic", serif;

  /* Spacing (4px base) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 48px;
  --space-9: 64px; --space-10: 88px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 76, 58, .06), 0 2px 8px rgba(15, 76, 58, .04);
  --shadow-md: 0 2px 4px rgba(15, 76, 58, .05), 0 12px 32px rgba(15, 76, 58, .08);
  --shadow-lg: 0 4px 8px rgba(8, 41, 31, .06), 0 28px 64px rgba(8, 41, 31, .14);

  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--emerald-950); }
p { margin: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
section[id], main [id] { scroll-margin-top: 100px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--emerald-900); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 46px; padding: 0 22px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--emerald-800); color: #fff; box-shadow: 0 6px 18px -8px rgba(15, 76, 58, .7); }
.btn--primary:hover { background: var(--emerald-900); }
.btn--gold { background: var(--gold); color: var(--emerald-950); }
.btn--gold:hover { background: #d6b252; }
.btn--ghost { color: var(--emerald-900); border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--emerald-800); background: var(--white); }
.btn--outline { color: var(--emerald-800); border-color: var(--emerald-800); background: transparent; }
.btn--outline:hover { background: var(--emerald-800); color: #fff; }
.btn--on-dark { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.link-arrow, .course__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; font-size: 15px; color: var(--emerald-800);
}
.link-arrow .ico, .course__link .ico { transition: transform .2s var(--ease); }
.link-arrow:hover .ico, .course__link:hover .ico { transform: translateX(4px); }
.text-link { color: var(--emerald-800); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: var(--space-4);
}
.eyebrow .ico { width: 16px; height: 16px; color: var(--gold); }
.eyebrow--light { color: var(--gold); }
.section__title {
  font-family: var(--font-display); 
  font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.015em;
  max-width: 18ch; text-wrap: balance;
}
.section__lead { color: var(--ink-muted); font-size: 18px; max-width: 56ch; }
.muted { color: var(--ink-muted); }

/* ---------- Announcement ---------- */
.announce { background: var(--emerald-950); color: rgba(255, 255, 255, .86); font-size: 14px; }
.announce__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 42px; }
.announce__msg { display: flex; align-items: center; gap: var(--space-3); }
.announce__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.announce__link { color: var(--gold); font-weight: 600; margin-left: var(--space-1); }
.announce__link:hover { text-decoration: underline; }
.announce__contact { display: flex; gap: var(--space-5); }
.announce__contact a { display: inline-flex; align-items: center; gap: var(--space-2); }
.announce__contact a:hover { color: #fff; }
.announce__contact .ico { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .9);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(8, 41, 31, .4); }
.nav__inner { display: flex; align-items: center; gap: var(--space-6); height: 92px; }
.logo img { height: 72px; width: auto; }
.logo { display: inline-flex; align-items: center; gap: var(--space-3); flex: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--emerald-800); color: var(--gold);
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--emerald-950); letter-spacing: -.01em; }
.logo__text span { font-weight: 400; color: var(--emerald-700); margin-left: 4px; }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text span { color: var(--gold); }
.logo--light .logo__mark { background: rgba(255, 255, 255, .08); }

.nav__menu { margin-left: auto; }
.nav__menu ul { display: flex; gap: var(--space-1); }
.nav__menu a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.nav__menu a:not(.btn):hover { background: var(--cream); }
.nav__menu a.is-active { color: var(--emerald-800); background: var(--emerald-50); }
.nav__cta-mobile { display: none; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--space-9) 0 var(--space-10); }
.hero__pattern {
  position: absolute; inset: 0 0 0 auto; width: 46%; height: 100%;
  color: var(--gold); opacity: .13;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-8); align-items: center; }
.hero__title {
  font-family: var(--font-display); 
  font-size: clamp(40px, 4.7vw, 62px); line-height: 1.05; letter-spacing: -.025em;
  font-weight: 500; max-width: 16ch; text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--emerald-700); }
.hero__lead { margin-top: var(--space-5); font-size: 19px; color: var(--ink-muted); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); font-size: 15px; color: var(--ink-muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__trust .ico { color: var(--emerald-700); }

.hero__visual { position: relative; padding: 112px var(--space-6) var(--space-7); }
.lesson {
  position: relative; background: var(--emerald-800); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-lg); color: #fff;
}
.lesson__head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) var(--space-2) var(--space-4); font-size: 13px; }
.live { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; background: rgba(255, 255, 255, .1); padding: 6px 12px; border-radius: var(--radius-pill); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #6fd39f; box-shadow: 0 0 0 4px rgba(111, 211, 159, .2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(111, 211, 159, 0); } }
.lesson__meta { color: rgba(255, 255, 255, .7); }
.lesson__page {
  position: relative; overflow: hidden; background: var(--ivory); color: var(--emerald-950);
  border-radius: var(--radius-md); padding: var(--space-8) var(--space-6) var(--space-6); text-align: center;
}
.lesson__frame { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .12; }
.ayah { position: relative; font-family: var(--font-arabic); font-size: clamp(30px, 3.2vw, 40px); line-height: 1.9; }
.ayah--sm { font-size: clamp(22px, 2.3vw, 28px); color: var(--emerald-700); }
.lesson__translit { position: relative; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); font-style: italic; }
.lesson__foot { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) var(--space-2) var(--space-2); }
.tutor { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; line-height: 1.3; }
.tutor strong { display: block; font-weight: 600; }
.tutor small { color: rgba(255, 255, 255, .68); font-size: 12px; }
.lesson__time { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .78); }

.float-card {
  position: absolute; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: var(--space-4) var(--space-5); line-height: 1.35;
  border: 1px solid var(--line);
}
.float-card small { display: block; font-size: 12px; color: var(--ink-muted); }
.float-card strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--emerald-950); margin: 2px 0 var(--space-3); }
.float-card--progress { right: -8px; bottom: 0; width: 220px; }
.float-card--rating { display: none; left: -4px; top: 0; display: flex; flex-direction: column; gap: 6px; padding: var(--space-3) var(--space-4); }
.bar { height: 6px; border-radius: var(--radius-pill); background: var(--emerald-50); overflow: hidden; margin-bottom: var(--space-2); }
.bar span { display: block; height: 100%; background: var(--emerald-700); border-radius: inherit; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }

/* ---------- Avatar ---------- */
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--emerald-100); color: var(--emerald-800);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .02em;
}
.avatar--sm { width: 36px; height: 36px; font-size: 13px; background: var(--gold-soft); color: var(--emerald-900); }
.avatar--xl { width: 100%; height: 100%; border-radius: 0; font-size: 44px; font-weight: 500; background: transparent; color: var(--emerald-800); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---------- Stats ---------- */
.stats { padding-bottom: var(--space-4); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stat { padding: var(--space-6) var(--space-6); display: flex; flex-direction: column-reverse; gap: var(--space-1); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 44px); line-height: 1; color: var(--emerald-800); font-weight: 500; letter-spacing: -.02em; }
.stat dt { font-size: 15px; color: var(--ink-muted); }

/* ---------- Sections ---------- */
.section { padding: var(--space-10) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--emerald { background: var(--emerald-900); color: rgba(255, 255, 255, .82); overflow: hidden; }
.section--emerald .section__title { color: #fff; }
.section--emerald .section__lead { color: rgba(255, 255, 255, .72); }
.section__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .08; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: end; margin-bottom: var(--space-8); }
.section__head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--space-4); }
.section__head--center .section__title { max-width: 24ch; }
.section__head--center .eyebrow { margin-bottom: 0; }

/* ---------- About / features ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-9); align-items: start; }
.about__intro { position: sticky; top: 120px; }
.about__intro .section__lead { margin: var(--space-5) 0 var(--space-6); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-7); }
.feature { padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.feature__num { display: block; font-family: var(--font-display); font-size: 14px; color: var(--gold-deep); margin-bottom: var(--space-3); letter-spacing: .04em; }
.feature h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.25; margin-bottom: var(--space-2); }
.feature p { color: var(--ink-muted); font-size: 16px; }

/* ---------- Courses ---------- */
.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.course {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.course h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.course p { color: var(--ink-muted); font-size: 15.5px; flex: 1; }
.course__glyph {
  font-family: var(--font-arabic); font-size: 30px; line-height: 1.4; color: var(--emerald-700);
  height: 64px; display: flex; align-items: center; margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--line); direction: rtl; justify-content: flex-end;
}
.course__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.course__meta li { font-size: 12.5px; font-weight: 500; color: var(--emerald-800); background: var(--emerald-50); padding: 4px 10px; border-radius: var(--radius-pill); }
.course__link { margin-top: var(--space-2); }

.course--feature {
  grid-column: span 2; grid-row: span 2;
  padding: 0; overflow: hidden; display: grid; grid-template-rows: 1fr auto;
  background: var(--emerald-800); border-color: var(--emerald-800); color: #fff;
}
.course--feature:hover { border-color: var(--emerald-800); }
.course--feature h3 { color: #fff; font-size: 32px; }
.course--feature p { color: rgba(255, 255, 255, .78); font-size: 17px; }
.course--feature .course__meta li { background: rgba(255, 255, 255, .1); color: #fff; }
.course__art {
  position: relative; min-height: 220px; display: grid; place-items: center;
  background: var(--emerald-900);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.course__art span { font-family: var(--font-arabic); font-size: clamp(64px, 7vw, 96px); color: var(--gold); line-height: 1; }
.course__body { padding: var(--space-6) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.course--advise { background: var(--emerald-50); border: 1px dashed var(--emerald-100); justify-content: center; }
.course--advise:hover { transform: none; box-shadow: none; }
.course--advise p { flex: 0; }
.course--advise .btn { align-self: flex-start; margin-top: var(--space-2); }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-950); background: var(--gold); padding: 5px 12px; border-radius: var(--radius-pill); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: calc(16.66% + 28px); right: calc(16.66% + 28px);
  border-top: 1px dashed var(--line-strong);
}
.step { text-align: center; position: relative; }
.step__num {
  width: 56px; height: 56px; margin: 0 auto var(--space-5); display: grid; place-items: center;
  border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold);
  font-family: var(--font-display); font-size: 22px; color: var(--emerald-800);
  box-shadow: 0 0 0 8px var(--ivory);
}
.step h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: var(--space-2); }
.step p { color: var(--ink-muted); font-size: 16px; max-width: 32ch; margin-inline: auto; }

/* ---------- Teachers ---------- */
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.teacher { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.teacher__photo {
  aspect-ratio: 4 / 3.4; background: var(--emerald-50);
  display: grid;
}
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher__body { padding: var(--space-5) var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.teacher h3 { font-family: var(--font-display); font-size: 21px; }
.teacher__role { font-size: 14px; font-weight: 600; color: var(--gold-deep); margin-top: -6px; }
.teacher__facts { display: grid; gap: var(--space-2); font-size: 14px; padding: var(--space-3) 0; border-block: 1px solid var(--line); flex: 1; }
.teacher__facts div { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-2); }
.teacher__facts dt { color: var(--ink-muted); }
.teacher__facts dd { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; font-weight: 500; color: var(--emerald-800); border: 1px solid var(--emerald-100); padding: 3px 10px; border-radius: var(--radius-pill); }

/* ---------- Pricing ---------- */
.duration { display: inline-flex; padding: 4px; margin-top: var(--space-4); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.duration button { border: 0; background: none; padding: 10px 20px; border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 600; color: var(--ink-muted); cursor: pointer; transition: background-color .2s, color .2s; }
.duration button[aria-checked="true"] { background: var(--white); color: var(--emerald-900); box-shadow: var(--shadow-sm); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.plan__name { font-family: var(--font-display); font-size: 24px; }
.plan__days { font-size: 15px; color: var(--ink-muted); margin-top: 2px; }
.plan__price { display: flex; align-items: flex-start; margin: var(--space-5) 0; padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); color: var(--emerald-950); }
.plan__price > span:nth-child(2) { font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: -.03em; font-weight: 500; }
.plan__cur { font-size: 22px; margin: 6px 2px 0 0; font-family: var(--font-display); }
.plan__per { align-self: flex-end; font-size: 15px; color: var(--ink-muted); margin: 0 0 6px 6px; }
.plan__list { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); flex: 1; font-size: 15.5px; }
.plan__list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.plan__list .ico { color: var(--emerald-700); margin-top: 3px; }

.plan--featured { background: var(--emerald-900); border-color: var(--emerald-900); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(-12px); }
.plan--featured .plan__name, .plan--featured .plan__price { color: #fff; }
.plan--featured .plan__days, .plan--featured .plan__per { color: rgba(255, 255, 255, .68); }
.plan--featured .plan__price { border-color: rgba(255, 255, 255, .14); }
.plan--featured .plan__list .ico { color: var(--gold); }
.plan__badge { position: absolute; top: -13px; left: var(--space-6); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--emerald-950); padding: 5px 12px; border-radius: var(--radius-pill); }
.plans__note { display: flex; align-items: center; justify-content: center; gap: var(--space-2); text-align: center; margin-top: var(--space-7); font-size: 15px; color: var(--ink-muted); }
.price-swap { animation: priceIn .35s var(--ease); }
@keyframes priceIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Trust (emerald) ---------- */
.trust { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-9); align-items: start; }
.trust__intro .section__lead { margin-top: var(--space-5); }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-7); }
.trust__list li { padding: var(--space-5) 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.trust__list li:last-child { grid-column: span 2; }
.trust__list h3 { color: #fff; font-family: var(--font-display); font-size: 21px; margin-bottom: var(--space-2); display: flex; align-items: center; gap: var(--space-3); }
.trust__list h3::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }
.trust__list p { font-size: 16px; color: rgba(255, 255, 255, .72); padding-left: 20px; }

/* ---------- Testimonials ---------- */
.reviews { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-5); }
.review {
  display: flex; flex-direction: column; gap: var(--space-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.review blockquote { flex: 1; font-size: 17px; color: var(--ink); }
.review--lead blockquote { font-family: var(--font-display); font-size: 23px; line-height: 1.45; color: var(--emerald-950); }
.review figcaption { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--line); line-height: 1.35; }
.review figcaption strong { display: block; font-weight: 600; }
.review figcaption small { color: var(--ink-muted); font-size: 13.5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-9); align-items: start; }
.faq__intro { position: sticky; top: 120px; }
.faq__intro .section__lead { margin-top: var(--space-5); }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  padding: var(--space-5) 0; font-family: var(--font-display); font-size: 20px; color: var(--emerald-950);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { width: 22px; height: 22px; color: var(--emerald-700); transition: transform .3s var(--ease); }
.qa[open] summary .ico { transform: rotate(45deg); }
.qa summary:hover { color: var(--emerald-700); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 var(--space-7) var(--space-5) 0; color: var(--ink-muted); }

/* ---------- Final CTA ---------- */
.cta { padding-bottom: var(--space-10); }
.cta__panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--emerald-900); color: #fff;
  padding: var(--space-9) var(--space-8);
  display: grid; grid-template-columns: 1.3fr auto; align-items: end; gap: var(--space-7);
}
.cta__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .12; }
.cta__copy, .cta__actions { position: relative; }
.cta__ayah { text-align: left; font-family: var(--font-arabic); font-size: 28px; color: var(--gold); margin-bottom: var(--space-3); }
.cta h2 { color: #fff; font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
.cta__copy > p:last-child { margin-top: var(--space-4); color: rgba(255, 255, 255, .74); font-size: 18px; max-width: 48ch; }
.cta__actions { display: flex; flex-direction: column; gap: var(--space-3); }

/* ---------- Admission ---------- */
.admission { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-9); align-items: start; padding-top: 0; }
#admission { padding-top: 0; }
.admission__aside .section__lead { margin: var(--space-5) 0 var(--space-7); }
.contact-list { display: grid; gap: var(--space-5); }
.contact-list li { display: flex; align-items: center; gap: var(--space-4); line-height: 1.35; }
.contact-list small { display: block; font-size: 13px; color: var(--ink-muted); }
.contact-list a { font-weight: 600; color: var(--emerald-900); }
.contact-list a:hover { color: var(--emerald-700); }
.contact-list__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-50); color: var(--emerald-800); flex: none; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow-md); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label > span[aria-hidden] { color: var(--gold-deep); }
.field__opt { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--ivory); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f4c3a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--emerald-700); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--emerald-800); box-shadow: 0 0 0 4px rgba(15, 76, 58, .12); }
.field.has-error input, .field.has-error select { border-color: var(--danger); background: #fdf6f5; }
.field__error { font-size: 13px; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.form__footer { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-6); flex-wrap: wrap; }
.form__note { font-size: 13.5px; color: var(--ink-muted); flex: 1; min-width: 220px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status:empty { display: none; }
.form__status { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-size: 15px; }
.form__status.is-success { background: var(--emerald-50); color: var(--emerald-900); border: 1px solid var(--emerald-100); }
.form__status.is-error { background: #fdf3f2; color: var(--danger); border: 1px solid #f1d2cf; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Footer ---------- */
.footer { background: var(--emerald-950); color: rgba(255, 255, 255, .7); padding: var(--space-9) 0 var(--space-6); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--space-7); padding-bottom: var(--space-8); }
.footer__logo img { height: 76px; width: auto; }
.footer__brand p { margin: var(--space-5) 0; max-width: 34ch; }
.footer__motto { letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--gold); }
.footer h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-5); }
.footer ul:not(.social) { display: grid; gap: var(--space-3); }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: var(--space-3); align-items: center; }
.footer__contact .ico { color: var(--gold); }
.social { display: flex; gap: var(--space-2); }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); transition: border-color .2s, background-color .2s; }
.social a:hover { border-color: var(--gold); background: rgba(255, 255, 255, .04); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; flex-wrap: wrap; }
.footer__bottom a + a { margin-left: var(--space-5); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d55; color: #fff; box-shadow: 0 12px 28px -8px rgba(8, 41, 31, .5);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   v2 — strategy sections
   ========================================================================== */
.section__title em, .cta h2 em { font-style: italic; font-weight: 400; color: var(--emerald-700); }
.section--emerald .section__title em, .cta h2 em { color: var(--gold); }
.section--mint { background: var(--emerald-50); }

/* Audience switch (hero) */
.audience { display: inline-flex; align-items: center; gap: 4px; padding: 4px; margin-bottom: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.audience__label { font-size: 13px; font-weight: 600; color: var(--ink-muted); padding: 0 10px 0 12px; }
.audience button { border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--emerald-900); padding: 8px 16px; border-radius: var(--radius-pill); transition: background-color .2s, color .2s; }
.audience button[aria-pressed="true"] { background: var(--emerald-800); color: #fff; }
.hero__title[hidden], .hero__lead[hidden] { display: none; }
.hero__trust .ico { color: var(--emerald-700); }
.lesson__badge { font-size: 12.5px; font-weight: 600; background: var(--gold); color: var(--emerald-950); padding: 5px 12px; border-radius: var(--radius-pill); }
.float-card--hadith { left: 0; top: 0; max-width: 270px; padding: var(--space-4) var(--space-5); text-align: right; }
.float-card--hadith p { font-family: var(--font-arabic); font-size: 21px; line-height: 1.6; color: var(--emerald-800); }
.float-card--hadith figcaption { text-align: left; font-size: 12.5px; line-height: 1.45; color: var(--ink); margin-top: 4px; }
.float-card--hadith figcaption span { color: var(--gold-deep); font-weight: 600; }

/* Empathy */
.empathy { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-7); align-items: end; margin-bottom: var(--space-8); }
.empathy .section__title { max-width: 20ch; }
.tried__label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); text-align: center; margin-bottom: var(--space-5); }
.tried { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.tried__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.tried__tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); background: var(--cream); padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: var(--space-4); text-decoration: line-through; text-decoration-color: rgba(86, 96, 91, .5); }
.tried__card h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: var(--space-2); }
.tried__card p { font-size: 15.5px; color: var(--ink-muted); }
.reframe { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-7); align-items: center; margin-top: var(--space-8); }
.reframe__title { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -.01em; max-width: 20ch; }
.reframe__title em { font-style: italic; font-weight: 400; color: var(--emerald-700); }
.reframe__box { background: var(--emerald-900); color: rgba(255, 255, 255, .85); border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow-lg); }
.reframe__box strong { color: #fff; font-weight: 600; }
.reframe__box p { font-size: 17px; margin-bottom: var(--space-5); }
.link-arrow--light { color: var(--gold); }

/* Learning path */
.path { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); margin: 0 0 var(--space-8); counter-reset: none; }
.path::before { content: ""; position: absolute; top: 22px; left: 10%; right: 10%; border-top: 2px solid var(--emerald-100); }
.path li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.path__dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--space-3); background: var(--white); border: 2px solid var(--emerald-700); color: var(--emerald-800); font-family: var(--font-display); font-weight: 600; font-size: 18px; box-shadow: 0 0 0 6px var(--cream); }
.path__dot--gold { background: var(--gold); border-color: var(--gold); color: var(--emerald-950); }
.path strong { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--emerald-950); }
.path small { font-size: 13.5px; color: var(--ink-muted); }

/* WhatsApp-style testimonials */
.chats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.chat { background: #e9e2d6; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.chat__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--emerald-900); color: #fff; line-height: 1.3; }
.chat__head .avatar { width: 36px; height: 36px; font-size: 13px; background: var(--gold-soft); color: var(--emerald-900); }
.chat__head strong { display: block; font-size: 15px; font-weight: 600; }
.chat__head small { font-size: 12px; color: rgba(255, 255, 255, .7); }
.chat__bubble { position: relative; margin: var(--space-5) var(--space-4) var(--space-6); background: #dcf8c6; color: #1b2a20; padding: var(--space-3) var(--space-4) var(--space-5); border-radius: 12px 12px 12px 4px; font-size: 15.5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); max-width: 92%; }
.chat__time { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: #5f7a68; }
.chats__note { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); font-size: 14px; color: var(--ink-muted); }

/* Pricing unit price */
.plan__price { margin-bottom: var(--space-2); padding-bottom: 0; border-bottom: 0; }
.plan__unit { font-size: 14px; font-weight: 600; color: var(--emerald-700); background: var(--emerald-50); align-self: flex-start; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: var(--space-5); }
.plan--featured .plan__unit { background: rgba(255, 255, 255, .1); color: var(--gold); }
.plan__list { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.plan--featured .plan__list { border-color: rgba(255, 255, 255, .14); }
.plans__note .ico { color: var(--emerald-700); }

/* Honest fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); max-width: 980px; margin-inline: auto; }
.fit__col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6); }
.fit__col h3 { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-size: 22px; margin-bottom: var(--space-5); }
.fit__col h3 .ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; }
.fit__col--yes h3 .ico { background: var(--emerald-800); color: #fff; }
.fit__col--no h3 .ico { background: var(--cream); color: var(--ink-muted); }
.fit__col ul { display: grid; gap: var(--space-3); }
.fit__col li { position: relative; padding-left: 22px; font-size: 16px; color: var(--ink); }
.fit__col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.fit__col--no li { color: var(--ink-muted); }
.fit__col--no li::before { background: var(--line-strong); }

/* Admission reassurance */
.assure { display: grid; gap: var(--space-3); margin: 0 0 var(--space-7); padding: var(--space-5); background: var(--emerald-50); border-radius: var(--radius-md); }
.assure li { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; color: var(--emerald-900); }
.assure .ico { color: var(--emerald-700); }
.admission__aside .section__lead { margin: var(--space-5) 0 var(--space-6); }

/* Mobile action bar */
.mobile-bar { display: none; }
.btn--wa { background: #1f9d55; color: #fff; }
@media (max-width: 980px) {
  .empathy, .reframe { grid-template-columns: 1fr; gap: var(--space-5); }
  .tried, .chats { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .path { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: var(--space-4); }
  .path::before { top: 22px; bottom: 22px; left: 22px; right: auto; border-top: 0; border-left: 2px solid var(--emerald-100); }
  .path li { display: grid; grid-template-columns: 46px 1fr; column-gap: var(--space-4); text-align: left; align-items: center; }
  .path li .path__dot { margin: 0; grid-row: span 2; }
  .fit { grid-template-columns: 1fr; }
  .float-card--hadith { left: 0; }
  .hero__visual { padding-top: 112px; }
}
@media (max-width: 640px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 241, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 12px; }
  .wa-float { display: none; }
  body { padding-bottom: 72px; }
  .audience__label { display: none; }
  .reframe__box { padding: var(--space-6) var(--space-5); }
  .fit__col { padding: var(--space-6) var(--space-5); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__menu a:not(.btn) { padding: 8px 10px; }
  .courses { grid-template-columns: repeat(3, 1fr); }
  .course--feature { grid-column: span 3; grid-row: auto; grid-template-rows: none; grid-template-columns: .8fr 1.2fr; }
  .course__art { min-height: 100%; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .08); }
  .course--advise { grid-column: span 2; }
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .teacher { flex-direction: row; }
  .teacher__photo { aspect-ratio: auto; width: 38%; flex: none; }
  .plans { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-5); }
  .plan--featured { transform: none; }
}

@media (max-width: 980px) {
  body { font-size: 16px; }
  .announce__contact li:first-child { display: none; }
  .nav__inner { height: 72px; }
  .logo img { height: 48px; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.6px; background: var(--emerald-950); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0; margin: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: var(--space-4) 24px var(--space-6);
    box-shadow: 0 24px 40px -24px rgba(8, 41, 31, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu a:not(.btn) { padding: 14px 4px; border-radius: 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav__menu a:not(.btn):hover, .nav__menu a.is-active { background: none; }
  .nav__cta-mobile { display: flex; width: 100%; margin-top: var(--space-5); min-height: 52px; }

  .hero { padding: var(--space-7) 0 var(--space-9); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__title { max-width: 16ch; }
  .hero__pattern { width: 100%; opacity: .1; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section { padding: var(--space-9) 0; }
  .section__head { grid-template-columns: 1fr; gap: var(--space-4); margin-bottom: var(--space-7); }
  .about, .trust, .faq, .admission { grid-template-columns: 1fr; gap: var(--space-7); }
  .about__intro, .faq__intro { position: static; }

  .courses { grid-template-columns: repeat(2, 1fr); }
  .course--feature { grid-column: span 2; grid-template-columns: 1fr; }
  .course--advise { grid-column: auto; }
  .course__art { min-height: 160px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }

  .steps { grid-template-columns: 1fr; gap: var(--space-6); max-width: 520px; margin-inline: auto; }
  .steps::before { top: 28px; bottom: 28px; left: 28px; right: auto; border-top: 0; border-left: 1px dashed var(--line-strong); }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: var(--space-5); }
  .step__num { grid-row: span 2; margin: 0; }
  .step p { margin: 0; }

  .reviews { grid-template-columns: 1fr 1fr; }
  .review--lead { grid-column: span 2; }

  .cta__panel { grid-template-columns: 1fr; padding: var(--space-8) var(--space-6); align-items: start; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 40px, var(--container)); }
  .announce__inner { justify-content: center; min-height: 38px; font-size: 13px; }
  .announce__contact { display: none; }
  .hide-sm { display: none; }
  .float-card--hadith { display: none; }
  .logo__text { font-size: 20px; }
  .logo__mark { width: 36px; height: 36px; }

  .hero__lead { font-size: 17px; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { flex-direction: column; gap: var(--space-2); }
  .hero__visual { padding: var(--space-5) 0 var(--space-8); }
  .logo img { height: 50px; }
  .lesson__page { padding: var(--space-7) var(--space-4) var(--space-5); }
  .float-card--progress { right: 8px; bottom: 0; width: 190px; }
  .float-card--rating { left: 8px; top: 0; }

  .stat { padding: var(--space-5); }
  .section { padding: var(--space-8) 0; }
  .section__lead { font-size: 17px; }
  .features, .trust__list { grid-template-columns: 1fr; }
  .trust__list li:last-child { grid-column: auto; }

  .courses { grid-template-columns: 1fr; }
  .course--feature, .course--advise { grid-column: auto; }
  .course--feature h3 { font-size: 28px; }

  .teachers { grid-template-columns: 1fr; }
  .teacher { flex-direction: column; }
  .teacher__photo { width: 100%; aspect-ratio: 16 / 9; }

  .plans { grid-template-columns: 1fr; gap: var(--space-6); }
  .duration { width: 100%; }
  .duration button { flex: 1; padding: 10px 8px; }

  .reviews { grid-template-columns: 1fr; }
  .review--lead { grid-column: auto; }
  .review--lead blockquote { font-size: 20px; }

  .qa summary { font-size: 18px; }
  .qa__a p { padding-right: 0; }

  .cta__panel { padding: var(--space-7) var(--space-5); }
  .cta__actions .btn { width: 100%; }

  .form { padding: var(--space-5); }
  .form__grid { grid-template-columns: 1fr; }
  .form__footer .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   v3 — modern, readable, image-led
   ========================================================================== */
body { font-size: 16.5px; line-height: 1.7; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
.section__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; max-width: 22ch; }
.section__title em, .reframe__title em, .cta h2 em, .hero__title em { font-style: normal; font-weight: inherit; color: var(--emerald-700); }
.section--emerald .section__title em, .cta h2 em { color: var(--gold); }
.section__lead { font-size: 17px; }
.section__head { margin-bottom: var(--space-7); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; margin-bottom: var(--space-3);
  background: var(--gold-soft); color: var(--emerald-900); padding: 6px 14px; border-radius: var(--radius-pill); }
.eyebrow--light { background: rgba(201, 162, 58, .16); color: var(--gold); }
.feature h3, .course h3, .step h3, .teacher h3, .tried__card h3, .trust__list h3, .fit__col h3, .plan__name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.qa summary { font-size: 17.5px; font-weight: 600; }
.review--lead blockquote, .reframe__title { font-weight: 700; }
.stat dd, .plan__price > span:nth-child(2) { font-weight: 800; letter-spacing: -0.03em; }
.btn { font-weight: 700; }

/* Hero */
.hero { padding: var(--space-8) 0 var(--space-9);
  background: var(--ivory); }
.hero__pattern { opacity: .08; }
.hero__grid { gap: var(--space-7); }
.hero__title { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; max-width: 17ch; }
.hero__title em { display: inline; }
.hero__lead { font-size: 18px; margin-top: var(--space-4); }
.hero__actions { margin-top: var(--space-5); }
.hero__trust { margin-top: var(--space-5); }
.hero__art { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.hero__blob { position: absolute; inset: 8% 2% 0 2%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: #e4efe6; border-radius: 50%; inset: 10% 4% 2% 4%; }
@keyframes blob { to { border-radius: 58% 42% 52% 48% / 44% 56% 44% 56%; transform: rotate(4deg) scale(1.02); } }
.hero__img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(6, 58, 28, .15)); }
.chip-card { position: absolute; display: flex; align-items: center; gap: var(--space-3); background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 10px 16px; box-shadow: var(--shadow-md); line-height: 1.3; animation: bob 5s ease-in-out infinite; }
.chip-card strong { display: block; font-size: 14px; font-weight: 700; color: var(--emerald-950); }
.chip-card small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); }
.chip-card--live { left: -24px; top: 18%; }
.chip-card--rating { right: -12px; top: 4%; flex-direction: column; align-items: flex-start; gap: 4px; animation-delay: -2.5s; }
.hero__art .float-card--progress { right: -20px; bottom: 10%; animation: bob 6s ease-in-out infinite; animation-delay: -1.2s; }
.float-card strong { font-family: var(--font-sans); font-weight: 700; font-size: 16px; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Stats band */
.stats--band { padding: 0; background: var(--emerald-900); }
.stats--band .stats__grid { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.stats--band .stat { padding: var(--space-6) var(--space-5); text-align: center; align-items: center; }
.stats--band .stat + .stat { border-color: rgba(255, 255, 255, .12); }
.stats--band .stat dd { color: #fff; }
.stats--band .stat dt { color: rgba(255, 255, 255, .72); }

/* Why: lesson mockup in left column */
.lesson--why { margin-top: var(--space-6); box-shadow: var(--shadow-md); }
.lesson--why .lesson__page { padding: var(--space-6) var(--space-5) var(--space-5); }
.about__intro .section__lead { margin: var(--space-4) 0 var(--space-4); }
.feature { padding: var(--space-5) 0; }
.about { gap: var(--space-8); }

/* How it works with image */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.how__img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.how .steps { grid-template-columns: 1fr; gap: var(--space-5); }
.how .steps::before { top: 28px; bottom: 28px; left: 28px; right: auto; border-top: 0; border-left: 1px dashed var(--line-strong); }
.how .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: var(--space-5); }
.how .step__num { grid-row: span 2; margin: 0; background: var(--emerald-800); color: #fff; border-color: var(--emerald-800); font-family: var(--font-sans); font-weight: 800; }
.how .step p { margin: 0; max-width: none; }
.section__head--center + .how { margin-top: 0; }

/* Teachers with images */
.teacher__photo { aspect-ratio: 400 / 300; overflow: hidden; }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.teacher:hover .teacher__photo img { transform: scale(1.04); }
.teacher { transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.teacher:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* Tighter blocks */
.empathy { margin-bottom: var(--space-7); }
.reframe { margin-top: var(--space-7); }
.path { margin-bottom: var(--space-7); }
.path strong { font-family: var(--font-sans); font-weight: 700; font-size: 16px; }
.path__dot { font-family: var(--font-sans); font-weight: 800; }
.course__glyph { height: 56px; }
.course { padding: var(--space-5); }
.plan { padding: var(--space-5); }
.cta__panel { padding: var(--space-8) var(--space-7); }
.cta h2 { font-weight: 800; letter-spacing: -0.025em; }
.footer { padding-top: var(--space-8); }
.trust, .faq, .admission { gap: var(--space-8); }
.reviews, .chats { gap: var(--space-4); }

@media (max-width: 980px) {
  .hero__art { max-width: 440px; margin-top: var(--space-4); }
  .chip-card--live { left: -8px; }
  .hero__art .float-card--progress { right: -4px; }
  .how { grid-template-columns: 1fr; gap: var(--space-6); }
  .how__img { max-width: 560px; justify-self: center; }
  .stats--band .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .lesson--why { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: var(--space-6) 0 var(--space-8); }
  .hero__art { max-width: 340px; }
  .chip-card--rating { display: none; }
  .chip-card--live { top: 8%; }
  .hero__art .float-card--progress { width: 170px; bottom: 4%; }
  .section { padding: 56px 0; }
  .teacher__photo { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__blob, .chip-card, .hero__art .float-card--progress { animation: none; }
}
.course.course--feature { padding: 0; }
.hero__title { max-width: 19ch; font-size: clamp(34px, 4vw, 52px); }



/* ---------- Why: 3-column features ---------- */
.features--grid { grid-template-columns: repeat(3, 1fr); gap: 0 var(--space-6); }

/* ---------- Inside a lesson ---------- */
.section--pattern { background: var(--emerald-50); overflow: hidden; }
.section__pattern--light { color: var(--emerald-700); opacity: .07; }
.inside { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-8); align-items: center; }
.classroom {
  --cr-bg: #0c1f15; --cr-panel: #15301f; --cr-line: rgba(255, 255, 255, .08);
  background: var(--cr-bg); color: #e9f1ec; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(3, 31, 15, .45), 0 0 0 1px rgba(3, 31, 15, .2);
  transform: perspective(1400px) rotateY(6deg) rotateZ(-1deg); transition: transform .6s var(--ease);
}
.classroom:hover { transform: perspective(1400px) rotateY(0) rotateZ(0); }
.classroom__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 14px 20px; border-bottom: 1px solid var(--cr-line); font-size: 13.5px; }
.classroom__live { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .1em; font-size: 11.5px; color: #ff6b5e; }
.classroom__live span { width: 7px; height: 7px; border-radius: 50%; background: #ff6b5e; animation: pulse-red 1.6s infinite; }
@keyframes pulse-red { 50% { opacity: .3; } }
.classroom__title { font-weight: 600; color: #fff; }
.classroom__time { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6); }
.classroom__body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; padding: 16px; }
.classroom__page { position: relative; background: #fffdf7; border-radius: 14px; padding: 26px 18px 40px; display: flex; align-items: center; justify-content: center; }
.classroom__ayah { font-family: var(--font-arabic); font-size: clamp(22px, 2.3vw, 30px); line-height: 2.1; color: var(--emerald-900); text-align: center; }
.classroom__ayah .w { padding: 0 4px; border-radius: 8px; transition: background-color .2s, color .2s, box-shadow .2s; }
.classroom__ayah .w.is-on { background: var(--gold); color: var(--emerald-950); box-shadow: 0 0 0 3px rgba(201, 162, 58, .25); }
.classroom__rule { position: absolute; left: 12px; bottom: 10px; font-size: 11.5px; font-weight: 600; color: var(--emerald-800); background: var(--emerald-50); padding: 3px 10px; border-radius: var(--radius-pill); }
.classroom__tiles { display: grid; gap: 14px; }
.tile { position: relative; background: var(--cr-panel); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 10px; min-height: 120px; }
.tile__avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: var(--emerald-700); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.tile__avatar--gold { background: var(--gold); color: var(--emerald-950); }
.tile__name { font-size: 12.5px; color: rgba(255, 255, 255, .8); text-align: center; }
.tile__mic { position: absolute; left: 10px; bottom: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: rgba(255, 255, 255, .6); }
.tile__mic .ico { width: 12px; height: 12px; }
.eq { position: absolute; right: 12px; bottom: 10px; display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; background: #4fd18b; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq--gold i { background: var(--gold); }
.eq i:nth-child(1) { height: 40%; animation-delay: -.2s; } .eq i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.eq i:nth-child(3) { height: 60%; animation-delay: -.8s; } .eq i:nth-child(4) { height: 75%; animation-delay: -.35s; }
@keyframes eq { 50% { transform: scaleY(.35); } }
.eq i { transform-origin: bottom; }
.classroom__chat { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 16px; min-height: 236px; }
.msg { max-width: 78%; font-size: 13.5px; line-height: 1.45; padding: 9px 13px; border-radius: 12px; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.msg b { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; opacity: .8; }
.msg.is-in { opacity: 1; transform: none; }
.msg--teacher { background: #1d4430; color: #fff; border-bottom-left-radius: 4px; }
.msg--student { align-self: flex-end; background: var(--gold); color: var(--emerald-950); border-bottom-right-radius: 4px; }
.classroom__controls { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--cr-line); background: #091810; }
.classroom__controls > span:not(.classroom__end) { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cr-panel); color: #fff; }
.classroom__end { background: #d9443a; color: #fff; font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: var(--radius-pill); margin-left: 6px; }
.inside__copy .section__title { margin-bottom: var(--space-5); }
.inside__list { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.inside__list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: start; }
.inside__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--white); color: var(--emerald-800); box-shadow: var(--shadow-sm); border: 1px solid var(--emerald-100); }
.inside__icon .ico { width: 22px; height: 22px; }
.inside__list h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.inside__list p { font-size: 15px; color: var(--ink-muted); }

@media (max-width: 1180px) { .features--grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .inside { grid-template-columns: 1fr; gap: var(--space-7); }
  .classroom { transform: none; max-width: 620px; width: 100%; justify-self: center; }
  .classroom:hover { transform: none; }
}
@media (max-width: 640px) {
  .features--grid { grid-template-columns: 1fr; }
  .classroom__body { grid-template-columns: 1fr; }
  .classroom__tiles { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 104px; padding: 14px 8px 26px; }
  .tile__avatar { width: 42px; height: 42px; font-size: 17px; }
  .tile__name { font-size: 11px; }
  .msg { max-width: 88%; }
  .classroom__controls > span:not(.classroom__end) { width: 34px; height: 34px; }
  .classroom__title { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .eq i, .classroom__live span { animation: none; } .classroom { transform: none; } }
.typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 10px 12px; background: #1d4430; border-radius: 12px; opacity: 0; transition: opacity .3s; }
.typing.is-in { opacity: 1; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: .4; } }
@media (max-width: 640px) { .classroom__chat { min-height: 250px; } }
.msg { display: none; opacity: 1; transform: none; transition: none; }
.msg.is-in { display: block; animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.typing { display: none; }
.typing.is-in { display: inline-flex; }


/* ==========================================================================
   v4 — stats card + realistic, fixed classroom
   ========================================================================== */
/* Stats: floating white card overlapping the hero */
.hero { padding-bottom: calc(var(--space-9) + 56px); }
.stats--card { position: relative; z-index: 2; padding: 0; margin-top: -72px; background: transparent; }
.stats--card .stats__grid {
  grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: 0 20px 50px -24px rgba(6, 58, 28, .28); overflow: hidden; position: relative;
}
.stats--card .stats__grid::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--emerald-800); display: none; }
.stats--card .stat { flex-direction: row; align-items: center; gap: var(--space-4); padding: var(--space-6) var(--space-5); text-align: left; }
.stats--card .stat + .stat { border-left: 1px solid var(--line); }
.stats--card .stat > div { display: flex; flex-direction: column; }
.stat__icon { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; color: var(--emerald-800);
  background: var(--emerald-50); box-shadow: inset 0 0 0 1px var(--emerald-100); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.stat__icon .ico { width: 26px; height: 26px; }
.stats--card .stat:hover .stat__icon { background: var(--emerald-800); color: var(--gold); transform: translateY(-3px); }
.stats--card .stat dd { font-size: clamp(28px, 2.6vw, 36px); color: var(--emerald-900); line-height: 1.1; }
.stats--card .stat dt { font-size: 14.5px; font-weight: 500; color: var(--ink-muted); }
.stats--card + .section { padding-top: calc(var(--space-10) - 8px); }
.stats--card + .section--mint { margin-top: -60px; padding-top: calc(var(--space-10) + 52px); }

/* Classroom: fixed (no tilt), sticky on desktop, more realistic */
.inside { align-items: start; }
.inside__media { position: sticky; top: 110px; }
.classroom, .classroom:hover { transform: none; }
.classroom { border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(3, 31, 15, .55), 0 0 0 1px rgba(3, 31, 15, .3); }
.classroom__bar { padding: 12px 16px; gap: var(--space-3); background: #0a1a12; }
.classroom__dots { display: inline-flex; gap: 6px; }
.classroom__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.classroom__dots i:nth-child(2) { background: #febc2e; } .classroom__dots i:nth-child(3) { background: #28c840; }
.classroom__live { background: rgba(255, 107, 94, .14); padding: 3px 8px; border-radius: 6px; }
.classroom__title { margin-right: auto; }
.classroom__meta { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.classroom__meta .ico { width: 15px; height: 15px; color: #4fd18b; }
.classroom__body { grid-template-columns: 1.45fr 1fr; padding: 14px; gap: 12px; }
.classroom__page { flex-direction: column; justify-content: space-between; padding: 0; overflow: hidden; border: 3px solid #e9dcb8; box-shadow: inset 0 0 0 4px #fffdf7, inset 0 0 0 5px #d8c592; }
.mushaf__head { width: 100%; text-align: center; padding: 10px 0 4px; }
.mushaf__head span { display: inline-block; font-family: var(--font-arabic); font-size: 15px; color: var(--emerald-900); padding: 2px 22px; border: 1.5px solid #c9a23a; border-radius: 999px; background: #fbf3dc; }
.classroom__ayah { padding: 8px 14px; line-height: 2.2; }
.ayah-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-deep); font-size: 14px; line-height: 1; vertical-align: middle; }
.mushaf__foot { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 10px; }
.classroom__rule { position: static; }
.mushaf__page { font-size: 11.5px; color: var(--ink-muted); }
.pointer { position: absolute; left: 0; top: 0; width: 22px; height: 22px; transition: transform .6s var(--ease); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); pointer-events: none; }
.tile { padding: 0; overflow: hidden; min-height: 0; aspect-ratio: 4 / 3; border: 2px solid transparent; transition: border-color .3s, box-shadow .3s; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.is-speaking { border-color: #4fd18b; box-shadow: 0 0 0 3px rgba(79, 209, 139, .25); }
.tile__label { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(3, 20, 12, .7); padding: 4px 9px; border-radius: 6px; backdrop-filter: blur(4px); }
.tile__label .ico { width: 12px; height: 12px; }
.tile .eq { right: 10px; bottom: 10px; opacity: .25; transition: opacity .3s; }
.tile.is-speaking .eq { opacity: 1; }
.classroom__chat { min-height: 210px; }
.classroom__controls { gap: 8px; padding: 10px; }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255, 255, 255, .85); min-width: 52px; }
.ctl .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #15301f; }
.ctl--on .ico { background: #1f6b43; color: #fff; }
.ctl small { font-size: 10.5px; color: rgba(255, 255, 255, .6); }
.classroom__end { align-self: center; }

@media (max-width: 1180px) { .stats--card .stats__grid { grid-template-columns: repeat(2, 1fr); } .stats--card .stat:nth-child(3) { border-left: 0; } .stats--card .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 980px) {
  .inside__media { position: static; }
  .stats--card { margin-top: -56px; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: calc(var(--space-8) + 40px); }
  .stats--card .stat { flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-5) var(--space-4); }
  .stat__icon { width: 44px; height: 44px; border-radius: 12px; }
  .stat__icon .ico { width: 22px; height: 22px; }
  .classroom__body { grid-template-columns: 1fr; }
  .classroom__tiles { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 0; padding: 0; }
  .classroom__title { font-size: 12px; }
  .classroom__dots { display: none; }
  .ctl { min-width: 40px; } .ctl small { display: none; }
  .ctl .ico { width: 34px; height: 34px; padding: 8px; }
}
.classroom .classroom__controls > span.ctl:not(.classroom__end) { width: auto; height: auto; background: none; border-radius: 0; display: flex; }


/* ==========================================================================
   v5 — Empathy section redesign
   ========================================================================== */
.empathy-head { margin-bottom: var(--space-7); }
.empathy-head .section__title { max-width: 24ch; }
.empathy-head .section__lead { max-width: 62ch; }
.tried__label { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.tried__label::before, .tried__label::after { content: ""; flex: 1; height: 1px; background: var(--emerald-100); }
.tried { gap: var(--space-5); }
.tried__card { position: relative; display: flex; flex-direction: column; padding: var(--space-6); border-color: var(--emerald-100);
  box-shadow: 0 1px 2px rgba(6, 58, 28, .04); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tried__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tried__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.tried__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); color: var(--ink-muted); }
.tried__icon .ico { width: 26px; height: 26px; }
.tried__tag { display: inline-flex; align-items: center; gap: 4px; margin: 0; text-decoration: none; letter-spacing: .04em; text-transform: none;
  font-size: 12.5px; font-weight: 600; color: #9a4a35; background: #f8e9e3; padding: 4px 10px 4px 7px; border-radius: var(--radius-pill); }
.tried__tag .ico { width: 14px; height: 14px; }
.tried__card h3 { margin-bottom: var(--space-2); }
.tried__card p { flex: 1; }
.tried__result { flex: 0 !important; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px dashed var(--line-strong);
  font-size: 14px !important; font-weight: 600; color: var(--ink) !important; display: flex; align-items: center; gap: 8px; }
.tried__result::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d38a72; flex: none; }

.bridge { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: var(--space-6) 0 var(--space-5); color: var(--emerald-800); font-weight: 700; font-size: 15px; }
.bridge .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); animation: bob 2.4s ease-in-out infinite; }

.reframe { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-7); align-items: center; margin-top: 0;
  background: var(--emerald-900); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-7); box-shadow: 0 30px 60px -30px rgba(3, 31, 15, .55); }
.reframe__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .08; }
.reframe__copy, .reframe__list { position: relative; }
.reframe__title { color: #fff; max-width: 18ch; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.reframe__title em { color: var(--gold); }
.reframe__copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .78); font-size: 16.5px; margin-bottom: var(--space-5); max-width: 46ch; }
.reframe__list { display: grid; gap: var(--space-3); }
.reframe__list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-md); transition: background-color .3s, transform .3s var(--ease); }
.reframe__list li:hover { background: rgba(255, 255, 255, .1); transform: translateX(-4px); }
.reframe__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: var(--emerald-950); }
.reframe__icon .ico { width: 24px; height: 24px; }
.reframe__list strong { display: block; color: #fff; font-size: 16.5px; font-weight: 700; }
.reframe__list small { display: block; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.5; }

@media (max-width: 980px) {
  .reframe { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-7) var(--space-6); }
}
@media (max-width: 640px) {
  .reframe { padding: var(--space-6) var(--space-4); }
  .reframe__list li { padding: var(--space-3) var(--space-4); grid-template-columns: 42px 1fr; }
  .reframe__icon { width: 42px; height: 42px; }
  .reframe__copy .btn { width: 100%; }
  .tried__label::before, .tried__label::after { display: none; }
}


/* ==========================================================================
   v6 — Why Tilawa cards
   ========================================================================== */
#why { background: var(--ivory); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.why-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-2);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.why-card::after { content: ""; position: absolute; left: var(--space-6); right: var(--space-6); bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(6, 58, 28, .3); border-color: var(--emerald-100); }
.why-card:hover::after { transform: scaleX(1); }
.why-card__num { position: absolute; top: 14px; right: 22px; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: var(--emerald-50); transition: color .35s; }
.why-card:hover .why-card__num { color: var(--gold-soft); }
.why-card__icon { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: var(--space-3);
  background: var(--emerald-50); color: var(--emerald-800); box-shadow: inset 0 0 0 1px var(--emerald-100); transition: background-color .35s, color .35s, transform .35s var(--ease); }
.why-card__icon .ico { width: 27px; height: 27px; }
.why-card:hover .why-card__icon { background: var(--emerald-800); color: var(--gold); transform: rotate(-6deg); }
.why-card h3 { position: relative; font-size: 19px; }
.why-card p { position: relative; font-size: 15.5px; color: var(--ink-muted); }

.why-card--featured { background: var(--emerald-900); border-color: var(--emerald-900); box-shadow: 0 24px 48px -24px rgba(3, 31, 15, .55); }
.why-card--featured .why-card__num { color: rgba(255, 255, 255, .07); }
.why-card--featured:hover .why-card__num { color: rgba(201, 162, 58, .22); }
.why-card--featured .why-card__icon { background: var(--gold); color: var(--emerald-950); box-shadow: none; }
.why-card--featured:hover .why-card__icon { background: var(--gold); color: var(--emerald-950); }
.why-card--featured h3 { color: #fff; }
.why-card--featured p { color: rgba(255, 255, 255, .78); }
.why-card__badge { position: relative; align-self: flex-start; margin-top: var(--space-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201, 162, 58, .45); padding: 4px 12px; border-radius: var(--radius-pill); }

.why-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6); background: var(--white); border: 1px dashed var(--emerald-100); border-radius: var(--radius-lg); }
.why-cta p { font-size: 16.5px; color: var(--ink-muted); }
.why-cta strong { color: var(--emerald-900); }

@media (max-width: 1180px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .why-card { padding: var(--space-5); }
  .why-card__num { font-size: 44px; }
  .why-cta { padding: var(--space-5); }
  .why-cta .btn { width: 100%; }
}
@media (max-width: 640px) {
  .why-card { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--space-4); row-gap: 4px; align-items: start; }
  .why-card__icon { grid-row: span 3; width: 48px; height: 48px; margin: 0; border-radius: 14px; }
  .why-card__icon .ico { width: 23px; height: 23px; }
  .why-card h3 { font-size: 17.5px; padding-right: 40px; }
  .why-card__num { font-size: 34px; top: 12px; right: 14px; }
  .why-card__badge { grid-column: 2; justify-self: start; }
}


/* ==========================================================================
   v7 — Courses redesign
   ========================================================================== */
.path { margin-bottom: var(--space-6); padding: var(--space-5) var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.path::before { top: calc(var(--space-5) + 22px); }
.path__dot { box-shadow: 0 0 0 6px var(--white); }

.cfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.cfilter__btn { border: 1px solid var(--line-strong); background: var(--white); color: var(--emerald-900); font-weight: 600; font-size: 14.5px;
  padding: 10px 18px; border-radius: var(--radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .25s var(--ease); }
.cfilter__btn span { font-size: 12px; background: var(--emerald-50); color: var(--emerald-800); padding: 1px 8px; border-radius: 99px; }
.cfilter__btn:hover { border-color: var(--emerald-800); }
.cfilter__btn[aria-pressed="true"] { background: var(--emerald-800); border-color: var(--emerald-800); color: #fff; box-shadow: 0 8px 20px -10px rgba(10, 77, 39, .7); }
.cfilter__btn[aria-pressed="true"] span { background: rgba(255, 255, 255, .18); color: #fff; }

.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.ccard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ccard[hidden] { display: none; }
.ccard:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(6, 58, 28, .35); }
.ccard--in { animation: cardIn .45s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ccard__cover { position: relative; height: 140px; display: grid; place-items: center; overflow: hidden; }
.ccard__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; transition: transform 1.2s var(--ease); }
.ccard:hover .ccard__pattern { transform: scale(1.15) rotate(3deg); }
.ccard__ar { position: relative; font-family: var(--font-arabic); font-size: 46px; line-height: 1.3; transition: transform .45s var(--ease); }
.ccard:hover .ccard__ar { transform: scale(1.08); }
.ccard__cover--t1 { background: var(--emerald-900); color: var(--gold); }
.ccard__cover--t1 .ccard__pattern { color: var(--gold); }
.ccard__cover--t2 { background: var(--gold-soft); color: var(--emerald-800); }
.ccard__cover--t2 .ccard__pattern { color: var(--gold-deep); opacity: .18; }
.ccard__cover--t3 { background: #dcebdf; color: var(--emerald-800); }
.ccard__cover--t3 .ccard__pattern { color: var(--emerald-700); }
.ccard__ribbon { position: absolute; top: 14px; left: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--emerald-950); padding: 5px 11px; border-radius: var(--radius-pill); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.ccard__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); flex: 1; }
.ccard__body h3 { font-size: 18px; line-height: 1.3; }
.ccard__body p { font-size: 14.5px; color: var(--ink-muted); line-height: 1.6; flex: 1; }
.ccard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-2) 0 var(--space-3); }
.ccard__meta li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--emerald-800); background: var(--emerald-50); padding: 4px 10px; border-radius: var(--radius-pill); }
.ccard__meta .ico { width: 14px; height: 14px; }
.ccard__cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-weight: 700; font-size: 14.5px; color: var(--emerald-800);
  padding-top: var(--space-3); border-top: 1px solid var(--line); }
.ccard__cta .ico { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--emerald-50); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.ccard:hover .ccard__cta .ico { background: var(--emerald-800); color: #fff; transform: translateX(3px); }
.ccard--featured { border: 2px solid var(--gold); box-shadow: 0 20px 44px -26px rgba(201, 162, 58, .7); }

.cadvise { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center; margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6); background: var(--white); border: 1px dashed var(--emerald-100); border-radius: var(--radius-lg); }
.cadvise__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--emerald-900); }
.cadvise__icon .ico { width: 26px; height: 26px; }
.cadvise strong { display: block; font-size: 17px; color: var(--emerald-950); }
.cadvise p { font-size: 15px; color: var(--ink-muted); }

@media (max-width: 1180px) { .cgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .cgrid { grid-template-columns: repeat(2, 1fr); }
  .path { padding: var(--space-5); }
  .path::before { top: calc(var(--space-5) + 22px); bottom: calc(var(--space-5) + 22px); left: calc(var(--space-5) + 22px); }
  .cadvise { grid-template-columns: auto 1fr; }
  .cadvise .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .cgrid { grid-template-columns: 1fr; gap: var(--space-4); }
  .ccard { flex-direction: row; }
  .ccard__cover { height: auto; width: 34%; flex: none; }
  .ccard__ar { font-size: 30px; }
  .ccard__ribbon { top: 8px; left: 8px; font-size: 9.5px; padding: 3px 7px; }
  .ccard__body { padding: var(--space-4); }
  .ccard__body h3 { font-size: 16.5px; }
  .ccard__body p { font-size: 13.5px; }
  .cfilter { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .cfilter__btn { flex: none; }
  .cadvise { grid-template-columns: 1fr; padding: var(--space-5); text-align: left; }
  .cadvise .btn { width: 100%; }
}


/* ---------- v8: languages strip ---------- */
.langs { display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: center; margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.langs__copy strong { display: block; font-size: 17px; color: var(--emerald-950); }
.langs__copy span { font-size: 14.5px; color: var(--ink-muted); }
.langs__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.langs__list li { font-size: 13.5px; font-weight: 600; color: var(--emerald-900); background: var(--emerald-50); border: 1px solid var(--emerald-100); padding: 6px 12px; border-radius: var(--radius-pill); }
.hero__trust { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--space-2) var(--space-6); }
@media (max-width: 980px) { .langs { grid-template-columns: 1fr; gap: var(--space-4); } .langs__list { justify-content: flex-start; } }
@media (max-width: 640px) { .hero__trust { grid-template-columns: 1fr; } .langs { padding: var(--space-5); } }


/* ==========================================================================
   v9 — Parents / trust section
   ========================================================================== */
#trust { background: var(--emerald-950); }
.trust { grid-template-columns: .95fr 1.05fr; gap: var(--space-8); align-items: center; }
.trust__intro .section__lead { margin-top: var(--space-4); }

.report { margin-top: var(--space-6); background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .55); transform: rotate(-1.5deg); max-width: 460px; }
.report__head { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--space-3); align-items: center; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.report__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--emerald-950); font-weight: 800; }
.report__head strong { display: block; font-size: 15.5px; color: var(--emerald-950); }
.report__head small { font-size: 12.5px; color: var(--ink-muted); }
.report__badge { font-size: 11.5px; font-weight: 700; color: var(--emerald-800); background: var(--emerald-50); border: 1px solid var(--emerald-100); padding: 4px 10px; border-radius: var(--radius-pill); }
.report__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); padding: var(--space-4) 0; }
.report__stats div { background: var(--ivory); border-radius: 12px; padding: 10px 12px; }
.report__stats small { display: block; font-size: 11.5px; color: var(--ink-muted); }
.report__stats strong { font-size: 18px; font-weight: 800; color: var(--emerald-900); }
.report__stars { color: var(--gold) !important; letter-spacing: 1px; font-size: 15px !important; }
.report__stars span { color: var(--line-strong); }
.report__bar-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-muted); margin-bottom: 6px; }
.report__bar .bar { height: 8px; margin: 0; }
.report__note { margin-top: var(--space-4); font-size: 13.5px; line-height: 1.55; color: var(--ink); background: #fbf6e6; border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 0 10px 10px 0; }
.report__note b { color: var(--emerald-900); }
.trust__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.tcards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.tcard { position: relative; padding: var(--space-5); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); transition: background-color .3s, transform .3s var(--ease), border-color .3s; }
.tcard:hover { background: rgba(255, 255, 255, .09); border-color: rgba(201, 162, 58, .45); transform: translateY(-4px); }
.tcard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--space-4);
  background: var(--gold); color: var(--emerald-950); box-shadow: 0 8px 18px -8px rgba(201, 162, 58, .7); }
.tcard__icon .ico { width: 24px; height: 24px; }
.tcard h3 { color: #fff; font-size: 17.5px; margin-bottom: 6px; }
.tcard p { color: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.6; }
.tcard--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: start;
  background: rgba(201, 162, 58, .12); border-color: rgba(201, 162, 58, .35); }
.tcard--wide .tcard__icon { margin: 0; }

@media (max-width: 980px) {
  .trust { grid-template-columns: 1fr; gap: var(--space-7); }
  .report { transform: none; }
}
@media (max-width: 640px) {
  .tcards { grid-template-columns: 1fr; }
  .tcard { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--space-4); padding: var(--space-4); }
  .tcard__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .tcard--wide > div { grid-column: 2; }
  .report { padding: var(--space-4); }
  .report__stats strong { font-size: 16px; }
  .trust__actions .btn { flex: 1; }
}


/* ==========================================================================
   v10 — flat colours only, calmer and more human
   ========================================================================== */
.chip-card, .hero__art .float-card--progress, .bridge .ico { animation: none !important; }
.hero__img { filter: none; }
/* Headlines: one colour, no two-tone split */
.section__title em, .reframe__title em, .cta h2 em { color: inherit; }
.section--emerald .section__title em { color: inherit; }
/* Section labels: plain text instead of pills */
.eyebrow { background: none; padding: 0; border-radius: 0; color: var(--gold-deep); font-size: 13px; letter-spacing: .1em; }
.eyebrow--light { background: none; color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; margin-right: 2px; }
.section__head--center .eyebrow::before { display: none; }
.why-card::after { display: none; }


/* ==========================================================================
   v11 — Pricing (per-class framing) + honest fit
   ========================================================================== */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); align-items: stretch; padding-top: 14px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5) var(--space-5); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -26px rgba(6, 58, 28, .35); }
.pcard__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700;
  background: var(--gold); color: var(--emerald-950); padding: 5px 14px; border-radius: var(--radius-pill); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.pcard__name { font-size: 20px; }
.pcard__save { font-size: 12px; font-weight: 700; color: var(--emerald-800); background: var(--emerald-50); border: 1px solid var(--emerald-100); padding: 3px 9px; border-radius: var(--radius-pill); }
.pcard__days { font-size: 14.5px; color: var(--ink-muted); margin-top: 2px; }
.pcard__price { display: flex; align-items: flex-start; margin-top: var(--space-5); color: var(--emerald-950); line-height: 1; }
.pcard__cur { font-size: 22px; font-weight: 700; margin-top: 6px; margin-right: 2px; }
.pcard__amt { font-size: 60px; font-weight: 800; letter-spacing: -0.04em; }
.pcard__cents { font-size: 24px; font-weight: 800; margin-top: 6px; }
.pcard__per { align-self: flex-end; margin: 0 0 8px 8px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.pcard__total { font-size: 14px; color: var(--ink-muted); margin: var(--space-2) 0 var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.pcard__list { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); flex: 1; font-size: 15px; }
.pcard__list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.pcard__list .ico { color: var(--emerald-700); margin-top: 3px; flex: none; }
.pcard--featured { background: var(--emerald-900); border-color: var(--emerald-900); color: #fff; box-shadow: 0 30px 60px -30px rgba(3, 31, 15, .6); }
.pcard--featured .pcard__name, .pcard--featured .pcard__price { color: #fff; }
.pcard--featured .pcard__days, .pcard--featured .pcard__total, .pcard--featured .pcard__per { color: rgba(255, 255, 255, .7); }
.pcard--featured .pcard__total { border-color: rgba(255, 255, 255, .14); }
.pcard--featured .pcard__save { background: rgba(201, 162, 58, .16); border-color: rgba(201, 162, 58, .4); color: var(--gold); }
.pcard--featured .pcard__list .ico { color: var(--gold); }

.pextras { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.pextra { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pextra--family { grid-template-columns: 48px 1fr; background: var(--emerald-50); border-color: var(--emerald-100); }
.pextra__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--emerald-900); }
.pextra__icon .ico { width: 24px; height: 24px; }
.pextra strong { display: block; font-size: 16.5px; color: var(--emerald-950); }
.pextra p { font-size: 14.5px; color: var(--ink-muted); }
.pextra .btn { min-height: 44px; }

/* Honest fit */
.fitbox { display: grid; grid-template-columns: 1.15fr 1fr; max-width: 1060px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(6, 58, 28, .3); }
.fitbox h3 { font-size: 20px; margin-bottom: var(--space-5); }
.fitbox ul { display: grid; gap: var(--space-4); }
.fitbox li { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); align-items: start; }
.fitbox li strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; }
.fitbox li small { display: block; font-size: 14px; line-height: 1.5; margin-top: 2px; }
.fitbox__mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.fitbox__mark .ico { width: 18px; height: 18px; }
.fitbox__yes { background: var(--emerald-900); padding: var(--space-7) var(--space-6); }
.fitbox__yes h3, .fitbox__yes strong { color: #fff; }
.fitbox__yes small { color: rgba(255, 255, 255, .72); }
.fitbox__yes .fitbox__mark { background: var(--gold); color: var(--emerald-950); }
.fitbox__no { background: var(--white); padding: var(--space-7) var(--space-6); display: flex; flex-direction: column; }
.fitbox__no h3 { color: var(--ink-muted); }
.fitbox__no strong { color: var(--ink); }
.fitbox__no small { color: var(--ink-muted); }
.fitbox__no .fitbox__mark { background: var(--cream); color: var(--ink-muted); }
.fitbox__cta { margin-top: auto; padding-top: var(--space-6); }
.fitbox__cta p { font-weight: 700; color: var(--emerald-900); margin-bottom: var(--space-3); }

@media (max-width: 1180px) { .pgrid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-5); } }
@media (max-width: 980px) {
  .pextras { grid-template-columns: 1fr; }
  .fitbox { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; }
  .pextra { grid-template-columns: 44px 1fr; }
  .pextra .btn { grid-column: 1 / -1; width: 100%; }
  .fitbox__yes, .fitbox__no { padding: var(--space-6) var(--space-5); }
}
.pcard__per { margin: 0 0 8px 3px; font-size: 15px; }


/* ==========================================================================
   v12 — FAQ, final CTA and admission form
   ========================================================================== */
/* FAQ */
.faq2 { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-8); align-items: start; }
.faq2__intro { position: sticky; top: 110px; }
.faq2__intro .section__lead { margin: var(--space-4) 0 var(--space-6); }
.askcard { background: var(--emerald-50); border: 1px solid var(--emerald-100); border-radius: var(--radius-lg); padding: var(--space-6); }
.askcard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #1f9d55; color: #fff; margin-bottom: var(--space-4); }
.askcard__icon .ico { width: 24px; height: 24px; }
.askcard strong { display: block; font-size: 18px; color: var(--emerald-950); }
.askcard p { font-size: 15px; color: var(--ink-muted); margin: 4px 0 var(--space-5); }
.askcard__mail { display: block; text-align: center; margin-top: var(--space-3); font-size: 14.5px; font-weight: 600; color: var(--emerald-800); }
.askcard__mail:hover { text-decoration: underline; }
.faq2__list { display: grid; gap: var(--space-3); }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .25s, box-shadow .25s; }
.faq-item:hover { border-color: var(--emerald-100); }
.faq-item[open] { border-color: var(--emerald-100); box-shadow: 0 16px 34px -24px rgba(6, 58, 28, .35); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q { font-size: 16.5px; font-weight: 700; color: var(--emerald-950); line-height: 1.4; }
.faq-item__toggle { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-50); color: var(--emerald-800); transition: background-color .25s, color .25s, transform .3s var(--ease); }
.faq-item__toggle .ico { width: 18px; height: 18px; }
.faq-item[open] .faq-item__toggle { background: var(--emerald-800); color: #fff; transform: rotate(45deg); }
.faq-item__a { padding: 0 var(--space-5) var(--space-5); }
.faq-item__a p { font-size: 15.5px; color: var(--ink-muted); padding-top: var(--space-4); border-top: 1px solid var(--line); }

/* Final CTA */
.cta2 { padding-bottom: var(--space-9); }
.cta2__panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr .8fr; gap: var(--space-8); align-items: center;
  background: var(--emerald-900); color: #fff; border-radius: var(--radius-lg); padding: var(--space-8) var(--space-7); }
.cta2__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .07; }
.cta2__copy, .cta2__actions { position: relative; }
.cta2__ayah { font-family: var(--font-arabic); font-size: 34px; line-height: 1.6; color: var(--gold); }
.cta2__trans { font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: var(--space-5); }
.cta2__trans span { color: var(--gold); font-weight: 600; margin-left: 6px; }
.cta2 h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
.cta2__lead { color: rgba(255, 255, 255, .78); font-size: 17px; margin-top: var(--space-3); max-width: 46ch; }
.cta2__points { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); }
.cta2__points li { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: #fff; }
.cta2__points .ico { color: var(--gold); }
.cta2__actions { display: grid; gap: var(--space-3); padding: var(--space-5); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); }
.cta2__small { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .65); }

/* Admission */
.admission2 { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-8); align-items: start; }
.admission2__aside { position: sticky; top: 110px; }
.admission2__aside .section__lead { margin: var(--space-4) 0 var(--space-5); }
.next { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); position: relative; }
.next::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: 20px; border-left: 2px dashed var(--emerald-100); }
.next li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: var(--space-4); align-items: start; }
.next__num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-800); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 5px var(--ivory); }
.next strong { display: block; font-size: 16px; color: var(--emerald-950); }
.next small { font-size: 14px; color: var(--ink-muted); }

.form2 { padding: 0; overflow: hidden; }
.form2__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); background: var(--emerald-900); color: #fff; }
.form2__head strong { display: block; font-size: 18px; }
.form2__head small { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.form2__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--emerald-950); background: var(--gold); padding: 6px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.form2__badge .ico { width: 15px; height: 15px; }
.form2__body { padding: var(--space-6); }
.form2__group { border: 0; padding: 0; margin: 0 0 var(--space-6); }
.form2__group legend { display: flex; align-items: center; gap: var(--space-3); font-size: 15px; font-weight: 700; color: var(--emerald-950); margin-bottom: var(--space-4); padding: 0; }
.form2__group legend span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--gold-soft); color: var(--emerald-900); }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; text-align: center; font-size: 14.5px; font-weight: 600;
  background: var(--ivory); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); transition: all .2s; }
.choice label:hover span { border-color: var(--emerald-700); }
.choice input:checked + span { background: var(--emerald-50); border-color: var(--emerald-800); color: var(--emerald-900); box-shadow: inset 0 0 0 1px var(--emerald-800); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.form2 .btn--block { min-height: 56px; font-size: 16.5px; }
.form2 .form__note { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; margin-top: var(--space-3); }
.form2 .form__note .ico { width: 15px; height: 15px; color: var(--emerald-700); }

@media (max-width: 980px) {
  .faq2, .admission2 { grid-template-columns: 1fr; gap: var(--space-6); }
  .faq2__intro, .admission2__aside { position: static; }
  .cta2__panel { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-7) var(--space-6); }
}
@media (max-width: 640px) {
  .faq-item summary { padding: var(--space-4); }
  .faq-item__a { padding: 0 var(--space-4) var(--space-4); }
  .faq-item__q { font-size: 15.5px; }
  .askcard { padding: var(--space-5); }
  .cta2__panel { padding: var(--space-6) var(--space-4); }
  .cta2__ayah { font-size: 28px; }
  .cta2__actions { padding: var(--space-4); }
  .form2__head { padding: var(--space-4) var(--space-5); }
  .form2__body { padding: var(--space-5); }
  .choice { grid-template-columns: 1fr; }
}
.cta2__ayah { text-align: left; }


/* ---------- v13: real photos ---------- */
.hero__blob { display: none; }
.hero__art { max-width: 600px; }
.hero__img--photo { width: 100%; height: auto; }
.hero__img[hidden] { display: none; }
.hero__art .chip-card--live { left: -10px; top: 6%; }
.hero__art .float-card--progress { right: -14px; bottom: 6%; }
.teacher__photo--portrait { aspect-ratio: auto; display: grid; place-items: center; padding: var(--space-6) 0 var(--space-5); background: var(--emerald-50); }
.teacher:nth-child(2) .teacher__photo--portrait { background: var(--gold-soft); }
.teacher:nth-child(3) .teacher__photo--portrait { background: #e6eef0; }
.teacher:nth-child(4) .teacher__photo--portrait { background: #f3e1d8; }
.teacher__photo--portrait img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 5px solid var(--white); box-shadow: 0 10px 24px -12px rgba(6, 58, 28, .45); }
.teacher:hover .teacher__photo--portrait img { transform: scale(1.04); }
.tile img { object-position: center 30%; }
@media (max-width: 640px) {
  .hero__art { max-width: 380px; }
  .teacher__photo--portrait { aspect-ratio: auto; padding: var(--space-5) 0 var(--space-4); }
  .teacher__photo--portrait img { width: 110px; height: 110px; }
}


/* ---------- v14: every-age gallery + photo how-it-works ---------- */
.ages { padding: var(--space-9) 0 var(--space-8); background: var(--ivory); }
.stats--card + .ages { padding-top: calc(var(--space-9) + 8px); }
.ages__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-7); align-items: end; margin-bottom: var(--space-6); }
.ages__head .section__title { max-width: 20ch; }
.ages__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 230px 230px; gap: var(--space-4); }
.age { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--cream); }
.age img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.age:hover img { transform: scale(1.05); }
.age--tall { grid-row: span 2; }
.age--wide { grid-column: span 2; }
.age--wide img { object-position: center 30%; }
.age figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; background: var(--white); border-radius: 12px;
  padding: 8px 14px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); line-height: 1.3; }
.age figcaption strong { font-size: 15px; color: var(--emerald-950); }
.age figcaption span { font-size: 12.5px; color: var(--ink-muted); }
.how__img--photo { background: var(--emerald-50); padding: var(--space-4); object-fit: contain; box-shadow: none; }
.stats--card + .section--mint { margin-top: 0; padding-top: var(--space-10); }
@media (max-width: 980px) {
  .ages__head { grid-template-columns: 1fr; gap: var(--space-3); }
  .ages__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 200px 200px; }
  .age--tall { grid-row: span 1; grid-column: span 2; }
  .age--tall img { object-position: center 35%; }
}
@media (max-width: 640px) {
  .ages { padding: 72px 0 56px; }
  .ages__grid { grid-template-rows: 220px 160px 180px; gap: var(--space-3); }
  .age figcaption { left: 10px; bottom: 10px; padding: 6px 10px; }
  .age figcaption span { display: none; }
}

.age--cutout { background: var(--emerald-50); }
.age--cutout img { object-fit: contain; padding: 8px 0; }
.age--cutout:hover img { transform: none; }

/* ---------- v15: CTA person ---------- */
.cta2__panel { grid-template-columns: 1.25fr 220px .85fr; gap: var(--space-6); padding-bottom: 0; align-items: end; }
.cta2__copy { padding-bottom: var(--space-8); align-self: center; }
.cta2__actions { align-self: center; margin-bottom: var(--space-8); }
.cta2__person { position: relative; width: 100%; height: auto; max-height: 340px; object-fit: contain; object-position: bottom; display: block; }
@media (max-width: 1180px) { .cta2__panel { grid-template-columns: 1.3fr 170px .9fr; } }
@media (max-width: 980px) {
  .cta2__panel { grid-template-columns: 1fr; padding-bottom: var(--space-7); }
  .cta2__copy { padding-bottom: 0; }
  .cta2__actions { margin-bottom: 0; }
  .cta2__person { display: none; }
}
.cta2__trans span { white-space: nowrap; }


/* ==========================================================================
   v16 — privacy for female teachers, gallery, new footer
   ========================================================================== */
.teacher__photo--private { flex-direction: column; gap: 10px; text-align: center; }
.teacher__mono { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-800); color: var(--gold);
  font-size: 40px; font-weight: 800; letter-spacing: .02em; border: 5px solid var(--white); box-shadow: 0 10px 24px -12px rgba(6, 58, 28, .45); }
.teacher__photo--private small { font-size: 11.5px; color: var(--ink-muted); max-width: 22ch; line-height: 1.4; }
.chat__head .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* gallery: 4 columns, girl tall on the right */
.ages__grid { grid-template-columns: 1.15fr 1fr 1fr .85fr; grid-template-rows: 230px 230px; }
.age--right { grid-column: 4; grid-row: 1 / span 2; }
.age--right img { object-position: center 20%; }
@media (max-width: 980px) {
  .ages__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 220px 220px 220px; }
  .age--tall { grid-column: span 2; grid-row: span 1; }
  .age--right { grid-column: auto; grid-row: span 2; }
}
@media (max-width: 640px) {
  .ages__grid { grid-template-rows: 220px 170px 170px 170px; }
}

/* footer */
.footer, .footer2 { background: var(--emerald-950); color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer2 { padding: var(--space-8) 0 var(--space-5); }
.footer2__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); padding-bottom: var(--space-7); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.fcard { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .25s, border-color .25s; }
a.fcard:hover { background: rgba(255, 255, 255, .09); border-color: rgba(201, 162, 58, .5); }
.fcard__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--emerald-950); }
.fcard__icon .ico { width: 22px; height: 22px; }
.fcard small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.fcard strong { display: block; color: #fff; font-size: 15.5px; font-weight: 700; word-break: break-word; }
.footer2__main { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.1fr; gap: var(--space-7); padding: var(--space-8) 0 var(--space-7); }
.footer2__brand .footer__logo img { height: 78px; width: auto; }
.footer2__brand p { margin: var(--space-4) 0 var(--space-5); max-width: 36ch; line-height: 1.7; }
.footer2__col h3 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-4); }
.footer2__col ul { display: grid; gap: var(--space-3); }
.footer2__col a { transition: color .2s, padding-left .2s; }
.footer2__col a:hover { color: #fff; padding-left: 4px; }
.footer2__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; }
.footer2__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer2__quote { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: var(--space-4); border-radius: var(--radius-md); background: rgba(3, 31, 15, .88); }
.footer2__quote p { font-family: var(--font-arabic); font-size: 20px; line-height: 1.6; color: var(--gold); text-align: center; }
.footer2__quote small { display: block; text-align: center; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .78); margin: 4px 0 var(--space-3); }
.footer2__quote .btn { min-height: 42px; font-size: 14px; }
.footer2__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.totop { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .18); transition: border-color .2s; }
.totop .ico { transform: rotate(-90deg); width: 16px; height: 16px; }
.totop:hover { border-color: var(--gold); }
@media (max-width: 1180px) {
  .footer2__main { grid-template-columns: 1fr 1fr 1fr; }
  .footer2__brand { grid-column: 1 / -1; }
  .footer2__photo { grid-column: 3; grid-row: 2; }
}
@media (max-width: 980px) {
  .footer2__contact { grid-template-columns: 1fr; }
  .footer2__main { grid-template-columns: 1fr 1fr; }
  .footer2__photo { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
}
@media (max-width: 640px) {
  .footer2 { padding-top: var(--space-7); }
  .footer2__bottom { flex-direction: column; align-items: flex-start; }
}
.teacher__photo--portrait { min-height: 232px; align-content: center; }
@media (max-width: 640px) { .teacher__photo--portrait { min-height: 0; } }


/* ---------- v17: CTA without person, women tile ---------- */
.cta2__panel { grid-template-columns: 1.4fr .8fr; padding-bottom: var(--space-8); align-items: center; }
.cta2__copy { padding-bottom: 0; }
.cta2__actions { margin-bottom: 0; }
.age--right { grid-column: 4; grid-row: 1; }
.age--women { grid-column: 4; grid-row: 2; background: var(--emerald-800); display: grid; place-items: center; padding-bottom: 56px; }
.age--women img { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); }
.age--women:hover img { transform: none; }
@media (max-width: 1180px) { .cta2__panel { grid-template-columns: 1.3fr .9fr; } }
@media (max-width: 980px) {
  .cta2__panel { grid-template-columns: 1fr; padding-bottom: var(--space-7); }
  .age--right, .age--women { grid-column: auto; grid-row: auto; }
  .ages__grid { grid-template-rows: 260px repeat(3, 220px); }
}
@media (max-width: 640px) {
  .ages__grid { grid-template-rows: 220px repeat(3, 180px); }
  .age--women { padding-bottom: 44px; }
  .age--women img { width: 92px; height: 92px; }
}


/* ==========================================================================
   v18 — programs, certificate, referral, sponsor
   ========================================================================== */
.prog { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: stretch; }
.prog__cards { display: grid; gap: var(--space-4); }
.pgm { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: var(--space-4); align-items: start; padding: var(--space-5) var(--space-6);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pgm > *:not(.pgm__icon) { grid-column: 2; }
.pgm__icon { grid-row: span 4; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--emerald-50); color: var(--emerald-800); }
.pgm__icon .ico { width: 26px; height: 26px; }
.pgm h3 { font-size: 19px; margin-bottom: 4px; }
.pgm p { font-size: 15px; color: var(--ink-muted); }
.pgm__list { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-3) 0 var(--space-4); }
.pgm__list li { font-size: 12.5px; font-weight: 600; color: var(--emerald-800); background: var(--emerald-50); padding: 4px 10px; border-radius: var(--radius-pill); }
.pgm .btn { justify-self: start; min-height: 42px; font-size: 14.5px; }
.pgm--ramadan { background: var(--emerald-900); border-color: var(--emerald-900); }
.pgm--ramadan h3 { color: #fff; }
.pgm--ramadan p { color: rgba(255, 255, 255, .78); }
.pgm--ramadan .pgm__icon { background: var(--gold); color: var(--emerald-950); }
.pgm--ramadan .pgm__list li { background: rgba(255, 255, 255, .1); color: #fff; }

.cert { position: relative; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.cert__sample { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--emerald-800); color: #fff; padding: 4px 10px; border-radius: var(--radius-pill); }
.cert__inner { position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: var(--space-6) var(--space-5); background: #fffdf6; border: 2px solid var(--gold); border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 6px #fffdf6, inset 0 0 0 7px rgba(201, 162, 58, .6), 0 24px 50px -30px rgba(6, 58, 28, .4); }
.cert__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .07; }
.cert__inner > *:not(.cert__pattern) { position: relative; }
.cert__logo { height: 54px; width: auto; margin-bottom: var(--space-3); }
.cert__title { font-size: 22px; font-weight: 800; color: var(--emerald-900); letter-spacing: .02em; }
.cert__line { font-size: 13.5px; color: var(--ink-muted); margin-top: var(--space-3); }
.cert__name { font-size: 26px; font-weight: 700; color: var(--gold-deep); border-bottom: 1px solid var(--line-strong); padding: 2px 24px 6px; margin-top: 4px; }
.cert__course { font-size: 18px; font-weight: 700; color: var(--emerald-800); margin-top: 4px; }
.cert__foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-4); align-items: end; width: 100%; max-width: 380px; margin-top: var(--space-5); }
.cert__sig { display: block; height: 1px; background: var(--ink-muted); margin-bottom: 4px; }
.cert__foot small { font-size: 11.5px; color: var(--ink-muted); }
.cert__seal { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--emerald-950); }
.cert__seal .ico { width: 24px; height: 24px; }
.cert figcaption { font-size: 14px; color: var(--ink-muted); text-align: center; }

.give { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); max-width: 1060px; margin: 0 auto; }
.give__card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-7) var(--space-6);
  background: var(--white); border: 1px solid var(--emerald-100); border-radius: var(--radius-lg); }
.give__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--emerald-900); }
.give__icon .ico { width: 27px; height: 27px; }
.give__card h3 { font-size: 22px; }
.give__card p { font-size: 15.5px; color: var(--ink-muted); }
.give__steps { display: grid; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
.give__steps li { display: flex; align-items: center; gap: var(--space-3); font-size: 15px; font-weight: 600; color: var(--ink); }
.give__steps span { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--emerald-800); color: #fff; }
.give__card .btn { margin-top: auto; }
.give__card--dark { background: var(--emerald-900); border-color: var(--emerald-900); }
.give__card--dark h3 { color: #fff; }
.give__card--dark p { color: rgba(255, 255, 255, .78); }
.give__card--dark .give__icon { background: var(--gold); color: var(--emerald-950); }
.sponsor { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); width: 100%; margin: var(--space-2) 0 var(--space-3); }
.sponsor label { cursor: pointer; position: relative; }
.sponsor input { position: absolute; opacity: 0; pointer-events: none; }
.sponsor span { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: all .2s; }
.sponsor span small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.sponsor input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--emerald-950); }
.sponsor input:checked + span small { color: var(--emerald-900); }
.sponsor input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.give__note { font-size: 12.5px; color: rgba(255, 255, 255, .65); }
@media (max-width: 980px) { .prog, .give { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pgm { grid-template-columns: 1fr; padding: var(--space-5); }
  .pgm > *:not(.pgm__icon) { grid-column: 1; }
  .pgm__icon { grid-row: auto; margin-bottom: var(--space-3); }
  .give__card { padding: var(--space-6) var(--space-5); }
  .give__card .btn { width: 100%; }
  .cert__name { font-size: 22px; }
}

/* ==========================================================================
   v19 — language switcher, per-script fonts, right-to-left layout
   ========================================================================== */
t-r { display: inline; }
.lang { position: relative; flex: none; }
.lang__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--white); color: var(--emerald-900); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: border-color .2s; }
.lang__btn:hover, .lang.is-open .lang__btn { border-color: var(--emerald-800); }
.lang__btn .ico { width: 18px; height: 18px; color: var(--emerald-700); }
.lang__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 190px; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  display: none; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang.is-open .lang__menu { display: grid; }
.lang__menu button { width: 100%; text-align: start; padding: 9px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 15px; color: var(--ink); white-space: nowrap; }
.lang__menu button:hover { background: var(--emerald-50); }
.lang__menu button[aria-current="true"] { background: var(--emerald-800); color: #fff; }
@media (max-width: 980px) {
  .lang { margin-inline-start: auto; }
  .lang__btn { height: 42px; padding: 0 12px; }
  .nav__toggle { margin-left: 0; margin-inline-start: 8px; }
}
@media (max-width: 640px) {
  .lang__btn [data-lang-current] { display: none; }
  .lang__btn { width: 42px; padding: 0; justify-content: center; }
}

/* fonts for non-Latin scripts (loaded on demand by js/i18n.js) */
html[lang="ar"] { --font-sans: "Plus Jakarta Sans", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; --font-display: var(--font-sans); }
html[lang="ur"] { --font-sans: "Plus Jakarta Sans", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif; --font-display: var(--font-sans); }
html[lang="hi"] { --font-sans: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, sans-serif; --font-display: var(--font-sans); }
html[lang="bn"] { --font-sans: "Plus Jakarta Sans", "Noto Sans Bengali", system-ui, sans-serif; --font-display: var(--font-sans); }
html[lang="zh"] { --font-sans: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; --font-display: var(--font-sans); }
html[lang="ru"] { --font-sans: "Plus Jakarta Sans", "Noto Sans", system-ui, sans-serif; --font-display: var(--font-sans); }
html[lang="ar"] *, html[lang="ur"] *, html[lang="hi"] *, html[lang="bn"] *, html[lang="zh"] * { letter-spacing: 0 !important; }
html[lang="ur"] body { line-height: 1.9; }
html[lang="ur"] .section__title, html[lang="ur"] .hero__title, html[lang="ar"] .hero__title, html[lang="ar"] .section__title { line-height: 1.45; }
html[lang="hi"] .hero__title, html[lang="bn"] .hero__title, html[lang="hi"] .section__title, html[lang="bn"] .section__title { line-height: 1.35; }
html[lang="ur"] .btn, html[lang="ar"] .btn { line-height: 1.4; }
html[lang="ur"] .hero__title, html[lang="ar"] .hero__title { font-size: clamp(32px, 3.8vw, 48px); }

/* right-to-left (Arabic, Urdu) */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .ico:has(use[href="#i-arrow"]) { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .ico, [dir="rtl"] .course__link:hover .ico { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .ccard:hover .ccard__cta .ico { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .totop .ico { transform: rotate(-90deg); }
[dir="rtl"] .announce__link { margin-left: 0; margin-right: var(--space-1); }
[dir="rtl"] .nav__menu { margin-left: 0; margin-right: auto; }
[dir="rtl"] .eyebrow::before { margin-right: 0; margin-left: 2px; }
[dir="rtl"] .stats--card .stat + .stat { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .field select { background-position: left 16px center; padding-right: 16px; padding-left: 40px; }
[dir="rtl"] .hero__art .chip-card--live { left: auto; right: -10px; }
[dir="rtl"] .hero__art .float-card--progress { right: auto; left: -14px; }
[dir="rtl"] .age figcaption { left: auto; right: 14px; }
[dir="rtl"] .tile__label { left: auto; right: 8px; }
[dir="rtl"] .tile .eq { right: auto; left: 10px; }
[dir="rtl"] .classroom__title { margin-right: 0; margin-left: auto; }
[dir="rtl"] .classroom__end { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .msg--student { border-bottom-right-radius: 12px; border-bottom-left-radius: 4px; }
[dir="rtl"] .msg--teacher { border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
[dir="rtl"] .chat__time { right: auto; left: 10px; }
[dir="rtl"] .chat__bubble { border-radius: 12px 12px 4px 12px; }
[dir="rtl"] .why-card__num { right: auto; left: 22px; }
[dir="rtl"] .ccard__ribbon { left: auto; right: 14px; }
[dir="rtl"] .cert__sample { right: auto; left: 14px; }
[dir="rtl"] .report__note { border-left: 0; border-right: 3px solid var(--gold); border-radius: 10px 0 0 10px; }
[dir="rtl"] .next::before { left: auto; right: 17px; }
[dir="rtl"] .how .steps::before { left: auto; right: 28px; }
[dir="rtl"] .pcard__cur { margin-right: 0; margin-left: 2px; }
[dir="rtl"] .pcard__per { margin: 0 3px 8px 0; }
[dir="rtl"] .pcard__price { direction: ltr; justify-content: flex-end; }
[dir="rtl"] .cta2__trans span { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .cta2__ayah { text-align: right; }
[dir="rtl"] .reframe__list li:hover { transform: translateX(4px); }
[dir="rtl"] .footer2__col a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .wa-float { right: auto; left: 24px; }
[dir="rtl"] .float-card, [dir="rtl"] .chip-card { text-align: right; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }
[dir="rtl"] .langs__list { justify-content: flex-start; }
@media (max-width: 980px) {
  [dir="rtl"] .stats--card .stat:nth-child(3) { border-right: 0; }
  [dir="rtl"] .path::before { left: auto; right: calc(var(--space-5) + 22px); }
}
@media (max-width: 1180px) {
  [dir="rtl"] .stats--card .stat:nth-child(3) { border-right: 0; }
}
@media (max-width: 640px) {
  [dir="rtl"] .age figcaption { right: 10px; }
  [dir="rtl"] .why-card__num { left: 14px; }
  [dir="rtl"] .wa-float { left: 16px; }
}
[dir="rtl"] .hp, [dir="rtl"] .skip-link:not(:focus) { left: auto; right: -9999px; }
[dir="rtl"] .skip-link:focus { left: auto; right: 8px; }

/* numbers, phones and prices always read left-to-right */
[dir="rtl"] .stats--card dd, [dir="rtl"] [data-config="phoneDisplay"], [dir="rtl"] .pcard__total, [dir="rtl"] .why-card__num,
[dir="rtl"] .classroom__meta, [dir="rtl"] [data-config="email"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .stats--card dd { text-align: right; }

/* long translations: buttons may wrap instead of overflowing */
.btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.nav__cta, .lang__btn, .classroom__end, .pcard__flag { white-space: nowrap; }
.pgrid > *, .cgrid > *, .why-grid > *, .tcards > *, .give > *, .prog > * { min-width: 0; }
.cta2__actions .btn, .hero__actions .btn { max-width: 100%; }
html[lang="ru"] .nav__cta, html[lang="fr"] .nav__cta, html[lang="es"] .nav__cta, html[lang="pt"] .nav__cta { padding: 0 18px; font-size: 14px; }
@media (max-width: 1180px) { html[lang="ru"] .nav__menu a:not(.btn), html[lang="fr"] .nav__menu a:not(.btn) { padding: 8px 7px; font-size: 14px; } }
.nav__menu a:not(.btn) { white-space: nowrap; }

/* ==========================================================================
   v20 — multi-page: page header, mission, teacher selection, more-link
   ========================================================================== */
.phero { position: relative; overflow: hidden; padding: 72px 0 80px; background: var(--emerald-900); color: #fff; text-align: center; }
.phero__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .09; }
.phero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.crumbs { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: var(--space-5);
  padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .05); }
.crumbs a { color: #fff; font-weight: 600; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); font-weight: 600; }
.phero .eyebrow { color: var(--gold); }
.phero .eyebrow::before { display: none; }
.phero__title { color: #fff; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; text-wrap: balance; }
.phero__lead { margin-top: var(--space-4); font-size: 18px; color: rgba(255, 255, 255, .8); max-width: 60ch; }
.phero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.phero .btn--primary { background: var(--gold); color: var(--emerald-950); box-shadow: none; }
.phero .btn--primary:hover { background: #d6b252; }
.phero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.phero .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.phero + .section, .phero + .section--cream, .phero + .section--mint { padding-top: var(--space-9); }

.mission { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-8); align-items: center; }
.mission__art { background: var(--emerald-50); border-radius: var(--radius-lg); padding: var(--space-5); }
.mission__art img { width: 100%; height: auto; }
.mission__copy .section__lead { margin: var(--space-4) 0 var(--space-6); }
.values { display: grid; gap: var(--space-3); }
.values li { display: grid; grid-template-columns: 46px 1fr; gap: var(--space-4); align-items: center; padding: var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.values__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--emerald-800); color: var(--gold); }
.values__icon .ico { width: 22px; height: 22px; }
.values strong { display: block; font-size: 16.5px; color: var(--emerald-950); }
.values small { font-size: 14.5px; color: var(--ink-muted); }

.vet { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); position: relative; }
.vet__item { position: relative; background: var(--white); border: 1px solid var(--emerald-100); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); }
.vet__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--emerald-950); font-weight: 800; font-size: 18px; margin-bottom: var(--space-4); }
.vet__item h3 { font-size: 18px; margin-bottom: 6px; }
.vet__item p { font-size: 15px; color: var(--ink-muted); }

.more { display: flex; justify-content: center; margin-top: var(--space-7); }

@media (max-width: 980px) {
  .mission { grid-template-columns: 1fr; gap: var(--space-6); }
  .mission__art { max-width: 560px; }
  .vet { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .phero { padding: 48px 0 56px; }
  .phero__lead { font-size: 16.5px; }
  .phero__actions .btn { width: 100%; }
  .vet { grid-template-columns: 1fr; gap: var(--space-4); }
  .vet__item { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--space-4); padding: var(--space-5); }
  .vet__num { grid-row: span 2; margin: 0; }
  .more .btn { width: 100%; }
}
[dir="rtl"] .phero, [dir="rtl"] .phero__lead { text-align: center; }

/* ---------- very small phones (320–360px) ---------- */
.inside > *, .trust > *, .faq2 > *, .admission2 > *, .mission > *, .hero__grid > *, .ages__grid > *, .fitbox > * { min-width: 0; }
.classroom, .report { max-width: 100%; }
@media (max-width: 360px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav__inner { gap: 8px; }
  .logo img { height: 42px; }
  .lang__btn, .nav__toggle { width: 40px; height: 40px; }
  .nav__toggle { margin-inline-start: 4px; }
  .classroom__bar { padding: 10px; gap: 6px; }
  .classroom__title { font-size: 11px; }
  .classroom__live { font-size: 10px; padding: 2px 6px; }
  .classroom__body { padding: 10px; }
  .classroom__chat { padding: 4px 10px 12px; }
  .ctl { min-width: 34px; }
  .ctl .ico { width: 30px; height: 30px; padding: 7px; }
  .classroom__end { padding: 7px 12px; font-size: 12px; }
  .report__stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .report__stats div { padding: 8px; }
  .report__head { grid-template-columns: 36px 1fr; }
  .report__avatar { width: 36px; height: 36px; }
  .report__badge { grid-column: 1 / -1; justify-self: start; }
  .hero__title, .phero__title { font-size: 30px; }
  .section__title { font-size: 26px; }
  .stats--card .stat dd { font-size: 24px; }
  .pcard__amt { font-size: 52px; }
  .audience button { padding: 8px 12px; }
}
@media (max-width: 360px) { .cfilter { margin-inline: -14px; padding-inline: 14px; } }


/* ---------- v21: course cover banners (mehrab, lanterns, gold) ---------- */
.ccard__cover, .ccard__cover--t1, .ccard__cover--t2, .ccard__cover--t3 { position: relative; height: 172px; background: var(--emerald-800); color: var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 14px; }
.ccard__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-bg { fill: #0a4d27; }
.cv-pattern { color: var(--gold); opacity: .16; }
.cv-arch { fill: #063a1c; }
.cv-arch-line { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.cv-gold { fill: var(--gold); }
.cv-gold-line { stroke: var(--gold); stroke-width: 1.2; }
.cv-light { fill: #fff3c4; }
.cv-wave { fill: var(--white); }
.cv-wave-line { fill: none; stroke: var(--gold); stroke-width: 3; }
.ccard__ar { position: relative; z-index: 1; color: #fbf3dc; font-size: 40px; line-height: 1.25; margin-top: 18px; transition: transform .45s var(--ease); }
.ccard__orn { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--gold); }
.ccard__orn i { display: block; width: 34px; height: 1.5px; background: var(--gold); }
.ccard__orn svg { width: 16px; height: 16px; }
.ccard:hover .ccard__ar { transform: scale(1.06); }
.ccard:hover .ccard__art { transform: none; }
.ccard__ribbon { top: 10px; left: 50%; right: auto; transform: translateX(-50%); z-index: 2; white-space: nowrap; }
[dir="rtl"] .ccard__ribbon { right: auto; left: 50%; }
.ccard__body { padding-top: var(--space-4); }
@media (max-width: 640px) {
  .ccard { flex-direction: column; }
  .ccard__cover { width: 100%; height: 150px; }
  .ccard__ar { font-size: 34px; margin-top: 14px; }
  .ccard__ribbon { top: 8px; left: 50%; font-size: 10.5px; padding: 3px 9px; }
}
.ar-gap { display: inline-block; margin-right: .14em; }

/* ---------- v22: keep the Arabic word inside the mehrab ---------- */
.ccard__cover, .ccard__cover--t1, .ccard__cover--t2, .ccard__cover--t3 { justify-content: flex-end; padding-bottom: 40px; }
.ccard__ar { font-size: 34px; line-height: 1.3; margin-top: 0; }
@media (max-width: 640px) {
  .ccard__cover { padding-bottom: 26px; }
  .ccard__ar { font-size: 31px; margin-top: 0; }
}
.ccard__orn { margin-top: 12px; }
.ccard__cover, .ccard__cover--t1, .ccard__cover--t2, .ccard__cover--t3 { padding-bottom: 34px; }
@media (max-width: 640px) { .ccard__cover { padding-bottom: 22px; } .ccard__orn { margin-top: 10px; } }

/* ---------- v23: hero teachers card ---------- */
.float-card--teachers { width: 250px; }
.hero__art .float-card--teachers { width: 250px; }
.tq__top { display: flex; align-items: center; gap: 8px; }
.tq__icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--emerald-800); color: var(--gold); flex: none; }
.tq__icon .ico { width: 16px; height: 16px; }
.float-card--teachers strong { margin: 8px 0 8px; font-size: 16px; line-height: 1.3; }
.tq__list { display: grid; gap: 4px; }
.tq__list li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); }
.tq__list .ico { width: 14px; height: 14px; color: var(--emerald-700); flex: none; }
@media (max-width: 640px) { .hero__art .float-card--teachers { width: 200px; } .float-card--teachers strong { font-size: 14.5px; } }
@media (max-width: 640px) {
  .hero__art .float-card--teachers { width: auto; max-width: 190px; padding: 10px 12px; }
  .float-card--teachers .tq__list { display: none; }
  .float-card--teachers strong { margin: 6px 0 0; font-size: 13.5px; }
}

/* ---------- v24: phones — keep the photo clear, cards sit below it ---------- */
@media (max-width: 640px) {
  .hero__art { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
  .hero__art .hero__img { grid-column: 1 / -1; }
  .hero__art .chip-card--live, .hero__art .float-card--teachers,
  [dir="rtl"] .hero__art .chip-card--live, [dir="rtl"] .hero__art .float-card--teachers {
    position: static; width: auto; max-width: none; margin: 0; animation: none; box-shadow: var(--shadow-sm); }
  .hero__art .chip-card--live { padding: 10px 12px; gap: 8px; align-items: center; }
  .hero__art .chip-card--live .avatar { width: 30px; height: 30px; font-size: 11px; }
  .hero__art .chip-card--live strong { font-size: 13px; }
  .hero__art .float-card--teachers { padding: 10px 12px; }
  .float-card--teachers .tq__icon { width: 24px; height: 24px; }
  .float-card--teachers strong { font-size: 13px; margin-top: 4px; }
}
@media (max-width: 640px) {
  .hero__art .chip-card--live .avatar { display: none; }
  .hero__art .chip-card--live small { font-size: 12px; }
  .hero__art .chip-card--live, .hero__art .float-card--teachers { align-content: center; }
}

/* ==========================================================================
   v25 — Free trial popup
   ========================================================================== */
.pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.pop[hidden] { display: none; }
.pop__backdrop { position: absolute; inset: 0; background: rgba(3, 20, 12, .62); opacity: 0; transition: opacity .25s; }
.pop__dialog { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.pop.is-open .pop__backdrop { opacity: 1; }
.pop.is-open .pop__dialog { opacity: 1; transform: none; }
html.pop-open { overflow: hidden; }
.pop__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--emerald-900); color: #fff; transition: background-color .2s; }
.pop__close:hover { background: var(--emerald-700); }
.pop__close .ico { width: 18px; height: 18px; }

.pop__art { position: relative; overflow: hidden; background: var(--emerald-950); color: #fff; display: flex; align-items: center; justify-content: center; min-height: 480px; }
.pop__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-bg { fill: #063a1c; }
.ps-pattern { color: var(--gold); opacity: .12; }
.ps-gold-line { stroke: var(--gold); stroke-width: 1.3; }
.ps-lantern, .ps-gold { fill: var(--gold); }
.ps-light { fill: #fff3c4; }
.ps-mosque { fill: #0a4d27; stroke: var(--gold); stroke-width: 2; }
.pop__offer { position: relative; text-align: center; padding: 40px 28px 120px; }
.pop__tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-950); background: var(--gold); padding: 6px 14px; border-radius: var(--radius-pill); }
.pop__free { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--gold); margin-top: 18px; }
.pop__big { font-size: 34px; font-weight: 800; line-height: 1.1; color: #fff; margin-top: 4px; }
.pop__with { font-size: 15px; color: rgba(255, 255, 255, .8); margin-top: 8px; }
.pop__ticks { display: inline-grid; gap: 6px; margin-top: 20px; padding: 14px 18px; text-align: start; background: rgba(255, 255, 255, .07); border: 1px solid rgba(201, 162, 58, .35); border-radius: var(--radius-md); }
.pop__ticks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pop__ticks .ico { width: 16px; height: 16px; color: var(--gold); }

.pop__body { padding: 40px 36px 30px; display: flex; flex-direction: column; }
.pop__kicker { font-size: 15px; font-weight: 700; color: var(--gold-deep); }
.pop__title { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--emerald-950); margin-top: 2px; }
.pop__strip { margin: 12px 0 18px; padding: 8px 12px; background: var(--emerald-800); color: #fff; font-size: 13.5px; font-weight: 600; border-radius: var(--radius-sm); text-align: center; }
.pop__form { display: grid; gap: 10px; }
.pfield input, .pfield select { width: 100%; min-height: 48px; padding: 11px 14px; font-size: 15.5px; background: var(--ivory); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.pfield select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f4c3a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
[dir="rtl"] .pfield select { background-position: left 14px center; }
[dir="rtl"] .pfield input[type="tel"], [dir="rtl"] .pfield input[type="email"] { direction: ltr; text-align: right; }
.pfield input:focus, .pfield select:focus { outline: none; background: #fff; border-color: var(--emerald-800); box-shadow: 0 0 0 4px rgba(15, 76, 58, .12); }
.pfield.has-error input, .pfield.has-error select, .pfield.has-error .pchoice { border-color: var(--danger); }
.pfield__err { font-size: 12.5px; color: var(--danger); margin-top: 3px; }
.pfield__err:empty { display: none; }
.pchoice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--ivory); }
.pchoice > span { font-size: 14.5px; color: var(--ink-muted); margin-inline-end: auto; }
.pchoice label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--emerald-900); }
.pchoice input { width: 18px; height: 18px; accent-color: var(--emerald-800); min-height: 0; }
.pop__form .btn { margin-top: 6px; min-height: 52px; }
.pop__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); text-align: center; }
.pop__note .ico { width: 14px; height: 14px; color: var(--emerald-700); }
.pop__status:empty { display: none; }
.pop__status { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.pop__status.is-success { background: var(--emerald-50); color: var(--emerald-900); border: 1px solid var(--emerald-100); }
.pop__status.is-error { background: #fdf3f2; color: var(--danger); border: 1px solid #f1d2cf; }

@media (max-width: 760px) {
  .pop { padding: 10px; align-items: end; }
  .pop__dialog { grid-template-columns: 1fr; max-height: calc(100vh - 20px); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-md) var(--radius-md); }
  .pop__art { min-height: 0; }
  .pop__scene .ps-mosque, .pop__scene .ps-gold { display: none; }
  .pop__offer { padding: 22px 56px 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 10px; }
  .pop__tag { flex-basis: 100%; max-width: max-content; margin: 0 auto 8px; font-size: 11px; }
  .pop__free { font-size: 46px; margin-top: 0; }
  .pop__big { font-size: 24px; }
  .pop__with { flex-basis: 100%; font-size: 13.5px; margin-top: 2px; }
  .pop__ticks { display: none; }
  .pop__body { padding: 20px 18px 18px; }
  .pop__title { font-size: 26px; }
  .pop__strip { margin: 10px 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .pop__dialog, .pop__backdrop { transition: none; } }

/* ==========================================================================
   v26 — monthly offer, countdown, custom plan
   ========================================================================== */
.offer { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-6); align-items: center;
  margin-bottom: var(--space-7); padding: var(--space-6) var(--space-7); background: var(--emerald-950); color: #fff;
  border: 2px solid var(--gold); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(3, 31, 15, .6); }
.offer__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .08; }
.offer__main, .offer__side { position: relative; }
.offer__tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: var(--emerald-950); padding: 5px 12px; border-radius: var(--radius-pill); }
.offer__title { color: #fff; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 8px; }
.offer__sub { color: rgba(255, 255, 255, .8); font-size: 16px; max-width: 54ch; }
.offer__slots { margin-top: var(--space-5); max-width: 520px; }
.offer__bar { height: 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .12); overflow: hidden; }
.offer__bar span { display: block; height: 100%; background: var(--gold); border-radius: inherit; transition: width 1.2s var(--ease); }
.offer__slots p { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--gold); }
.offer__side { display: grid; gap: var(--space-3); padding: var(--space-5); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-md); }
.offer__ends { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; direction: ltr; }
.timer div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: var(--white); border-radius: 12px; }
.timer b { font-size: 28px; font-weight: 800; line-height: 1; color: var(--emerald-900); font-variant-numeric: tabular-nums; }
.timer small { font-size: 11.5px; color: var(--ink-muted); margin-top: 4px; }
.offer__ended { color: rgba(255, 255, 255, .85); font-size: 15px; text-align: center; }
.offer.is-ended .offer__slots { display: none; }

.pgrid { grid-template-columns: repeat(4, 1fr); }
.pcard--custom { background: var(--ivory); border: 2px dashed var(--gold); }
.pcard__price--text { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--emerald-900); line-height: 1.1; }
.pcard--custom .pcard__total { line-height: 1.5; }

@media (max-width: 980px) {
  .offer { grid-template-columns: 1fr; padding: var(--space-6) var(--space-5); }
}
@media (max-width: 640px) {
  .offer { padding: var(--space-5) var(--space-4); }
  .offer__side { padding: var(--space-4); }
  .timer b { font-size: 24px; }
}
@media (max-width: 1180px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }

/* v27: hide the days box when under 24 hours left */
.timer.timer--nodays { grid-template-columns: repeat(3, 1fr); }
.timer.timer--nodays > div:first-child { display: none; }

/* ==========================================================================
   v28 — Free trial popup, single column with header band
   ========================================================================== */
.pop__dialog { display: block; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; }
.pop__dialog:focus { outline: none; }
.pop__head { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 64px; background: var(--emerald-900);
  border-bottom: 3px solid var(--gold); }
.pop__head img { height: 52px; width: auto; }
.pop__head .pop__close { top: 50%; transform: translateY(-50%); inset-inline-end: 14px; background: rgba(255, 255, 255, .1); color: #fff; }
.pop__head .pop__close:hover { background: rgba(255, 255, 255, .2); }
.pop__body { display: block; padding: 22px 32px 22px; }
.pop__intro { text-align: center; }
.pop__badge { display: inline-block; padding: 5px 14px; border-radius: var(--radius-pill); background: #fbf1d6; color: var(--gold-deep);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pop__body .pop__title { font-size: clamp(25px, 3.4vw, 31px); margin-top: 10px; }
.pop__sub { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); max-width: 470px; margin-inline: auto; }
.pop__body .pop__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 20px; }
.pop__form .pfield--full { grid-column: 1 / -1; }
.plabel { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--emerald-800); }
.pseg.pchoice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 0; padding: 0; border: 0; background: none; }
.pseg label { position: relative; display: block; cursor: pointer; }
.pseg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.pseg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; text-align: center; line-height: 1.2;
  font-size: 15px; font-weight: 600; color: var(--emerald-900); background: var(--ivory); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: background-color .15s, color .15s, border-color .15s; }
.pseg label:hover span { border-color: var(--emerald-700); }
.pseg input:checked + span { background: var(--emerald-900); border-color: var(--emerald-900); color: #fff; }
.pseg input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.pinput { position: relative; }
.pinput > .ico { position: absolute; top: 50%; inset-inline-start: 14px; width: 19px; height: 19px; transform: translateY(-50%); color: var(--emerald-700); pointer-events: none; }
.pinput > input { padding-inline-start: 44px; }
.pop__form .pfield input, .pop__form .pfield select { border-radius: 10px; }
.pinput--tel { display: flex; align-items: stretch; background: var(--ivory); border: 1px solid var(--line-strong); border-radius: 10px; direction: ltr;
  transition: border-color .2s, box-shadow .2s; }
.pinput--tel:focus-within { background: #fff; border-color: var(--emerald-800); box-shadow: 0 0 0 4px rgba(15, 76, 58, .12); }
.pfield.has-error .pinput--tel { border-color: var(--danger); }
.pop__form .pinput--tel > input { flex: 1; min-width: 0; padding-inline-start: 12px; border: 0; background: transparent; box-shadow: none; }
.pop__form .pinput--tel > input:focus { box-shadow: none; background: transparent; }
.pcc { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 14px; border-right: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 700; color: var(--emerald-900); white-space: nowrap; }
.pcc::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 1.6px solid var(--emerald-800); border-bottom: 1.6px solid var(--emerald-800); transform: rotate(45deg); }
.pop__form .pcc select { position: absolute; inset: 0; width: 100%; min-height: 0; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.pcc:focus-within { outline: 2px solid var(--gold-deep); outline-offset: -2px; border-radius: 10px 0 0 10px; }
.pfield.has-error .pseg span { border-color: var(--danger); }
.pop__form .btn { margin-top: 4px; min-height: 54px; font-size: 17px; }
.pop__body .pop__note { margin-top: -4px; }
[dir="rtl"] .pinput > input[type="email"] { padding-inline-start: 44px; }
@media (max-width: 760px) {
  .pop { align-items: center; }
  .pop__dialog { max-height: calc(100vh - 20px); border-radius: 18px; }
}
@media (max-width: 560px) {
  .pop__head { padding: 12px 56px; }
  .pop__head img { height: 42px; }
  .pop__body { padding: 16px 16px 18px; }
  .pop__sub { font-size: 14px; }
  .pop__body .pop__form { grid-template-columns: 1fr; gap: 11px; margin-top: 14px; }
  .pseg.pchoice { gap: 6px; }
  .pseg span { font-size: 13.5px; padding: 6px; min-height: 44px; }
}
[dir="rtl"] .pinput > input[type="email"] { padding-left: 14px; padding-right: 44px; }

/* v29: things the offer script hides must stay hidden */
.offer [hidden], .timer[hidden] { display: none !important; }

/* v30: cookie notice (Europe/UK visitors) */
.ckb { position: fixed; z-index: 150; inset-inline: 16px; bottom: 16px; max-width: 520px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); }
.ckb p { flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.ckb div { display: flex; gap: 8px; }
@media (max-width: 760px) { .ckb { bottom: 84px; } }
.ckb .btn { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* v31: offer without countdown, price-first panel with a strong call to action */
.offer__side { justify-items: center; text-align: center; gap: 10px; padding: 26px 24px; background: var(--white); border: 0; border-radius: 18px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); }
.offer__lbl { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.offer__price { display: flex; align-items: flex-start; justify-content: center; gap: 4px; line-height: 1; color: var(--emerald-950); direction: ltr; }
.offer__cur { font-size: 30px; font-weight: 800; margin-top: 10px; }
.offer__amt { font-size: 84px; font-weight: 800; letter-spacing: -0.04em; }
.offer__per { align-self: flex-end; margin-bottom: 12px; font-size: 17px; font-weight: 700; color: var(--ink-muted); }
.offer__save { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 15px; }
.offer__save s { color: var(--ink-muted); font-weight: 700; font-size: 17px; }
.offer__save span { background: var(--emerald-50); color: var(--emerald-800); font-weight: 800; padding: 4px 12px; border-radius: var(--radius-pill); }
.offer__cta { margin-top: 6px; min-height: 60px; font-size: 18px; font-weight: 800; position: relative; animation: offerPulse 2.4s ease-out infinite; }
.offer__cta .ico { transition: transform .2s; }
.offer__cta:hover .ico { transform: translateX(4px); }
[dir="rtl"] .offer__cta:hover .ico { transform: translateX(-4px) scaleX(-1); }
@keyframes offerPulse { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 58, .55); } 70% { box-shadow: 0 0 0 14px rgba(201, 162, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .offer__cta { animation: none; } }
.offer__assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; font-weight: 600; color: var(--emerald-900); }
.offer__assure li { display: flex; align-items: center; gap: 6px; }
.offer__assure .ico { width: 16px; height: 16px; color: var(--emerald-700); }
.offer__side .offer__ended { color: var(--ink); }
.offer.is-ended .offer__price, .offer.is-ended .offer__save, .offer.is-ended .offer__lbl { opacity: .45; }
@media (max-width: 560px) { .offer__amt { font-size: 68px; } .offer__side { padding: 22px 16px; } }

/* ==========================================================================
   v32 — AI chat assistant
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat__launch { position: fixed; z-index: 41; right: 96px; bottom: 30px; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--emerald-900); color: #fff; font: inherit; font-size: 15px; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(3, 31, 15, .55); transition: transform .2s var(--ease), background-color .2s; }
.chat__launch:hover { transform: translateY(-2px); background: var(--emerald-800); }
.chat__launch svg { width: 24px; height: 24px; color: var(--gold); flex: none; }
.chat__dot { position: absolute; top: 6px; left: 30px; width: 10px; height: 10px; border-radius: 50%; background: #2ecc71; border: 2px solid var(--emerald-900); }
.chat.is-open .chat__launch { background: var(--emerald-800); }
.chat__teaser { position: fixed; z-index: 41; right: 96px; bottom: 88px; max-width: 250px; padding: 12px 34px 12px 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .35); animation: chatIn .35s var(--ease); }
.chat__teaser p { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--emerald-950); cursor: pointer; }
.chat__teaser-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; background: none; color: var(--ink-muted); cursor: pointer; padding: 3px; }
.chat__teaser-x svg, .chat__close svg { width: 100%; height: 100%; }
.chat__panel { position: fixed; z-index: 60; right: 24px; bottom: 92px; width: 380px; height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(3, 31, 15, .55); animation: chatIn .25s var(--ease); }
.chat__panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--emerald-900); color: #fff; border-bottom: 3px solid var(--gold); }
.chat__avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.chat__avatar img { width: 34px; height: 34px; object-fit: contain; }
.chat__head h2 { margin: 0; font-size: 16.5px; font-weight: 800; color: #fff; }
.chat__head p { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.chat__head p i { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; }
.chat__close { margin-inline-start: auto; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.chat__close:hover { background: rgba(255, 255, 255, .2); }
.chat__log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.cmsg { max-width: 86%; }
.cmsg p { margin: 0; padding: 10px 13px; font-size: 15px; line-height: 1.5; border-radius: 16px; overflow-wrap: anywhere; }
.cmsg--bot p { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-end-start-radius: 4px; }
.cmsg--user { align-self: flex-end; }
.cmsg--user p { background: var(--emerald-800); color: #fff; border-end-end-radius: 4px; }
.cmsg--booked p { border-color: var(--gold); background: #fffaf0; }
.cmsg__ok { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--emerald-800); color: #fff; font-size: 12px; font-weight: 700; }
.cmsg__wa { display: inline-flex; margin-top: 6px; padding: 7px 14px; border-radius: 999px; background: #1f9d55; color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.cmsg--typing p { display: flex; gap: 5px; padding: 14px 16px; }
.cmsg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-700); opacity: .35; animation: chatDot 1.2s infinite; }
.cmsg--typing i:nth-child(2) { animation-delay: .15s; } .cmsg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.chat__chips[hidden] { display: none; }
.chat__chip { padding: 8px 12px; border: 1px solid var(--emerald-700); border-radius: 999px; background: var(--white); color: var(--emerald-900); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chat__chip:hover { background: var(--emerald-50); }
.chat__form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 14px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 22px; }
.chat__form:focus-within { border-color: var(--emerald-800); box-shadow: 0 0 0 3px rgba(15, 76, 58, .12); }
.chat__form textarea { flex: 1; min-height: 0; max-height: 120px; padding: 8px 0; border: 0; outline: none; resize: none; background: transparent; font: inherit; font-size: 15px; line-height: 1.4; color: var(--ink); }
.chat__send { flex: none; width: 40px; height: 40px; padding: 9px; border: 0; border-radius: 50%; background: var(--gold); color: var(--emerald-950); cursor: pointer; }
.chat__send:hover { filter: brightness(1.05); }
.chat__send svg { width: 100%; height: 100%; }
[dir="rtl"] .chat__send svg { transform: scaleX(-1); }
.chat__note { margin: 6px 14px 10px; font-size: 11.5px; line-height: 1.4; color: var(--ink-muted); text-align: center; }
[dir="rtl"] .chat__launch { right: auto; left: 96px; }
[dir="rtl"] .chat__teaser { right: auto; left: 96px; border-radius: 14px 14px 14px 4px; }
[dir="rtl"] .chat__panel { right: auto; left: 24px; }
[dir="rtl"] .chat__teaser-x { right: auto; left: 6px; }
[dir="rtl"] .chat__teaser { padding: 12px 14px 12px 34px; }
@media (max-width: 640px) {
  .chat__launch { right: 14px; bottom: 82px; width: 54px; height: 54px; padding: 0; justify-content: center; }
  .chat__launch-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat__launch svg { width: 26px; height: 26px; }
  .chat__dot { top: 8px; left: auto; right: 8px; }
  .chat__teaser { right: 14px; bottom: 146px; }
  [dir="rtl"] .chat__launch { left: 14px; } [dir="rtl"] .chat__teaser { left: 14px; }
  .chat__panel, [dir="rtl"] .chat__panel { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
  html.chat-open { overflow: hidden; }
  .chat__form textarea { font-size: 16px; }
}
.chat__demo { margin: 0; padding: 8px 10px; border-radius: 10px; background: #fbf1d6; color: #5c4610; font-size: 12.5px; font-weight: 700; text-align: center; }
.cmsg__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -2px; }
.chat__chip--main { background: var(--emerald-900); border-color: var(--emerald-900); color: #fff; }
.chat__chip--main:hover { background: var(--emerald-800); }

/* ==========================================================================
   v33 — course landing pages & guide (SEO)
   ========================================================================== */
.lp-hero__inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-7); align-items: center; }
.lp-badge { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-900); border: 3px solid var(--gold); box-shadow: 0 24px 50px -24px rgba(3, 31, 15, .6); }
.lp-badge span { font-family: "Amiri", serif; font-size: 46px; color: var(--gold); line-height: 1.2; padding-bottom: 8px; }
.lp-meta { margin-top: var(--space-4); font-size: 14px; color: var(--ink-muted); }
.lp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-8); align-items: start; }
.lp__main h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--emerald-950); margin: var(--space-8) 0 var(--space-4); letter-spacing: -0.01em; }
.lp__main h2:first-child { margin-top: 0; }
.lp__main > p { font-size: 17px; line-height: 1.7; color: var(--ink); max-width: 68ch; }
.lp-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-steps li { counter-increment: s; position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 64px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.lp-steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-900); color: var(--gold); font-weight: 800; }
[dir="rtl"] .lp-steps li { padding: 16px 64px 16px 18px; } [dir="rtl"] .lp-steps li::before { left: auto; right: 16px; }
.lp-steps b { font-size: 16.5px; color: var(--emerald-950); }
.lp-steps span { font-size: 15.5px; color: var(--ink-muted); line-height: 1.55; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; line-height: 1.5; }
.lp-checks .ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--emerald-700); }
.lp-faq { display: grid; gap: 10px; }
.lp__side { position: sticky; top: 100px; display: grid; gap: var(--space-5); }
.lp-facts { padding: 22px; background: var(--emerald-900); color: #fff; border-radius: 18px; border-bottom: 4px solid var(--gold); }
.lp-facts h2, .lp-related h2 { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.lp-facts h2 { color: #fff; } .lp-facts > p { color: rgba(255, 255, 255, .85); margin-bottom: 16px; }
.lp-facts ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.lp-facts li { display: flex; gap: 10px; align-items: flex-start; }
.lp-facts .ico { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.lp-facts small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .65); }
.lp-facts b { font-size: 15px; font-weight: 600; }
.lp-related { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 4px; }
.lp-rel { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--emerald-900); font-weight: 600; text-decoration: none; }
.lp-rel:last-child { border-bottom: 0; }
.lp-rel .ico { width: 16px; height: 16px; flex: none; }
.lp-rel:hover { color: var(--emerald-700); }
.ccard__link { color: inherit; text-decoration: none; }
.ccard__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ccard__more { display: inline-block; margin-bottom: 10px; font-size: 14.5px; font-weight: 700; color: var(--emerald-800); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) {
  .lp__grid { grid-template-columns: 1fr; }
  .lp__side { position: static; }
  .lp-hero__inner { grid-template-columns: 1fr; }
  .lp-badge { display: none; }
}
/* v33b: landing hero — text on the left, badge on the right */
.phero__inner.lp-hero__inner { display: grid; align-items: center; text-align: start; }
.lp-hero__inner > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.lp-hero__inner .phero__actions { justify-content: flex-start; }
.lp-hero__inner .phero__title { max-width: 22ch; }
@media (max-width: 980px) {
  .phero__inner.lp-hero__inner { text-align: center; }
  .lp-hero__inner > div:first-child { align-items: center; }
  .lp-hero__inner .phero__actions { justify-content: center; }
}

/* ==========================================================================
   v34 — course "details" button + platforms section
   ========================================================================== */
.ccard__more { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 6px; padding: 10px 16px; border: 1.5px solid var(--emerald-800);
  border-radius: 999px; color: var(--emerald-900); background: var(--white); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.ccard__more .ico { width: 16px; height: 16px; }
.ccard__more:hover { background: var(--emerald-900); color: #fff; }
[dir="rtl"] .ccard__more .ico { transform: scaleX(-1); }
.plat__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.plat__card { position: relative; display: grid; justify-items: start; gap: 10px; padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.plat__card h3 { font-size: 20px; font-weight: 800; color: var(--emerald-950); }
.plat__card p { color: var(--ink-muted); font-size: 15.5px; line-height: 1.6; }
.plat__card--own { background: var(--emerald-900); border-color: var(--emerald-900); }
.plat__card--own h3 { color: #fff; } .plat__card--own p { color: rgba(255, 255, 255, .82); }
.plat__badge { position: absolute; top: 18px; inset-inline-end: 18px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--emerald-950); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.plat__logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.plat__logo svg { width: 30px; height: 30px; }
.plat__logo--zoom { background: #e8f0fe; color: #2d8cff; }
.plat__logo--teams { background: #ecebfa; color: #5b5fc7; }
.plat__logo--equran { background: #fff; }
.plat__logo--equran img { width: 40px; height: 40px; object-fit: contain; }
.plat__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--space-5); color: var(--ink-muted); font-size: 14.5px; text-align: center; }
.plat__note .ico { flex: none; width: 16px; height: 16px; color: var(--emerald-700); }
@media (max-width: 900px) { .plat__grid { grid-template-columns: 1fr; } }
/* v35: long-form course articles */
.lp-article > .lp-meta { margin: 0 0 var(--space-5); }
.lp-article > p { font-size: 17px; line-height: 1.75; color: var(--ink); max-width: 70ch; margin-bottom: var(--space-4); }
.lp-article h2 { scroll-margin-top: 110px; }
.lp-article .lp-steps, .lp-article .lp-checks, .lp-article .lp-table, .lp-article .lp-tip { margin-bottom: var(--space-5); }
.lp-toc { margin: 0 0 var(--space-7); padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.lp-toc p { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.lp-toc ol { margin: 0; padding-inline-start: 20px; columns: 2; column-gap: 28px; }
.lp-toc li { break-inside: avoid; padding: 3px 0; font-size: 15px; }
.lp-toc a { color: var(--emerald-900); font-weight: 600; text-decoration: none; }
.lp-toc a:hover { text-decoration: underline; }
.lp-tip { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #fbf1d6; border-inline-start: 4px solid var(--gold); border-radius: 12px; font-size: 16px; line-height: 1.6; color: #4d3b0c; }
.lp-tip .ico { flex: none; width: 20px; height: 20px; color: var(--gold-deep); margin-top: 2px; }
.lp-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.lp-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.lp-table th { text-align: start; padding: 12px 16px; background: var(--emerald-900); color: #fff; font-weight: 700; }
.lp-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.lp-table td:first-child { font-weight: 700; color: var(--emerald-950); width: 38%; }
.lp-checks span { line-height: 1.6; }
@media (max-width: 640px) { .lp-toc ol { columns: 1; } .lp-article > p { font-size: 16.5px; } }
/* v36: keyword H1 above the hero headline */
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.4; }
.hero__kicker::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
html[lang="ur"] .hero__kicker, html[lang="ar"] .hero__kicker { letter-spacing: 0; font-size: 16px; }
/* v37: 4 plans + a wide custom plan */
.pgrid .pcard--custom { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1.4fr 1.3fr auto; gap: 6px 28px; align-items: center; }
.pgrid .pcard--custom .pcard__top, .pgrid .pcard--custom .pcard__days { grid-column: 1; }
.pgrid .pcard--custom .pcard__price { grid-column: 1; margin: 0; }
.pgrid .pcard--custom .pcard__total { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.pgrid .pcard--custom .pcard__list { grid-column: 3; grid-row: 1 / span 3; margin: 0; border: 0; padding: 0; }
.pgrid .pcard--custom .btn { grid-column: 4; grid-row: 1 / span 3; width: auto; white-space: nowrap; }
@media (max-width: 980px) {
  .pgrid .pcard--custom { display: flex; flex-direction: column; align-items: stretch; }
  .pgrid .pcard--custom .btn { width: 100%; }
}
.pcard .btn { font-size: 14.5px; padding-inline: 12px; white-space: nowrap; } @media (max-width: 1180px) { .pcard .btn { white-space: normal; } }

/* v38 blog */
.bchips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-6); }
.bchip { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--emerald-900); background: transparent; color: var(--emerald-900); cursor: pointer; }
.bchip:hover { background: rgba(6, 78, 59, .06); }
.bchip.is-active { background: var(--emerald-900); color: #fff; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--space-5); }
.bcard { display: flex; flex-direction: column; gap: 10px; padding: var(--space-5); background: #fff; border: 1px solid rgba(6, 78, 59, .12); border-radius: 18px; box-shadow: 0 18px 40px -30px rgba(3, 31, 15, .45); transition: transform .2s, box-shadow .2s; }
.bcard[hidden] { display: none !important; }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(3, 31, 15, .55); }
.bcard__cat { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--gold-700, #9a7b2f); }
.bcard__cat .ico { width: 16px; height: 16px; }
.bcard__title { margin: 0; font-size: 20px; line-height: 1.3; }
.bcard__title a { color: var(--emerald-900); text-decoration: none; }
.bcard__title a:hover { text-decoration: underline; }
.bcard__text { margin: 0; color: var(--ink-muted); font-size: 15px; flex: 1; }
.bcard__meta { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.bcard__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--emerald-900); text-decoration: none; }
.bcard__more .ico { width: 16px; height: 16px; }
.lp-tip a { color: inherit; font-weight: 700; }
/* v38b: six menu items fit between 981 and 1120px */
@media (min-width: 981px) and (max-width: 1120px) {
  .nav__menu ul { gap: 0; }
  .nav__menu a:not(.btn) { padding: 8px 7px; font-size: 14.5px; }
  .nav__cta { padding: 0 16px; font-size: 14px; }
  .logo img { height: 46px; }
}
/* v39 legal links */
.footer2__legal { margin: 0; font-size: 14px; }
.footer2__legal a { color: inherit; opacity: .85; text-decoration: none; }
.footer2__legal a:hover { opacity: 1; text-decoration: underline; }
.ckb p a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   v40 Blog: calm, readable article layout
   ========================================================================== */
.post-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.post-hero__inner { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.post-hero .crumbs { color: var(--ink-muted); background: #fff; border-color: var(--line); margin-bottom: 18px; }
.post-hero .crumbs a { color: var(--emerald-900); }
.post-hero .crumbs [aria-current] { color: var(--gold-deep, #8a6a1c); }
.post-hero__cat { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep, #8a6a1c); }
.post-hero__cat .ico { width: 16px; height: 16px; }
.post-hero__title { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; color: var(--emerald-950); text-wrap: balance; }
.post-hero__meta, .post-hero__sub { margin: 14px 0 0; font-size: 15px; color: var(--ink-muted); }
.post-hero__sub { font-size: 17px; }
.post-hero--index { padding: 40px 0 34px; }

.post { padding: 48px 0 72px; background: #fff; }
.post__body { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--ink); }
.post__body > p { font-size: 18px; line-height: 1.75; margin: 0 0 20px; max-width: none; }
.post__lead { font-size: 20px !important; line-height: 1.65 !important; color: var(--emerald-950) !important; font-weight: 500; }
.post__body h2 { font-size: clamp(22px, 2.6vw, 27px); line-height: 1.3; font-weight: 800; color: var(--emerald-950); margin: 44px 0 14px; letter-spacing: -0.01em; scroll-margin-top: 100px; }
.post__body .lp-checks { gap: 12px; margin: 0 0 22px; }
.post__body .lp-checks li { font-size: 17.5px; line-height: 1.6; }
.post__body .lp-checks .ico { width: 18px; height: 18px; margin-top: 5px; color: var(--gold-deep, #8a6a1c); }
.post__body .lp-steps { gap: 0; margin: 0 0 22px; border-left: 2px solid var(--line); padding-left: 0; }
.post__body .lp-steps li { padding: 4px 0 18px 30px; background: none; border: 0; border-radius: 0; }
.post__body .lp-steps li::before { left: -14px; top: 4px; width: 26px; height: 26px; font-size: 13px; background: var(--emerald-900); color: #fff; }
.post__body .lp-steps b { font-size: 17.5px; }
.post__body .lp-steps span { font-size: 16.5px; line-height: 1.6; }
.post__body .lp-table { margin: 0 0 24px; border-radius: 12px; border: 1px solid var(--line); overflow-x: auto; }
.post__body .lp-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post__body .lp-table th { background: var(--emerald-50); color: var(--emerald-950); text-align: start; font-weight: 700; padding: 12px 14px; }
.post__body .lp-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.post__body .lp-table tr:nth-child(even) td { background: #fcfaf5; }
.post__body .lp-faq { margin-top: 6px; }
.post__body .faq-item__q { font-size: 17px; }

.post-toc { margin: 8px 0 32px; border: 1px solid var(--line); border-radius: 14px; background: #fcfaf5; }
.post-toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 700; font-size: 16px; color: var(--emerald-950); }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--emerald-900); }
.post-toc[open] summary::after { content: "−"; }
.post-toc__n { margin-inline-start: auto; font-weight: 500; font-size: 14px; color: var(--ink-muted); }
.post-toc ol { margin: 0; padding: 0 18px 16px 40px; display: grid; gap: 6px; font-size: 16px; }
.post-toc a { color: var(--emerald-900); text-decoration: none; }
.post-toc a:hover { text-decoration: underline; }

.post-cta { margin: 44px 0 0; padding: 24px; border-radius: 18px; background: var(--emerald-50); border: 1px solid rgba(6, 58, 28, .12); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.post-cta__title { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--emerald-950); }
.post-cta__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-muted); max-width: 42ch; }
.post-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.post-cta__link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--emerald-900); text-decoration: none; }
.post-cta__link .ico, .post-more__all .ico { width: 16px; height: 16px; }

.post-more { max-width: 1040px; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--line); }
.post-more__title { margin: 0 0 20px; font-size: 24px; font-weight: 800; color: var(--emerald-950); text-align: center; }
.bgrid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bcard--link { text-decoration: none; color: inherit; }
.bcard--link .bcard__title { display: block; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--emerald-900); flex: 1; }
.bcard--link:hover .bcard__title { text-decoration: underline; }
.post-more__all { text-align: center; margin: 24px 0 0; }
.post-more__all a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--emerald-900); text-decoration: none; }

/* blog index: calmer cards, one featured */
.blog { padding-top: 40px; }
.bcard { box-shadow: none; }
.bcard:hover { box-shadow: 0 16px 36px -28px rgba(3, 31, 15, .5); }
.bcard__text { line-height: 1.55; }
@media (min-width: 900px) {
  .bcard--feature { grid-column: 1 / -1; padding: 32px; background: var(--emerald-50); border-color: rgba(6, 58, 28, .12); }
  .bcard--feature .bcard__title { font-size: 28px; max-width: 30ch; }
  .bcard--feature .bcard__text { font-size: 17px; max-width: 70ch; }
}
@media (max-width: 640px) {
  .post-hero { padding: 30px 0 28px; }
  .post { padding: 32px 0 56px; }
  .post__body, .post__body > p { font-size: 17px; }
  .post__lead { font-size: 18.5px !important; }
  .post-cta { padding: 20px; }
  .post-cta__actions { width: 100%; }
  .post-cta__actions .btn { width: 100%; }
}
[dir="rtl"] .post__body .lp-steps { border-left: 0; border-right: 2px solid var(--line); }
[dir="rtl"] .post__body .lp-steps li { padding: 4px 30px 18px 0; }
[dir="rtl"] .post__body .lp-steps li::before { left: auto; right: -14px; }
@media (max-width: 640px) { .post__body .lp-table table { font-size: 15px; } .post__body .lp-table th, .post__body .lp-table td { padding: 10px; } }
@media (max-width: 380px) { .post__body .lp-table table { font-size: 13.5px; } .post__body .lp-table th, .post__body .lp-table td { padding: 8px 7px; } .post__body .lp-table td { overflow-wrap: anywhere; } }

/* v41 blog: free-trial card in a sticky left column while reading */
.post-side { display: none; }
@media (min-width: 1100px) {
  .post__layout { display: grid; grid-template-columns: 270px minmax(0, 720px); gap: 56px; justify-content: center; align-items: start; }
  .post__layout .post__body { margin: 0; }
  .post-side { display: block; position: sticky; top: 110px; }
  .post-cta--end { display: none; }
}
.post-side__card { padding: 24px 22px; border-radius: 20px; background: var(--emerald-900); color: #fff; border-bottom: 4px solid var(--gold); box-shadow: 0 24px 48px -32px rgba(3, 31, 15, .7); }
.post-side__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(201, 162, 58, .18); color: var(--gold); margin-bottom: 14px; }
.post-side__icon .ico { width: 24px; height: 24px; }
.post-side__title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 800; color: #fff; }
.post-side__text { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.post-side__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.post-side__list li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #fff; }
.post-side__list .ico { width: 17px; height: 17px; color: var(--gold); flex: none; }
.post-side__card .btn--primary { background: var(--gold); color: var(--emerald-950); box-shadow: none; }
.post-side__card .btn--primary:hover { background: #d6b252; }
.post-side__wa { margin-top: 10px; color: #fff; border-color: rgba(255, 255, 255, .3); }
.post-side__wa:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.post-side__wa .ico { width: 18px; height: 18px; }
.post-side__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--gold); text-decoration: none; line-height: 1.4; }
.post-side__link .ico { width: 15px; height: 15px; flex: none; }
.post-side__link:hover { text-decoration: underline; }

/* v42 Feedback section (real reviews from js/reviews.js) */
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.rv-grid[hidden], .rv-empty[hidden], .rv-form[hidden] { display: none !important; }
.rv-card { margin: 0; padding: 24px 22px 20px; background: #fff; border-radius: 18px; border: 1px solid rgba(6, 58, 28, .08); box-shadow: 0 18px 40px -30px rgba(3, 31, 15, .45); display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.rv-card__head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rv-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; letter-spacing: .02em; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.rv-avatar--t1 { background: var(--emerald-900); color: var(--gold); }
.rv-avatar--t2 { background: var(--gold-soft, #f3e6c4); color: var(--emerald-900); }
.rv-avatar--t3 { background: #dcebdf; color: var(--emerald-800); }
.rv-avatar--t4 { background: #e8eef7; color: #1f3b63; }
.rv-card__who strong { display: block; font-size: 17px; color: var(--emerald-950); }
.rv-card__who small { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.rv-card__stars { margin: 0; font-size: 18px; letter-spacing: 2px; color: #f2b01e; line-height: 1; }
.rv-card__stars span { color: #ddd5c3; }
.rv-card__text { margin: 0; position: relative; font-size: 15.5px; line-height: 1.65; color: var(--ink); font-style: italic; text-align: start; padding-inline-start: 30px; }
.rv-card__q { position: absolute; inset-inline-start: 0; top: -8px; font-size: 44px; line-height: 1; font-style: normal; font-weight: 800; color: var(--emerald-700); font-family: Georgia, serif; }
.rv-card__course { margin-top: auto; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
.rv-empty { max-width: 640px; margin: 0 auto; padding: 26px 24px; border-radius: 18px; background: #fff; border: 1px dashed rgba(6, 58, 28, .25); display: flex; gap: 16px; align-items: center; }
.rv-empty p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.rv-empty__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--emerald-50); color: var(--emerald-800); }
.rv-empty__icon .ico { width: 24px; height: 24px; }
.rv-share { display: flex; justify-content: center; margin-top: 26px; }
.rv-share .btn .ico { width: 18px; height: 18px; }
.rv-form { max-width: 760px; margin: 22px auto 0; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid rgba(6, 58, 28, .1); }
.rv-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 18px; }
.rv-form input[type="text"], .rv-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fcfaf5; color: var(--ink); }
.rv-form input:focus, .rv-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; background: #fff; }
.rv-rate { border: 0; padding: 0; margin: 0; }
.rv-rate legend { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; padding: 0; }
.rv-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rv-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-stars label { font-size: 32px; line-height: 1; color: #ddd5c3; cursor: pointer; transition: color .15s; }
.rv-stars input:checked ~ label, .rv-stars label:hover, .rv-stars label:hover ~ label { color: #f2b01e; }
.rv-stars input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }
[dir="rtl"] .rv-stars { flex-direction: row-reverse; }
.rv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); line-height: 1.5; cursor: pointer; }
.rv-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--emerald-800); flex: none; }
.rv-form__status { margin: 12px 0 0; font-size: 15px; }
.rv-form__status.is-success { color: var(--emerald-800); font-weight: 600; }
.rv-form__status.is-error { color: #b3261e; }
@media (max-width: 980px) { .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rv-grid { grid-template-columns: 1fr; }
  .rv-form { padding: 20px; }
  .rv-form__grid { grid-template-columns: 1fr; }
  .rv-empty { flex-direction: column; text-align: center; }
}
