@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

/* =============================================================
   AHLEDHIKR INSTITUTE — SHARED STYLESHEET
   Palette derived directly from the official logo:
     primary green   #14643c  (mosque background)
     stone / taupe   #c8b4a0  (mosque illustration)
     cream           #faf6ec  (for body backgrounds)
     wordmark ivory  #f5f1e4
   ============================================================= */

:root {
  /* Palette — retheme to Direction-A design tokens */
  --green:        #0f4a27;   /* hero / primary green */
  --green-deep:   #0a2e18;   /* deepest footer green */
  --green-soft:   #1a6b3c;   /* green-mid */
  --green-mist:   #e3ebe3;
  --stone:        #c4a882;   /* stone accent */
  --stone-deep:   #8a7055;   /* stone-deep */
  --stone-soft:   #ede5d8;   /* stone-pale */
  --cream:        #f5f0e3;
  --ivory:        #fffdf8;
  --parchment:    #ede5d8;
  --rule:         #d8cdb2;

  --ink:          #1a1a18;
  --ink-soft:     #3e4d45;
  --ink-mute:     #6a6a5e;

  --shadow-sm: 0 1px 2px rgba(20,32,26,0.04), 0 6px 18px rgba(20,32,26,0.05);
  --shadow-md: 0 2px 4px rgba(20,32,26,0.06), 0 14px 40px rgba(20,32,26,0.10);
  --shadow-lg: 0 4px 8px rgba(20,32,26,0.08), 0 28px 70px rgba(20,32,26,0.15);

  /* Typography — echoing the logo's slightly rounded, hand-crafted sans
     paired with a classical serif for long-form text */
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-hand:    'Caveat', 'Comic Sans MS', cursive;
  --f-arabic:  'Amiri', 'Scheherazade New', serif;

  --wrap: 1200px;
  --radius: 6px;
  --radius-lg: 14px;
}

/* =============================================================
   RESET
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; position: relative; z-index: 2; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible {
  outline: 2px solid var(--stone-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Subtle paper texture over the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
  width: 100%;
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.01em; }

.eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--stone-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--stone-deep);
}

.arabic {
  font-family: var(--f-arabic);
  direction: rtl;
  line-height: 1.8;
}

.handwritten {
  font-family: var(--f-hand);
  font-weight: 500;
}

.lede {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}

/* =============================================================
   HEADER / NAV
   ============================================================= */
.topbar {
  position: sticky; top: 0;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
  transition: box-shadow .3s ease;
}
.topbar.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 46px; height: 46px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(10, 74, 44, 0.22);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--f-body);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stone-deep);
  font-weight: 600;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--green); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--stone-deep);
  transition: width .3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--green-deep); }

.nav-cta {
  background: var(--green);
  color: var(--ivory);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }

.burger {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px;
}
.burger span {
  height: 2px; background: var(--green-deep);
  transition: transform .3s ease, opacity .3s ease;
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 150;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2,.7,.1,1);
  padding: 90px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--f-display);
  font-size: 1.85rem;
  color: var(--green-deep);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--stone-deep); }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all .25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  border: 1.5px solid var(--rule);
  color: var(--green-deep);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--green);
  background: var(--ivory);
}
.btn svg { width: 16px; height: 16px; }

/* =============================================================
   PAGE HEADER (for inner pages)
   ============================================================= */
.page-header {
  padding-block: clamp(60px, 9vw, 110px) clamp(50px, 7vw, 80px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at top right, rgba(200, 180, 160, 0.22), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(20, 100, 70, 0.08), transparent 60%),
    var(--cream);
}
.page-header .wrap { position: relative; z-index: 2; }
.page-header .eyebrow { color: var(--green); }
.page-header .eyebrow::before { background: var(--green); }
.page-header h1 { max-width: 22ch; }
.page-header .lede {
  margin-top: 24px;
  max-width: 62ch;
}

/* Decorative mosque silhouette on page headers */
.page-header::after {
  content: "";
  position: absolute;
  bottom: -20px; right: -40px;
  width: 320px; height: 300px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='%23c8b4a0' opacity='0.18'><path d='M90 20 L90 50 L85 50 L85 70 L115 70 L115 50 L110 50 L110 20 Z M60 80 L140 80 L140 180 L60 180 Z M70 95 L90 95 L90 130 L70 130 Z M110 95 L130 95 L130 130 L110 130 Z M85 140 L115 140 L115 180 L85 180 Z'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

/* =============================================================
   SECTIONS
   ============================================================= */
section { padding-block: clamp(60px, 8vw, 110px); position: relative; z-index: 2; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 60px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.section-head p { color: var(--ink-soft); max-width: 60ch; }

.section-green {
  background: var(--green);
  color: var(--ivory);
}
.section-green h1, .section-green h2, .section-green h3 { color: var(--ivory); }
.section-green .eyebrow { color: var(--stone); }
.section-green .eyebrow::before { background: var(--stone); }
.section-green .section-head { border-bottom-color: rgba(200, 180, 160, 0.25); }
.section-green p { color: rgba(245, 241, 228, 0.78); }

.section-stone {
  background: var(--parchment);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* =============================================================
   CARDS / GRIDS
   ============================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--ivory);
  border: 1px solid var(--rule);
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: transform .35s cubic-bezier(.2,.7,.1,1), box-shadow .35s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--stone-deep);
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.1,1), transform .9s cubic-bezier(.2,.7,.1,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--green-deep);
  color: var(--stone);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}
footer::before {
  content: "";
  position: absolute;
  bottom: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 180, 160, 0.10), transparent 60%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}
.footer-brand .brand-name { color: var(--stone); }
.footer-brand .brand-name small { color: var(--stone-deep); }
.footer-brand p {
  font-family: var(--f-display);
  font-style: italic;
  margin-top: 20px;
  color: rgba(200, 180, 160, 0.7);
  max-width: 400px;
  line-height: 1.6;
  font-size: 1.05rem;
}
.footer-col h4 {
  color: var(--stone);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-family: var(--f-body);
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(200, 180, 160, 0.72);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--stone); }

.footer-bar {
  padding-top: 28px;
  border-top: 1px solid rgba(200, 180, 160, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(200, 180, 160, 0.55);
  flex-wrap: wrap;
  gap: 20px;
}
.footer-ar {
  font-family: var(--f-arabic);
  color: var(--stone);
  font-size: 1.1rem;
}

/* =============================================================
   HOME-PAGE HERO
   ============================================================= */
.hero {
  padding-block: clamp(60px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -20%;
  width: 720px; height: 720px;
  background: radial-gradient(circle at center, rgba(200, 180, 160, 0.22), transparent 65%);
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%; left: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle at center, rgba(20, 100, 70, 0.08), transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 3; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.hero-arabic {
  font-family: var(--f-arabic);
  direction: rtl;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  color: var(--stone-deep);
  margin-bottom: 24px;
  opacity: 0;
  animation: rise 1s .1s cubic-bezier(.2,.7,.1,1) forwards;
}
.hero h1 {
  opacity: 0;
  animation: rise 1s .25s cubic-bezier(.2,.7,.1,1) forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--stone-deep);
  font-weight: 500;
}
.hero-lede {
  margin-top: 28px;
  max-width: 560px;
  opacity: 0;
  animation: rise 1s .4s cubic-bezier(.2,.7,.1,1) forwards;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  opacity: 0;
  animation: rise 1s .55s cubic-bezier(.2,.7,.1,1) forwards;
}
.hero-meta div small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stone-deep);
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-meta div strong {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--green-deep);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  opacity: 0;
  animation: rise 1s .7s cubic-bezier(.2,.7,.1,1) forwards;
}

/* Hero logo showcase */
.hero-logo-card {
  aspect-ratio: 1/1.05;
  background: var(--green);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  opacity: 0;
  animation: fadeScale 1.2s .6s cubic-bezier(.2,.7,.1,1) forwards;
}
.hero-logo-card img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}
.hero-logo-card::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1.5px dashed rgba(200, 180, 160, 0.3);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

/* =============================================================
   HOME: FEATURE STRIP
   ============================================================= */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ivory);
  border-block: 1px solid var(--rule);
}
.feature {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.feature:last-child { border-right: none; }
.feature-icon {
  width: 42px; height: 42px;
  color: var(--green);
  margin-bottom: 18px;
}
.feature h4 {
  color: var(--green-deep);
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-size: 1.25rem;
}
.feature p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* =============================================================
   HOME: TEASER SECTIONS
   ============================================================= */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivory);
}
.teaser {
  padding: 44px 38px;
  border-right: 1px solid var(--rule);
  transition: background .3s ease;
  display: flex;
  flex-direction: column;
}
.teaser:last-child { border-right: none; }
.teaser:hover { background: var(--parchment); }
.teaser-num {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--stone-deep);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}
.teaser h3 {
  color: var(--green-deep);
  margin-bottom: 12px;
}
.teaser p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex: 1;
}
.teaser a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}
.teaser a:hover { gap: 10px; color: var(--green-deep); }

/* =============================================================
   ABOUT PAGE
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.about-portrait {
  aspect-ratio: 3/4;
  background: var(--green);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-portrait::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1.5px dashed rgba(200, 180, 160, 0.35);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 20%;
}
.portrait-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(10, 74, 44, 0.85));
  text-align: center;
  color: var(--ivory);
  z-index: 3;
}
.portrait-name .ar {
  font-family: var(--f-arabic);
  font-size: 1.3rem;
  color: var(--stone);
  margin-bottom: 4px;
}
.portrait-name .en {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-style: italic;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--parchment);
  padding: 24px 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--f-display);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  margin-top: 8px;
  display: block;
  font-weight: 500;
}

.credentials {
  margin-top: 48px;
  display: grid;
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
details.cred { background: var(--ivory); transition: background .2s ease; }
details.cred[open] { background: var(--cream); }
details.cred summary {
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--green-deep);
  font-weight: 500;
}
details.cred summary::-webkit-details-marker { display: none; }
details.cred summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--stone-deep);
  transition: transform .3s ease;
  font-weight: 300;
  width: 24px; text-align: center;
}
details.cred[open] summary::after { transform: rotate(45deg); }
details.cred .cred-body {
  padding: 0 24px 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}
details.cred .cred-body ul { padding-left: 20px; }
details.cred .cred-body li { margin-bottom: 8px; }

/* =============================================================
   COURSES PAGE
   ============================================================= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--ivory);
  border: 1px solid var(--rule);
  padding: 38px 32px;
  border-radius: var(--radius);
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.1,1), box-shadow .35s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--stone-deep);
}
.course-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green);
  border-radius: var(--radius) var(--radius) 0 0;
}
.course-year {
  font-family: var(--f-body);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--stone-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.course-title {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 14px;
  line-height: 1.18;
}
.course-level {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  color: var(--ink-mute);
  margin-bottom: 22px;
  border-radius: 2px;
  font-weight: 500;
}
.course-desc {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}
.course-modules {
  list-style: none;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
}
.course-modules li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.course-modules li strong {
  color: var(--green-deep);
  font-weight: 600;
}
.course-modules li span {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--stone-deep);
  font-size: 0.9rem;
  text-align: right;
}

.tuition {
  margin-top: 60px;
  background: var(--green);
  color: var(--ivory);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.tuition::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200, 180, 160, 0.18), transparent 65%);
  pointer-events: none;
}
.tuition h3 { color: var(--ivory); margin-bottom: 12px; font-size: 1.85rem; }
.tuition p { color: rgba(245, 241, 228, 0.8); font-size: 0.95rem; margin-bottom: 12px; }
.tuition .note { font-size: 0.82rem; margin-top: 12px; color: var(--stone); font-style: italic; }
.tuition-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(200, 180, 160, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative; z-index: 2;
}
.fig {
  background: var(--green);
  padding: 24px 18px;
  text-align: center;
}
.fig-price {
  font-family: var(--f-display);
  font-size: 2.4rem;
  color: var(--stone);
  line-height: 1;
  font-weight: 500;
}
.fig-price span { font-size: 1rem; color: rgba(245, 241, 228, 0.6); }
.fig-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245, 241, 228, 0.6);
  margin-top: 10px;
  display: block;
  font-weight: 500;
}

/* =============================================================
   SCHEDULE PAGE
   ============================================================= */
.sched-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sched-table th, .sched-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.sched-table th {
  background: var(--green);
  color: var(--ivory);
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sched-table tr:last-child td { border-bottom: none; }
.sched-table tbody tr:hover td { background: var(--parchment); }
.sched-day {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--green-deep);
  font-weight: 600;
}
.sched-time {
  font-family: var(--f-display);
  color: var(--stone-deep);
  font-size: 1rem;
  font-weight: 500;
}
.sched-subject {
  font-weight: 600;
  color: var(--green-deep);
}
.sched-subject em {
  display: block;
  font-family: var(--f-display);
  font-size: 0.9rem;
  color: var(--ink-mute);
  font-weight: 400;
  margin-top: 2px;
  font-style: italic;
}
.sched-level {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-weight: 500;
}
.sched-note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--ink-mute);
  text-align: center;
  font-style: italic;
  font-family: var(--f-display);
}

.sched-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
  padding: 24px;
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.sched-legend strong {
  color: var(--green-deep);
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-size: 1.05rem;
}

/* =============================================================
   LIBRARY PAGE (videos)
   ============================================================= */
.vid-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.chip {
  padding: 9px 20px;
  border: 1px solid var(--rule);
  background: var(--ivory);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  transition: all .2s ease;
  font-weight: 500;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active {
  background: var(--green);
  color: var(--ivory);
  border-color: var(--green);
}
.vids-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vid-card {
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.vid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--stone-deep);
}
.vid-thumb {
  aspect-ratio: 16/9;
  position: relative;
  background: var(--green-deep);
  overflow: hidden;
}
.vid-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.1,1);
}
.vid-card:hover .vid-thumb img { transform: scale(1.04); }
.vid-thumb-placeholder {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: var(--stone);
  font-family: var(--f-arabic);
  font-size: 3.5rem;
}
.vid-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(10, 74, 44, 0.15), rgba(10, 74, 44, 0.55));
  transition: background .3s ease;
}
.vid-card:hover .vid-play { background: linear-gradient(180deg, rgba(10, 74, 44, 0.25), rgba(10, 74, 44, 0.7)); }
.vid-play-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(245, 241, 228, 0.92);
  display: grid;
  place-items: center;
  color: var(--green-deep);
  transition: transform .3s ease, background .3s ease;
}
.vid-card:hover .vid-play-icon {
  transform: scale(1.08);
  background: var(--stone);
}
.vid-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vid-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stone-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.vid-title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1.3;
  margin-bottom: 10px;
}
.vid-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  flex: 1;
  line-height: 1.55;
}
.vid-meta {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-family: var(--f-display);
  font-style: italic;
}

.vid-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 74, 44, 0.92);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}
.vid-modal.open { display: grid; opacity: 1; }
.vid-modal-inner {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  position: relative;
  background: black;
  border-radius: var(--radius);
  overflow: hidden;
}
.vid-modal iframe {
  width: 100%; height: 100%;
  border: none;
}
.vid-close {
  position: absolute;
  top: -46px; right: 0;
  color: var(--ivory);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
  transition: opacity .2s ease, color .2s ease;
  font-weight: 500;
}
.vid-close:hover { opacity: 1; color: var(--stone); }

/* =============================================================
   PUBLICATIONS PAGE
   ============================================================= */
.pubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.pub-card {
  display: flex;
  gap: 22px;
  padding: 26px;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  align-items: flex-start;
}
.pub-card:hover {
  border-color: var(--stone-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.pub-spine {
  width: 60px;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  border-radius: 2px 4px 4px 2px;
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  color: var(--stone);
  font-family: var(--f-arabic);
  font-size: 1.5rem;
}
.pub-spine::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(200, 180, 160, 0.4);
}
.pub-body h4 {
  color: var(--green-deep);
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.pub-body .pub-author {
  font-size: 0.82rem;
  color: var(--stone-deep);
  font-family: var(--f-display);
  font-style: italic;
  margin-bottom: 10px;
}
.pub-body .pub-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 12px;
}
.pub-body a {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--stone-deep);
  text-underline-offset: 3px;
}
.pub-body a:hover { color: var(--green-deep); }

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info .address {
  font-family: var(--f-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 28px;
}
.contact-item {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
}
.contact-item:last-of-type { border-bottom: 1px solid var(--rule); }
.contact-item small {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--stone-deep);
  font-weight: 700;
}
.contact-item a, .contact-item span {
  color: var(--green-deep);
  font-family: var(--f-display);
  font-size: 1.1rem;
}
.contact-item a:hover { color: var(--stone-deep); }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social {
  width: 42px; height: 42px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all .25s ease;
}
.social:hover {
  background: var(--green);
  color: var(--ivory);
  border-color: var(--green);
  transform: translateY(-2px);
}
.social svg { width: 16px; height: 16px; }

.map-embed {
  aspect-ratio: 4/3;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--parchment);
}
.map-embed iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(0.15) sepia(0.05);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-logo-card { max-width: 380px; margin: 0 auto; width: 100%; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { aspect-ratio: 4/3; max-width: 500px; margin: 0 auto; }
  .courses-grid { grid-template-columns: 1fr; }
  .tuition { grid-template-columns: 1fr; gap: 32px; }
  .vids-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .feature { border-bottom: 1px solid var(--rule); }
  .feature:nth-child(2n) { border-right: none; }
  .feature:nth-last-child(-n+2) { border-bottom: none; }
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser { border-right: none; border-bottom: 1px solid var(--rule); }
  .teaser:last-child { border-bottom: none; }
  .stat-strip { grid-template-columns: 1fr; }
  .sched-table th:nth-child(4), .sched-table td:nth-child(4) { display: none; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 720px) {
  .vids-grid { grid-template-columns: 1fr; }
  .pub-card { flex-direction: column; }
  .pub-spine { width: 50px; }
  .contact-item { grid-template-columns: 1fr; gap: 4px; }
  .sched-table th:nth-child(3), .sched-table td:nth-child(3) { display: none; }
  .sched-table { font-size: 0.88rem; }
  .sched-table th, .sched-table td { padding: 14px 12px; }
  .tuition-figures { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.1rem; }
  .brand-name small { font-size: 0.6rem; }
  .page-header::after { width: 200px; height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
