/* ==========================================================================
   AlMadinahQuranCenter, Shared Stylesheet
   ========================================================================== */

:root {
  /* Brand colors: identity constants. These stay the same in both themes
     because they're always used either as fills on already-dark branded
     blocks (footer, hero, verse-quote) or as text on gold/gold-light chips
     that never change color themselves. */
  --deep-green: #0b3d2e;
  --emerald: #0f5c46;
  --emerald-light: #16795f;
  --gold: #cda349;
  --gold-light: #e8c876;
  --white: #ffffff;
  --danger: #b3403b;

  /* Legacy neutral aliases, still read directly by a few rules. */
  --cream: #ffffff;
  --cream-2: #f5f5f2;
  --text-dark: #1c2721;
  --text-muted: #5c6a63;

  /* Theme-aware surface/text tokens: these are what actually flip in dark mode. */
  --page-bg: var(--cream);
  --surface: var(--white);
  --surface-alt: var(--cream-2);
  --heading: var(--deep-green);
  --header-bg: rgba(250, 246, 236, 0.96);
  --placeholder: #8a938d;
  --border-faint: rgba(11, 61, 46, 0.05);
  --border-soft: rgba(11, 61, 46, 0.08);
  --border-mid: rgba(11, 61, 46, 0.12);
  --border-strong: rgba(11, 61, 46, 0.15);
  /* Gold chip fill: used by buttons/icon-circles/badges/eyebrows that sit on
     neutral (theme-flipping) backgrounds. Kept separate from --gold/--gold-light
     because those two also render as bright accent text/fills on permanently
     dark sections (hero, footer, page-hero) which must never darken. */
  --chip-gold: var(--gold);
  --chip-gold-light: var(--gold-light);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 14px rgba(11, 61, 46, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 61, 46, 0.12);
  --shadow-lg: 0 20px 50px rgba(11, 61, 46, 0.18);
  --container: 1180px;
}

/* ---------- Dark mode ---------- */
:root[data-theme="dark"] {
  --emerald: #22a37f;
  --text-dark: #e7ece9;
  --text-muted: #9caaa2;
  --danger: #ff8a80;

  --page-bg: #0d1310;
  --surface: #182420;
  --surface-alt: #131b18;
  --heading: #f1f4f1;
  --header-bg: rgba(13, 19, 16, 0.92);
  --placeholder: #74827b;
  --border-faint: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 255, 255, 0.09);
  --border-mid: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.2);
  --chip-gold: #a9803c;
  --chip-gold-light: #c99f56;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}
/* Bespoke component colors that don't fit the generic tokens above. */
:root[data-theme="dark"] .ladies-section {
  background: linear-gradient(135deg, #2a1520, var(--page-bg));
}
:root[data-theme="dark"] .ladies-badge {
  background: #4a2334;
  color: #f0aec9;
}
:root[data-theme="dark"] .ladies-list li i { color: #e08bab; }
:root[data-theme="dark"] .form-success {
  background: #123527;
  color: #8fe0c0;
  border-color: var(--emerald);
}
:root[data-theme="dark"] .form-error {
  background: #3a1613;
  color: #ffb4ab;
  border-color: #6b2c26;
}
:root[data-theme="dark"] .pricing-table tbody tr.hifz-row { background: rgba(255,255,255,0.03); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
h1, h2, h3, h4 {
  font-family: 'Amiri', serif;
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 68px 0; }
.section-tight { padding: 56px 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.eyebrow {
  display: inline-block;
  color: var(--deep-green);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: var(--chip-gold-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- Geometric pattern overlay ---------- */
.pattern-overlay {
  position: relative;
  isolation: isolate;
}
.pattern-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(45deg, var(--gold) 25%, transparent 25%),
    linear-gradient(-45deg, var(--gold) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--gold) 75%),
    linear-gradient(-45deg, transparent 75%, var(--gold) 75%);
  background-size: 44px 44px;
  background-position: 0 0, 0 22px, 22px -22px, -22px 0px;
  pointer-events: none;
}
.pattern-overlay > * { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--chip-gold-light), var(--chip-gold));
  color: var(--deep-green);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--emerald);
  color: var(--emerald);
}
.btn-outline-dark:hover { background: var(--emerald); color: var(--white); }
.btn-green {
  background: var(--emerald);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-green:hover { background: var(--deep-green); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-wa {
  background: #25D366;
  color: var(--white);
}
.btn-wa:hover { background: #1ebc59; }

/* ---------- Button loading spinner ---------- */
.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: btnSpin 0.7s linear infinite;
}
.btn-gold.is-loading::after,
.btn-outline.is-loading::after,
.btn-outline-dark.is-loading::after {
  border-color: rgba(11,61,46,0.2);
  border-top-color: var(--deep-green);
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.announce-bar {
  background: var(--deep-green);
  color: var(--cream-2);
  font-size: 0.82rem;
}
.announce-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.announce-bar a { color: var(--gold-light); }
.announce-bar a:hover { text-decoration: underline; }
.announce-flags { letter-spacing: 1px; }
.announce-offer {
  color: var(--gold-light);
  font-weight: 600;
  overflow: hidden;
}
.announce-offer span {
  display: inline-block;
  animation: announceFade 6s infinite;
}
@keyframes announceFade {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0.55; }
  100% { opacity: 1; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.25s ease, padding 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald), var(--deep-green));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--emerald); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Dark mode toggle ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  background: var(--surface);
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--emerald); color: var(--emerald); }
.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    linear-gradient(100deg, rgba(6,38,29,0.93) 0%, rgba(11,61,46,0.85) 45%, rgba(11,61,46,0.55) 100%),
    url('../images/masjid_e_nabvi_banner.jpeg') center 30%/cover no-repeat;
  color: var(--white);
  padding: 90px 0 0;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 70px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(205, 163, 73, 0.18);
  border: 1px solid rgba(232, 200, 118, 0.4);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.12rem;
  max-width: 540px;
}
.hero-ctas { display: flex; gap: 16px; margin: 30px 0 36px; flex-wrap: wrap; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.trust-badges .badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.trust-badges .badge .ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}
.hero-visual .verse-quote {
  background: transparent;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
  /* border: 1px solid rgba(232,200,118,0.3); */
}
.hero-visual .verse-quote .arabic { font-size: 2.1rem; }

/* ==========================================================================
   Cards grids (Why choose us / Courses / Tutors)
   ========================================================================== */
.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-faint);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.icon-circle {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--chip-gold-light), var(--chip-gold));
  color: var(--deep-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.why-us-section { background: var(--surface-alt); }

/* ---------- Narrative / verse pull-quote ---------- */
.narrative { background: var(--surface); }
.narrative-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.narrative-points { display: grid; gap: 18px; margin-top: 26px; }
.narrative-point { display: flex; gap: 14px; }
.narrative-point .dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
}
.why-choose-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(11,61,46,0.22), 0 6px 14px rgba(11,61,46,0.14);
}

/* ---------- Scroll reveal (slide in from the side, slide back out on exit) ---------- */
.scroll-reveal-clip { overflow-x: hidden; }
.scroll-reveal-left,
.scroll-reveal-right {
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.6s ease;
  will-change: transform, opacity;
}
.scroll-reveal-left { transform: translateX(-100vw); }
.scroll-reveal-right { transform: translateX(100vw); }
.scroll-reveal-left.is-revealed,
.scroll-reveal-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-left,
  .scroll-reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.verse-quote {
  background: var(--deep-green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  position: relative;
  text-align: center;
}
.verse-quote .arabic {
  font-family: 'Amiri', serif;
  font-size: 1.9rem;
  color: var(--gold-light);
  line-height: 2;
  margin-bottom: 18px;
  direction: rtl;
}
.verse-quote p.translation {
  color: rgba(255,255,255,0.88);
  font-style: italic;
  font-size: 1.05rem;
}
.verse-quote .citation {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.verse-quote-masjid {
  background:
    linear-gradient(180deg, rgba(6,38,29,0.82), rgba(11,61,46,0.88)),
    url('../images/masjid_e_nabvi_5.jpeg') center 30%/cover no-repeat;
}

/* ---------- Ladies section ---------- */
.ladies-section {
  background: linear-gradient(135deg, #fbeff2, var(--cream));
  border-radius: var(--radius-lg);
  margin: 0 24px;
  overflow: hidden;
}
.ladies-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.ladies-badge {
  display: inline-block;
  background: #f3d4de;
  color: #96385a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ladies-list { display: grid; gap: 12px; margin: 20px 0 26px; }
.ladies-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dark); font-weight: 500; }
.ladies-list li i { color: #b5486f; margin-top: 3px; }
.ladies-visual {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.ladies-visual-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 5px 14px 28px rgba(11,61,46,0.28), 5px 4px 10px rgba(11,61,46,0.18);
}
.ladies-visual-media img {
  width: 100%;
  aspect-ratio: 720 / 1024;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ladies-visual-media .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 50px 22px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.35) 60%, transparent 100%);
  text-align: left;
  font-size: 20px;
}
.ladies-visual-media .caption h4 { color: var(--white); margin-bottom: 4px; }
.ladies-visual-media .caption p { color: rgba(255,255,255,0.85); font-size: 0.92rem; }

/* ---------- Tutors ---------- */
.tutor-card { text-align: center; }
.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--emerald-light), var(--deep-green));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.tutor-photo {
  width: 200px; height: 200px;
  border-radius: 10%;
  margin: 0 auto 16px;
  overflow: hidden;
}
.tutor-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tutor-card .tag {
  display: inline-block;
  background: var(--chip-gold-light);
  color: var(--deep-green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 6px 0 10px;
}
.tutor-card h4 { margin-bottom: 2px; }

/* ==========================================================================
   Geo-trust strip
   ========================================================================== */
.geo-section {
  background:
    linear-gradient(120deg, rgba(11,61,46,0.92), rgba(6,38,29,0.88)),
    url('../images/geo-globe-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
}
.geo-section .section-head h2 { color: var(--white); }
.geo-section .section-head p { color: rgba(255,255,255,0.75); }
.flag-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.flag-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232,200,118,0.25);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.flag-pill .flag {
  width: 1.4em;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats-section { background: var(--surface-alt); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--emerald);
}
.stat-item span { color: var(--text-muted); font-weight: 500; font-size: 0.92rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.testimonial-track::-webkit-scrollbar { height: 6px; }
.testimonial-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
.testimonial-card {
  scroll-snap-align: start;
  min-width: 320px;
  flex: 1 1 320px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-faint);
}
.testimonial-card .stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card .quote { font-style: italic; color: var(--text-dark); }
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.testimonial-person .avatar { width: 48px; height: 48px; font-size: 1rem; margin: 0; }
.testimonial-person strong { display: block; font-size: 0.92rem; }
.testimonial-person span { font-size: 0.8rem; color: var(--text-muted); }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.carousel-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: var(--surface);
  color: var(--emerald);
  font-size: 1.1rem;
}
.carousel-nav button:hover { background: var(--emerald); color: var(--white); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background:
    linear-gradient(120deg, rgba(15,92,70,0.90), rgba(11,61,46,0.90)),
    url('../images/cta-banner-bg.jpg') center 30%/cover no-repeat;
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ==========================================================================
   Parallax banner (fixed background, content scrolls over it)
   ========================================================================== */
.parallax-section {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(6,38,29,0.82), rgba(11,61,46,0.78)),
    url('../images/masjid_e_nabvi_7.jpg') center 40%/cover no-repeat;
  background-attachment: fixed;
  color: var(--white);
}
.parallax-content { max-width: 720px; padding: 60px 24px; }
.parallax-content .arabic {
  font-family: "Amiri", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold-light);
  margin-bottom: 14px;
}
.parallax-content .translation {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}
.parallax-content .citation {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
}
.faq-question .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
  font-size: 1.1rem;
}
.faq-item.is-open .faq-question .plus { transform: rotate(45deg); background: var(--gold-light); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 24px 20px; margin: 0; }
.faq-item.is-open .faq-answer { max-height: 500px; }

/* ==========================================================================
   Legal / policy pages (Terms & Policies)
   ========================================================================== */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content .legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 44px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { margin-bottom: 1em; }
.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 1em;
}
.legal-content ul li { color: var(--text-muted); margin-bottom: 0.4em; }
.legal-content strong { color: var(--heading); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--deep-green);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.65); max-width: 300px; }
.site-footer h4 { color: var(--white); font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-contact li i { color: var(--gold-light); width: 16px; text-align: center; margin-top: 3px; flex-shrink: 0; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.social-row a:hover { background: var(--gold); color: var(--deep-green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: var(--gold-light); }
.footer-credit {
  text-align: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-credit a { color: rgba(255,255,255,0.7); font-weight: 600; }
.footer-credit a:hover { color: var(--gold-light); }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 600;
  animation: pulse 2.4s infinite, waBounce 4.5s ease-in-out infinite;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,0.65) 0%, rgba(37,211,102,0) 72%);
  filter: blur(3px);
  z-index: -1;
  pointer-events: none;
  animation: waEmit 2.4s ease-in-out infinite;
}
.wa-float:hover { animation-play-state: paused; transform: scale(1.1); }
.wa-float:hover::before { animation-play-state: paused; }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,0), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
}
@keyframes waEmit {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float::before { animation: none; }
}
@keyframes waBounce {
  0%, 75%, 100% { transform: translateY(0) rotate(0); }
  80% { transform: translateY(-12px) rotate(-8deg); }
  85% { transform: translateY(0) rotate(6deg); }
  90% { transform: translateY(-6px) rotate(-4deg); }
  95% { transform: translateY(0) rotate(0); }
}

/* ---------- Custom mouse-follow cursor dot ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--emerald-light);
  box-shadow: 0 0 10px 2px rgba(15,92,70,0.55), 0 0 22px 6px rgba(10, 222, 162, 0.3);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-pointer {
  width: 30px;
  height: 30px;
  background: var(--gold);
  box-shadow: 0 0 12px 3px rgba(228, 168, 39, 0.55), 0 0 26px 8px rgba(227, 168, 42, 0.3);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none; }
}

/* ==========================================================================
   Modal (Free Trial popup)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,61,46,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 40px 34px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.is-open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--surface-alt);
  color: var(--text-dark);
  font-size: 1.2rem;
}
.modal-close:hover { background: var(--gold-light); }
.modal-overlay.is-submitting .modal-close {
  opacity: 0.4;
  pointer-events: none;
}
.modal-box .eyebrow { margin-bottom: 10px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-mid);
  background: var(--surface);
  color: var(--text-dark);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--emerald);
}
.field textarea { resize: vertical; min-height: 110px; }
.phone-input-group { display: flex; gap: 8px; }
.phone-input-group input[type="tel"] { flex: 1; min-width: 0; }
.phone-code-select { flex: 0 0 118px; min-width: 0; }
.phone-code-select .flag-select-trigger { padding: 13px 10px; gap: 4px; }
.phone-code-select .flag-select-value { gap: 6px; }
.phone-code-select .flag-select-panel { left: 0; right: auto; width: 260px; }
.field-error { color: var(--danger); font-size: 0.78rem; display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .flag-select-trigger { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

/* ---------- Flag country dropdown ---------- */
.flag-select { position: relative; }
.flag-select-native { display: none; }
.flag-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-mid);
  background: var(--surface);
  color: var(--text-dark);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.flag-select-trigger:hover { border-color: var(--border-strong); }
.flag-select.is-open .flag-select-trigger { border-color: var(--emerald); }
.flag-select-trigger.is-placeholder .flag-select-value { color: var(--placeholder); }
.flag-select-value { display: inline-flex; align-items: center; gap: 10px; }
.flag-select-value .fi { width: 1.3em; border-radius: 2px; flex-shrink: 0; }
.flag-select-trigger > i { color: var(--text-muted); font-size: 0.78rem; transition: transform 0.2s ease; flex-shrink: 0; }
.flag-select.is-open .flag-select-trigger > i { transform: rotate(180deg); }

.flag-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  z-index: 60;
  display: none;
  overflow: hidden;
}
.flag-select.is-open .flag-select-panel { display: block; }
.flag-select-search { padding: 10px; border-bottom: 1px solid var(--border-soft); }
.flag-select-search input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border-mid);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text-dark);
}
.flag-select-search input:focus { outline: none; border-color: var(--emerald); }
.flag-select-list { max-height: 230px; overflow-y: auto; }
.flag-select-group {
  padding: 8px 14px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.flag-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.flag-select-option:hover { background: var(--surface-alt); }
.flag-select-option .fi { width: 1.3em; border-radius: 2px; flex-shrink: 0; }
.flag-select-empty { padding: 16px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.form-success {
  display: none;
  background: #e5f3ec;
  color: var(--deep-green);
  border: 1px solid var(--emerald-light);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 500;
  font-size: 0.92rem;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f2b8b5;
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 500;
  font-size: 0.92rem;
  margin-top: 10px;
}
.form-error.is-visible { display: block; }
.form-note { font-size: 0.8rem; color: var(--text-muted); }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  background:
    linear-gradient(120deg, rgba(11,61,46,0.90), rgba(15,92,70,0.85)),
    url('../images/masjid_e_nabvi_3.jpeg') center 55%/cover no-repeat;
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero .eyebrow { background: rgba(232,200,118,0.2); color: var(--gold-light); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ==========================================================================
   Courses page, image cards
   ========================================================================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-faint);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.course-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.course-card-body { padding: 26px 26px 30px; }
.course-row-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.course-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.course-tags span {
  background: var(--surface-alt);
  color: var(--emerald);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.course-card-body p{
  text-align: justify;
}
.course-card.ladies { border-top: 4px solid #d97ba0; }
.course-card.hifz { border-top: 4px solid var(--gold); }

/* Course thumbnail bleed inside the shared homepage .card component */
.card { overflow: hidden; }
.card .course-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 5%;
  margin-bottom: 10px;
}

/* ==========================================================================
   Pricing table
   ========================================================================== */
.currency-toggle {
  display: inline-flex;
  background: var(--surface-alt);
  padding: 6px;
  border-radius: 999px;
  gap: 4px;
  margin: 0 auto 40px;
}
.currency-toggle button {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.currency-toggle button.is-active {
  background: var(--emerald);
  color: var(--white);
}
.toggle-wrap { text-align: center; }

.pricing-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-faint);
}
table.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.pricing-table th, .pricing-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-faint);
}
.pricing-table thead th {
  background: var(--deep-green);
  color: var(--white);
  font-family: 'Amiri', serif;
  font-size: 1.02rem;
  font-weight: 700;
}
.pricing-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.pricing-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr.popular { background: rgba(232,200,118,0.14); }
.pricing-table tbody tr.hifz-row { background: rgba(11,61,46,0.04); }
.pricing-table .price-val { font-weight: 700; font-size: 1.05rem; color: var(--emerald); }
.row-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.row-badge.popular { background: var(--chip-gold); color: var(--deep-green); }
.row-badge.premium { background: var(--deep-green); color: var(--gold-light); }
.pricing-note {
  max-width: 780px;
  margin: 28px auto 0;
  background: var(--surface-alt);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.billing-info-grid { margin-top: 60px; }

/* ==========================================================================
   About page timeline
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.timeline-step {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}
.timeline-step .num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--deep-green);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Amiri', serif;
  font-weight: 700;
  margin: 0 auto 14px;
}
.vetting-grid { margin-top: 16px; }

/* ==========================================================================
   404 error page
   ========================================================================== */
.error-404 {
  padding: 100px 0;
  background:
    linear-gradient(120deg, rgba(11,61,46,0.94), rgba(6,38,29,0.9)),
    url('../images/hero-quran-bg.jpg') center 30%/cover no-repeat;
}
.error-404-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.error-404-inner .eyebrow {
  background: rgba(232,200,118,0.2);
  color: var(--gold-light);
}
.error-404-number {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 8rem);
  line-height: 1;
  color: var(--gold-light);
  margin: 10px 0;
  text-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.error-404-inner h1 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.error-404-inner p { color: rgba(255,255,255,0.82); font-size: 1.05rem; }
.error-404-inner .hero-ctas { justify-content: center; margin: 30px 0 34px; }
.error-404-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
}
.error-404-links a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(232,200,118,0.4);
}
.error-404-links a:hover { color: var(--white); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.wa-numbers { display: grid; gap: 14px; margin: 20px 0 28px; }
.wa-number-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.wa-number-card .who { font-weight: 600; font-size: 0.92rem; }
.wa-number-card .who .flag { width: 1.2em; border-radius: 2px; vertical-align: middle; margin: 0 2px; }
.wa-number-card .num { color: var(--text-muted); font-size: 0.85rem; }
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 260px; border: none; display: block; }

/* ==========================================================================
   Testimonials page filter
   ========================================================================== */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-row button {
  border: 1.5px solid var(--border-mid);
  background: var(--surface);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
}
.filter-row button.is-active { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.grid-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-testimonials .testimonial-card { min-width: 0; }
.grid-testimonials .testimonial-card.is-hidden { display: none; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .narrative-grid { grid-template-columns: 1fr; }
  .verse-quote { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-testimonials { grid-template-columns: repeat(2, 1fr); }
  .ladies-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    padding: 20px 24px 28px;
  }
  .main-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header-actions .btn-gold { padding: 10px 18px; font-size: 0.85rem; }
  .announce-bar .container { justify-content: center; text-align: center; }
  .brand { font-size: 1.1rem; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.1rem; }
  .brand small { font-size: 0.56rem; }
  .parallax-section { background-attachment: scroll; min-height: 300px; }
  .parallax-content { padding: 40px 20px; }
}

@media (max-width: 560px) {
  .site-header .container { gap: 8px; }
  .brand small { display: none; }
  .brand { font-size: 0.95rem; flex: 1; min-width: 0; }
  .brand > span:not(.brand-mark) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    min-width: 0;
  }
  .header-actions { gap: 8px; }
  .header-actions .btn-gold { padding: 9px 14px; font-size: 0.78rem; }
  .theme-toggle { width: 34px; height: 34px; font-size: 0.88rem; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .timeline { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-testimonials { grid-template-columns: 1fr; }
  .ladies-inner { padding: 44px 24px; }
  .cta-banner, .ladies-section { margin: 0 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero { padding: 40px 0 0; }
  .hero .container { gap: 28px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(1.5rem, 6.5vw, 2rem); margin-bottom: 14px; }
  .hero p.lead { font-size: 0.95rem; }
  .hero-ctas { margin: 20px 0 24px; gap: 12px; }
  .trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
  .trust-badges .badge { font-size: 0.78rem; gap: 8px; }
  .trust-badges .badge .ico { width: 30px; height: 30px; font-size: 0.95rem; }
  .hero-visual .verse-quote { padding: 26px 20px; }
  .hero-visual .verse-quote .arabic { font-size: 1.4rem; margin-bottom: 12px; }
  .hero-visual .verse-quote p.translation { font-size: 0.9rem; }
}
