@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Noto+Naskh+Arabic:wght@400;700&display=swap');

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --teal: #009EA8;
  --teal-mid: #007A82;
  --teal-light: #E0F5F7;
  --teal-faint: #EFF9FA;
  --charcoal: #1A1A2E;
  --charcoal-2: #2D2D44;
  --cream: #FAF8F4;
  --cream-warm: #F2EDE4;
  --cream-deep: #E8E0D3;
  --gold: #B8872E;
  --gold-light: #F5EDD8;
  --text: #3A3848;
  --text-mid: #6B6880;
  --text-light: #9896AA;
  --r-sm: 12px;
  --r-md: 24px;
  --r-lg: 40px;
  --r-xl: 60px;
  --shadow: 0 8px 40px rgba(26,26,46,.09);
  --shadow-sm: 0 4px 20px rgba(26,26,46,.06);
  --trans: 0.35s cubic-bezier(.4,0,.2,1);
  --max: 1160px;
}


/* ─── Hero container — prevents layout shift while JS loads ─────── */
#hero-container { min-height: 100vh; background: var(--charcoal); }
#hero-container:empty { min-height: 100vh; background: var(--charcoal); }

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); line-height: 1.65; position: relative; }
/* container divs collapse so bar+nav participate in body layout directly */
#bar-container, #nav-container { display: contents; }
:root { --bar-h: 40px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ─── Typography ─────────────────────────────────────────── */
.eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 32px; border-radius: 100px;
  cursor: pointer; transition: var(--trans); white-space: nowrap; border: none; text-decoration: none;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,158,168,.3); }
.btn-outline { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: white; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: white; border: 1.5px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: white; border: none; }
.btn-gold:hover { background: #9A6E22; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,135,46,.3); }

/* ─── Announcement Bar ───────────────────────────────────── */
.bar {
  background: var(--charcoal); color: rgba(255,255,255,.85);
  text-align: center; padding: 11px 24px;
  font-size: 12.5px; letter-spacing: .02em;
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  width: 100%; height: var(--bar-h); box-sizing: border-box;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar a { color: var(--teal-light, #4DD9D0); font-weight: 600; }
.bar a:hover { text-decoration: underline; }

/* ─── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: var(--bar-h);
  left: 0; right: 0; z-index: 210;
  transition: top .3s ease, background var(--trans), box-shadow var(--trans), backdrop-filter var(--trans);
  background: rgba(250,248,244,.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
nav.scrolled { top: 0; }
/* Transparent state — on all pages at top of scroll */
nav.transparent {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
/* Scrolled state — solid cream with blur */
nav.scrolled {
  background: rgba(250,248,244,.94) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 20px rgba(26,26,46,.07) !important;
  border-bottom: 1px solid rgba(0,0,0,.05) !important;
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 32px; max-width: none;
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; transition: opacity var(--trans); }
.logo-wrap { position: relative; height: 48px; display: flex; align-items: center; }
.logo-colour { opacity: 1; }
.logo-white { position: absolute; opacity: 0; }
nav.transparent .logo-colour { opacity: 0; }
nav.transparent .logo-white { opacity: 1; }

/* Desktop nav links */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: .03em;
  transition: color var(--trans); position: relative; color: var(--text-mid);
}
nav.transparent .nav-links a { color: rgba(255,255,255,.85); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--teal); transition: width var(--trans);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
nav.transparent .nav-links a:hover { color: white; }

/* Nav CTA */
.nav-cta { margin-left: 20px; }
nav.transparent .nav-cta { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); backdrop-filter: blur(8px); }
nav.transparent .nav-cta:hover { background: rgba(255,255,255,.3); }

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger { z-index: 200;
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
  width: 40px; height: 40px; position: relative;
}
.hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--charcoal);
  transition: transform .35s ease, opacity .25s ease, top .35s ease;
  position: absolute; left: 9px;
}
nav.transparent .hamburger span { background: white; }
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 25px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 19px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 19px; }

/* Force nav solid when mobile panel is open so hamburger X is visible */
nav.nav-open { background: white !important; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
nav.nav-open .hamburger span { background: var(--charcoal) !important; }
nav.nav-open .logo-white { opacity: 0 !important; }
nav.nav-open .logo-colour { opacity: 1 !important; }

/* ─── Mobile Nav Panel ───────────────────────────────────── */
/* Overlay dim */
.mob-overlay {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.mob-overlay.open { opacity: 1; pointer-events: all; }

/* Panel slides in from right */
.mob {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 85%; max-width: 380px;
  background: white; z-index: 190;
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 48px rgba(26,26,46,.18);
}
.mob.open { transform: translateX(0); }

/* Panel close button */
.mob-close {
  display: none;
}

/* Panel content */
.mob-inner { padding: 72px 0 24px; display: flex; flex-direction: column; flex: 1; }
.mob-links { display: flex; flex-direction: column; }
.mob-links a {
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--charcoal); padding: 16px 28px;
  border-bottom: 1px solid var(--cream-deep);
  transition: color var(--trans), background var(--trans);
  display: block;
}
.mob-links a:hover,
.mob-links a.active { color: var(--teal); background: var(--teal-faint); }
.mob-links a:first-child { border-top: 1px solid var(--cream-deep); }

/* Sub-links (accordion items) */
.mob-sub { display: none; flex-direction: column; }
.mob-sub.open { display: flex; }
.mob-sub a {
  font-size: 13px; text-transform: none; letter-spacing: .04em;
  padding: 12px 28px 12px 44px;
  color: var(--text-mid); border-bottom: 1px solid var(--cream-deep);
}
.mob-sub a:hover { color: var(--teal); background: var(--teal-faint); }

/* Toggle button for expandable groups */
.mob-group-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--charcoal); padding: 16px 28px;
  border-bottom: 1px solid var(--cream-deep);
  transition: color var(--trans), background var(--trans);
  text-align: left;
}
.mob-group-btn:hover { color: var(--teal); background: var(--teal-faint); }
.mob-group-btn .mob-arrow {
  font-size: 18px; color: var(--text-light);
  transition: transform .25s ease;
}
.mob-group-btn.open .mob-arrow { transform: rotate(45deg); color: var(--teal); }

/* Panel footer */
.mob-foot {
  padding: 24px 28px;
  margin-top: auto;
  border-top: 1px solid var(--cream-deep);
  display: flex; flex-direction: column; gap: 10px;
}
.mob-foot-contact { display: flex; flex-direction: column; gap: 8px; }
.mob-foot-contact a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-mid);
  transition: color var(--trans);
}
.mob-foot-contact a:hover { color: var(--teal); }
.mob-foot-contact svg { color: var(--teal); flex-shrink: 0; }
.mob-social {
  display: flex; gap: 10px; margin-top: 8px;
}
.mob-social a {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.mob-social a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ─── Wave ───────────────────────────────────────────────── */
.wave { display: block; width: 100%; overflow: hidden; line-height: 0; }
.wave svg { display: block; width: 100%; }

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: var(--charcoal);
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse,rgba(0,158,168,.15) 0%,transparent 68%);
  border-radius: 55% 45% 40% 60%/50% 60% 40% 50%;
  pointer-events: none;
}
.page-hero-text .eyebrow,
.page-hero .eyebrow { display: block; margin-bottom: 16px; }
.page-hero-text h1,
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px,6vw,80px); font-weight: 300; font-style: italic;
  color: white; line-height: 1.05; margin-bottom: 20px;
}
.page-hero-text h1 em,
.page-hero h1 em { font-style: normal; color: var(--teal); }
.page-hero-text p,
.page-hero p { font-size: 16px; color: rgba(255,255,255,.6); max-width: 560px; line-height: 1.78; }

/* ─── Section Head ───────────────────────────────────────── */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .eyebrow { display: block; margin-bottom: 14px; }
.sec-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px,4.5vw,54px); font-weight: 300; color: var(--charcoal);
}
.sec-head h2 em { font-style: italic; color: var(--teal); }
.sec-head p { font-size: 15px; color: var(--text-mid); max-width: 480px; margin: 12px auto 0; line-height: 1.75; }

/* ─── Filter Tabs ────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-tabs.centered { justify-content: center; }
.ftab {
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 22px; border-radius: 100px;
  border: 1.5px solid var(--cream-deep); background: white; color: var(--text-mid);
  cursor: pointer; transition: var(--trans);
}
.ftab:hover, .ftab.active { background: var(--teal); color: white; border-color: var(--teal); }

/* ─── Form Elements ──────────────────────────────────────── */
.form-card { background: white; border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 13px 16px; border: 1.5px solid var(--cream-deep); border-radius: 12px;
  background: var(--cream); color: var(--text); transition: border-color var(--trans); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { font-size: 11.5px; color: var(--text-light); text-align: center; margin-top: 12px; line-height: 1.6; }

/* ─── Reveal Animation ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Blob animation ─────────────────────────────────────── */
@keyframes blobf {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(18px,-14px) scale(1.03); }
  66% { transform: translate(-14px,18px) scale(.97); }
}

/* ─── Skeleton loading states ────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--cream-deep) 25%, var(--cream-warm) 50%, var(--cream-deep) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: white; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.skeleton-img { height: 200px; }
.skeleton-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.skeleton-line { height: 14px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.title { height: 22px; }

/* ─── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-state .empty-icon { font-size: 48px; }
.empty-state h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 28px;
  font-weight: 600; color: var(--charcoal);
}
.empty-state p { font-size: 14px; color: var(--text-mid); max-width: 360px; line-height: 1.75; }

/* ─── Notice banner ──────────────────────────────────────── */
.notice {
  background: var(--teal-faint); border: 1.5px solid var(--teal-light);
  border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 40px;
  display: flex; align-items: flex-start; gap: 14px;
}
.notice-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.notice p { font-size: 14px; color: var(--teal-mid); line-height: 1.7; }
.notice p strong { color: var(--teal); font-weight: 600; }
.notice p a { color: var(--teal); font-weight: 600; text-decoration: underline; }

/* ─── Footer ─────────────────────────────────────────────── */
footer { background: var(--charcoal); padding: 64px 0 32px; }
.ftop { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.fb .logo-img { height: 52px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .85; }
.fb p { font-size: 13px; color: rgba(255,255,255,.42); line-height: 1.85; max-width: 280px; margin: 0 0 20px; }
.fsoc { display: flex; gap: 10px; }
.fs {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.fs:hover { border-color: var(--teal); background: rgba(0,155,141,.15); }
.fc h5 { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.78); margin-bottom: 20px; }
.fc li { margin-bottom: 10px; }
.fc a { font-size: 13px; color: rgba(255,255,255,.38); transition: color var(--trans); }
.fc a:hover { color: var(--teal); }
.fbot {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.05);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.fbot span { font-size: 12px; color: rgba(255,255,255,.28); }
.fbot a { color: var(--teal); }

/* ─── index.html: Hero ───────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--charcoal);
}
.hero-bg {
  position: absolute; inset: -80px;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; will-change: opacity;
}
.hero-bg.active { opacity: .26; }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,46,.3) 0%, rgba(26,26,46,.6) 100%);
  z-index: 1;
}
.h-blob1 { position: absolute; top: -100px; right: -100px; width: 650px; height: 650px; background: radial-gradient(ellipse,rgba(0,155,141,.16) 0%,transparent 68%); border-radius: 60% 40% 70% 30%/50% 60% 40% 70%; animation: blobf 9s ease-in-out infinite; z-index: 1; pointer-events: none; }
.h-blob2 { position: absolute; bottom: -120px; left: -80px; width: 500px; height: 500px; background: radial-gradient(ellipse,rgba(184,135,46,.1) 0%,transparent 68%); border-radius: 40% 60% 30% 70%/60% 40% 70% 30%; animation: blobf 13s ease-in-out infinite reverse; z-index: 1; pointer-events: none; }
.slides-wrap { position: relative; z-index: 3; width: 100%; padding: 140px 0 120px; }
.slide { display: none; max-width: 820px; animation: sIn .9s cubic-bezier(.4,0,.2,1) both; }
.slide.active { display: block; }
@keyframes sIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.slide-eye { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 22px; }
.slide-eye::before { content: ''; display: block; width: 30px; height: 1.5px; background: var(--teal); }
.slide h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(54px,8vw,108px); font-weight: 300; font-style: italic; color: white; line-height: 1.02; margin-bottom: 20px; letter-spacing: -.025em; }
.slide h1 em { font-style: normal; color: var(--teal); }
.slide-sub { font-size: 16px; font-weight: 300; color: rgba(255,255,255,.62); max-width: 520px; line-height: 1.75; margin-bottom: 36px; }
.slide-arabic { font-family: 'Noto Naskh Arabic', serif; font-size: 19px; color: rgba(255,255,255,.36); display: block; margin-bottom: 6px; }
.slide-arabic-ref { font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.24); display: block; margin-bottom: 36px; }
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cdots { position: absolute; bottom: 40px; left: 32px; display: flex; gap: 10px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 100px; background: rgba(255,255,255,.3); cursor: pointer; transition: var(--trans); border: none; padding: 0; }
.dot.active { background: var(--teal); width: 32px; }

/* ─── index.html: Stats ──────────────────────────────────── */
.stats { background: var(--teal); padding: 0 0 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; }
.stat { padding: 20px 24px; }
.stat-n { font-family: 'Cormorant Garamond', serif; font-size: 56px; font-weight: 300; color: white; line-height: 1; }
.stat-l { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: 4px; }

/* ─── index.html: About ──────────────────────────────────── */
.about { padding: 120px 0 100px; position: relative; overflow: hidden; }
.about::before { content: ''; position: absolute; top: -80px; right: -120px; width: 500px; height: 500px; background: radial-gradient(ellipse,var(--teal-faint) 0%,transparent 68%); border-radius: 40% 60% 55% 45%/50% 45% 55% 50%; animation: blobf 13s ease-in-out infinite; pointer-events: none; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.about-text .eyebrow { display: block; margin-bottom: 16px; }
.about-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(38px,4vw,58px); font-weight: 300; font-style: italic; color: var(--charcoal); line-height: 1.1; margin-bottom: 28px; }
.about-text h2 strong { font-style: normal; font-weight: 600; color: var(--teal); }
.about-text p { font-size: 15px; color: var(--text-mid); line-height: 1.85; margin-bottom: 18px; }
.about-text p strong { color: var(--text); font-weight: 500; }
.about-visual { position: relative; }
.about-frame { border-radius: 60% 40% 55% 45%/45% 55% 40% 60%; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.about-frame:hover img { transform: scale(1.05); }
.about-badge { position: absolute; bottom: 28px; left: -28px; background: white; border-radius: var(--r-md); padding: 22px 26px; box-shadow: var(--shadow); max-width: 220px; }
.about-badge-bar { width: 24px; height: 2px; background: var(--teal); margin-bottom: 10px; }
.about-badge p { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-style: italic; color: var(--charcoal); line-height: 1.55; }
.about-gold-dot { position: absolute; top: 24px; right: -20px; width: 80px; height: 80px; background: var(--gold-light); border-radius: 40% 60% 55% 45%/50% 45% 55% 50%; display: flex; align-items: center; justify-content: center; font-family: 'Noto Naskh Arabic', serif; font-size: 28px; color: var(--gold); animation: blobf 7s ease-in-out infinite; }

/* ─── index.html: Courses preview ───────────────────────── */
.courses { padding: 80px 0 120px; background: var(--cream-warm); position: relative; overflow: hidden; }
.courses::after { content: ''; position: absolute; bottom: -60px; left: -80px; width: 380px; height: 380px; background: radial-gradient(ellipse,var(--teal-light) 0%,transparent 68%); border-radius: 55% 45% 40% 60%/45% 55% 50% 50%; pointer-events: none; z-index: 0; }
.cgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; position: relative; z-index: 2; }
.cc { background: white; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans); }
.cc:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(26,26,46,.13); }
.cc-img { height: 210px; overflow: hidden; position: relative; background: var(--teal-light); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); transition: filter var(--trans), transform var(--trans); }
.cc:hover .cc-img img { filter: saturate(1); transform: scale(1.04); }
.cc-tag { position: absolute; top: 16px; left: 16px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; color: white; }
.cc-tag.dark { background: var(--charcoal); }
.cc-tag.teal { background: var(--teal); }
.cc-tag.gold { background: var(--gold); }
.cc-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.cc-body .eyebrow { display: block; margin-bottom: 10px; }
.cc-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; line-height: 1.25; }
.cc-body p { font-size: 14px; color: var(--text-mid); line-height: 1.78; flex: 1; margin-bottom: 20px; }
.cc-meta { padding-top: 16px; border-top: 1px solid var(--cream-deep); margin-bottom: 20px; display: flex; flex-direction: column; gap: 7px; }
.cc-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-light); }
.cc-row svg { flex-shrink: 0; color: var(--teal); }
.cc.featured { grid-column: span 3; flex-direction: row; border-radius: var(--r-xl); }
.cc.featured .cc-img { width: 440px; min-width: 440px; height: auto; border-radius: 0; flex-shrink: 0; }
.cc.featured .cc-body { padding: 52px; }
.cc.featured h3 { font-size: 36px; margin-bottom: 14px; }
.cc.featured p { font-size: 15px; }

/* ─── index.html: Teacher section ───────────────────────── */
.teacher { padding: 120px 0; background: var(--charcoal); position: relative; overflow: hidden; }
.t-water { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); font-family: 'Noto Naskh Arabic', serif; font-size: 400px; line-height: 1; color: rgba(255,255,255,.025); pointer-events: none; user-select: none; }
.t-blob { position: absolute; top: -100px; left: -120px; width: 550px; height: 550px; background: radial-gradient(ellipse,rgba(0,155,141,.1) 0%,transparent 68%); border-radius: 55% 45% 40% 60%/50% 60% 40% 50%; animation: blobf 11s ease-in-out infinite; }
.tgrid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.t-frame { border-radius: 45% 55% 60% 40%/55% 45% 60% 40%; overflow: hidden; aspect-ratio: 3/4; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.t-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.t-cred { position: absolute; bottom: -20px; right: -20px; background: var(--teal); border-radius: var(--r-md); padding: 20px 22px; max-width: 210px; box-shadow: 0 8px 32px rgba(0,155,141,.35); }
.t-cred p { font-size: 12px; color: white; line-height: 1.65; }
.t-img-wrap { position: relative; }
.t-text .eyebrow { display: block; margin-bottom: 18px; }
.t-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(34px,3.8vw,52px); font-weight: 300; font-style: italic; color: white; line-height: 1.1; margin-bottom: 28px; }
.t-text p { font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.85; margin-bottom: 16px; }
.t-text p strong { color: rgba(255,255,255,.88); font-weight: 500; }
.t-pubs { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.t-pubs h4 { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.t-pubs li { font-size: 13px; color: rgba(255,255,255,.45); padding: 7px 0 7px 18px; position: relative; border-bottom: 1px solid rgba(255,255,255,.04); }
.t-pubs li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }

/* ─── index.html: Events ─────────────────────────────────── */
.events { padding: 120px 0; background: var(--cream); position: relative; overflow: hidden; }
.events::before { content: ''; position: absolute; top: 40px; right: -80px; width: 340px; height: 340px; background: radial-gradient(ellipse,var(--gold-light) 0%,transparent 68%); border-radius: 60% 40% 45% 55%/50% 55% 45% 50%; animation: blobf 15s ease-in-out infinite reverse; pointer-events: none; }
.egrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; position: relative; z-index: 2; }
.ec { background: white; border-radius: var(--r-md); padding: 28px; display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow-sm); border: 1.5px solid transparent; transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans); }
.ec:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,155,141,.12); }
.e-date { background: var(--teal-faint); border-radius: var(--r-sm); padding: 10px 14px; text-align: center; min-width: 58px; flex-shrink: 0; }
.e-date strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; color: var(--teal); line-height: 1; }
.e-date span { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-mid); }
.e-info h4 { font-size: 14.5px; font-weight: 600; color: var(--charcoal); margin-bottom: 5px; line-height: 1.35; }
.e-info p { font-size: 12.5px; color: var(--text-mid); line-height: 1.55; margin-bottom: 8px; }
.e-fee { font-size: 11.5px; font-weight: 700; color: var(--teal); letter-spacing: .04em; }
.e-fee.gf { color: var(--gold); }

/* ─── index.html: WhatsApp Banner ────────────────────────── */
.whatsapp-banner {
  background: var(--cream-warm); padding: 80px 0;
}
.whatsapp-banner-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.wa-text .eyebrow { display: block; margin-bottom: 12px; }
.wa-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px,3.5vw,42px); font-weight: 300;
  color: var(--charcoal); margin-bottom: 10px; line-height: 1.2;
}
.wa-text p { font-size: 15px; color: var(--text-mid); line-height: 1.75; max-width: 480px; }
.wa-icon { color: #25D366; font-size: 24px; }

/* ─── index.html: Testimonials ───────────────────────────── */
.testi { padding: 120px 0; background: var(--teal); position: relative; overflow: hidden; }
.tb1 { position: absolute; top: -80px; left: -80px; width: 400px; height: 400px; background: rgba(0,0,0,.07); border-radius: 55% 45% 40% 60%/50% 55% 45% 50%; animation: blobf 9s ease-in-out infinite; }
.tb2 { position: absolute; bottom: -100px; right: -60px; width: 350px; height: 350px; background: rgba(255,255,255,.06); border-radius: 40% 60% 55% 45%/60% 40% 60% 40%; animation: blobf 12s ease-in-out infinite reverse; }
.testi-in { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }
.testi-track { position: relative; min-height: 260px; }
.testi-item { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.testi-item.active { opacity: 1; pointer-events: auto; position: relative; }
.qmark { font-family: 'Cormorant Garamond', serif; font-size: 80px; line-height: .5; color: rgba(255,255,255,.2); display: block; margin-bottom: 24px; }
.testi-item blockquote { font-family: 'Cormorant Garamond', serif; font-size: clamp(19px,2.5vw,27px); font-style: italic; font-weight: 300; color: white; line-height: 1.68; margin-bottom: 28px; }
.testi-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.testi-name { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: white; }
.testi-role { font-size: 12px; color: rgba(255,255,255,.55); }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.tdot { width: 8px; height: 8px; border-radius: 100px; background: rgba(255,255,255,.3); cursor: pointer; border: none; transition: var(--trans); padding: 0; }
.tdot.active { background: white; width: 28px; }

/* ─── index.html: Donate section ────────────────────────── */
.donate { padding: 100px 0; background: var(--cream-warm); position: relative; overflow: hidden; }
.donate::before { content: ''; position: absolute; bottom: -60px; right: -80px; width: 420px; height: 420px; background: radial-gradient(ellipse,var(--gold-light) 0%,transparent 65%); border-radius: 50% 50% 40% 60%/55% 45% 60% 40%; animation: blobf 12s ease-in-out infinite; pointer-events: none; }
.donate-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; position: relative; z-index: 2; }
.donate-text .eyebrow { display: block; margin-bottom: 16px; }
.donate-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(34px,4vw,50px); font-weight: 300; color: var(--charcoal); line-height: 1.12; margin-bottom: 16px; }
.donate-text h2 em { font-style: italic; color: var(--gold); }
.donate-text p { font-size: 15px; color: var(--text-mid); line-height: 1.82; margin-bottom: 12px; }
.npc-tag { display: inline-block; font-size: 11px; color: var(--text-light); letter-spacing: .06em; margin-top: 8px; margin-bottom: 24px; }
.donate-right { display: flex; flex-direction: column; gap: 16px; }
.dopt { background: white; border-radius: var(--r-md); padding: 20px 22px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans); text-decoration: none; color: inherit; }
.dopt:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(26,26,46,.1); }
.dopt-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.dopt-icon.t { background: var(--teal-light); }
.dopt-icon.g { background: var(--gold-light); }
.dopt-icon.p { background: #F0F0FA; }
.dopt-text h4 { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 2px; }
.dopt-text p { font-size: 12.5px; color: var(--text-mid); line-height: 1.4; }
.dopt-arr { margin-left: auto; color: var(--text-light); font-size: 18px; flex-shrink: 0; }
.snapscan-box { background: white; border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.snapscan-box small { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-light); display: block; text-align: center; }
.snapscan-qr { width: 140px; height: 140px; background: var(--cream-deep); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-light); text-align: center; padding: 16px; }
.snapscan-types { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.snapscan-type { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--teal); background: var(--teal-faint); padding: 4px 12px; border-radius: 100px; }
.bank-box { background: var(--charcoal); border-radius: var(--r-md); padding: 22px 24px; }
.bank-box small { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); display: block; margin-bottom: 10px; }
.bank-box p { font-size: 13.5px; color: rgba(255,255,255,.78); line-height: 1.8; }
.bank-box strong { color: white; font-weight: 500; }

/* ─── index.html: Contact section ───────────────────────── */
.contact { padding: 120px 0; background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ct-text .eyebrow { display: block; margin-bottom: 16px; }
.ct-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px,4vw,46px); font-weight: 300; color: var(--charcoal); line-height: 1.15; margin-bottom: 18px; }
.ct-text p { font-size: 15px; color: var(--text-mid); line-height: 1.82; margin-bottom: 28px; }
.citems { display: flex; flex-direction: column; gap: 18px; }
.citem { display: flex; align-items: flex-start; gap: 14px; }
.cicon { width: 44px; height: 44px; background: var(--teal-faint); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cicon svg { color: var(--teal); }
.citem-t { display: flex; flex-direction: column; gap: 2px; }
.citem-t small { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); }
.citem-t a, .citem-t span { font-size: 14px; color: var(--text); }
.citem-t a:hover { color: var(--teal); }

/* ─── courses.html specific ──────────────────────────────── */
.courses-page { padding: 60px 0 120px; }
.courses-list { display: flex; flex-direction: column; gap: 20px; }
.ac { background: white; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; border: 1.5px solid transparent; transition: border-color var(--trans); }
.ac:hover { border-color: var(--teal-light); }
.ac-head { display: flex; align-items: center; gap: 20px; padding: 28px 32px; cursor: pointer; user-select: none; }
.ac-icon { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ac-title { flex: 1; }
.ac-title .eyebrow { display: block; margin-bottom: 4px; }
.ac-title h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--charcoal); line-height: 1.2; }
.ac-meta-row { display: flex; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.ac-pill { font-size: 11.5px; font-weight: 600; color: var(--teal); background: var(--teal-faint); padding: 3px 12px; border-radius: 100px; }
.ac-pill.gold { color: var(--gold); background: var(--gold-light); }
.ac-toggle { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--cream-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--trans); color: var(--text-mid); }
.ac.open .ac-toggle { background: var(--teal); border-color: var(--teal); color: white; transform: rotate(45deg); }
.ac-body { display: none; padding: 0 32px 32px; }
.ac.open .ac-body { display: block; }
.ac-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.ac-detail h4 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 12px; margin-top: 20px; }
.ac-detail h4:first-child { margin-top: 0; }
.ac-detail p { font-size: 14.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 8px; }
.ac-detail ul { display: flex; flex-direction: column; gap: 6px; }
.ac-detail li { font-size: 14px; color: var(--text-mid); padding-left: 16px; position: relative; }
.ac-detail li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }
.ac-aside { background: var(--cream-warm); border-radius: var(--r-md); padding: 24px; }
.ac-aside-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ac-aside-row:last-child { margin-bottom: 0; }
.ac-aside-icon { width: 32px; height: 32px; background: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.ac-aside-icon svg { color: var(--teal); }
.ac-aside-text small { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); display: block; margin-bottom: 2px; }
.ac-aside-text span { font-size: 13.5px; color: var(--charcoal); }
.ac-cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--cream-deep); display: flex; gap: 12px; flex-wrap: wrap; }
.ac-divider { height: 1px; background: var(--cream-deep); margin: 0 32px; }
.reg-section { padding: 80px 0 100px; background: var(--cream-warm); }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.reg-text .eyebrow { display: block; margin-bottom: 14px; }
.reg-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px,4vw,48px); font-weight: 300; color: var(--charcoal); margin-bottom: 16px; }
.reg-text p { font-size: 15px; color: var(--text-mid); line-height: 1.8; }

/* ─── about.html specific ────────────────────────────────── */
.mission { padding: 100px 0; position: relative; overflow: hidden; }
.mission::before { content: ''; position: absolute; top: -60px; right: -100px; width: 450px; height: 450px; background: radial-gradient(ellipse,var(--teal-faint) 0%,transparent 68%); border-radius: 55% 45% 40% 60%; animation: blobf 14s ease-in-out infinite; pointer-events: none; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.mission-text .eyebrow { display: block; margin-bottom: 16px; }
.mission-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px,4vw,54px); font-weight: 300; color: var(--charcoal); line-height: 1.12; margin-bottom: 24px; }
.mission-text h2 em { font-style: italic; color: var(--teal); }
.mission-text p { font-size: 15px; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }
.mission-text p strong { color: var(--text); font-weight: 500; }
.mission-ayah { margin-top: 28px; padding: 24px 28px; background: var(--charcoal); border-radius: var(--r-md); border-left: 3px solid var(--teal); }
.mission-ayah p { font-family: 'Noto Naskh Arabic', serif; font-size: 20px; color: white; text-align: right; direction: rtl; margin-bottom: 8px; }
.mission-ayah small { font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .08em; }
.mission-img { border-radius: 60% 40% 55% 45%/45% 55% 40% 60%; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.mission-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.mission-img:hover img { transform: scale(1.04); }
.values { padding: 80px 0 100px; background: var(--cream-warm); }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.val-card { background: white; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans); }
.val-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.val-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--teal-faint); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.val-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; }
.val-card p { font-size: 14px; color: var(--text-mid); line-height: 1.78; }
/* Shaykhah / teacher section in about.html */
.shaykhah { padding: 100px 0; background: var(--charcoal); position: relative; overflow: hidden; }
.sh-water { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); font-family: 'Noto Naskh Arabic', serif; font-size: 380px; line-height: 1; color: rgba(255,255,255,.025); pointer-events: none; user-select: none; }
.sh-blob { position: absolute; top: -100px; left: -120px; width: 500px; height: 500px; background: radial-gradient(ellipse,rgba(0,158,168,.1) 0%,transparent 68%); border-radius: 55% 45% 40% 60%/50% 60% 40% 50%; animation: blobf 11s ease-in-out infinite; }
.sh-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.sh-img-wrap { position: relative; }
.sh-frame { border-radius: 45% 55% 60% 40%/55% 45% 60% 40%; overflow: hidden; aspect-ratio: 3/4; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.sh-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.sh-cred { position: absolute; bottom: -20px; right: -20px; background: var(--teal); border-radius: var(--r-md); padding: 20px 22px; max-width: 210px; box-shadow: 0 8px 32px rgba(0,158,168,.35); }
.sh-cred p { font-size: 12px; color: white; line-height: 1.65; }
.sh-text .eyebrow { display: block; margin-bottom: 18px; }
.sh-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(34px,3.8vw,52px); font-weight: 300; font-style: italic; color: white; line-height: 1.1; margin-bottom: 28px; }
.sh-text p { font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.85; margin-bottom: 16px; }
.sh-text p strong { color: rgba(255,255,255,.88); font-weight: 500; }
.sh-pubs { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.sh-pubs h4 { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.sh-pubs li { font-size: 13px; color: rgba(255,255,255,.45); padding: 7px 0 7px 18px; position: relative; border-bottom: 1px solid rgba(255,255,255,.04); }
.sh-pubs li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }
.sh-text .btn { margin-top: 24px; }
/* Teachers grid in about.html */
.teachers { padding: 100px 0; background: var(--cream); }
.teachers-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 48px; }
.tc { background: white; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans); }
.tc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tc-img { height: 260px; overflow: hidden; position: relative; background: var(--teal-faint); }
.tc-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: filter var(--trans); }
.tc:hover .tc-img img { filter: saturate(1); }
.tc-img.placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.tc-img.placeholder .ph-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.tc-img.placeholder p { font-size: 12px; color: var(--teal-mid); font-weight: 500; letter-spacing: .06em; }
.tc-body { padding: 24px; }
.tc-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.tc-body .role { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; display: block; }
.tc-body p { font-size: 13.5px; color: var(--text-mid); line-height: 1.72; }
.tc-body.coming { text-align: center; padding: 32px 24px; }
.tc-body.coming h3 { color: var(--text-mid); font-style: italic; }
.tc-body.coming p { font-size: 12.5px; }
/* FAQ section */
.faq-section { padding: 80px 0 100px; background: var(--cream-warm); }
.faq-accordion { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.faq-item { background: white; border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; border: 1.5px solid transparent; transition: border-color var(--trans); }
.faq-item:hover { border-color: var(--teal-light); }
.faq-item.open { border-color: var(--teal-light); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; cursor: pointer; user-select: none; }
.faq-q h4 { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: var(--charcoal); line-height: 1.3; flex: 1; }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--cream-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--trans); color: var(--text-mid); font-size: 16px; }
.faq-item.open .faq-toggle { background: var(--teal); border-color: var(--teal); color: white; transform: rotate(45deg); }
.faq-a { display: none; padding: 0 28px 22px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14.5px; color: var(--text-mid); line-height: 1.82; }

/* ─── shop.html specific ─────────────────────────────────── */
.shop-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.product { background: white; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans); display: flex; flex-direction: column; }
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-img { height: 260px; overflow: hidden; position: relative; background: var(--cream-warm); display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trans); }
.product:hover .product-img img { transform: scale(1.04); }
.product-img.placeholder-img { flex-direction: column; gap: 8px; }
.product-img.placeholder-img span { font-size: 48px; }
.product-img.placeholder-img p { font-size: 11px; color: var(--text-light); font-weight: 500; letter-spacing: .06em; }
.product-badge { position: absolute; top: 10px; left: 10px; font-size: 9px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; color: white; max-width: fit-content; white-space: nowrap; }
.product-badge.teal { background: var(--teal); }
.product-badge.gold { background: var(--gold); }
.product-badge.new { background: var(--charcoal); }
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-body .eyebrow { display: block; margin-bottom: 8px; }
.product-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; line-height: 1.3; }
.product-attribution { font-size: 12px; color: var(--teal-mid); font-style: italic; margin-bottom: 8px; }
.product-body p { font-size: 13.5px; color: var(--text-mid); line-height: 1.72; flex: 1; margin-bottom: 16px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--cream-deep); margin-top: auto; }
.product-price { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--charcoal); }
.product-price small { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; color: var(--text-light); letter-spacing: .06em; text-transform: uppercase; display: block; margin-top: 2px; }
.product-actions { display: flex; gap: 10px; }
.modal-overlay { position: fixed; inset: 0; background: rgba(8,10,22,.7); backdrop-filter: blur(12px); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .35s ease; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: var(--r-xl); padding: 40px; max-width: 520px; width: 100%; position: relative; transform: translateY(20px); transition: transform .35s ease; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--cream-deep); border: none; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; color: var(--text-mid); }
.modal h3 { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.modal-book { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 20px; }
.stockists { padding: 80px 0 100px; background: var(--cream-warm); }
.stockists-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.stockist-card { background: white; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.stockist-icon { font-size: 32px; margin-bottom: 16px; }
.stockist-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.stockist-card p { font-size: 14px; color: var(--text-mid); line-height: 1.75; margin-bottom: 16px; }
.stockist-card address { font-style: normal; font-size: 13.5px; color: var(--text-mid); line-height: 1.8; background: var(--cream); padding: 14px 18px; border-radius: 12px; margin-top: 12px; }
.stockist-card .btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.payment-logos { padding: 60px 0; background: var(--cream); }
.payment-logos-in { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.pay-pill { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 100px; border: 1.5px solid var(--cream-deep); background: white; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }

/* ─── blog.html specific ─────────────────────────────────── */
.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: white; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 48px; transition: transform var(--trans), box-shadow var(--trans); }
.featured-post:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(26,26,46,.13); }
.featured-img { overflow: hidden; min-height: 360px; position: relative; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.featured-post:hover .featured-img img { transform: scale(1.04); }
.featured-badge { position: absolute; top: 20px; left: 20px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; color: white; background: var(--teal); }
.featured-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.featured-body .eyebrow { display: block; margin-bottom: 14px; }
.featured-body h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px,3vw,38px); font-weight: 600; color: var(--charcoal); line-height: 1.2; margin-bottom: 14px; }
.featured-body p { font-size: 14.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 24px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-light); margin-bottom: 16px; }
.post-meta span { display: flex; align-items: center; gap: 4px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post-card { background: white; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans); display: flex; flex-direction: column; cursor: pointer; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-img { height: 200px; overflow: hidden; position: relative; background: var(--teal-faint); }
.post-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: filter var(--trans), transform var(--trans); }
.post-card:hover .post-img img { filter: saturate(1); transform: scale(1.04); }
.post-img.coming { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.post-img.coming span { font-size: 40px; }
.post-img.coming p { font-size: 11px; color: var(--teal-mid); font-weight: 500; }
.post-cat { position: absolute; top: 14px; left: 14px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; color: white; background: var(--charcoal); }
.post-cat.arabic { background: var(--teal); }
.post-cat.hifth { background: #6B4E8A; }
.post-cat.fiqh { background: var(--gold); }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-body .post-meta { margin-bottom: 10px; }
.post-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; line-height: 1.3; flex: 1; }
.post-body p { font-size: 13.5px; color: var(--text-mid); line-height: 1.72; margin-bottom: 18px; }
.post-body a.read-more { font-size: 12.5px; font-weight: 600; color: var(--teal); letter-spacing: .06em; display: flex; align-items: center; gap: 6px; transition: gap var(--trans); }
.post-body a.read-more:hover { gap: 10px; }
.coming-soon-banner { background: var(--teal-faint); border: 1.5px solid var(--teal-light); border-radius: var(--r-md); padding: 24px 28px; text-align: center; margin-bottom: 40px; }
.coming-soon-banner p { font-size: 14px; color: var(--teal-mid); line-height: 1.7; }
.coming-soon-banner strong { color: var(--teal); }
.newsletter { padding: 80px 0 100px; background: var(--charcoal); position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; top: -80px; right: -80px; width: 450px; height: 450px; background: radial-gradient(ellipse,rgba(0,158,168,.12) 0%,transparent 68%); border-radius: 55% 45% 40% 60%; pointer-events: none; }
.newsletter-in { max-width: 600px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.newsletter .eyebrow { display: block; margin-bottom: 16px; }
.newsletter h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px,4vw,48px); font-weight: 300; color: white; margin-bottom: 16px; }
.newsletter p { font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.78; margin-bottom: 32px; }
.nl-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.nl-form input { font-family: 'DM Sans', sans-serif; font-size: 14px; padding: 15px 20px; border: 1.5px solid rgba(255,255,255,.15); border-radius: 100px; background: rgba(255,255,255,.08); color: white; outline: none; transition: border-color var(--trans); flex: 1; min-width: 240px; }
.nl-form input::placeholder { color: rgba(255,255,255,.35); }
.nl-form input:focus { border-color: var(--teal); }

/* ─── donate.html specific ───────────────────────────────── */
.npc-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 100px; padding: 8px 18px; font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.donate-types { padding: 80px 0; background: var(--cream); }
.types-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px; }
.type-card { background: white; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); text-align: center; transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans); border: 1.5px solid transparent; }
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal); }
.type-icon { font-size: 36px; margin-bottom: 16px; }
.type-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.type-card p { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.type-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; }
.type-tag.teal { background: var(--teal-faint); color: var(--teal); }
.type-tag.gold { background: var(--gold-light); color: var(--gold); }
.donate-main { padding: 60px 0 100px; background: var(--cream-warm); position: relative; overflow: hidden; }
.donate-main::before { content: ''; position: absolute; bottom: -60px; right: -80px; width: 420px; height: 420px; background: radial-gradient(ellipse,var(--gold-light) 0%,transparent 65%); border-radius: 50% 50% 40% 60%; animation: blobf 12s ease-in-out infinite; pointer-events: none; }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative; z-index: 2; }
.pay-card { background: white; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.pay-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.pay-card .sub { font-size: 13px; color: var(--text-light); margin-bottom: 24px; display: block; }
.snapscan-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.snapscan-qr-box { width: 180px; height: 180px; background: var(--cream-warm); border-radius: 16px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--cream-deep); font-size: 12px; color: var(--text-light); text-align: center; padding: 16px; }
.snapscan-types { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.s-type { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--teal); background: var(--teal-faint); padding: 4px 12px; border-radius: 100px; }
.bank-details { background: var(--charcoal); border-radius: var(--r-md); padding: 24px; }
.bank-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.bank-row:last-child { border-bottom: none; }
.bank-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.bank-value { font-size: 14px; color: rgba(255,255,255,.82); font-weight: 500; }
.paypal-box { background: var(--cream); border-radius: var(--r-md); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.paypal-box p { font-size: 13.5px; color: var(--text-mid); }
.paypal-box a { font-size: 12.5px; font-weight: 600; color: var(--teal); white-space: nowrap; }
.paypal-box a:hover { text-decoration: underline; }
.sponsor-section { padding: 80px 0 100px; background: var(--cream); }
.sponsor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.sponsor-text .eyebrow { display: block; margin-bottom: 16px; }
.sponsor-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px,4vw,48px); font-weight: 300; color: var(--charcoal); line-height: 1.12; margin-bottom: 16px; }
.sponsor-text h2 em { font-style: italic; color: var(--gold); }
.sponsor-text p { font-size: 15px; color: var(--text-mid); line-height: 1.82; margin-bottom: 16px; }
.sponsor-text ul { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.sponsor-text li { font-size: 14px; color: var(--text-mid); padding-left: 18px; position: relative; }
.sponsor-text li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.impact { padding: 80px 0; background: var(--teal); position: relative; overflow: hidden; }
.impact::before { content: ''; position: absolute; top: -60px; left: -60px; width: 350px; height: 350px; background: rgba(0,0,0,.07); border-radius: 55% 45% 40% 60%; pointer-events: none; }
.impact::after { content: ''; position: absolute; bottom: -60px; right: -60px; width: 300px; height: 300px; background: rgba(255,255,255,.06); border-radius: 40% 60% 55% 45%; pointer-events: none; }
.impact-in { position: relative; z-index: 2; text-align: center; }
.impact-in .eyebrow { display: block; margin-bottom: 14px; color: rgba(255,255,255,.65); }
.impact-in h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px,4vw,50px); font-weight: 300; color: white; margin-bottom: 40px; }
.impact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.impact-card { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border-radius: var(--r-lg); padding: 32px; border: 1px solid rgba(255,255,255,.15); }
.impact-card .num { font-family: 'Cormorant Garamond', serif; font-size: 56px; font-weight: 300; color: white; line-height: 1; margin-bottom: 8px; }
.impact-card h4 { font-size: 15px; font-weight: 600; color: white; margin-bottom: 8px; }
.impact-card p { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.7; }

/* ─── contact.html specific ──────────────────────────────── */
.quick-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.ql { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 100px; padding: 10px 20px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8); transition: var(--trans); }
.ql:hover { background: rgba(0,158,168,.25); border-color: var(--teal); color: white; }
.contact-main { padding: 80px 0 100px; position: relative; overflow: hidden; }
.contact-main::before { content: ''; position: absolute; top: -60px; right: -100px; width: 400px; height: 400px; background: radial-gradient(ellipse,var(--teal-faint) 0%,transparent 68%); border-radius: 55% 45% 40% 60%; animation: blobf 13s ease-in-out infinite; pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; position: relative; z-index: 2; }
.contact-info .eyebrow { display: block; margin-bottom: 16px; }
.contact-info h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px,4vw,48px); font-weight: 300; color: var(--charcoal); line-height: 1.12; margin-bottom: 28px; }
.contact-info h2 em { font-style: italic; color: var(--teal); }
.citem { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--cream-deep); }
.citem:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cicon { width: 46px; height: 46px; background: var(--teal-faint); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cicon svg { color: var(--teal); }
.citem-body small { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); display: block; margin-bottom: 4px; }
.citem-body a, .citem-body p { font-size: 14.5px; color: var(--text); line-height: 1.6; }
.citem-body a:hover { color: var(--teal); }
.citem-body .sub-note { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; height: 240px; background: var(--cream-warm); position: relative; margin-top: 24px; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; border: none; filter: saturate(.8); }
.map-overlay { position: absolute; bottom: 16px; left: 16px; background: white; border-radius: var(--r-md); padding: 12px 16px; box-shadow: var(--shadow-sm); }
.map-overlay p { font-size: 12.5px; font-weight: 600; color: var(--charcoal); }
.map-overlay small { font-size: 11px; color: var(--text-mid); }
.form-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.form-card .form-sub { font-size: 13.5px; color: var(--text-mid); margin-bottom: 28px; }
.social-strip { padding: 60px 0; background: var(--cream-warm); }
.social-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.social-strip h3 { font-family: 'Cormorant Garamond', serif; font-size: clamp(24px,3vw,36px); font-weight: 300; color: var(--charcoal); }
.social-strip h3 em { font-style: italic; color: var(--teal); }
.social-links { display: flex; gap: 14px; }
.social-link { display: flex; align-items: center; gap: 10px; background: white; border-radius: 100px; padding: 12px 20px; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--text); transition: var(--trans); }
.social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--teal); }
.social-link svg { flex-shrink: 0; }

/* ─── Responsive Breakpoints ─────────────────────────────── */
@media(min-width:1440px) {
  :root { --max: 1240px; }
  .slide h1 { font-size: 110px; }
}

@media(max-width:1024px) {
  .cc.featured { grid-column: span 3; }
  .cc.featured .cc-img { width: 360px; min-width: 360px; }
}

@media(max-width:960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  /* Grids */
  .about-grid, .tgrid, .contact-grid, .donate-in { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .about-badge { left: 0; }
  .about-gold-dot { right: 8px; }
  .t-cred { right: 0; bottom: -12px; }
  .cc.featured { grid-column: 1; flex-direction: column; border-radius: var(--r-lg); }
  .cc.featured .cc-img { width: 100%; min-width: auto; height: 240px; }
  .cc.featured .cc-body { padding: 36px; }
  .cc.featured h3 { font-size: 28px; }
  .cgrid { grid-template-columns: repeat(2,1fr); }
  .egrid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .mission-grid, .sh-grid { grid-template-columns: 1fr; gap: 48px; }
  .mission-img { order: -1; }
  .sh-cred { right: 0; bottom: -12px; }
  .values-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .ac-grid { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2,1fr); }
  .stockists-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 240px; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .types-grid { grid-template-columns: repeat(2,1fr); }
  .donate-grid, .sponsor-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .social-strip-in { flex-direction: column; text-align: center; }
  .whatsapp-banner-in { flex-direction: column; text-align: center; }
  .ftop { grid-template-columns: 1fr; gap: 36px; }
  .fbot { flex-direction: column; text-align: center; }
  .slides-wrap { padding: 120px 0 100px; }
}

@media(max-width:768px) {
  .form-card { padding: 24px; }
  .reg-form, .form-card { max-width: 100%; }
  .form-card input, .form-card select, .form-card textarea { font-size: 16px; } /* prevent iOS zoom */
  .reg-section { padding: 48px 0 60px; }
  .reg-grid { gap: 32px; }
  .form-submit { width: 100%; justify-content: center; }
  #reg-payment-step .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
}

@media(max-width:640px) {
  .wrap { padding: 0 20px; }
  .bar { font-size: 11px; padding: 8px 16px; white-space: normal; height: auto; min-height: var(--bar-h); }
  .cgrid, .egrid { grid-template-columns: 1fr; }
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .slide h1 { font-size: 46px; }
  .slide-actions { flex-direction: column; align-items: flex-start; }
  .donate-right { gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-n { font-size: 44px; }
  .shop-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ac-head { padding: 20px 20px; }
  .ac-body { padding: 0 20px 24px; }
  .ac-divider { margin: 0 20px; }
}

@media(max-width:480px) {
  .slide h1 { font-size: 40px; }
  .about-frame { border-radius: 30% 40% 35% 30%/30% 35% 30% 35%; }
}

@media(max-width:375px) {
  .mob-links a { font-size: 13px; padding: 14px 24px; }
  .mob-group-btn { font-size: 13px; padding: 14px 24px; }
}

@media(max-width:320px) {
  .mob-links a { font-size: 12px; padding: 12px 20px; }
  .mob-group-btn { font-size: 12px; padding: 12px 20px; }
  .wrap { padding: 0 16px; }
}
