/* ═══════════════════════════════════════════════
   HIDAYAH, GLOBAL DESIGN SYSTEM
   هِدَايَة
═══════════════════════════════════════════════ */

/* ─── TOKENS ───────────────────────────────────
   Unique identity: emerald-black canvas · copper CTA ·
   jade + turquoise interactive accents. (Not gold/navy.)
─────────────────────────────────────────────── */
:root {
  /* raw brand */
  --ih-jade:        #15B391;   /* primary brand teal-jade */
  --ih-jade-2:      #2FD8B0;   /* bright turquoise, interactive/dynamic */
  --ih-jade-deep:   #0C7A64;
  --ih-copper:      #D89B5E;   /* warm accent, calligraphy, CTAs, ayaat */
  --ih-copper-2:    #EFC489;
  --ih-copper-3:    #F6DCB4;

  /* canvas */
  --ih-bg:          #061915;
  --ih-surface:     #0B2A24;
  --ih-surface-2:   #103730;
  --ih-surface-3:   #18473E;
  --ih-white:       #EAF4F0;
  --ih-text:        #D6E6E0;
  --ih-muted:       #82A89D;
  --ih-muted-2:     #587a70;
  --ih-border:      rgba(216,155,94,0.16);
  --ih-border-2:    rgba(47,216,176,0.10);
  --ih-red:         #C0392B;

  /* legacy aliases (so all existing rules recolor automatically) */
  --ih-green:       var(--ih-jade);
  --ih-green-2:     var(--ih-jade-deep);
  --ih-green-3:     var(--ih-jade-2);
  --ih-gold:        var(--ih-copper);
  --ih-gold-2:      var(--ih-copper-2);
  --ih-gold-3:      var(--ih-copper-3);

  --shadow-sm:      0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:      0 10px 50px rgba(0,0,0,0.6);
  --shadow-gold:    0 6px 30px rgba(216,155,94,0.30);
  --shadow-jade:    0 6px 30px rgba(21,179,145,0.30);
  --r-sm:  4px; --r-md: 10px; --r-lg: 18px; --r-xl: 28px; --r-full: 9999px;
  --ease:  cubic-bezier(0.16,1,0.3,1);
  --dur:   280ms; --dur-s: 600ms;
  --font-quran:    'Amiri', 'Noto Naskh Arabic', serif;
  --font-ar:       'Cairo', 'Tajawal', 'Noto Naskh Arabic', sans-serif;
  --font-ar-disp:  'Aref Ruqaa', 'Reem Kufi', 'Tajawal', serif;
  --font-ar-brand: 'Aref Ruqaa', 'Amiri', serif;
  --font-heading:  'Fraunces', 'Lora', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;
}

[data-theme="light"] {
  /* Warm sage-paper canvas, softer than stark white and tuned to the
     emerald/jade/copper brand. Cards lift slightly lighter than the page. */
  --ih-bg:        #E7EDE3;   /* sage paper, the main canvas */
  --ih-surface:   #F5F9F1;   /* raised cards, off-white sage */
  --ih-surface-2: #DDE6D5;   /* sunken panels / alternate rows */
  --ih-surface-3: #CFDAC4;   /* deeper sage, hover / active */
  /* Text: deep jade-charcoal, warm and high contrast on sage */
  --ih-white:     #122A20;   /* primary headings */
  --ih-text:      #25382D;   /* body copy */
  --ih-muted:     #50675A;   /* secondary text */
  --ih-muted-2:   #6C8474;   /* captions / tertiary */
  /* Deepen the warm + jade accents so labels and links stay readable on light */
  --ih-copper:    #A2641F;   /* gold/copper accent text (was too pale on light) */
  --ih-copper-2:  #BC7F30;
  --ih-jade:      #128067;
  --ih-jade-2:    #0E9276;   /* interactive jade, darkened for contrast on light */
  --ih-border:    rgba(12,122,100,0.22);
  --ih-border-2:  rgba(12,122,100,0.12);
  --shadow-sm:    0 1px 3px rgba(28,54,42,0.07);
  --shadow-md:    0 5px 22px rgba(28,54,42,0.10);
  --shadow-lg:    0 14px 46px rgba(28,54,42,0.14);
  --shadow-gold:  0 6px 26px rgba(162,100,31,0.22);
  --shadow-jade:  0 6px 26px rgba(18,128,103,0.20);
}
/* Light-mode contrast touch-ups (do not affect dark mode) */
[data-theme="light"] .ih-badge--gold { background: rgba(162,100,31,0.12); color: var(--ih-copper); }
[data-theme="light"] .ih-nav { border-bottom-color: rgba(12,122,100,0.12); }
[data-theme="light"] .ih-empire-card__link:hover { background: rgba(18,42,32,0.05); }

/* ── Dramatic page heroes stay dark "stages" in light mode ──
   These heroes are dark-first showcases (3D swords, glowing Quran, prayer
   mat, isnad constellation, gold glitter …) whose art only reads on a dark
   backdrop. Rather than fight that, we restore the DARK palette variables,
   scoped to these heroes in light mode only, so every background, text and
   glow inside them renders exactly as in dark mode. The rest of the page
   stays sage-light, giving a premium dark-hero / light-body contrast.
   Dark mode is completely unaffected (this block is under data-theme=light). */
[data-theme="light"] .ih-page-hero--empires,
[data-theme="light"] .ih-page-hero--science,
[data-theme="light"] .ih-page-hero--quran,
[data-theme="light"] .ih-page-hero--hadith,
[data-theme="light"] .ih-page-hero--salah,
[data-theme="light"] .ih-page-hero--dua,
[data-theme="light"] .ih-page-hero--zikr,
[data-theme="light"] .ih-page-hero--haram,
[data-theme="light"] .ih-page-hero--miracles {
  --ih-bg:        #061915;
  --ih-surface:   #0B2A24;
  --ih-surface-2: #103730;
  --ih-surface-3: #18473E;
  --ih-white:     #EAF4F0;
  --ih-text:      #D6E6E0;
  --ih-muted:     #82A89D;
  --ih-muted-2:   #587a70;
  --ih-copper:    #D89B5E;
  --ih-copper-2:  #EFC489;
  --ih-jade:      #15B391;
  --ih-jade-2:    #2FD8B0;
  --ih-border:    rgba(216,155,94,0.16);
  --ih-border-2:  rgba(47,216,176,0.10);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:    0 10px 50px rgba(0,0,0,0.6);
}

/* ─── LANGUAGE SWITCH SYSTEM ────────────────────
   Default = Arabic. Toggle sets <html lang> + dir.
   .ih-en shows only in English · .ih-ar only in Arabic.
   Quranic ayaat (.ih-aya) ALWAYS show in both.
─────────────────────────────────────────────── */
html[lang="en"] .ih-ar { display: none !important; }
html[lang="ar"] .ih-en { display: none !important; }
.ih-en, .ih-ar { display: inline; }
.ih-en.ih-block, .ih-ar.ih-block { display: block; }
html[lang="en"] .ih-ar.ih-block,
html[lang="ar"] .ih-en.ih-block { display: none !important; }
/* Arabic typography when active */
html[lang="ar"] body { font-family: var(--font-ar); }
/* All Arabic titles and headings share the same elegant calligraphic font. */
html[lang="ar"] .ih-section-title,
html[lang="ar"] .ih-hero__h1,
html[lang="ar"] .ih-page-hero__title,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-ar-brand); font-weight: 700; letter-spacing: 0; }
/* Arabic names / labels that act as titles (Quran and dua text keep Amiri). */
.ih-scholar-card__ar, .ih-book-card__ar, .ih-manner-card__ar,
.ih-empire-card__ar, .ih-empire-entry__ar, .ih-country-card__ar,
.ih-prophet-card__ar, .ih-prophet__card-ar, .ih-page-hero__ar {
  font-family: var(--font-ar-brand);
}
/* ── ONE calligraphic font for EVERY title, in BOTH languages ──
   Any Arabic inside a page title, section title or hero heading always
   renders in Aref Ruqaa, so عناوين الصفحات (الصلاة · القرآن · فذكر …)
   look identical across the whole site, English mode included. The English
   half of a bilingual title keeps the Latin display serif (Fraunces). */
.ih-page-hero__title .ih-ar,
.ih-section-title .ih-ar, .ih-section-title .ih-gold,
.ih-section-title[lang="ar"], .ih-section-title[dir="rtl"],
.ih-page-hero__title[lang="ar"], .ih-page-hero__title[dir="rtl"],
.ih-hero__h1-ar,
h1[lang="ar"], h2[lang="ar"], h3[lang="ar"] {
  font-family: var(--font-ar-brand) !important;
  letter-spacing: 0;
}
.ih-aya { font-family: var(--font-quran); }

/* ─── RESET & BASE ───────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ih-bg);
  color: var(--ih-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--dur), color var(--dur);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* Arabic language overrides */
[lang="ar"], [dir="rtl"] {
  font-family: var(--font-ar);
  line-height: 1.9;
}
.ih-quran-text, .ih-quran-daily__ar, .ih-hadith-day__ar,
.ih-dua-card__ar, .ih-prophet__quote blockquote {
  font-family: var(--font-quran);
}

/* ─── LAYOUT ─────────────────────────────────── */
.ih-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .ih-container { padding: 0 40px; } }
@media (min-width: 1200px) { .ih-container { padding: 0 60px; } }

.ih-section {
  padding: 96px 0;
  position: relative;
}
@media (max-width: 768px) { .ih-section { padding: 64px 0; } }

.ih-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .ih-two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ─── TYPOGRAPHY ─────────────────────────────── */
.ih-section-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ih-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ih-section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ih-gold);
  flex-shrink: 0;
}
.ih-section-label--c { justify-content: center; }
.ih-section-label--c::before { display: none; }

.ih-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ih-white);
  margin-bottom: 16px;
}
.ih-section-sub {
  font-family: var(--font-ar);
  font-size: 1.5rem;
  color: var(--ih-gold);
  margin-bottom: 12px;
  opacity: 0.85;
}
.ih-section-desc {
  font-size: 1.0625rem;
  color: var(--ih-muted);
  max-width: 660px;
  margin-bottom: 48px;
  line-height: 1.8;
}
.ih-gold { color: var(--ih-gold); }
.ih-section-cta { text-align: center; margin-top: 48px; }

/* ─── REVEAL ANIMATIONS ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 80ms; }
.d2 { transition-delay: 160ms; }
.d3 { transition-delay: 240ms; }
.d4 { transition-delay: 320ms; }

/* ─── BUTTONS ────────────────────────────────── */
.ih-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.ih-btn--gold {
  background: var(--ih-gold);
  color: #0B1622;
}
.ih-btn--gold:hover {
  background: var(--ih-gold-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.ih-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.ih-btn--ghost:hover { border-color: var(--ih-gold); color: var(--ih-gold); }
.ih-btn--ghost-green {
  background: transparent;
  color: var(--ih-green-3);
  border: 1.5px solid var(--ih-green-2);
}
.ih-btn--ghost-green:hover { background: var(--ih-green); border-color: var(--ih-green-3); }
.ih-btn--lg { padding: 18px 40px; font-size: 1.0625rem; }

.ih-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ih-gold);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--dur) var(--ease);
  margin-top: 24px;
}
.ih-link-arrow:hover { gap: 14px; }

/* ─── BADGES ─────────────────────────────────── */
.ih-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--ih-surface-2);
  color: var(--ih-muted);
  border: 1px solid var(--ih-border-2);
  display: inline-block;
}
.ih-badge--gold { background: rgba(201,168,76,0.15); color: var(--ih-gold); border-color: var(--ih-border); }
.ih-badge--sm { font-size: 0.625rem; padding: 3px 8px; }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.ih-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 24px 0;
  transition: background var(--dur), padding var(--dur), box-shadow var(--dur);
}
.ih-nav.scrolled {
  background: rgba(11,22,34,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--ih-border);
}
[data-theme="light"] .ih-nav.scrolled { background: rgba(231,237,227,0.92); }

.ih-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ih-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Brand medallion (real logo image), mobile-first */
.ih-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f4efe6;
  border: 1.5px solid rgba(216,155,94,0.55);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: box-shadow var(--dur), transform var(--dur);
}
.ih-nav__logo:hover .ih-logo-img {
  box-shadow: 0 0 0 2px rgba(216,155,94,0.4), 0 0 18px rgba(45,212,176,0.30);
  transform: scale(1.04);
}
.ih-logo-img--footer {
  width: 76px; height: 76px;
  border-color: rgba(216,155,94,0.4);
}
@media (min-width: 768px) { .ih-logo-img { width: 64px; height: 64px; } }
.ih-logo-text { display: flex; flex-direction: column; gap: 1px; }
.ih-logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ih-white);
  line-height: 1.2;
  white-space: nowrap;
}
[data-theme="light"] .ih-logo-name { color: var(--ih-jade-deep); }
.ih-logo-ar {
  font-family: var(--font-ar);
  font-size: 0.6875rem;
  color: var(--ih-gold);
  direction: rtl;
}

.ih-nav__links {
  display: none;
  gap: 4px;
}
@media (min-width: 1024px) { .ih-nav__links { display: flex; } }

.ih-nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ih-muted);
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: color var(--dur), background var(--dur);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ih-nav__link:hover, .ih-nav__link--drop:hover { color: var(--ih-white); background: var(--ih-surface); }

/* Dropdown */
.has-dropdown { position: relative; }
.ih-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-lg);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease);
  z-index: 10;
}
/* invisible bridge across the 8px gap so moving the cursor from the
   parent link down to the menu never drops the hover state */
.ih-dropdown::before {
  content: ""; position: absolute; left: 0; right: 0;
  top: -12px; height: 12px; background: transparent;
}
.has-dropdown:hover .ih-dropdown,
.has-dropdown:focus-within .ih-dropdown,
.has-dropdown.is-open .ih-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ih-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--ih-muted);
  border-radius: var(--r-md);
  transition: all var(--dur);
}
.ih-dropdown a:hover { color: var(--ih-white); background: var(--ih-surface-3); }
/* caret on grouped parent links */
.ih-nav__link--drop { display: inline-flex; align-items: center; gap: 5px; }
.ih-nav__caret { font-size: 0.7em; opacity: 0.7; transition: transform var(--dur) var(--ease); }
.has-dropdown:hover .ih-nav__caret, .has-dropdown:focus-within .ih-nav__caret, .has-dropdown.is-open .ih-nav__caret { transform: rotate(180deg); }
/* RTL: open dropdown aligned to the right edge of its parent */
html[dir="rtl"] .ih-dropdown { left: auto; right: 0; }

/* Right controls */
.ih-nav__right { display: flex; align-items: center; gap: 10px; }
.ih-nav__cta { display: none; }
@media (min-width: 640px) { .ih-nav__cta { display: inline-flex; } }

.ih-lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--ih-surface);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-full);
  padding: 3px;
}
.ih-lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-full);
  color: var(--ih-muted);
  transition: all var(--dur);
}
.ih-lang-btn.active { background: var(--ih-gold); color: #0B1622; }

.ih-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--ih-surface);
  border: 1px solid var(--ih-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-muted);
  transition: all var(--dur);
}
.ih-theme-btn:hover { border-color: var(--ih-gold); color: var(--ih-gold); }

.ih-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}
@media (min-width: 1024px) { .ih-burger { display: none; } }
.ih-burger span {
  display: block;
  height: 2px;
  background: var(--ih-text);
  border-radius: 2px;
  transition: all var(--dur);
}

/* Mobile nav */
.mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ih-bg);
  z-index: 950;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;          /* top-align so nothing is clipped */
  gap: 6px;
  padding: 80px 20px 48px;              /* clears the pinned close button + bottom room */
  overflow-y: auto;                     /* scroll the full list on small phones */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mob-nav.open { display: flex; }
.mob-nav__close {
  position: fixed;                       /* stays visible while the list scrolls */
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-muted);
  border-radius: var(--r-full);
  border: 1px solid var(--ih-border);
  background: var(--ih-surface);
  box-shadow: var(--shadow-sm);
  z-index: 960;
  transition: all var(--dur);
}
.mob-nav__close:hover { color: var(--ih-white); border-color: var(--ih-gold); }
.mob-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.mob-nav__links { width: 100%; max-width: 320px; }
.mob-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ih-muted);
  border-radius: var(--r-lg);
  transition: all var(--dur);
  width: 100%;
}
.mob-nav__link:hover { color: var(--ih-white); background: var(--ih-surface); }
.mob-nav__link.cta-link { color: var(--ih-gold); }
.mob-nav__ar { font-family: var(--font-ar); font-size: 0.9rem; color: var(--ih-gold); }
/* Mobile grouped sections */
.mob-nav__group { width: 100%; margin-bottom: 6px; }
.mob-nav__group-label {
  display: block; padding: 12px 20px 4px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ih-gold);
}
.mob-nav__sublinks { width: 100%; }
.mob-nav__sublink {
  display: flex; align-items: center; padding: 11px 20px 11px 32px;
  font-size: 1.08rem; font-family: var(--font-heading); font-weight: 500;
  color: var(--ih-muted); border-radius: var(--r-lg); transition: all var(--dur); width: 100%;
}
.mob-nav__sublink:hover { color: var(--ih-white); background: var(--ih-surface); }
html[dir="rtl"] .mob-nav__sublink { padding: 11px 32px 11px 20px; }
/* a top-level item with no children (e.g. الحديث) shows as a gold label, like the others */
a.mob-nav__grouplink { padding: 13px 20px; border-radius: var(--r-lg); transition: color var(--dur), background var(--dur); }
a.mob-nav__grouplink:hover { color: var(--ih-gold-2); background: var(--ih-surface); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.ih-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ih-bg);
}
/* Aurora mesh, animated flowing gradient */
.ih-hero__aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(38% 44% at 18% 28%, rgba(21,179,145,0.40) 0%, transparent 60%),
    radial-gradient(34% 40% at 82% 22%, rgba(47,216,176,0.28) 0%, transparent 60%),
    radial-gradient(46% 50% at 70% 78%, rgba(216,155,94,0.26) 0%, transparent 62%),
    radial-gradient(40% 46% at 28% 82%, rgba(12,122,100,0.40) 0%, transparent 60%);
  filter: blur(40px) saturate(1.15);
  background-size: 200% 200%;
  animation: ihAurora 16s ease-in-out infinite;
}
@keyframes ihAurora {
  0%,100% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
  50%     { background-position: 30% 20%, 70% 30%, 60% 70%, 40% 80%; }
}
.ih-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 1;
}
.ih-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 85% at 50% 45%, transparent 32%, var(--ih-bg) 92%),
    linear-gradient(180deg, rgba(6,25,21,0.4) 0%, transparent 30%, var(--ih-bg) 100%);
  pointer-events: none;
  z-index: 2;
}
.ih-hero__content { z-index: 3; }

/* Hero: 3D floating field of the 99 Names of Allah (Asma ul-Husna) */
.ih-asma {
  position: absolute; inset: 0; z-index: 1;
  perspective: 800px; perspective-origin: 50% 45%;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(125% 105% at 50% 45%, #000 52%, transparent 100%);
          mask-image: radial-gradient(125% 105% at 50% 45%, #000 52%, transparent 100%);
}
.ih-asma__scene { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.ih-asma__tok {
  position: absolute;
  transform: translate(-50%, -50%) translateZ(var(--z, 0px));
  transition: opacity .65s ease;
  text-align: center; white-space: nowrap;
  color: var(--ih-jade-2);
}
.ih-asma__tok.is-copper { color: var(--ih-copper-2); }
.ih-asma__tok.is-swapping { opacity: 0 !important; }
.ih-asma__float {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: ih-asma-bob 10s ease-in-out infinite; will-change: transform;
}
.ih-asma__tok b {
  font-family: var(--font-ar-brand);
  font-size: 1.7rem; font-weight: 700; line-height: 1;
  text-shadow: 0 0 18px currentColor, 0 0 2px rgba(0,0,0,0.4);
}
.ih-asma__tok i {
  font-family: var(--font-heading); font-style: normal;
  font-size: 0.6rem; letter-spacing: 0.02em; opacity: 0.82;
}
@keyframes ih-asma-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 600px) {
  .ih-asma__tok b { font-size: 1.3rem; }
  .ih-asma__tok i { font-size: 0.54rem; }
}
@media (prefers-reduced-motion: reduce) { .ih-asma__float { animation: none; } }

[data-theme="light"] .ih-asma { opacity: 0.55; }
[data-theme="light"] .ih-hero__aurora { opacity: 0.5; }
/* Light-mode hero text contrast fixes */
[data-theme="light"] .ih-hero__sub { color: var(--ih-text); opacity: 1; }
[data-theme="light"] .ih-hero__bismillah { color: var(--ih-jade-deep); text-shadow: none; }
[data-theme="light"] .ih-btn--ghost { color: var(--ih-text); border-color: var(--ih-border); }
[data-theme="light"] .ih-btn--ghost:hover { color: var(--ih-jade-deep); border-color: var(--ih-jade); background: rgba(12,122,100,0.06); }
[data-theme="light"] .ih-hero__scroll { color: var(--ih-muted); }
[data-theme="light"] .ih-hero__h1-ar { color: var(--ih-jade-deep); }
[data-theme="light"] .ih-hero__vignette {
  background:
    radial-gradient(ellipse 90% 85% at 50% 45%, transparent 30%, var(--ih-bg) 90%),
    linear-gradient(180deg, transparent 40%, var(--ih-bg) 100%);
}
.ih-hero__content {
  position: relative;
  z-index: 3;
  padding-top: 156px;
  padding-bottom: 80px;
}
.ih-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ih-gold);
  font-family: var(--font-quran);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(216,155,94,0.25);
}
.ih-hero__eyebrow > span[aria-hidden] { color: var(--ih-gold); opacity: 0.6; font-size: 0.7em; }
.ih-hero__inner { max-width: 820px; }

/* Hero two-column layout (text + interactive map) */
.ih-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: 100%;
}
.ih-hero__grid .ih-hero__inner { max-width: none; }
.ih-hero__map { position: relative; }
.ih-hero__map-frame {
  height: clamp(320px, 48vh, 470px);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(45,212,176,0.30);
  box-shadow: 0 0 0 1px rgba(216,155,94,0.14), 0 22px 60px rgba(0,0,0,0.5), 0 0 80px rgba(45,212,176,0.12);
  background: var(--ih-surface-2);
  position: relative;
}
.ih-hero__map-frame::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 60px rgba(6,25,21,0.6);
}
.ih-hero__map-cap {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; color: var(--ih-muted); font-size: 0.85rem; text-align: center;
}
.ih-hero__map-cap #ihMapCount { color: var(--ih-gold); font-weight: 700; font-family: var(--font-heading); font-size: 1.05rem; }
@media (max-width: 1024px) {
  /* Collapse to one column at the same breakpoint the nav becomes a burger,
     and top-align so the tall stacked hero never slides under the header logo. */
  .ih-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .ih-hero { min-height: auto; align-items: flex-start; }
  .ih-hero__content { padding-top: 128px; padding-bottom: 56px; }
  /* On phones/tablets the brand medallion already carries the name, so hide the
     giant hero title to remove the duplication/overlap with the header. */
  .ih-hero__h1 { display: none; }
}

.ih-hero__bismillah {
  font-family: var(--font-quran);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ih-gold);
  direction: rtl;
  margin-bottom: 32px;
  opacity: 0.9;
  text-shadow: 0 0 40px rgba(201,168,76,0.3);
}

.ih-hero__h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.ih-hero__h1-ar {
  font-family: var(--font-ar-brand);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 700;
  color: var(--ih-white);
  line-height: 1.25;
  direction: rtl;
}
.ih-hero__h1-en {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(100deg, var(--ih-jade-2) 0%, var(--ih-copper-2) 50%, var(--ih-jade-2) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: ihShimmer 6s linear infinite;
}
@keyframes ihShimmer { to { background-position: 220% center; } }

.ih-hero__sub {
  font-size: 1.0625rem;
  color: var(--ih-text);
  opacity: 0.88;
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.ih-hero__sub--ar {
  font-family: var(--font-ar);
  font-size: 1rem;
  direction: rtl;
  color: rgba(201,168,76,0.7);
  margin-bottom: 36px;
}

.ih-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.ih-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 540px;
  align-items: start;
}
.ih-hero__stat { text-align: center; }
.ih-hero__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ih-gold);
  line-height: 1;
}
.ih-hero__stat-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--ih-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.ih-hero__stat-divider { display: none; }
.ih-hero__stat-lbl { line-height: 1.35; }

.ih-hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ih-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ih-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--ih-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.4;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.15)} }

/* ══════════════════════════════════════════════
   PRAYER TIMES BAR
══════════════════════════════════════════════ */
.ih-prayer-bar {
  background: var(--ih-surface);
  border-top: 1px solid var(--ih-border);
  border-bottom: 1px solid var(--ih-border);
  padding: 16px 0;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.ih-prayer-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ih-prayer-bar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ih-gold);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.ih-prayer-bar__times {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}
.ih-prayer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--r-md);
  min-width: 80px;
  transition: background var(--dur);
  flex-shrink: 0;
}
.ih-prayer.active { background: rgba(201,168,76,0.12); }
.ih-prayer__name {
  font-size: 0.75rem;
  color: var(--ih-muted);
  text-align: center;
  line-height: 1.4;
}
.ih-prayer__name small { font-family: var(--font-ar); font-size: 0.8125rem; display: block; color: var(--ih-text); }
.ih-prayer.active .ih-prayer__name small { color: var(--ih-gold); }
.ih-prayer__time { font-size: 1rem; font-weight: 700; color: var(--ih-text); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ih-prayer.active .ih-prayer__time { color: var(--ih-gold); }

.ih-prayer-bar__next { margin-left: auto; text-align: right; flex-shrink: 0; }
.ih-prayer-bar__next-lbl { font-size: 0.6875rem; color: var(--ih-muted); display: block; }
.ih-prayer-bar__countdown {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ih-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   QURAN DAILY VERSE
══════════════════════════════════════════════ */
.ih-quran-daily { background: var(--ih-surface); }
.ih-quran-daily__card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  border: 1px solid var(--ih-border);
  border-radius: var(--r-xl);
  background: var(--ih-surface-2);
  position: relative;
}
.ih-quran-daily__ornament {
  font-size: 1.5rem;
  color: var(--ih-gold);
  opacity: 0.5;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.ih-quran-daily__ornament.top { top: 20px; }
.ih-quran-daily__ornament.bottom { bottom: 20px; }

.ih-quran-daily__ar {
  font-family: var(--font-quran);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ih-white);
  line-height: 2;
  margin-bottom: 24px;
  direction: rtl;
}
.ih-quran-daily__translation {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ih-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ih-quran-daily__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ih-quran-daily__audio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--r-full);
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--ih-border);
  color: var(--ih-gold);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--dur);
}
.ih-quran-daily__audio:hover { background: rgba(201,168,76,0.2); }
.ih-quran-daily__footer { text-align: center; margin-top: 32px; }

/* ══════════════════════════════════════════════
   PROPHET MUHAMMAD
══════════════════════════════════════════════ */
.ih-prophet { background: linear-gradient(180deg, var(--ih-bg) 0%, var(--ih-surface) 100%); }

.ih-prophet__quote {
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  border-left: 4px solid var(--ih-gold);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  margin-bottom: 48px;
  max-width: 720px;
}
[dir="rtl"] .ih-prophet__quote { border-left: none; border-right: 4px solid var(--ih-gold); }
.ih-prophet__quote blockquote {
  font-family: var(--font-quran);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--ih-white);
  direction: rtl;
  line-height: 1.9;
  margin-bottom: 12px;
}
.ih-prophet__quote cite { font-size: 0.875rem; color: var(--ih-muted); font-style: normal; }

.ih-prophet__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.ih-prophet__card {
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all var(--dur) var(--ease);
}
.ih-prophet__card:hover {
  border-color: var(--ih-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ih-prophet__card-icon { font-size: 2rem; margin-bottom: 10px; }
.ih-prophet__card-ar {
  font-family: var(--font-ar);
  font-size: 1rem;
  color: var(--ih-gold);
  margin-bottom: 6px;
  direction: rtl;
}
.ih-prophet__card-title { font-weight: 700; color: var(--ih-white); margin-bottom: 8px; font-size: 0.9375rem; }
.ih-prophet__card-desc { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════
   ISLAMIC EMPIRES SCROLL
══════════════════════════════════════════════ */
.ih-empires-preview { overflow: hidden; }
.ih-empires-preview .ih-section-desc { max-width: 580px; }

.ih-empires-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 60px 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ih-border) transparent;
  -webkit-overflow-scrolling: touch;
}
.ih-empires-scroll::-webkit-scrollbar { height: 4px; }
.ih-empires-scroll::-webkit-scrollbar-thumb { background: var(--ih-border); border-radius: 2px; }

.ih-empire-card {
  flex: 0 0 280px;
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  scroll-snap-align: start;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.ih-empire-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: var(--empire-color, var(--ih-gold));
}
.ih-empire-card__banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}
.ih-empire-card__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ih-empire-card__years { font-size: 0.6875rem; font-weight: 600; color: var(--ih-muted); letter-spacing: 0.06em; }
.ih-empire-card__body { padding: 16px 18px 12px; flex: 1; }
.ih-empire-card__ar { font-family: var(--font-ar); font-size: 0.9375rem; color: var(--ih-gold); direction: rtl; margin-bottom: 4px; }
.ih-empire-card__name { font-weight: 700; color: var(--ih-white); font-size: 1rem; margin-bottom: 10px; }
.ih-empire-card__ruler, .ih-empire-card__region {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ih-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.ih-empire-card__key {
  font-size: 0.8125rem;
  color: var(--ih-muted);
  line-height: 1.6;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ih-border-2);
}
.ih-empire-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--empire-color, var(--ih-gold));
  border-top: 1px solid var(--ih-border-2);
  transition: all var(--dur);
}
.ih-empire-card__link:hover { background: rgba(255,255,255,0.03); }

/* ══════════════════════════════════════════════
   HADITH SECTION
══════════════════════════════════════════════ */
.ih-hadith-day { background: var(--ih-surface); }

.ih-hadith-day__card {
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  margin: 24px 0 28px;
}
.ih-hadith-day__ar {
  font-family: var(--font-quran);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--ih-white);
  direction: rtl;
  line-height: 2;
  margin-bottom: 20px;
}
.ih-hadith-day__en {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ih-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.ih-hadith-day__source {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ih-hadith-day__narrator { font-size: 0.8125rem; color: var(--ih-muted-2); }

.ih-hadith-day__books { display: flex; flex-direction: column; gap: 12px; }
.ih-hadith-day__books h3 { font-size: 1rem; font-weight: 700; color: var(--ih-white); margin-bottom: 4px; }
.ih-book-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-lg);
  transition: all var(--dur);
}
.ih-book-card:hover { border-color: var(--ih-border); background: var(--ih-surface-3); }
.ih-book-card__name { font-weight: 600; font-size: 0.9375rem; color: var(--ih-text); display: block; }
.ih-book-card__ar { font-family: var(--font-ar); font-size: 0.8125rem; color: var(--ih-gold); direction: rtl; }

/* ══════════════════════════════════════════════
   SCHOLARS / SCIENCE
══════════════════════════════════════════════ */
.ih-science { background: linear-gradient(180deg, var(--ih-surface) 0%, var(--ih-bg) 100%); }

.ih-scholars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ih-scholar-card {
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: all var(--dur) var(--ease);
}
.ih-scholar-card:hover {
  transform: translateY(-6px);
  border-color: var(--scholar-color, var(--ih-gold));
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.ih-scholar-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.ih-scholar-card__field { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.ih-scholar-card__ar { font-family: var(--font-ar); font-size: 1rem; color: var(--ih-gold); direction: rtl; margin-bottom: 4px; }
.ih-scholar-card__name { font-weight: 700; color: var(--ih-white); font-size: 1rem; margin-bottom: 4px; }
.ih-scholar-card__years { font-size: 0.75rem; color: var(--ih-muted-2); display: block; margin-bottom: 12px; }
.ih-scholar-card__contrib { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════
   MANNERS
══════════════════════════════════════════════ */
.ih-manners { background: var(--ih-bg); }

.ih-manners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ih-manner-card {
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  border-top: 3px solid var(--ih-green-2);
  transition: all var(--dur) var(--ease);
}
.ih-manner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-top-color: var(--ih-gold); }
.ih-manner-card__ar { font-family: var(--font-ar); font-size: 1.375rem; color: var(--ih-gold); font-weight: 700; direction: rtl; margin-bottom: 6px; }
.ih-manner-card__en { font-weight: 700; color: var(--ih-white); font-size: 1rem; margin-bottom: 10px; }
.ih-manner-card__desc { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; margin-bottom: 14px; }
.ih-manner-card__verse { font-family: var(--font-quran); font-size: 0.9375rem; color: rgba(201,168,76,0.7); direction: rtl; line-height: 1.8; }

/* ══════════════════════════════════════════════
   DUAS
══════════════════════════════════════════════ */
.ih-duas-preview { background: var(--ih-surface); }

.ih-duas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.ih-dua-card {
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: all var(--dur) var(--ease);
}
.ih-dua-card:hover { border-color: var(--ih-border); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ih-dua-card__occasion { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ih-green-3); margin-bottom: 14px; }
.ih-dua-card__ar { font-family: var(--font-quran); font-size: 1.1875rem; color: var(--ih-white); direction: rtl; line-height: 1.9; margin-bottom: 12px; }
.ih-dua-card__trans { font-size: 0.8125rem; color: var(--ih-gold); opacity: 0.8; line-height: 1.6; margin-bottom: 10px; }
.ih-dua-card__meaning { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; margin-bottom: 14px; }

/* ══════════════════════════════════════════════
   BECOME MUSLIM CTA
══════════════════════════════════════════════ */
.ih-become {
  background: linear-gradient(135deg, var(--ih-green) 0%, var(--ih-bg) 60%);
  border-top: 1px solid var(--ih-border);
  border-bottom: 1px solid var(--ih-border);
}
.ih-become__inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}
.ih-become__ornament { margin-bottom: 24px; display: flex; justify-content: center; }
.ih-become__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ih-white);
  line-height: 1.3;
  margin-bottom: 20px;
}
.ih-become__desc { font-size: 1.0625rem; color: var(--ih-muted); max-width: 540px; margin: 0 auto 36px; line-height: 1.8; }
.ih-become__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.ih-become__step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-full);
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--ih-text);
}
.ih-become__step-num {
  width: 24px;
  height: 24px;
  background: var(--ih-gold);
  color: #0B1622;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.ih-become__step-arrow { color: var(--ih-muted); font-size: 1.25rem; }

/* ══════════════════════════════════════════════
   MODERN ISLAMIC WORLD
══════════════════════════════════════════════ */
.ih-modern { background: var(--ih-bg); }

.ih-modern__countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.ih-country-card {
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: all var(--dur) var(--ease);
}
.ih-country-card:hover { transform: translateY(-4px); border-color: var(--ih-border); box-shadow: var(--shadow-md); }
.ih-country-card__flag { font-size: 2.5rem; margin-bottom: 10px; }
.ih-country-card__ar { font-family: var(--font-ar); font-size: 0.9375rem; color: var(--ih-gold); direction: rtl; margin-bottom: 4px; }
.ih-country-card__name { font-weight: 700; color: var(--ih-white); font-size: 1.125rem; margin-bottom: 10px; }
.ih-country-card__stats { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--ih-muted); }
.ih-country-card__desc { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; }

.ih-modern__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
  background: var(--ih-surface);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-xl);
  text-align: center;
}
@media (max-width: 768px) { .ih-modern__stats { grid-template-columns: repeat(2, 1fr); } }
.ih-modern__stat .num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ih-gold);
}
.ih-modern__stat .lbl { font-size: 0.8125rem; color: var(--ih-muted); margin-top: 4px; display: block; }

/* ══════════════════════════════════════════════
   AI ASSISTANT WIDGET
══════════════════════════════════════════════ */
.ih-assistant__launch {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ih-green);
  border: 2px solid var(--ih-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-gold);
  box-shadow: 0 6px 28px rgba(27,77,62,0.5);
  transition: all var(--dur) var(--ease);
}
.ih-assistant__launch:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 36px rgba(201,168,76,0.3); }
.ih-assistant__launch::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--ih-gold);
  opacity: 0.4;
  animation: assistantPulse 2.5s ease-out infinite;
}
@keyframes assistantPulse { 0%{transform:scale(1);opacity:.4} 70%{transform:scale(1.4);opacity:0} 100%{opacity:0} }

.ih-assistant__greet {
  position: fixed;
  bottom: 38px;
  right: 100px;
  z-index: 800;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  color: var(--ih-text);
  font-size: 0.8125rem;
  padding: 10px 16px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  max-width: 220px;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--dur) var(--ease);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.ih-assistant__greet.show { opacity: 1; transform: translateX(0); pointer-events: auto; }
.ih-assistant__greet strong { color: var(--ih-gold); display: block; margin-bottom: 2px; }

.ih-assistant__panel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 801;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 56px);
  background: var(--ih-surface);
  border: 1px solid var(--ih-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.ih-assistant__panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ih-assistant__head {
  background: linear-gradient(135deg, var(--ih-green) 0%, #0d2a1f 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ih-assistant__ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1.5px solid var(--ih-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ih-assistant__info { flex: 1; }
.ih-assistant__name { font-weight: 700; font-size: 0.9375rem; color: #fff; }
.ih-assistant__status { font-size: 0.6875rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ih-assistant__status .dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 6px rgba(46,204,113,0.7); }
.ih-assistant__close { color: rgba(255,255,255,0.6); font-size: 1.1rem; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all var(--dur); }
.ih-assistant__close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.ih-assistant__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ih-surface-2);
  scroll-behavior: smooth;
}
.ih-assistant__body::-webkit-scrollbar { width: 4px; }
.ih-assistant__body::-webkit-scrollbar-thumb { background: var(--ih-border); border-radius: 2px; }

.ih-msg {
  max-width: 85%;
  padding: 11px 15px;
  font-size: 0.875rem;
  line-height: 1.6;
  border-radius: 16px;
  animation: msgIn 0.3s var(--ease);
}
@keyframes msgIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.ih-msg--bot { background: var(--ih-surface-3); color: var(--ih-text); margin-right: auto; border-bottom-left-radius: 4px; }
.ih-msg--user { background: var(--ih-gold); color: #0B1622; margin-left: auto; border-bottom-right-radius: 4px; font-weight: 500; }

.ih-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ih-chip { padding: 6px 14px; border-radius: var(--r-full); background: var(--ih-surface); border: 1px solid var(--ih-border); color: var(--ih-gold); font-size: 0.8125rem; font-weight: 600; transition: all var(--dur); }
.ih-chip:hover { background: rgba(201,168,76,0.1); }

.ih-assistant__footer {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--ih-border-2);
  background: var(--ih-surface);
  flex-shrink: 0;
}
.ih-assistant__input {
  flex: 1;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-full);
  padding: 10px 18px;
  color: var(--ih-text);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur);
}
.ih-assistant__input:focus { border-color: var(--ih-gold); }
.ih-assistant__input::placeholder { color: var(--ih-muted-2); }
.ih-assistant__send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ih-gold);
  color: #0B1622;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur);
}
.ih-assistant__send:hover { background: var(--ih-gold-2); transform: scale(1.05); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.ih-footer {
  background: var(--ih-surface);
  border-top: 1px solid var(--ih-border);
  padding: 72px 0 0;
}
.ih-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ih-border-2);
}
@media (max-width: 960px) { .ih-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 600px) { .ih-footer__grid { grid-template-columns: 1fr; } }

.ih-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.ih-footer__brand-text { display: flex; flex-direction: column; gap: 2px; }
.ih-footer__brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--ih-white); }
.ih-footer__brand-ar { font-family: var(--font-ar); font-size: 0.875rem; color: var(--ih-gold); direction: rtl; }
.ih-footer__tagline { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; max-width: 280px; }
.ih-footer__tagline-ar { font-family: var(--font-ar); font-size: 0.9375rem; color: var(--ih-muted); direction: rtl; }

.ih-footer__col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ih-gold); margin-bottom: 16px; }
.ih-footer__links { display: flex; flex-direction: column; gap: 10px; }
.ih-footer__links a { font-size: 0.875rem; color: var(--ih-muted); transition: color var(--dur); }
.ih-footer__links a:hover { color: var(--ih-white); }

.ih-footer__verse { }
.ih-footer__verse-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ih-green-3); margin-bottom: 16px; }
.ih-footer__verse-ar { font-family: var(--font-quran); font-size: 1.5rem; color: var(--ih-white); direction: rtl; line-height: 1.9; margin-bottom: 10px; }
.ih-footer__verse-en { font-family: var(--font-heading); font-style: italic; font-size: 0.9375rem; color: var(--ih-muted); line-height: 1.6; }

.ih-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.ih-footer__copy { font-size: 0.8125rem; color: var(--ih-muted-2); }
.ih-footer__credit { margin-inline-start: 6px; }
.ih-footer__credit a { color: var(--ih-gold); font-weight: 700; transition: color var(--dur); }
.ih-footer__credit a:hover { color: var(--ih-white); }
.ih-footer__bottom-links { display: flex; gap: 20px; }
.ih-footer__bottom-links a { font-size: 0.8125rem; color: var(--ih-muted-2); transition: color var(--dur); }
.ih-footer__bottom-links a:hover { color: var(--ih-gold); }

/* ══════════════════════════════════════════════
   PAGE INNER LAYOUT (non-homepage pages)
══════════════════════════════════════════════ */
.ih-page-hero {
  padding: 140px 0 64px;
  background: linear-gradient(180deg, var(--ih-surface) 0%, var(--ih-bg) 100%);
  border-bottom: 1px solid var(--ih-border);
  text-align: center;
}
.ih-page-hero__ar { font-family: var(--font-ar); font-size: 2rem; color: var(--ih-gold); direction: rtl; display: block; margin-bottom: 8px; }
.ih-page-hero__title { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--ih-white); margin-bottom: 16px; }
.ih-page-hero__desc { font-size: 1.0625rem; color: var(--ih-muted); max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* ══════════════════════════════════════════════
   WUDU / SALAH STEP CARDS
══════════════════════════════════════════════ */
.ih-wudu-steps { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.ih-wudu-step {
  display: grid;
  grid-template-columns: 44px 56px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 20px 22px;
  transition: all var(--dur) var(--ease);
}
.ih-wudu-step__illus {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  background: rgba(216,155,94,0.08);
  border: 1px solid var(--ih-border-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ih-wudu-step:hover { border-color: var(--ih-border); box-shadow: var(--shadow-sm); }
/* Real prayer-posture photos (silhouettes) shown in a clean white frame */
.ih-wudu-step__illus--photo { background: #fff; border-color: rgba(216,155,94,0.45); padding: 3px; }
.ih-salah-pose { max-height: 52px; max-width: 52px; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 768px) { .ih-salah-pose { max-height: 42px; max-width: 42px; } }
.ih-wudu-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 2px solid var(--ih-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ih-gold);
  flex-shrink: 0;
}
.ih-wudu-step__content h3 { font-weight: 700; color: var(--ih-white); margin-bottom: 4px; }
.ih-wudu-step__content p { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.6; }
.ih-wudu-step__ar { font-family: var(--font-ar); font-size: 1rem; color: var(--ih-gold); direction: rtl; text-align: right; }
.ih-wudu-step__img {
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid var(--ih-border-2);
  background: var(--ih-surface-2);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   EMPIRE MAP PAGE
══════════════════════════════════════════════ */
.ih-empire-hero {
  height: 480px;
  background: var(--ih-surface-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ih-border);
}
#empireMap { height: 100%; width: 100%; }

.ih-empire-timeline { position: relative; padding-left: 32px; }
.ih-empire-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ih-gold), transparent);
}
.ih-empire-entry {
  position: relative;
  margin-bottom: 56px;
  padding-left: 24px;
}
.ih-empire-entry::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--empire-color, var(--ih-gold));
  border: 3px solid var(--ih-bg);
  box-shadow: 0 0 0 2px var(--empire-color, var(--ih-gold));
}
.ih-empire-entry__year { font-size: 0.75rem; font-weight: 700; color: var(--empire-color, var(--ih-gold)); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.ih-empire-entry__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--ih-white); margin-bottom: 4px; }
.ih-empire-entry__ar { font-family: var(--font-ar); font-size: 1rem; color: var(--ih-gold); direction: rtl; margin-bottom: 12px; }
.ih-empire-entry__body { font-size: 0.9375rem; color: var(--ih-muted); line-height: 1.8; max-width: 660px; }
.ih-empire-entry__achievements { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ih-empire-entry__grid { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .ih-empire-entry__grid { grid-template-columns: 1fr; } }
.ih-empire-entry__mapwrap { position: sticky; top: 90px; }
@media (max-width: 860px) { .ih-empire-entry__mapwrap { position: static; } }
.ih-empire-minimap {
  width: 100%; height: 200px;
  border-radius: var(--r-lg);
  border: 1px solid var(--empire-color, var(--ih-border));
  overflow: hidden; background: var(--ih-surface-2);
}
.ih-empire-minimap__cap { display: block; text-align: center; font-size: 0.6875rem; color: var(--ih-muted-2); margin-top: 8px; letter-spacing: 0.04em; }
.ih-empire-facts { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ih-border-2); }
.ih-empire-fact { font-size: 0.8125rem; color: var(--ih-muted); }
.ih-empire-fact strong { color: var(--empire-color, var(--ih-gold)); font-weight: 600; }

/* Clickable cue on the big overview map regions */
.ih-empire-rect { cursor: pointer; transition: fill-opacity .2s ease; }
#empireMap { cursor: default; }

/* List page: minimap is a link to the dedicated page */
.ih-empire-minimap-link { display: block; position: relative; }
.ih-empire-minimap-link::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 0 var(--empire-color, var(--ih-gold));
  transition: box-shadow .2s ease;
  pointer-events: none;
}
.ih-empire-minimap-link:hover::after { box-shadow: inset 0 0 0 2px var(--empire-color, var(--ih-gold)); }
.ih-empire-entry__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8125rem;
  color: var(--empire-color, var(--ih-gold));
  text-decoration: none;
  padding: 8px 14px; border-radius: var(--r-full);
  border: 1px solid var(--empire-color, var(--ih-border-2));
  background: color-mix(in srgb, var(--empire-color, #C9A84C) 8%, transparent);
  transition: background .2s ease, transform .2s ease;
}
.ih-empire-entry__more:hover { background: color-mix(in srgb, var(--empire-color, #C9A84C) 18%, transparent); transform: translateX(2px); }
.ih-empire-entry__more svg { transition: transform .2s ease; }
html[dir="rtl"] .ih-empire-entry__more svg { transform: scaleX(-1); }

/* ── SINGLE-EMPIRE PAGE ── */
.ih-empire-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  color: var(--ih-muted); text-decoration: none; margin-bottom: 18px;
  transition: color .2s ease;
}
.ih-empire-back:hover { color: var(--empire-color, var(--ih-gold)); }
html[dir="rtl"] .ih-empire-back svg { transform: scaleX(-1); }
.ih-empire-single { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .ih-empire-single { grid-template-columns: 1fr; gap: 28px; } }
.ih-empire-single__map { position: sticky; top: 96px; }
@media (max-width: 900px) { .ih-empire-single__map { position: static; } }
#empireSoloMap {
  width: 100%; height: 420px;
  border-radius: var(--r-xl);
  border: 1px solid var(--empire-color, var(--ih-border));
  overflow: hidden; background: var(--ih-surface-2);
}
@media (max-width: 640px) { #empireSoloMap { height: 320px; } }
.ih-empire-single__body { font-size: 1rem; color: var(--ih-muted); line-height: 1.9; }
.ih-empire-single__body p { margin-bottom: 16px; }

.ih-empire-othernav { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--ih-border-2); }
.ih-empire-othernav__title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--ih-white); margin-bottom: 18px; text-align: center; }
.ih-empire-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ih-empire-chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 18px; min-width: 150px;
  border-radius: var(--r-lg);
  border: 1px solid var(--ih-border-2);
  border-top: 3px solid var(--empire-color, var(--ih-gold));
  background: var(--ih-surface);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ih-empire-chip:hover { transform: translateY(-3px); border-color: var(--empire-color, var(--ih-gold)); box-shadow: var(--shadow-sm); }
.ih-empire-chip__ar { font-family: var(--font-ar-brand); font-size: 1.15rem; color: var(--ih-white); }
.ih-empire-chip__en { font-family: var(--font-heading); font-size: 0.8125rem; color: var(--empire-color, var(--ih-gold)); }

.leaflet-container { background: var(--ih-surface-2); font-family: var(--font-body); }

/* ══════════════════════════════════════════════
   PAGE BACKGROUND, faint Islamic geometric pattern
   Applied to pages tagged with body.ih-geo-bg (see ih_body_classes).
   Sits behind all content at low opacity so text stays crisp.
══════════════════════════════════════════════ */
.ih-geo-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--ih-bg);
  background-image: url('../images/pattern-geo.svg');
  background-size: 90px 90px;
  background-repeat: repeat;
  opacity: 0.16;
  /* softly fade the pattern toward the centre so it never fights the reading column */
  -webkit-mask-image: radial-gradient(120% 90% at 50% 12%, #000 0%, #000 38%, rgba(0,0,0,0.45) 100%);
          mask-image: radial-gradient(120% 90% at 50% 12%, #000 0%, #000 38%, rgba(0,0,0,0.45) 100%);
}
/* Light theme: same pattern reads better a touch stronger */
html[data-theme="light"] .ih-geo-bg::before { opacity: 0.10; }
@media (max-width: 640px) { .ih-geo-bg::before { background-size: 72px 72px; opacity: 0.12; } }

/* ══════════════════════════════════════════════
   DUA HERO, dynamic "cupped hands receiving light" scene
══════════════════════════════════════════════ */
.ih-page-hero--dua { position: relative; overflow: hidden; min-height: 560px; }
.ih-page-hero--dua .ih-container { position: relative; z-index: 2; }
.ih-dua-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ih-dhb__glow {
  position: absolute; left: 50%; top: 6%; width: min(900px, 92%); height: 58%;
  background: radial-gradient(ellipse at center, rgba(239,196,137,0.18) 0%, rgba(47,216,176,0.09) 35%, transparent 70%);
  filter: blur(8px);
  animation: ih-dhb-breathe 6s ease-in-out infinite;
}
.ih-dhb__rays {
  position: absolute; left: 50%; top: -12%; width: 1200px; height: 900px; transform-origin: 50% 0;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(239,196,137,0.06) 6deg, transparent 12deg, transparent 18deg, rgba(47,216,176,0.045) 24deg, transparent 30deg);
  mix-blend-mode: screen; opacity: 0.6;
  animation: ih-dhb-spin 70s linear infinite;
}
/* soft pool of light the hands rest on (replaces the green field of the source image) */
.ih-dhb__pool {
  position: absolute; left: 50%; bottom: 0; width: clamp(420px, 56vw, 640px); height: 72%;
  background: radial-gradient(ellipse 60% 60% at 50% 80%, rgba(47,216,176,0.22) 0%, rgba(21,179,145,0.12) 38%, transparent 70%);
  animation: ih-dhb-breathe 6.5s ease-in-out infinite;
}
.ih-dhb__orb {
  position: absolute; left: 50%; bottom: 300px; width: 78px; height: 78px;
  background: radial-gradient(circle, rgba(255,244,224,0.82) 0%, rgba(239,196,137,0.44) 32%, rgba(47,216,176,0.13) 58%, transparent 74%);
  border-radius: 50%;
  animation: ih-dhb-orb 4.5s ease-in-out infinite;
}
.ih-dhb__hands {
  position: absolute; left: 50%; bottom: -4px; width: clamp(210px, 30vw, 320px); height: auto;
  filter: drop-shadow(0 0 22px rgba(47,216,176,0.45)) drop-shadow(0 0 40px rgba(239,196,137,0.2));
  animation: ih-dhb-lift 7s ease-in-out infinite;
}
.ih-dhb__p {
  position: absolute; bottom: 150px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, var(--ih-copper-2), rgba(239,196,137,0));
  opacity: 0; animation: ih-dhb-rise 5.5s ease-in infinite;
}
@keyframes ih-dhb-breathe { 0%,100% { opacity: .7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
.ih-dhb__glow { transform: translateX(-50%); }
@keyframes ih-dhb-spin { from { transform: translateX(-50%) rotate(0); } to { transform: translateX(-50%) rotate(360deg); } }
.ih-dhb__rays { transform: translateX(-50%); }
@keyframes ih-dhb-orb { 0%,100% { opacity: .55; transform: translateX(-50%) scale(.92); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
.ih-dhb__orb { transform: translateX(-50%); }
@keyframes ih-dhb-lift { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-9px); } }
.ih-dhb__hands { transform: translateX(-50%); }
.ih-dhb__pool { transform: translateX(-50%); }
@keyframes ih-dhb-rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 70% { opacity: .7; } 100% { opacity: 0; transform: translateY(-210px) scale(1.1); } }
@media (max-width: 640px) {
  .ih-page-hero--dua { min-height: 480px; }
  .ih-dhb__orb { bottom: 250px; }
  .ih-dhb__p { bottom: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-dhb__glow, .ih-dhb__rays, .ih-dhb__pool, .ih-dhb__orb, .ih-dhb__hands, .ih-dhb__p { animation: none !important; }
  .ih-dhb__p { opacity: .5; }
}

/* ══════════════════════════════════════════════
   EMPIRES HERO, cinematic shield + crossed swords
══════════════════════════════════════════════ */
.ih-page-hero--empires {
  position: relative; overflow: hidden; min-height: 600px;
  background: radial-gradient(ellipse at 50% 30%, #0d3a30 0%, var(--ih-bg) 70%);
}
.ih-page-hero--empires .ih-container { position: relative; z-index: 2; }
.ih-page-hero--empires .ih-page-hero__ar { color: var(--ih-copper-2); text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.ih-page-hero--empires .ih-page-hero__title { text-shadow: 0 3px 22px rgba(0,0,0,.85), 0 0 40px rgba(0,0,0,.55); }
.ih-page-hero--empires .ih-page-hero__desc { color: #cfe0da; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.ih-emp-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; perspective: 1300px; }
.ih-emp__glow {
  position: absolute; left: 50%; top: 14%; width: min(820px, 92%); height: 360px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(180,200,210,.10) 0%, rgba(47,216,176,.05) 40%, transparent 72%);
  filter: blur(8px);
}
/* Each side = a 3D unit: crossed swords (animated) behind a steel shield. */
.ih-emp__unit {
  position: absolute; top: 50%; width: clamp(260px, 33vw, 430px);
  transform-style: preserve-3d;
}
.ih-emp__unit .ih-emp__shield {
  position: relative; display: block; width: 100%; height: auto; opacity: .62;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.45));
}
.ih-emp__swords {
  position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%;
  animation: ih-emp-reveal 4s ease-in-out infinite;
}
.ih-emp__sword {
  position: absolute; inset: 0; transform-origin: 50% 50%;
}
.ih-emp__sword svg { width: 100%; height: 100%; display: block; }
.ih-emp__sword--a { animation: ih-emp-spin-a 4s ease-in-out infinite; }
.ih-emp__sword--b { animation: ih-emp-spin-b 4s ease-in-out infinite; }
.ih-emp__unit--l { left: 4%;  transform: translateY(-50%) rotate(-8deg); animation: ih-emp-sway-l 7.5s ease-in-out infinite; }
.ih-emp__unit--r { right: 4%; transform: translateY(-50%) rotate(8deg);  animation: ih-emp-sway-r 7.5s ease-in-out infinite; }
.ih-emp__sheen { animation: ih-emp-sheen 5s ease-in-out infinite; }
.ih-emp__ember {
  position: absolute; bottom: 60px; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, #cfd6da, rgba(207,214,218,0));
  opacity: 0; animation: ih-emp-ember 7s ease-in infinite;
}
@keyframes ih-emp-sway-l { 0%,100% { transform: translateY(-50%) rotate(-8deg); } 50% { transform: translateY(-54%) rotate(-6.5deg); } }
@keyframes ih-emp-sway-r { 0%,100% { transform: translateY(-50%) rotate(8deg); } 50% { transform: translateY(-54%) rotate(6.5deg); } }
/* swords draw out, tumble once around themselves + each other, then sheathe behind */
@keyframes ih-emp-reveal {
  0%, 16%   { transform: translateY(0)     translateZ(-18px) rotate(0deg)   scale(1); }
  32%       { transform: translateY(-34px) translateZ(110px) rotate(0deg)   scale(1.08); }
  70%       { transform: translateY(-34px) translateZ(110px) rotate(360deg) scale(1.08); }
  86%, 100% { transform: translateY(0)     translateZ(-18px) rotate(360deg) scale(1); }
}
@keyframes ih-emp-spin-a {
  0%, 32% { transform: rotate(40deg)  rotateY(0deg); }
  70%     { transform: rotate(40deg)  rotateY(360deg); }
  100%    { transform: rotate(40deg)  rotateY(360deg); }
}
@keyframes ih-emp-spin-b {
  0%, 32% { transform: rotate(-40deg) rotateY(0deg); }
  70%     { transform: rotate(-40deg) rotateY(-360deg); }
  100%    { transform: rotate(-40deg) rotateY(-360deg); }
}
@keyframes ih-emp-sheen { 0% { transform: translateX(-160px) skewX(-16deg); } 60% { transform: translateX(160px) skewX(-16deg); } 100% { transform: translateX(160px) skewX(-16deg); } }
@keyframes ih-emp-ember { 0% { opacity: 0; transform: translateY(0) scale(.6); } 12% { opacity: .9; } 75% { opacity: .6; } 100% { opacity: 0; transform: translateY(-280px) scale(1.15); } }
@media (max-width: 760px) {
  .ih-page-hero--empires { min-height: 460px; }
  .ih-emp__unit { width: 210px; }
  .ih-emp__unit .ih-emp__shield { opacity: .4; }
  .ih-emp__unit--l { left: -7%; } .ih-emp__unit--r { right: -7%; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-emp__unit--l, .ih-emp__unit--r, .ih-emp__sheen, .ih-emp__ember,
  .ih-emp__swords, .ih-emp__sword--a, .ih-emp__sword--b { animation: none !important; }
  .ih-emp__sword--a { transform: rotate(40deg); }
  .ih-emp__sword--b { transform: rotate(-40deg); }
}

/* ══════════════════════════════════════════════
   SALAH HERO, two worshippers cycling sitting <-> sujood (3s each)
══════════════════════════════════════════════ */
.ih-page-hero--salah { position: relative; overflow: hidden; min-height: 600px; }
.ih-page-hero--salah .ih-container { position: relative; z-index: 2; }
.ih-sal-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ih-sal__glow {
  position: absolute; left: 50%; top: 4%; width: min(760px, 92%); height: 440px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center top, rgba(239,196,137,.20) 0%, rgba(47,216,176,.09) 38%, transparent 72%);
  filter: blur(8px); animation: ih-sal-breathe 6s ease-in-out infinite;
}
.ih-sal__beam {
  position: absolute; left: 50%; top: -6%; width: 360px; height: 480px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(239,196,137,.16) 0%, rgba(239,196,137,.04) 55%, transparent 100%);
  clip-path: polygon(38% 0, 62% 0, 82% 100%, 18% 100%); filter: blur(3px);
  animation: ih-sal-beam 7s ease-in-out infinite;
}
.ih-sal__pool {
  position: absolute; left: 50%; bottom: 60px; width: clamp(420px, 56vw, 660px); height: 170px; transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(47,216,176,.16) 0%, transparent 70%);
}
.ih-sal__mat { position: absolute; left: 50%; bottom: 54px; width: clamp(420px, 56vw, 680px); transform: translateX(-50%); }
.ih-sal__figure { position: absolute; bottom: 96px; height: 210px; width: 180px; }
.ih-sal__figure--l { left: calc(50% - 150px); transform: translateX(-50%); }
.ih-sal__figure--r { left: calc(50% + 150px); transform: translateX(-50%); }
.ih-sal__figure::before {
  content: ''; position: absolute; left: 50%; bottom: 10px; width: 200px; height: 200px; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 55%, rgba(47,216,176,.18) 0%, rgba(239,196,137,.08) 40%, transparent 68%);
}
.ih-sal__figure img {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  filter: drop-shadow(0 0 12px rgba(47,216,176,.6)) drop-shadow(0 0 28px rgba(239,196,137,.28));
}
.ih-sal__sit { width: 132px; animation: ih-sal-sit 6s ease-in-out infinite; }
.ih-sal__suj { width: 170px; animation: ih-sal-suj 6s ease-in-out infinite; }
@keyframes ih-sal-breathe { 0%,100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
@keyframes ih-sal-beam { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes ih-sal-sit { 0% { opacity: 1; } 44% { opacity: 1; } 50% { opacity: 0; } 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ih-sal-suj { 0% { opacity: 0; } 44% { opacity: 0; } 50% { opacity: 1; } 94% { opacity: 1; } 100% { opacity: 0; } }
.ih-sal__ember {
  position: absolute; bottom: 150px; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, var(--ih-copper-2), rgba(239,196,137,0));
  opacity: 0; animation: ih-sal-ember 6s ease-in infinite;
}
@keyframes ih-sal-ember { 0% { opacity: 0; transform: translateY(0) scale(.6); } 14% { opacity: 1; } 75% { opacity: .6; } 100% { opacity: 0; transform: translateY(-230px) scale(1.1); } }
@media (max-width: 760px) {
  .ih-page-hero--salah { min-height: 500px; }
  .ih-sal__figure--l { left: calc(50% - 110px); }
  .ih-sal__figure--r { left: calc(50% + 110px); }
  .ih-sal__sit { width: 104px; } .ih-sal__suj { width: 134px; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-sal__glow, .ih-sal__beam, .ih-sal__ember { animation: none !important; }
  .ih-sal__sit { animation: none !important; opacity: 1; }
  .ih-sal__suj { animation: none !important; opacity: 0; }
}

/* ══════════════════════════════════════════════
   LIVE PRAYER TIMES, auto-detected from visitor location
   ══════════════════════════════════════════════ */
.ih-ptimes-section { padding-top: 48px; padding-bottom: 0; }
.ih-ptimes {
  position: relative;
  background: linear-gradient(150deg, var(--ih-jade-deep) 0%, var(--ih-surface-2) 55%, var(--ih-surface) 100%);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-2xl, 28px);
  padding: 30px 30px 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.55);
}
.ih-ptimes::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 85% -10%, rgba(47,216,176,.16), transparent 55%);
}
.ih-ptimes > * { position: relative; z-index: 1; }
.ih-ptimes__head {
  display: flex; flex-wrap: wrap; gap: 18px 24px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px;
}
.ih-ptimes__loc {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-ar-brand);
  font-size: 1.7rem; line-height: 1.2; color: var(--ih-white); margin: 4px 0 4px;
}
.ih-ptimes__pin { width: 22px; height: 22px; color: var(--ih-jade-2); flex: none; }
.ih-ptimes__date { font-size: .85rem; color: var(--ih-muted); }
.ih-ptimes__next {
  text-align: center; min-width: 168px;
  background: rgba(0,0,0,.22); border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl); padding: 12px 18px;
}
.ih-ptimes__next-lbl { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ih-muted-2); }
.ih-ptimes__next-name { display: block; font-size: 1.15rem; color: var(--ih-gold); margin: 3px 0 4px; }
.ih-ptimes__next-name .ih-ar { font-family: var(--font-ar-brand); }
.ih-ptimes__count {
  display: block; font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  font-size: 1.45rem; font-weight: 700; color: var(--ih-white); letter-spacing: .04em;
}
.ih-ptimes__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.ih-ptime {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--ih-surface-2); border: 1px solid var(--ih-border-2);
  border-radius: var(--r-lg); padding: 16px 10px 14px;
  text-align: center; transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.ih-ptime__ic { width: 26px; height: 26px; color: var(--ih-jade-2); }
.ih-ptime__ic svg { width: 100%; height: 100%; }
.ih-ptime__nm { font-size: .78rem; color: var(--ih-muted); font-weight: 600; }
.ih-ptime__nm .ih-ar { font-family: var(--font-ar-brand); font-size: .95rem; }
.ih-ptime__t { font-size: .92rem; color: var(--ih-white); font-weight: 700; font-variant-numeric: tabular-nums; }
.ih-ptime--plain { opacity: .82; }
.ih-ptime--plain .ih-ptime__ic { color: var(--ih-copper-2); }
.ih-ptime--skel { color: var(--ih-muted-2); }
.ih-ptime.is-next {
  background: linear-gradient(160deg, rgba(47,216,176,.18), rgba(47,216,176,.04));
  border-color: var(--ih-jade); transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(47,216,176,.6);
}
.ih-ptime.is-next .ih-ptime__ic,
.ih-ptime.is-next .ih-ptime__t { color: var(--ih-jade-2); }
.ih-ptime.is-next .ih-ptime__nm { color: var(--ih-white); }
.ih-ptimes__note {
  margin-top: 18px; font-size: .78rem; color: var(--ih-muted-2); line-height: 1.6; text-align: center;
}
@media (max-width: 880px) {
  .ih-ptimes__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .ih-ptimes { padding: 24px 18px 22px; border-radius: var(--r-xl); }
  .ih-ptimes__head { gap: 14px; }
  .ih-ptimes__next { min-width: 0; width: 100%; }
  .ih-ptimes__loc { font-size: 1.4rem; }
}
@media (max-width: 460px) {
  .ih-ptimes__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════
   QURAN HERO, two open Qurans glowing with nour (left + right)
══════════════════════════════════════════════ */
.ih-page-hero--quran {
  position: relative; overflow: hidden; min-height: 560px;
  background: radial-gradient(ellipse at 50% 38%, #0d3a30 0%, var(--ih-bg) 72%);
}
.ih-page-hero--quran .ih-container { position: relative; z-index: 2; }
.ih-page-hero--quran .ih-page-hero__title { text-shadow: 0 3px 20px rgba(0,0,0,0.6); }
.ih-qrn-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ih-qrn__side {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(220px, 27vw, 360px); height: clamp(220px, 27vw, 360px);
  display: flex; align-items: center; justify-content: center;
}
.ih-qrn__side--l { left: 3%; }
.ih-qrn__side--r { right: 3%; }
.ih-qrn__nour, .ih-qrn__rays {
  position: absolute; left: 50%; top: 50%; width: 150%; height: 150%; border-radius: 50%;
}
.ih-qrn__nour {
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(239,196,137,0.34) 0%, rgba(255,240,210,0.18) 24%, rgba(47,216,176,0.08) 46%, transparent 68%);
  filter: blur(6px); animation: ih-qrn-pulse 5s ease-in-out infinite;
}
.ih-qrn__rays {
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(255,244,224,0.12) 0deg, transparent 7deg, transparent 20deg, rgba(239,196,137,0.08) 27deg, transparent 34deg, transparent 50deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 66%); mask: radial-gradient(circle, #000 30%, transparent 66%);
  mix-blend-mode: screen; opacity: 0.8; animation: ih-qrn-spin 80s linear infinite;
}
.ih-qrn__book { position: relative; width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.4)); }
.ih-qrn__side--l .ih-qrn__book { animation: ih-qrn-float-l 6.5s ease-in-out infinite; }
.ih-qrn__side--r .ih-qrn__book { animation: ih-qrn-float-r 6.5s ease-in-out infinite; }
@keyframes ih-qrn-pulse { 0%,100% { opacity: .8; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.05); } }
@keyframes ih-qrn-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes ih-qrn-float-l { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(-5deg); } }
@keyframes ih-qrn-float-r { 0%,100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(-10px) rotate(5deg); } }
/* Turning page: a leaf lifts from the right and sweeps over to the left, on a loop */
.ih-qrn__flip {
  transform-box: view-box;
  transform-origin: 160px 119px;
  animation: ih-qrn-pageturn 1.5s ease-in-out infinite;
  will-change: transform, opacity, filter;
}
@keyframes ih-qrn-pageturn {
  0%   { transform: scaleX(1);    opacity: 0; filter: brightness(1); }
  6%   { transform: scaleX(1);    opacity: 1; filter: brightness(1); }
  20%  { transform: scaleX(1);    opacity: 1; filter: brightness(1); }
  50%  { transform: scaleX(0.05); opacity: 1; filter: brightness(0.78); }
  82%  { transform: scaleX(-1);   opacity: 1; filter: brightness(1); }
  90%  { transform: scaleX(-1);   opacity: 0; filter: brightness(1); }
  100% { transform: scaleX(-1);   opacity: 0; filter: brightness(1); }
}
@media (max-width: 760px) {
  .ih-page-hero--quran { min-height: 460px; }
  .ih-qrn__side { width: 165px; height: 165px; }
  .ih-qrn__side--l { left: -4%; } .ih-qrn__side--r { right: -4%; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-qrn__nour, .ih-qrn__rays { animation: none !important; }
  .ih-qrn__side--l .ih-qrn__book { animation: none !important; transform: rotate(-6deg); }
  .ih-qrn__side--r .ih-qrn__book { animation: none !important; transform: rotate(6deg); }
  .ih-qrn__flip { animation: none !important; opacity: 0 !important; }
}

/* Islamic World Map (homepage) */
.ih-worldmap-sec { background: linear-gradient(180deg, var(--ih-bg) 0%, var(--ih-surface) 100%); }
.ih-worldmap {
  height: 520px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--ih-border);
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--ih-surface-2);
}
#ihWorldMap { height: 100%; width: 100%; }
.ih-worldmap__legend { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.ih-worldmap__stat { font-family: var(--font-heading); font-size: 1.05rem; color: var(--ih-muted); font-weight: 600; }
.ih-worldmap__stat span { font-size: 1.7rem; color: var(--ih-gold); font-weight: 700; }
.ih-worldmap__legend .ih-link-arrow { margin-top: 0; }
.ih-map-pop .leaflet-popup-content-wrapper { background: var(--ih-surface-2); color: var(--ih-text); border: 1px solid var(--ih-border); border-radius: 12px; box-shadow: var(--shadow-md); }
.ih-map-pop .leaflet-popup-content { font-size: 0.85rem; line-height: 1.5; margin: 12px 16px; }
.ih-map-pop .leaflet-popup-tip { background: var(--ih-surface-2); border: 1px solid var(--ih-border); }
.leaflet-popup-close-button { color: var(--ih-muted) !important; }
@media (max-width: 640px) { .ih-worldmap { height: 380px; } }
.ih-empire-entry__ach {
  padding: 6px 14px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  color: var(--ih-text);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .ih-hero__btns { flex-direction: column; }
  .ih-hero__stats { gap: 16px; }
  .ih-hero__stat-divider { display: none; }
  .ih-prayer-bar__next { display: none; }
  .ih-wudu-step { grid-template-columns: 38px 46px 1fr; gap: 12px; padding: 16px; }
  .ih-wudu-step__illus { width: 46px; height: 46px; }
  .ih-wudu-step__illus svg { width: 30px; height: 30px; }
  .ih-empires-scroll { padding: 12px 24px 24px; }
  .ih-become__steps { flex-direction: column; }
  .ih-become__step-arrow { transform: rotate(90deg); }
}

/* ══════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════ */
@media print {
  .ih-nav, .ih-assistant, .ih-prayer-bar { display: none; }
  body { background: white; color: black; }
  .ih-section-title, .ih-hero__h1-en { color: black; }
}

/* ══════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--ih-gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ih-hero__aurora, .ih-hero__h1-en { animation: none; }
}

/* ══════════════════════════════════════════════
   LOGO SUB + PRAYER NAME ORDER
══════════════════════════════════════════════ */
.ih-logo-sub {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ih-copper);
}
html[lang="ar"] .ih-logo-sub { font-family: var(--font-ar); letter-spacing: 0; }
.ih-prayer__name small { margin-bottom: 2px; }

/* ══════════════════════════════════════════════
   RTL ADJUSTMENTS
══════════════════════════════════════════════ */
html[dir="rtl"] .ih-section-label { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .ih-section-label--c { justify-content: center; }
html[dir="rtl"] .ih-link-arrow svg,
html[dir="rtl"] .ih-btn svg.arrow,
html[dir="rtl"] .ih-empire-card__link svg { transform: scaleX(-1); }
html[dir="rtl"] .ih-prophet__quote { border-right: none; border-left: 4px solid var(--ih-copper); }
html[dir="rtl"] .ih-become__step-arrow { transform: scaleX(-1); }
html[dir="rtl"] .ih-hero__stat { text-align: right; }

/* ══════════════════════════════════════════════
   MOBILE-FIRST REFINEMENTS
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ih-prayer-bar { top: 56px; }
}
@media (max-width: 768px) {
  .ih-section { padding: 56px 0; }
  .ih-hero { min-height: auto; align-items: flex-start; }
  .ih-hero__content { padding-top: 124px; padding-bottom: 64px; }
  .ih-hero__bismillah { font-size: 1.35rem; margin-bottom: 20px; }
  .ih-section-title { font-size: 1.75rem; }
  .ih-prayer-bar__inner { gap: 12px; }
  .ih-prayer-bar__label { width: 100%; justify-content: center; font-size: 0.75rem; }
  .ih-prayer { min-width: 64px; padding: 6px 10px; }
  .ih-prayer__time { font-size: 0.875rem; }
  .ih-quran-daily__card { padding: 36px 22px; }
  .ih-quran-daily__ar { font-size: 1.375rem; }
  .ih-prophet__quote { padding: 24px; }
  .ih-footer { padding-top: 48px; }
  .ih-footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .ih-container { padding: 0 18px; }
  .ih-hero__btns { flex-direction: column; align-items: stretch; }
  .ih-hero__btns .ih-btn { justify-content: center; }
  .ih-hero__stats { gap: 14px; justify-content: space-between; width: 100%; }
  .ih-hero__stat-divider { display: none; }
  .ih-hero__stat-num { font-size: 1.375rem; }
  .ih-hero__stat-lbl { font-size: 0.6875rem; }
  .ih-prayer-bar__next { display: none; }
  .ih-prayer-bar__times { justify-content: flex-start; }
  .ih-section-label { font-size: 0.625rem; }
  .ih-assistant__launch { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .ih-assistant__panel { bottom: 0; right: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .ih-assistant__greet { display: none; }
  .ih-become__steps { flex-direction: column; align-items: stretch; }
  .ih-become__step { justify-content: center; }
  .ih-mod__stats, .ih-modern__stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .mob-nav__link { font-size: 1.05rem; }
}
@media (max-width: 380px) {
  .ih-hero__h1-ar { font-size: 2.25rem; }
  .ih-hero__stats { flex-wrap: wrap; }
}

/* Touch targets ≥ 44px */
.ih-nav__link, .ih-lang-btn, .ih-chip, .ih-footer__links a { min-height: 40px; display: inline-flex; align-items: center; }
@media (hover: none) {
  .ih-empire-card:hover, .ih-scholar-card:hover, .ih-prophet__card:hover { transform: none; }
}

/* ═══════════════════════════════════════════════
   FAZAKKIR · فذكر · reminders (mobile-first)
═══════════════════════════════════════════════ */
.ih-page-hero--zikr { position: relative; overflow: hidden; }
.ih-page-hero--zikr .ih-container { position: relative; z-index: 2; }
.ih-zikr-hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ih-zikr-hero__glow {
  position: absolute; width: 70vw; max-width: 620px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(21,179,145,0.20), rgba(216,155,94,0.07) 45%, transparent 70%);
  filter: blur(8px); animation: ihZikrGlow 7s var(--ease) infinite;
}
.ih-zikr-hero__word {
  font-family: var(--font-ar-brand); font-weight: 700;
  font-size: clamp(6rem, 34vw, 22rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(216,155,94,0.16);
  opacity: 0.5; user-select: none; white-space: nowrap;
}
@keyframes ihZikrGlow { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }

.ih-zikr-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px;
}
.ih-zikr {
  position: relative; display: flex; flex-direction: column;
  background: var(--ih-surface); border: 1px solid var(--ih-border-2);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ih-zikr__bar { height: 4px; background: var(--zk, var(--ih-jade)); flex-shrink: 0; }
.ih-zikr__body { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.ih-zikr__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ih-zikr__tag {
  font-family: var(--font-ar-brand); font-size: 1.15rem; color: var(--zk, var(--ih-jade));
  font-weight: 700; line-height: 1;
}
.ih-zikr__kind {
  font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ih-muted);
  border: 1px solid var(--ih-border); border-radius: var(--r-full); padding: 4px 11px;
}
.ih-zikr__title {
  font-family: var(--font-heading); font-size: 1.18rem; font-weight: 600;
  color: var(--ih-white); line-height: 1.35; margin: 0;
}
.ih-zikr__ar {
  font-family: var(--font-quran); direction: rtl; text-align: right;
  font-size: 1.4rem; line-height: 2.1; color: var(--ih-white);
  background: var(--ih-surface-2); border-inline-start: 3px solid var(--zk, var(--ih-jade));
  border-radius: var(--r-md); padding: 16px 18px; margin: 0;
}
.ih-zikr__en {
  font-family: var(--font-heading); font-style: italic; font-size: .95rem;
  color: var(--ih-text); line-height: 1.7; margin: 0;
}
.ih-zikr__ref {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  color: var(--zk, var(--ih-gold)); letter-spacing: .02em;
}
.ih-zikr__note {
  font-size: .9rem; color: var(--ih-muted); line-height: 1.75; margin: 0;
  padding-top: 12px; border-top: 1px dashed var(--ih-border);
}
.ih-zikr__note-mark { color: var(--zk, var(--ih-jade)); margin-inline-end: 4px; }
.ih-zikr-foot {
  text-align: center; max-width: 640px; margin: 48px auto 0; color: var(--ih-muted);
  font-family: var(--font-quran); font-size: 1.05rem; line-height: 2; direction: rtl;
}
.ih-zikr-foot .ih-en { font-family: var(--font-heading); font-style: italic; direction: ltr; }

/* hover lift only where a pointer exists */
@media (hover: hover) {
  .ih-zikr:hover { transform: translateY(-4px); border-color: var(--zk, var(--ih-jade)); box-shadow: var(--shadow-md); }
}

/* tablet / desktop columns */
@media (min-width: 600px) {
  .ih-zikr-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .ih-zikr__body { padding: 26px 24px 28px; }
}
@media (min-width: 1000px) {
  .ih-zikr-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ih-zikr-grid--preview { grid-template-columns: repeat(3, 1fr); }
  .ih-zikr__ar { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ih-zikr-hero__glow { animation: none; }
  .ih-zikr { transition: none; }
}

/* ═══════════════════════════════════════════════
   MUHARRAMAT · المحرمات · prohibitions (mobile-first)
═══════════════════════════════════════════════ */
.ih-page-hero--haram { position: relative; overflow: hidden; }
.ih-page-hero--haram .ih-container { position: relative; z-index: 2; }
.ih-haram-hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ih-haram-hero__glow {
  position: absolute; width: 72vw; max-width: 640px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,57,43,0.18), rgba(216,155,94,0.06) 48%, transparent 72%);
  filter: blur(8px); animation: ihZikrGlow 8s var(--ease) infinite;
}
.ih-haram-hero__word {
  font-family: var(--font-ar-brand); font-weight: 700;
  font-size: clamp(4.5rem, 26vw, 17rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(216,155,94,0.15);
  opacity: 0.5; user-select: none; white-space: nowrap;
}
.ih-haram-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px; }
.ih-haram {
  position: relative; display: flex; flex-direction: column;
  background: var(--ih-surface); border: 1px solid var(--ih-border-2);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ih-haram__bar { height: 4px; background: var(--hz, var(--ih-red)); flex-shrink: 0; }
.ih-haram__body { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.ih-haram__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ih-haram__cat {
  font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hz, var(--ih-red));
}
.ih-haram__ban {
  color: var(--hz, var(--ih-red)); display: inline-flex; opacity: .9; flex-shrink: 0;
}
.ih-haram__title {
  font-family: var(--font-heading); font-size: 1.22rem; font-weight: 700;
  color: var(--ih-white); line-height: 1.32; margin: 0;
}
.ih-haram__evidence {
  background: var(--ih-surface-2); border: 1px solid var(--ih-border);
  border-inline-start: 3px solid var(--hz, var(--ih-red));
  border-radius: var(--r-md); padding: 15px 16px; display: flex; flex-direction: column; gap: 9px;
}
.ih-haram__kind {
  align-self: flex-start;
  font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ih-muted);
  border: 1px solid var(--ih-border); border-radius: var(--r-full); padding: 3px 10px;
}
.ih-haram__ar {
  font-family: var(--font-quran); direction: rtl; text-align: right;
  font-size: 1.32rem; line-height: 2.05; color: var(--ih-white); margin: 0;
}
.ih-haram__en {
  font-family: var(--font-heading); font-style: italic; font-size: .92rem;
  color: var(--ih-text); line-height: 1.7; margin: 0;
}
.ih-haram__ref {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  color: var(--hz, var(--ih-gold)); letter-spacing: .02em;
}
.ih-haram__why { display: flex; flex-direction: column; gap: 6px; }
.ih-haram__why-label {
  font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ih-jade-2);
}
.ih-haram__why p { font-size: .9rem; color: var(--ih-muted); line-height: 1.75; margin: 0; }
.ih-haram-foot {
  text-align: center; max-width: 660px; margin: 48px auto 0; color: var(--ih-muted);
  font-family: var(--font-quran); font-size: 1.05rem; line-height: 2; direction: rtl;
}
.ih-haram-foot .ih-en { font-family: var(--font-heading); font-style: italic; direction: ltr; }

@media (hover: hover) {
  .ih-haram:hover { transform: translateY(-4px); border-color: var(--hz, var(--ih-red)); box-shadow: var(--shadow-md); }
}
@media (min-width: 600px) {
  .ih-haram-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .ih-haram__body { padding: 26px 24px 28px; }
}
@media (min-width: 1000px) {
  .ih-haram-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ih-haram-grid--preview { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ih-haram-hero__glow { animation: none; }
  .ih-haram { transition: none; }
}

/* ═══════════════════════════════════════════════
   ISLAM & SCIENCE · 3D rotating red tome with light + turning pages
═══════════════════════════════════════════════ */
.ih-page-hero--science {
  position: relative; overflow: hidden; min-height: 580px;
  background: radial-gradient(ellipse at 50% 42%, #2c1110 0%, var(--ih-bg) 70%);
}
.ih-page-hero--science .ih-container { position: relative; z-index: 2; }
.ih-page-hero--science .ih-page-hero__ar { color: var(--ih-copper-2); text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.ih-page-hero--science .ih-page-hero__title { text-shadow: 0 3px 22px rgba(0,0,0,.85), 0 0 36px rgba(0,0,0,.6); }
.ih-page-hero--science .ih-page-hero__desc { color: #e9d8c8; text-shadow: 0 2px 14px rgba(0,0,0,.85); }

.ih-sci-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px; overflow: hidden;
}
.ih-sci__glow {
  position: absolute; width: clamp(340px, 54vw, 640px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,210,150,.34) 0%, rgba(220,95,60,.16) 40%, transparent 70%);
  filter: blur(14px); animation: ihSciGlow 5s ease-in-out infinite;
}
.ih-sci__rays {
  position: absolute; width: clamp(340px, 54vw, 640px); aspect-ratio: 1;
  background: conic-gradient(from 0deg, rgba(255,238,200,.12) 0deg, transparent 8deg, transparent 22deg, rgba(245,210,150,.10) 30deg, transparent 38deg, transparent 60deg);
  -webkit-mask: radial-gradient(circle, #000 26%, transparent 64%); mask: radial-gradient(circle, #000 26%, transparent 64%);
  mix-blend-mode: screen; opacity: .7; animation: ihSciRays 90s linear infinite;
}
@keyframes ihSciGlow { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes ihSciRays { to { transform: rotate(360deg); } }

.ih-sci__stage { position: relative; transform-style: preserve-3d; transform: rotateX(-12deg); }
.ih-sci__book {
  --bw: 198px; --bh: 278px; --bd: 58px;
  position: relative; width: var(--bw); height: var(--bh);
  transform-style: preserve-3d;
  animation: ihSciSpin 6s linear infinite;
}
/* soft cast shadow on the floor (separate element, so no filter flattens the 3D) */
.ih-sci__floor {
  position: absolute; width: 230px; height: 40px; left: 50%; top: 64%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5) 0%, transparent 70%);
  filter: blur(7px);
}
@keyframes ihSciSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* Faces centred on the book centre via margins, then pushed out in 3D
   (keeping translate() out of the transform so the cuboid stays in 3D). */
.ih-sci__face { position: absolute; top: 50%; left: 50%; }
.ih-sci__cover {
  width: var(--bw); height: var(--bh);
  margin-left: calc(var(--bw) / -2); margin-top: calc(var(--bh) / -2);
  background: linear-gradient(125deg, #8c2422 0%, #b8403a 44%, #6c1917 100%);
  border-radius: 3px 8px 8px 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 0 26px rgba(0,0,0,.4),
              inset 60px 0 70px rgba(255,255,255,.06);
}
.ih-sci__cover--front { transform: translateZ(calc(var(--bd) / 2)); }
.ih-sci__cover--back  { transform: rotateY(180deg) translateZ(calc(var(--bd) / 2)); }
.ih-sci__plate {
  position: absolute; inset: 12px; border-radius: 4px;
  border: 1.5px solid rgba(232,201,135,.7);
  box-shadow: inset 0 0 0 4px rgba(232,201,135,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 20px 12px;
}
.ih-sci__title {
  font-family: var(--font-heading); color: #f1d6a0; text-align: center; line-height: 1.25;
  font-size: .94rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,.55), 0 0 7px rgba(240,200,140,.45);
}
.ih-sci__title .ih-ar {
  font-family: var(--font-ar-brand); letter-spacing: 0; text-transform: none;
  font-size: 1.18rem; line-height: 1.4;
}
.ih-sci__rule {
  width: 56%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,201,135,.85), transparent);
  box-shadow: 0 0 6px rgba(232,201,135,.35);
}
.ih-sci__plate::before, .ih-sci__plate::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid rgba(232,201,135,.7);
}
.ih-sci__plate::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.ih-sci__plate::after  { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.ih-sci__spine {
  width: var(--bd); height: var(--bh);
  margin-left: calc(var(--bd) / -2); margin-top: calc(var(--bh) / -2);
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  background:
    repeating-linear-gradient(180deg, rgba(232,201,135,.85) 0 1.5px, transparent 1.5px 34px),
    linear-gradient(90deg, #5e1614, #9a2f2a 50%, #5e1614);
  box-shadow: inset 0 0 0 3px rgba(232,201,135,.45);
}
.ih-sci__edge {
  width: var(--bd); height: var(--bh);
  margin-left: calc(var(--bd) / -2); margin-top: calc(var(--bh) / -2);
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2));
  background: repeating-linear-gradient(90deg, #f1e8d2 0 1px, #d2c198 1px 2.2px);
  box-shadow: inset 0 0 0 3px #a8352f;
}
.ih-sci__top {
  width: var(--bw); height: var(--bd);
  margin-left: calc(var(--bw) / -2); margin-top: calc(var(--bd) / -2);
  transform: rotateX(90deg) translateZ(calc(var(--bh) / 2));
  background: repeating-linear-gradient(0deg, #f1e8d2 0 1px, #d2c198 1px 2.4px);
  box-shadow: inset 3px 0 0 0 #8c2422, inset -3px 0 0 0 #a8352f;
}
.ih-sci__bottom {
  width: var(--bw); height: var(--bd);
  margin-left: calc(var(--bw) / -2); margin-top: calc(var(--bd) / -2);
  transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2));
  background: repeating-linear-gradient(0deg, #e7ddc6 0 1px, #cabb92 1px 2.4px);
  box-shadow: inset 3px 0 0 0 #8c2422, inset -3px 0 0 0 #a8352f;
}

/* Pages turning: leaves lift off and flip in the light above the book */
.ih-sci__leaf {
  position: absolute; top: 50%; left: 50%; width: 78px; height: 104px;
  background: linear-gradient(160deg, #fdf8ec, #e8dcc0);
  border: 1px solid #cdbb95; border-radius: 2px 4px 4px 2px;
  background-image: repeating-linear-gradient(0deg, transparent 0 8px, rgba(120,98,55,.22) 8px 8.9px);
  box-shadow: 0 8px 16px rgba(0,0,0,.32);
  transform-style: preserve-3d; backface-visibility: hidden;
}
.ih-sci__leaf--1 { animation: ihSciLeaf1 5s ease-in-out infinite; }
.ih-sci__leaf--2 { animation: ihSciLeaf2 5s ease-in-out infinite; animation-delay: -2.5s; }
@keyframes ihSciLeaf1 {
  0%   { transform: translate(-50%,-50%) translate3d(20px,-118px,70px) rotateX(0deg) rotate(6deg); opacity: 0; }
  18%  { opacity: .92; }
  60%  { transform: translate(-50%,-50%) translate3d(58px,-168px,40px) rotateX(180deg) rotate(12deg); opacity: .9; }
  100% { transform: translate(-50%,-50%) translate3d(96px,-214px,16px) rotateX(355deg) rotate(18deg); opacity: 0; }
}
@keyframes ihSciLeaf2 {
  0%   { transform: translate(-50%,-50%) translate3d(-14px,-120px,64px) rotateX(0deg) rotate(-6deg); opacity: 0; }
  18%  { opacity: .9; }
  60%  { transform: translate(-50%,-50%) translate3d(-52px,-170px,36px) rotateX(-180deg) rotate(-12deg); opacity: .88; }
  100% { transform: translate(-50%,-50%) translate3d(-92px,-216px,14px) rotateX(-355deg) rotate(-18deg); opacity: 0; }
}

@media (max-width: 760px) {
  .ih-page-hero--science { min-height: 480px; }
  .ih-sci__book { --bw: 116px; --bh: 164px; --bd: 38px; }
  .ih-sci__leaf { width: 60px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-sci__book { animation: none !important; transform: rotateY(-24deg); }
  .ih-sci__glow, .ih-sci__rays { animation: none !important; }
  .ih-sci__leaf { display: none; }
}

/* ═══════════════════════════════════════════════
   HADITH · interactive 3D Isnad constellation
═══════════════════════════════════════════════ */
.ih-page-hero--hadith {
  position: relative; overflow: hidden; min-height: 580px;
  background: radial-gradient(ellipse at 50% 42%, #0c2f28 0%, var(--ih-bg) 72%);
}
.ih-page-hero--hadith .ih-container { position: relative; z-index: 2; pointer-events: none; }
.ih-page-hero--hadith .ih-container a { pointer-events: auto; }
.ih-page-hero--hadith .ih-page-hero__title { text-shadow: 0 3px 22px rgba(0,0,0,.85), 0 0 36px rgba(0,0,0,.55); }
.ih-page-hero--hadith .ih-page-hero__desc { color: #d8e8e2; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.ih-isnad-bg { position: absolute; inset: 0; z-index: 0; }
.ih-isnad-bg #ihIsnad {
  width: 100%; height: 100%; display: block;
  cursor: grab; touch-action: none;
}
.ih-isnad-bg #ihIsnad:active { cursor: grabbing; }
.ih-isnad__hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(232,201,135,.55); pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px; animation: ihIsnadHint 3.2s ease-in-out infinite;
}
.ih-isnad__hint::before {
  content: ""; width: 16px; height: 16px;
  background: radial-gradient(circle, rgba(232,201,135,.8) 30%, transparent 60%);
}
@keyframes ihIsnadHint { 0%,100% { opacity: .4; } 50% { opacity: .85; } }
@media (max-width: 760px) { .ih-page-hero--hadith { min-height: 500px; } }
@media (prefers-reduced-motion: reduce) { .ih-isnad__hint { animation: none; } }

/* ═══════════════════════════════════════════════
   THE TEN PROMISED PARADISE · العشرة المبشرون بالجنة
═══════════════════════════════════════════════ */
.ih-ashara { background: linear-gradient(180deg, var(--ih-bg) 0%, #082019 100%); }
.ih-ashara__grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  max-width: 940px; margin: 44px auto 0;
}
.ih-ashara__item {
  display: flex; align-items: center; gap: 16px;
  background: var(--ih-surface); border: 1px solid var(--ih-border-2);
  border-inline-start: 3px solid var(--ih-jade);
  border-radius: var(--r-lg); padding: 15px 20px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ih-ashara__num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  color: #06140f; background: linear-gradient(135deg, var(--ih-copper-2), var(--ih-copper));
  box-shadow: 0 0 14px rgba(216,155,94,.4); border: 1px solid rgba(246,220,180,.6);
}
.ih-ashara__body { min-width: 0; }
.ih-ashara__name { font-family: var(--font-ar-brand); font-size: 1.55rem; color: var(--ih-white); line-height: 1.3; }
.ih-ashara__en { font-family: var(--font-heading); font-size: .9rem; color: var(--ih-gold); }
.ih-ashara__role { font-size: .82rem; color: var(--ih-muted); line-height: 1.5; margin-top: 2px; }
@media (hover: hover) {
  .ih-ashara__item:hover { transform: translateY(-3px); border-color: var(--ih-jade); box-shadow: var(--shadow-md); }
}
@media (min-width: 680px) { .ih-ashara__grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ═══════════════ MORNING ADHKAR (أذكار الصباح) ═══════════════ */
.ih-page-hero--azkar { position: relative; overflow: hidden; }
.ih-azkar-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ih-page-hero--azkar .ih-container { position: relative; z-index: 1; }
.ih-azkar-bg__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(239,196,137,0.20) 0%, rgba(216,155,94,0.10) 26%, transparent 55%),
    radial-gradient(90% 70% at 50% 0%, rgba(47,216,176,0.16) 0%, transparent 60%);
}
.ih-azkar-bg__sun {
  position: absolute; top: 46px; left: 50%; width: 132px; height: 132px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--ih-copper-2) 0%, var(--ih-copper) 38%, rgba(216,155,94,0.25) 64%, transparent 72%);
  filter: blur(2px); opacity: .9;
  animation: ihAzkarSun 7s ease-in-out infinite;
}
.ih-azkar-bg__rays {
  position: absolute; top: -34px; left: 50%; width: 460px; height: 320px; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 60%,
    transparent 0deg, rgba(239,196,137,0.10) 8deg, transparent 16deg,
    transparent 28deg, rgba(239,196,137,0.08) 36deg, transparent 44deg,
    transparent 56deg, rgba(239,196,137,0.10) 64deg, transparent 72deg);
  -webkit-mask: radial-gradient(circle at 50% 60%, transparent 56px, #000 58px, transparent 220px);
  mask: radial-gradient(circle at 50% 60%, transparent 56px, #000 58px, transparent 220px);
  opacity: .8;
}
.ih-azkar-bg__bird { position: absolute; color: var(--ih-muted); font-size: 20px; opacity: .5; }
.ih-azkar-bg__bird--1 { top: 70px; left: 22%; animation: ihAzkarBird 9s ease-in-out infinite; }
.ih-azkar-bg__bird--2 { top: 104px; left: 70%; font-size: 15px; animation: ihAzkarBird 11s ease-in-out infinite .6s; }
.ih-azkar-bg__bird--3 { top: 140px; left: 34%; font-size: 12px; animation: ihAzkarBird 13s ease-in-out infinite 1.4s; }
@keyframes ihAzkarSun { 0%,100% { opacity: .82; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
@keyframes ihAzkarBird { 0% { transform: translate(0,0); } 50% { transform: translate(26px,-10px); } 100% { transform: translate(0,0); } }
@media (prefers-reduced-motion: reduce) { .ih-azkar-bg__sun, .ih-azkar-bg__bird { animation: none; } }

.ih-azkar-intro { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.ih-azkar-intro__lead { color: var(--ih-muted); font-size: 1.06rem; line-height: 1.95; }
.ih-azkar-intro__lead .ih-ar { font-family: var(--font-ar-brand); }
.ih-azkar-intro__meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

.ih-azkar-section-note { color: var(--ih-muted); font-size: .96rem; margin: 8px 0 22px; }
.ih-azkar-section-note .ih-ar { font-family: var(--font-ar-brand); }
.ih-azkar-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 22px; }
.ih-azkar-card {
  position: relative; background: var(--ih-surface); border: 1px solid var(--ih-border);
  border-radius: var(--r-xl); padding: 26px 28px 24px; overflow: hidden;
}
.ih-azkar-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--ih-jade), var(--ih-copper)); }
.ih-azkar-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ih-azkar-card__num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ih-surface-2); border: 1px solid var(--ih-border-2);
  font-family: var(--font-heading); font-weight: 700; color: var(--ih-gold); font-size: 1.05rem;
}
.ih-azkar-card__count {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  background: rgba(47,216,176,0.10); border: 1px solid var(--ih-border-2);
  color: var(--ih-jade-2); font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.ih-azkar-card__count-x { font-size: 1.05rem; line-height: 1; }
.ih-azkar-card__count .ih-ar { font-family: var(--font-ar-brand); }
.ih-azkar-card__ar {
  font-family: var(--font-ar-brand); font-size: 1.5rem; line-height: 2.35; color: var(--ih-white);
  margin: 0 0 16px; text-align: right;
}
.ih-azkar-card__meaning { color: var(--ih-muted); font-size: 1rem; line-height: 1.85; margin: 0 0 14px; }
.ih-azkar-card__meaning .ih-ar { font-family: var(--font-ar-brand); }
.ih-azkar-card__virtue {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px;
  background: var(--ih-surface-2); border-radius: var(--r-lg, 14px); padding: 12px 16px;
  color: var(--ih-muted); font-size: .96rem; line-height: 1.75;
}
.ih-azkar-card__virtue-ic { color: var(--ih-gold); flex-shrink: 0; margin-top: 2px; }
.ih-azkar-card__virtue .ih-ar { font-family: var(--font-ar-brand); }
.ih-azkar-card__ref { display: inline-block; }

.ih-azkar-foot { max-width: 700px; margin: 48px auto 0; text-align: center; padding: 34px 30px; background: var(--ih-surface-2); border: 1px solid var(--ih-border); border-radius: var(--r-xl); }
.ih-azkar-foot .ih-aya { font-family: var(--font-ar-brand); font-size: 1.5rem; color: var(--ih-gold); line-height: 2; margin: 0 0 14px; }
.ih-azkar-foot__note { color: var(--ih-muted); font-size: 1rem; line-height: 1.85; margin: 0; }
.ih-azkar-foot__note .ih-ar { font-family: var(--font-ar-brand); }

@media (max-width: 560px) {
  .ih-azkar-card { padding: 22px 18px 20px; }
  .ih-azkar-card__ar { font-size: 1.32rem; line-height: 2.2; }
}

/* ── Evening variant (أذكار المساء): night sky + crescent moon ── */
.ih-azkar-eve-bg__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(47,216,176,0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(4,20,15,0.55) 0%, transparent 60%);
}
.ih-azkar-eve-bg__moon {
  position: absolute; top: 54px; left: 50%; transform: translateX(-50%);
  width: 82px; height: 82px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, var(--ih-copper-3) 0%, var(--ih-copper-2) 58%, rgba(216,155,94,0.5) 100%);
  box-shadow: 0 0 42px rgba(239,196,137,0.42);
  animation: ihAzkarSun 7s ease-in-out infinite;
}
.ih-azkar-eve-bg__moon::after {
  content: ""; position: absolute; top: -7px; left: 16px;
  width: 82px; height: 82px; border-radius: 50%; background: var(--ih-bg);
}
.ih-azkar-eve-bg__star {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ih-copper-3); box-shadow: 0 0 6px rgba(246,220,180,0.7);
  animation: ihAzkarTwinkle 3.2s ease-in-out infinite;
}
.ih-azkar-eve-bg__star--1 { top: 60px;  left: 24%; }
.ih-azkar-eve-bg__star--2 { top: 96px;  left: 72%; animation-delay: .5s; }
.ih-azkar-eve-bg__star--3 { top: 140px; left: 34%; width: 3px; height: 3px; animation-delay: 1.1s; }
.ih-azkar-eve-bg__star--4 { top: 78px;  left: 60%; width: 3px; height: 3px; animation-delay: 1.6s; }
.ih-azkar-eve-bg__star--5 { top: 130px; left: 78%; animation-delay: 2.2s; }
@keyframes ihAzkarTwinkle { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ih-azkar-eve-bg__moon, .ih-azkar-eve-bg__star { animation: none; } }
