/* =========================================================
   SMART MINDS — Colorful Edition (logo-themed)
   Pink, Blue, Yellow, Orange, Green, Red, Teal, Purple
   ========================================================= */

/* ---------- Self-hosted fonts (no CDN) ----------
   The url() sources are commented out below so the
   browser doesn't request files that don't exist yet.
   Run `tools/download-fonts.ps1` to pull the .woff2
   files into /assets/fonts/, then UNCOMMENT each url()
   line below to activate the real Fredoka / Cairo etc.
   Until then the system-font fallback chain renders.
   ----------------------------------------------- */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local("Fredoka");
  /* src: local("Fredoka"),
       url("../fonts/Fredoka-VariableFont_wdth,wght.woff2") format("woff2-variations"),
       url("../fonts/Fredoka-VariableFont.woff2") format("woff2"); */
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: local("Nunito");
  /* src: local("Nunito"),
       url("../fonts/Nunito-VariableFont_wght.woff2") format("woff2-variations"),
       url("../fonts/Nunito-VariableFont.woff2") format("woff2"); */
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: local("Cairo");
  /* src: local("Cairo"),
       url("../fonts/Cairo-VariableFont_slnt,wght.woff2") format("woff2-variations"),
       url("../fonts/Cairo-VariableFont.woff2") format("woff2"); */
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Tajawal");
  /* src: local("Tajawal"), url("../fonts/Tajawal-Regular.woff2") format("woff2"); */
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Tajawal Medium");
  /* src: local("Tajawal Medium"), url("../fonts/Tajawal-Medium.woff2") format("woff2"); */
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Tajawal Bold");
  /* src: local("Tajawal Bold"), url("../fonts/Tajawal-Bold.woff2") format("woff2"); */
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local("Tajawal ExtraBold");
  /* src: local("Tajawal ExtraBold"), url("../fonts/Tajawal-ExtraBold.woff2") format("woff2"); */
}

:root {
  /* Logo brand colors (exact from logo SVG) */
  --c-pink:    #E91E63;
  --c-pink-2:  #C2185B;
  --c-pink-soft: #FCE4EC;

  --c-blue:    #1E88E5;
  --c-blue-2:  #1565C0;
  --c-blue-soft: #E3F2FD;

  --c-yellow:  #FFC107;
  --c-yellow-2: #FFA000;
  --c-yellow-soft: #FFF8E1;

  --c-orange:  #FF9800;
  --c-orange-2: #F57C00;
  --c-orange-soft: #FFF3E0;

  --c-green:   #4CAF50;
  --c-green-2: #388E3C;
  --c-green-soft: #E8F5E9;

  --c-red:     #E53935;
  --c-red-2:   #C62828;
  --c-red-soft: #FFEBEE;

  --c-teal:    #00ACC1;
  --c-teal-2:  #00838F;
  --c-teal-soft: #E0F7FA;

  --c-purple:  #7B1FA2;
  --c-purple-2: #4A148C;
  --c-purple-soft: #F3E5F5;

  /* Surfaces */
  --c-bg:      #FFFEFA;
  --c-bg-2:    #FFF9EE;
  --c-bg-3:    #FFF5E0;
  --c-paper:   #FFFFFF;
  --c-ink:     #1B1B2E;
  --c-text:    #2A2A3A;
  --c-text-2:  #5A5A6E;
  --c-text-3:  #6E6E80; /* WCAG AA on white at small sizes — was #8B8B9E (failed) */
  --c-line:    rgba(27, 27, 46, 0.10);
  --c-line-2:  rgba(27, 27, 46, 0.18);

  /* Gradients */
  --g-rainbow: linear-gradient(90deg, #E91E63, #FFC107, #4CAF50, #00ACC1, #1E88E5, #7B1FA2);
  --g-pink:    linear-gradient(135deg, #F06292 0%, #E91E63 100%);
  --g-blue:    linear-gradient(135deg, #42A5F5 0%, #1E88E5 100%);
  --g-yellow:  linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
  --g-orange:  linear-gradient(135deg, #FFB74D 0%, #FF9800 100%);
  --g-green:   linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
  --g-teal:    linear-gradient(135deg, #4DD0E1 0%, #00ACC1 100%);
  --g-purple:  linear-gradient(135deg, #BA68C8 0%, #7B1FA2 100%);
  --g-sky:     linear-gradient(180deg, #E3F2FD 0%, #FFF9EE 70%);

  /* Typography */
  --f-display: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --f-body:    "Nunito", "Inter", -apple-system, system-ui, sans-serif;
  --f-ar-display: "Cairo", "Tajawal", sans-serif;
  --f-ar-body: "Tajawal", "Cairo", sans-serif;

  /* Spacing */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  /* Layout */
  --max-w: 1280px;
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-pill: 999px;
  --radius-blob: 60% 40% 55% 45% / 50% 60% 40% 50%;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 220ms;
  --d-base: 380ms;
  --d-slow: 700ms;

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(27, 27, 46, 0.08);
  --shadow:    0 12px 32px rgba(27, 27, 46, 0.10);
  --shadow-lg: 0 24px 56px rgba(27, 27, 46, 0.14);
  --shadow-pink: 0 12px 28px rgba(233, 30, 99, 0.32);
  --shadow-blue: 0 12px 28px rgba(30, 136, 229, 0.32);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Belt + braces: the viewport must NEVER scroll sideways.
     overflow-x:hidden on body alone isn't enough on iOS Safari
     and some Android browsers when html is the scroll root. */
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  font-weight: 500;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--d-fast) var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
:focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--c-ink);
}
/* Tighter visible focus on dark backgrounds */
.video-section :focus-visible,
.footer :focus-visible,
.lightbox :focus-visible,
.cta-banner :focus-visible {
  outline-color: var(--c-yellow);
  box-shadow: 0 0 0 1px white;
}
/* Skip-to-main link — visible on focus only */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  background: var(--c-ink);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 1000;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform var(--d-fast) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--c-yellow);
  outline-offset: 3px;
}
html[dir="rtl"] .skip-link { left: auto; right: 8px; }

/* =========================================================
   Mobile sticky CTA bar (Call · WhatsApp · Visit)
   Appears after scrolling past hero on small screens
   ========================================================= */
.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid var(--c-line);
  padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: none;
  transform: translateY(110%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 -4px 24px rgba(27, 27, 46, 0.08);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar-grid {
  display: grid;
  grid-template-columns: 52px 52px 1fr;
  gap: 0.55rem;
  align-items: center;
  max-width: 540px;
  margin: 0 auto;
}
.mobile-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 14px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 48px;
  transition: transform var(--d-fast) var(--ease-bouncy), background var(--d-fast) var(--ease);
}
.mobile-cta-btn:active { transform: scale(0.96); }
.mobile-cta-btn-call {
  background: var(--c-yellow-soft);
  color: var(--c-orange-2);
}
.mobile-cta-btn-call:hover { background: var(--c-yellow); }
.mobile-cta-btn-wa {
  background: #25D366;
  color: white;
}
.mobile-cta-btn-wa:hover { background: #1ebe5c; }
.mobile-cta-btn-visit {
  background: var(--c-pink);
  color: white;
  padding: 0 1rem;
  box-shadow: var(--shadow-pink);
}
.mobile-cta-btn-visit:hover { background: var(--c-pink-2); }

@media (max-width: 680px) {
  .mobile-cta-bar { display: block; }
  /* WhatsApp float is redundant on mobile — the sticky bar
     already has a green WhatsApp pill. Hide it to declutter. */
  .whatsapp-float { display: none; }
  /* Push chatbot launcher well above the sticky bar */
  .chatbot-launcher { bottom: 7.5rem; right: 1rem; }
  .chatbot-launcher-badge { /* badge stays in place */ }
  .chatbot-panel { bottom: 13.5rem; max-height: calc(100vh - 15rem); right: 1rem; }
}

/* =========================================================
   Scroll-to-top button
   ========================================================= */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-ink);
  color: white;
  border: 0;
  display: grid;
  place-items: center;
  z-index: 96;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s var(--ease),
              transform 0.3s var(--ease-bouncy),
              visibility 0s 0.3s,
              background 0.2s var(--ease);
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.scroll-top:hover { background: var(--c-pink); }
.scroll-top:focus-visible { outline-offset: 4px; }
html[dir="rtl"] .scroll-top { left: auto; right: 1.5rem; }

@media (max-width: 680px) {
  .scroll-top {
    left: 1rem;
    bottom: 7.5rem;
  }
  html[dir="rtl"] .scroll-top { left: auto; right: 1rem; }
}

/* Visually hidden — for screen-reader-only labels and aria-live regions */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
::selection { background: var(--c-yellow); color: var(--c-ink); }

/* Typography */
h1, .h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
h2, .h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}
h3 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-ink);
}
h4 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; color: var(--c-ink); }
p { color: var(--c-text-2); max-width: 60ch; }
.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--c-text-2);
  font-weight: 500;
  line-height: 1.65;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: var(--c-yellow-soft);
  color: var(--c-orange-2);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow.pink   { background: var(--c-pink-soft);   color: var(--c-pink-2); }
.eyebrow.blue   { background: var(--c-blue-soft);   color: var(--c-blue-2); }
.eyebrow.green  { background: var(--c-green-soft);  color: var(--c-green-2); }
.eyebrow.teal   { background: var(--c-teal-soft);   color: var(--c-teal-2); }
.eyebrow.purple { background: var(--c-purple-soft); color: var(--c-purple-2); }
.eyebrow.red    { background: var(--c-red-soft);    color: var(--c-red-2); }

.rainbow-text {
  background: var(--g-rainbow);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Squiggle underline */
.squiggle {
  position: relative;
  display: inline-block;
}
.squiggle::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q 12.5 0 25 4 T 50 4 T 75 4 T 100 4' fill='none' stroke='%23FFC107' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* Arabic typography */
html[lang="ar"] body { font-family: var(--f-ar-body); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: var(--f-ar-display);
}
html[lang="ar"] .eyebrow { letter-spacing: 0.05em; }

/* Layout */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.section-head p { margin: 1.25rem auto 0; }

.bg-pink   { background: var(--c-pink-soft); }
.bg-blue   { background: var(--c-blue-soft); }
.bg-yellow { background: var(--c-yellow-soft); }
.bg-green  { background: var(--c-green-soft); }
.bg-cream  { background: var(--c-bg-2); }
.bg-sky    { background: var(--g-sky); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1.05rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform var(--d-base) var(--ease-bouncy),
              background var(--d-base) var(--ease),
              box-shadow var(--d-base) var(--ease);
}
.btn-pink { background: var(--c-pink); color: white; box-shadow: var(--shadow-pink); }
.btn-pink:hover { background: var(--c-pink-2); transform: translateY(-3px) scale(1.03); }
.btn-blue { background: var(--c-blue); color: white; box-shadow: var(--shadow-blue); }
.btn-blue:hover { background: var(--c-blue-2); transform: translateY(-3px) scale(1.03); }
.btn-yellow { background: var(--c-yellow); color: var(--c-ink); }
.btn-yellow:hover { background: var(--c-yellow-2); transform: translateY(-3px) scale(1.03); }
.btn-green { background: var(--c-green); color: white; }
.btn-green:hover { background: var(--c-green-2); transform: translateY(-3px) scale(1.03); }
.btn-ghost { background: transparent; color: var(--c-ink); border: 2.5px solid var(--c-line-2); }
.btn-ghost:hover { border-color: var(--c-pink); color: var(--c-pink); transform: translateY(-3px); }

/* Topbar */
.topbar {
  background: var(--c-ink);
  color: white;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  background-image: var(--g-rainbow);
  background-size: 100% 3px;
  background-position: bottom;
  background-repeat: no-repeat;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-info a { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar-info a:hover { color: var(--c-yellow); }
.topbar-cta {
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all var(--d-fast) var(--ease);
}
.topbar-cta:hover { background: white; transform: translateY(-1px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 254, 250, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  padding: 0.9rem 0;
  border-bottom: 1px solid transparent;
  transition: all var(--d-base) var(--ease);
}
.nav.is-scrolled {
  padding: 0.55rem 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 24px rgba(27, 27, 46, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-logo { display: inline-flex; align-items: center; height: 64px; transition: transform var(--d-base) var(--ease); }
.brand-logo:hover { transform: scale(1.03) rotate(-1deg); }
.brand-logo img { height: 100%; width: auto; display: block; }
.nav.is-scrolled .brand-logo { height: 52px; }
.footer .brand-logo { height: 80px !important; }

.nav-links { display: flex; align-items: center; gap: 1.85rem; }
.nav-links a {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--d-fast) var(--ease);
}
.nav-links a:hover { color: var(--c-pink); }
.nav-links a::after {
  content: ""; position: absolute;
  bottom: -2px; left: 0; right: 0; height: 3px;
  background: var(--c-yellow);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-base) var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.85rem; }
.lang-toggle {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--c-line-2);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-text);
  transition: all var(--d-fast) var(--ease);
}
.lang-toggle:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-ink); }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  border-radius: 12px; background: white;
  border: 2px solid var(--c-line-2);
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2.5px; background: var(--c-ink); border-radius: 2px; position: relative; transition: all var(--d-base) var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2.5px; background: var(--c-ink); border-radius: 2px;
  transition: all var(--d-base) var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--g-sky);
}
.hero::before {
  content: ""; position: absolute;
  top: -200px; left: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--c-pink-soft);
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--c-yellow-soft);
  filter: blur(80px);
  opacity: 0.7;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.hero-text { position: relative; }
.hero-text h1 { margin: 1.5rem 0; }
.hero-text h1 span.color-pink   { color: var(--c-pink); }
.hero-text h1 span.color-blue   { color: var(--c-blue); }
.hero-text h1 span.color-yellow { color: var(--c-yellow-2); }
.hero-text h1 span.color-green  { color: var(--c-green); }
.hero-actions { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  margin-top: 3.5rem;
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 2px dashed var(--c-line);
}
.hero-stat-num {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}
.hero-stat:nth-child(1) .hero-stat-num { color: var(--c-pink); }
.hero-stat:nth-child(2) .hero-stat-num { color: var(--c-blue); }
.hero-stat:nth-child(3) .hero-stat-num { color: var(--c-orange); }
.hero-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
  font-weight: 700;
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: grid; place-items: center;
}
.hero-blob {
  position: absolute;
  width: 90%; height: 90%;
  background: var(--g-pink);
  border-radius: var(--radius-blob);
  animation: blob 18s ease-in-out infinite;
  z-index: 0;
}
.hero-blob.alt {
  background: var(--g-blue);
  width: 70%; height: 70%;
  top: 5%; right: 0;
  opacity: 0.5;
  animation-direction: reverse;
}
/* @keyframes blob — defined later (slower variant). See ANIMATION TONE-DOWN section. */

/* Floating decorations */
.deco {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}
.deco-1 { top: 10%; right: 5%; }
.deco-2 { bottom: 15%; left: 8%; animation-delay: -2s; }
.deco-3 { top: 50%; right: -2%; animation-delay: -4s; }
/* @keyframes float — defined later (gentler variant). See ANIMATION TONE-DOWN section. */

/* Pillar cards (4 reasons) */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pillar-card {
  background: var(--c-paper);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all var(--d-base) var(--ease-bouncy);
  border: 3px solid transparent;
}
.pillar-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.pillar-card:nth-child(1) { border-color: var(--c-pink); }
.pillar-card:nth-child(2) { border-color: var(--c-blue); }
.pillar-card:nth-child(3) { border-color: var(--c-yellow); }
.pillar-card:nth-child(4) { border-color: var(--c-green); }
.pillar-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: grid; place-items: center;
  color: white;
}
.pillar-card:nth-child(1) .pillar-icon { background: var(--g-pink); }
.pillar-card:nth-child(2) .pillar-icon { background: var(--g-blue); }
.pillar-card:nth-child(3) .pillar-icon { background: var(--g-yellow); color: var(--c-ink); }
.pillar-card:nth-child(4) .pillar-icon { background: var(--g-green); }
.pillar-icon svg { width: 36px; height: 36px; }
.pillar-card h4 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.pillar-card p { font-size: 0.95rem; line-height: 1.6; }

/* Programs / Age cards */
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.age-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--d-base) var(--ease-bouncy);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.age-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow); }
.age-card-img {
  aspect-ratio: 4 / 3;
  position: relative;
  display: grid; place-items: center;
  color: white;
}
.age-card:nth-child(1) .age-card-img { background: var(--g-pink); }
.age-card:nth-child(2) .age-card-img { background: var(--g-blue); }
.age-card:nth-child(3) .age-card-img { background: var(--g-yellow); color: var(--c-ink); }
.age-card:nth-child(4) .age-card-img { background: var(--g-green); }
.age-card-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: white;
  color: var(--c-ink);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[dir="rtl"] .age-card-tag { left: auto; right: 1rem; letter-spacing: 0.02em; }
.age-card-body { background: white; padding: 1.5rem; }
.age-card-body h3 { margin-bottom: 0.5rem; }
.age-card-body p { font-size: 0.93rem; line-height: 1.55; }
.age-card-arrow {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--c-pink);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.age-card:nth-child(2) .age-card-arrow { color: var(--c-blue); }
.age-card:nth-child(3) .age-card-arrow { color: var(--c-orange-2); }
.age-card:nth-child(4) .age-card-arrow { color: var(--c-green-2); }

/* Programs chips */
.program-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.program-chip {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--d-base) var(--ease-bouncy);
  font-family: var(--f-display);
  font-weight: 600;
}
.program-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-chip-icon {
  flex: 0 0 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center; color: white;
}
.program-chip:nth-child(6n+1) .program-chip-icon { background: var(--c-pink); }
.program-chip:nth-child(6n+2) .program-chip-icon { background: var(--c-blue); }
.program-chip:nth-child(6n+3) .program-chip-icon { background: var(--c-yellow); color: var(--c-ink); }
.program-chip:nth-child(6n+4) .program-chip-icon { background: var(--c-green); }
.program-chip:nth-child(6n+5) .program-chip-icon { background: var(--c-teal); }
.program-chip:nth-child(6n+6) .program-chip-icon { background: var(--c-purple); }

/* Service badges (Bus, SEND, etc.) */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--d-base) var(--ease-bouncy);
  position: relative;
  border-bottom: 5px solid var(--c-pink);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card:nth-child(2) { border-bottom-color: var(--c-blue); }
.service-card:nth-child(3) { border-bottom-color: var(--c-green); }
.service-card:nth-child(4) { border-bottom-color: var(--c-orange); }
.service-card-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 1.25rem; color: white; }
.service-card:nth-child(1) .service-card-icon { background: var(--g-pink); }
.service-card:nth-child(2) .service-card-icon { background: var(--g-blue); }
.service-card:nth-child(3) .service-card-icon { background: var(--g-green); }
.service-card:nth-child(4) .service-card-icon { background: var(--g-orange); }
.service-card-pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.service-card:nth-child(1) .service-card-pill { background: var(--c-pink-soft); color: var(--c-pink-2); }
.service-card:nth-child(2) .service-card-pill { background: var(--c-blue-soft); color: var(--c-blue-2); }
.service-card:nth-child(3) .service-card-pill { background: var(--c-green-soft); color: var(--c-green-2); }
.service-card:nth-child(4) .service-card-pill { background: var(--c-orange-soft); color: var(--c-orange-2); }
.service-card h4 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.service-card p { font-size: 0.94rem; line-height: 1.55; }

/* Video section */
.video-section {
  background: var(--c-ink);
  color: white;
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.video-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(233, 30, 99, 0.18) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 70%, rgba(255, 193, 7, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.video-section h2 { color: white; }
.video-section p { color: rgba(255, 255, 255, 0.75); }
.video-frame {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--c-yellow);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
  color: white;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition: all var(--d-base) var(--ease-bouncy);
}
.gallery-item:hover { transform: scale(1.05) rotate(-2deg); }
.gallery-item:nth-child(1) { background: var(--g-pink); }
.gallery-item:nth-child(2) { background: var(--g-blue); }
.gallery-item:nth-child(3) { background: var(--g-yellow); color: var(--c-ink); }
.gallery-item:nth-child(4) { background: var(--g-green); }
.gallery-item:nth-child(5) { background: var(--g-teal); }
.gallery-item:nth-child(6) { background: var(--g-purple); }
.gallery-item:nth-child(7) { background: var(--g-orange); }
.gallery-item:nth-child(8) { background: linear-gradient(135deg, #E53935, #FFC107); }

/* Form */
.visit-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--c-yellow);
}
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; }
.field label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--c-ink); margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--c-bg);
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 0.96rem;
  transition: all var(--d-base) var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-pink); background: white; }

/* Location */
.location-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow);
}
.location-info {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex; flex-direction: column; justify-content: center;
}
.location-info h3 { margin-bottom: 1rem; }
.location-address {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--c-text);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.location-detail-row { display: flex; gap: 0.85rem; padding: 0.8rem 0; border-top: 1px dashed var(--c-line); }
.location-detail-row:last-of-type { border-bottom: 1px dashed var(--c-line); margin-bottom: 1.5rem; }
.location-detail-label { flex: 0 0 90px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-text-3); padding-top: 0.15rem; }
.location-map {
  display: block;
  position: relative;
  min-height: 420px;
  text-decoration: none; color: inherit;
}
.location-map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(3.5rem, 7vw, 5rem) 0 1.5rem;
  background-image: var(--g-rainbow);
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: top;
}
.footer h5 {
  color: var(--c-yellow);
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid p { color: rgba(255, 255, 255, 0.6); font-size: 0.94rem; max-width: 38ch; }
.footer ul { display: grid; gap: 0.65rem; }
.footer ul a { color: rgba(255, 255, 255, 0.75); font-size: 0.94rem; }
.footer ul a:hover { color: var(--c-yellow); }
.footer-bottom { padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: grid; place-items: center;
  transition: all var(--d-fast) var(--ease);
}
.footer-social a:hover { background: var(--c-pink); transform: translateY(-2px); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid; place-items: center;
  z-index: 99;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  animation: pulseRing 2.4s infinite;
  transition: transform var(--d-base) var(--ease-bouncy);
}
.whatsapp-float:hover { transform: scale(1.1); }
html[dir="rtl"] .whatsapp-float { right: auto; left: 1.5rem; }
/* @keyframes pulseRing — defined later (calmer variant). See ANIMATION TONE-DOWN section. */

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .pillar-grid, .service-grid, .age-grid { grid-template-columns: repeat(2, 1fr); }
  .program-chips { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .location-card { grid-template-columns: 1fr; }
  .location-map { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
/* Nav goes to mobile-menu earlier — 7 items overflow on tablet without this */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 1.5rem;
    box-shadow: var(--shadow); gap: 1rem;
  }
  html[dir="rtl"] .nav.is-open .nav-links { left: 0; right: 0; }
  /* Reduce nav-actions gap on tablet to give the logo more room */
  .nav-actions { gap: 0.6rem; }
}
/* On phones, hide the wide "Register Now" pill — it overflows.
   Conversion path is preserved via the sticky bottom CTA bar,
   the topbar "Book a Visit" pill, and the hamburger menu. */
@media (max-width: 680px) {
  .nav-actions .btn-pink { display: none; }
  .nav-actions { gap: 0.5rem; }
  .brand-logo { height: 56px; }
  .nav.is-scrolled .brand-logo { height: 48px; }
}
@media (max-width: 680px) {
  .pillar-grid, .service-grid, .age-grid, .program-chips { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Visit-form 2-col layout collapses */
  section#visit > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important; gap: 2rem !important;
  }
}
/* Headings — never let a long word punch through the container.
   Critical for the system-font fallback (Segoe UI, etc.) which
   measures wider than Fredoka. */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* Phones (≤520px) — shrink display headings so multi-word lines fit */
@media (max-width: 520px) {
  h1, .h1 { font-size: clamp(2rem, 8vw, 2.4rem); }
  h2, .h2 { font-size: clamp(1.65rem, 6.5vw, 2.1rem); }
  .article-hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}

/* =========================================================
   MOBILE LAYOUT HARDENING — overflow defenses
   Every layer constrained to 100vw so nothing can push the
   page wider than the viewport.
   ========================================================= */
@media (max-width: 980px) {
  /* Hard-cap every top-level region */
  .topbar, .nav, .hero, .section, .video-section,
  .footer, .article-hero-banner, .article-feature-image {
    max-width: 100vw;
    overflow-x: clip;
  }
  /* Flex/grid children without intrinsic min-width often
     force their parent wider than the viewport — fix it. */
  .topbar-info, .topbar-info > a,
  .nav-inner, .nav-actions,
  .hero-grid > *, .hero-photo-cluster > * {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  /* The topbar duplicates what the sticky bottom bar already
     does (call + visit); hide it so the email never overflows. */
  .topbar { display: none; }

  /* The 1.5° rotation on hero photos slightly expands their
     bounding box — kill it on phones to remove any sliver
     of horizontal overflow. */
  .hero-photo.tall,
  .hero-photo.wide,
  .hero-photo.small { transform: none; }

  /* The hero blob blobs use 90% sizes + animations. Constrain
     them firmly so they can't escape on small screens. */
  .hero-blob { max-width: 100%; }

  /* Lock container padding to a known value — no clamp surprises */
  .container { padding: 0 1rem; }

  /* Force long unbreakable strings (emails, URLs) to wrap */
  a[href^="mailto"], a[href^="tel"] {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Smallest-phone safeguards (iPhone SE / 320–390) */
@media (max-width: 400px) {
  .topbar-info { gap: 0.65rem; font-size: 0.78rem; }
  .topbar { padding: 0.4rem 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .article-meta-row { gap: 0.5rem; }
  .article-meta-pill { font-size: 0.78rem; padding: 0.3rem 0.7rem; }
}
/* Ultra-wide screens (1440px+) — keep content centered, hero balanced */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .hero-grid { gap: 5rem; }
}
@media (min-width: 1920px) {
  body { font-size: 1.075rem; }
}

/* =========================================================
   REDUCED MOTION — comprehensive override
   Honors the user's OS-level preference. Strips animations,
   stops decorative motion, and zeroes hover transforms so
   nothing moves unexpectedly.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  /* Near-zero durations across the board */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Stop all decorative loops explicitly */
  .hero-blob, .hero-blob.alt,
  .deco, .deco-1, .deco-2, .deco-3,
  .whatsapp-float, .chatbot-launcher-badge,
  .heartbeat, .wiggle, .wiggle-slow,
  .sparkle, .color-cycle, .bounce,
  .rotate-slow, .float-shape,
  .video-facade-play::after {
    animation: none !important;
  }

  /* Reveal-on-scroll entrances appear immediately */
  .reveal, .reveal-left, .reveal-right, .reveal-up,
  .reveal-scale, .reveal-pop {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Hover lifts / rotates / scales — disabled */
  .pillar-card:hover,
  .service-card:hover,
  .age-card:hover,
  .gallery-item:hover,
  .gallery-card:hover,
  .testimonial-card:hover,
  .article-card:hover,
  .btn:hover, .btn-pink:hover, .btn-blue:hover, .btn-yellow:hover, .btn-green:hover, .btn-ghost:hover,
  .filter-chip:hover,
  .brand-logo:hover,
  .program-chip:hover,
  .whatsapp-float:hover,
  .chatbot-launcher:hover,
  .topbar-cta:hover,
  .hero-photo:hover,
  .age-card:hover .age-card-photo,
  .gallery-card:hover img,
  .article-card:hover img,
  .service-card:hover .service-card-photo img,
  .bus-route:hover .bus-route-image img,
  .story-image:hover img,
  .hero-photo:hover img,
  .age-card-arrow,
  .article-card:hover .article-card-readmore::after,
  .instagram-cta-btn:hover {
    transform: none !important;
  }

  /* Lightbox image hover scaling */
  .gallery-card img,
  .article-card img,
  .hero-photo img,
  .story-image img,
  .age-card-photo,
  .service-card-photo img,
  .bus-route-image img {
    transition: none !important;
  }
}

/* =========================================================
   ENHANCED ANIMATIONS — Richer, more playful
   ========================================================= */

/* Reveal variants — slide from different directions */
.reveal-left  { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-bouncy); }
.reveal-right { opacity: 0; transform: translateX(50px);  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-bouncy); }
.reveal-up    { opacity: 0; transform: translateY(50px);  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-bouncy); }
.reveal-scale { opacity: 0; transform: scale(0.85);       transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-bouncy); }
.reveal-pop   { opacity: 0; transform: scale(0.7) rotate(-5deg); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-bouncy); }
.reveal-left.is-in, .reveal-right.is-in, .reveal-up.is-in, .reveal-scale.is-in, .reveal-pop.is-in {
  opacity: 1; transform: none;
}

/* Wiggle animation — for icons and decorations */
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}
.wiggle { animation: wiggle 2s ease-in-out infinite; transform-origin: center bottom; }
.wiggle-slow { animation: wiggle 3s ease-in-out infinite; }
.wiggle:hover { animation-duration: 0.4s; }

/* Bounce animation — @keyframes bounce-soft defined later with smaller amplitude. */

/* Rotate slow */
@keyframes rotate-slow { to { transform: rotate(360deg); } }
.rotate-slow { animation: rotate-slow 18s linear infinite; }

/* Color-cycle background — shifts through brand colors */
@keyframes color-cycle {
  0%   { background-color: #E91E63; }
  17%  { background-color: #FF9800; }
  33%  { background-color: #FFC107; }
  50%  { background-color: #4CAF50; }
  67%  { background-color: #00ACC1; }
  83%  { background-color: #1E88E5; }
  100% { background-color: #E91E63; }
}
.color-cycle { animation: color-cycle 12s linear infinite; }

/* Heartbeat — for important CTAs */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.08); }
  20%      { transform: scale(1); }
  30%      { transform: scale(1.05); }
  40%      { transform: scale(1); }
}
.heartbeat { animation: heartbeat 2.5s ease-in-out infinite; }

/* Sparkle — quick twinkle animation */
@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0); }
  50%      { opacity: 1;   transform: scale(1.2) rotate(180deg); }
}
.sparkle { animation: sparkle 2s ease-in-out infinite; transform-origin: center; }

/* Hover lift + tilt enhancement */
.pillar-card, .service-card, .age-card, .program-chip {
  will-change: transform;
}
.pillar-card:hover { transform: translateY(-8px) rotate(-2deg) scale(1.02); }
.service-card:hover { transform: translateY(-10px) scale(1.03); }
.age-card:hover { transform: translateY(-10px) scale(1.04) rotate(1deg); }

/* Gallery items - bouncy hover with color shift */
.gallery-item { transition: transform 0.4s var(--ease-bouncy), box-shadow 0.4s var(--ease); }
.gallery-item:hover { transform: scale(1.08) rotate(-3deg); box-shadow: 0 20px 40px rgba(0,0,0,0.25); z-index: 2; }

/* Hero text typing-style entrance */
.hero-text h1 span {
  display: inline-block;
  animation: pop-in 0.7s var(--ease-bouncy) backwards;
}
.hero-text h1 span:nth-of-type(1) { animation-delay: 0.2s; }
.hero-text h1 span:nth-of-type(2) { animation-delay: 0.45s; }
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.5) translateY(20px); }
  60%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* Button extra bounce on click */
.btn:active { transform: scale(0.96) !important; }

/* Floating accent shapes throughout page */
.float-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  animation: float-drift 14s ease-in-out infinite;
}
@keyframes float-drift {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  33%      { transform: translate(15px, -25px) rotate(12deg); }
  66%      { transform: translate(-12px, 15px) rotate(-8deg); }
}

/* Section background subtle pattern */
.bg-pattern { position: relative; }
.bg-pattern::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(233,30,99,0.08) 0, transparent 8%),
    radial-gradient(circle at 80% 60%, rgba(255,193,7,0.08) 0, transparent 8%),
    radial-gradient(circle at 30% 80%, rgba(76,175,80,0.08) 0, transparent 8%);
  background-size: 100% 100%;
  pointer-events: none;
}

/* Smooth scroll progress bar (top of page) */
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: var(--g-rainbow);
  z-index: 200; transition: width 0.1s linear;
  border-radius: 0 4px 4px 0;
}

/* (Legacy .video-facade rules removed — native <video> is used now.) */

/* =========================================================
   CHAT BOT WIDGET — Quick-answer assistant
   ========================================================= */
.chatbot-launcher {
  position: fixed;
  bottom: 1.5rem;
  right: 6.5rem;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--g-pink);
  color: white;
  display: grid; place-items: center;
  z-index: 99;
  box-shadow: 0 12px 28px rgba(233, 30, 99, 0.45);
  border: 0; cursor: pointer;
  transition: transform 0.3s var(--ease-bouncy);
  animation: heartbeat 3s ease-in-out infinite;
}
.chatbot-launcher:hover { transform: scale(1.1) rotate(-5deg); animation: none; }
html[dir="rtl"] .chatbot-launcher { right: auto; left: 6.5rem; }

.chatbot-launcher svg { width: 28px; height: 28px; }
.chatbot-launcher-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-yellow);
  color: var(--c-ink);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid white;
  animation: bounce-soft 1.5s ease-in-out infinite;
}
html[dir="rtl"] .chatbot-launcher-badge { right: auto; left: -4px; }

.chatbot-panel {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  width: 360px;
  max-width: calc(100vw - 3rem);
  height: 520px;
  max-height: calc(100vh - 9rem);
  background: white;
  border-radius: 24px;
  box-shadow: 0 24px 56px rgba(27,27,46,0.22);
  z-index: 98;
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-bouncy);
}
.chatbot-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
html[dir="rtl"] .chatbot-panel { right: auto; left: 1.5rem; }

.chatbot-header {
  padding: 1.25rem 1.5rem;
  background: var(--g-pink);
  color: white;
  display: flex; align-items: center; gap: 0.85rem;
  flex-shrink: 0;
}
.chatbot-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--c-pink);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.chatbot-title-block { flex: 1; }
.chatbot-title { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.chatbot-sub { font-size: 0.78rem; opacity: 0.92; display: flex; align-items: center; gap: 0.35rem; margin-top: 0.1rem; }
.chatbot-sub::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; box-shadow: 0 0 8px #4CAF50; animation: bounce-soft 1.5s infinite; }
.chatbot-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: white; cursor: pointer; border: 0;
  display: grid; place-items: center;
  transition: background 0.2s var(--ease);
}
.chatbot-close:hover { background: rgba(255,255,255,0.3); }

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--c-bg-2);
  display: flex; flex-direction: column; gap: 0.85rem;
  scroll-behavior: smooth;
}
.chatbot-body::-webkit-scrollbar { width: 6px; }
.chatbot-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1.1rem;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: chat-pop 0.35s var(--ease-bouncy);
}
@keyframes chat-pop {
  0% { opacity: 0; transform: scale(0.85) translateY(8px); }
  100% { opacity: 1; transform: none; }
}
.chat-msg.bot {
  background: white;
  color: var(--c-text);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.chat-msg.user {
  background: var(--c-pink);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  font-weight: 600;
}
html[dir="rtl"] .chat-msg.bot { border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
html[dir="rtl"] .chat-msg.user { border-bottom-right-radius: 18px; border-bottom-left-radius: 6px; }

.chat-quick-replies {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 0 0 0.5rem;
}
.chat-quick-reply {
  background: white;
  border: 2px solid var(--c-pink);
  color: var(--c-pink);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chat-quick-reply:hover { background: var(--c-pink); color: white; transform: translateY(-2px); }

.chatbot-footer {
  padding: 0.85rem 1rem;
  background: white;
  border-top: 1px solid var(--c-line);
  display: flex; flex-direction: column; gap: 0.6rem;
  flex-shrink: 0;
}
.chatbot-input-row { display: flex; gap: 0.5rem; }
.chatbot-input {
  flex: 1;
  background: var(--c-bg-2);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease);
}
.chatbot-input:focus { border-color: var(--c-pink); background: white; }
.chatbot-send {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-pink);
  color: white; border: 0;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.chatbot-send:hover { background: var(--c-pink-2); }
.chatbot-whatsapp-jump {
  text-align: center;
  font-size: 0.78rem;
  color: var(--c-text-3);
}
.chatbot-whatsapp-jump a { color: #25D366; font-weight: 700; }

@media (max-width: 480px) {
  .chatbot-panel { right: 1rem; left: 1rem; width: auto; bottom: 6rem; }
  .chatbot-launcher { right: 5.5rem; }
  html[dir="rtl"] .chatbot-launcher { right: auto; left: 5.5rem; }
}

/* =========================================================
   ANIMATION TONE-DOWN — Smoother, calmer
   ========================================================= */

/* Slow down hero blob morph */
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  50%      { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
}
.hero-blob { animation: blob 32s ease-in-out infinite; }
.hero-blob.alt { animation-duration: 40s; }

/* Floating decorations — slower, gentler */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
.deco { animation-duration: 8s !important; }
.deco-1 { animation: float 9s ease-in-out infinite; }
.deco-2 { animation: float 11s ease-in-out infinite -3s; }
.deco-3 { animation: float 10s ease-in-out infinite -5s; }

/* Disable heartbeat on chat launcher — too distracting */
.chatbot-launcher { animation: none !important; }
.chatbot-launcher:hover { transform: scale(1.06); }

/* Soften the WhatsApp pulse */
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,0.35); }
  50%      { box-shadow: 0 12px 28px rgba(37,211,102,0.4), 0 0 0 6px rgba(37,211,102,0.15); }
}
.whatsapp-float { animation: pulseRing 4s ease-in-out infinite; }

/* Disable heartbeat utility on user-visible elements */
.heartbeat { animation: none !important; }

/* Remove sparkle on chatbot status dot — too jumpy */
.chatbot-sub::before { animation: none !important; }

/* Soft wiggle ONLY on hover, not idle */
.wiggle, .wiggle-slow { animation: none !important; }
.wiggle:hover { animation: wiggle 0.6s ease-in-out; }

/* Bounce animation — only on quick-reply badge, smaller amplitude */
@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.bounce, .chatbot-launcher-badge { animation: bounce-soft 3s ease-in-out infinite; }

/* Hero text — remove pop-in (was causing twitchy entry) */
.hero-text h1 span { animation: none !important; opacity: 1; transform: none; }

/* Card hover — reduce rotation, keep lift */
.pillar-card:hover { transform: translateY(-6px); }
.service-card:hover { transform: translateY(-6px) scale(1.01); }
.age-card:hover { transform: translateY(-6px) scale(1.02); }
.gallery-item:hover { transform: scale(1.04); }

/* Color cycle — much slower */
.color-cycle { animation: color-cycle 30s linear infinite; }

/* Reveal transitions softer */
.reveal, .reveal-left, .reveal-right, .reveal-up, .reveal-scale, .reveal-pop {
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out) !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-blob, .deco, .whatsapp-float, .chatbot-launcher-badge,
  .heartbeat, .wiggle, .sparkle, .color-cycle, .bounce {
    animation: none !important;
  }
}

/* =========================================================
   REAL PHOTOS — Hero collage, About story, Photo age-cards,
   Service photo strip, Gallery with filter + lightbox
   ========================================================= */

/* ---------- Hero photo collage ---------- */
.hero-photo-cluster {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  z-index: 1;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--c-bg-2);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.hero-photo:hover img { transform: scale(1.06); }
.hero-photo.tall  { grid-row: span 2; border-radius: 40px; transform: rotate(-1.5deg); }
.hero-photo.wide  { grid-column: span 1; transform: rotate(1.5deg); }
.hero-photo.small { transform: rotate(-1deg); }
.hero-photo-badge {
  position: absolute;
  bottom: 14px; left: 14px;
  background: white;
  color: var(--c-ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-photo-badge.pink { color: var(--c-pink-2); }
.hero-photo-badge.blue { color: var(--c-blue-2); }
.hero-photo-badge.green { color: var(--c-green-2); }

/* keep playful floating decos visible on top */
.hero-visual .deco { z-index: 3; }

/* ---------- About: Our Story section ---------- */
.story-section { padding: clamp(4rem, 8vw, 6rem) 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--c-yellow-soft);
}
.story-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.story-image:hover img { transform: scale(1.04); }
.story-image::after {
  content: "";
  position: absolute; inset: auto -8% -8% auto;
  width: 60%; height: 40%;
  background: var(--g-yellow);
  border-radius: var(--radius-blob);
  z-index: -1;
  opacity: 0.5;
}
.story-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.story-stat {
  text-align: center;
  padding: 1.1rem 0.75rem;
  background: var(--c-paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.story-stat-num {
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.story-stat:nth-child(1) .story-stat-num { color: var(--c-pink); }
.story-stat:nth-child(2) .story-stat-num { color: var(--c-blue); }
.story-stat:nth-child(3) .story-stat-num { color: var(--c-green); }
.story-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-top: 0.35rem;
}

/* ---------- Programs / Age-card → real photo backdrop ---------- */
.age-card-img {
  position: relative;
  overflow: hidden;
}
.age-card-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  z-index: 0;
}
.age-card:hover .age-card-photo { transform: scale(1.06); }
.age-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
              rgba(27,27,46,0.05) 0%,
              rgba(27,27,46,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.age-card-tag { z-index: 2; }

/* Override the solid color backgrounds on each card so the
   photo shows through. Keep a subtle brand tint via overlay. */
.age-card:nth-child(1) .age-card-img { background: var(--c-pink); }
.age-card:nth-child(2) .age-card-img { background: var(--c-blue); }
.age-card:nth-child(3) .age-card-img { background: var(--c-yellow); }
.age-card:nth-child(4) .age-card-img { background: var(--c-green); }

/* ---------- Service photo accent ---------- */
.service-card-photo {
  margin: 0 -1.5rem 1rem;
  height: 130px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  position: relative;
  margin-top: -2rem;
}
.service-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.service-card:hover .service-card-photo img { transform: scale(1.05); }

/* ---------- Real Gallery (filter + masonry + lightbox) ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-chip {
  font-family: var(--f-display);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background: white;
  color: var(--c-text-2);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.filter-chip:hover { color: var(--c-pink); transform: translateY(-2px); }
.filter-chip.is-active {
  background: var(--c-pink);
  color: white;
  box-shadow: var(--shadow-pink);
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--c-bg-2);
  box-shadow: var(--shadow-sm);
  transition: all var(--d-base) var(--ease-bouncy);
}
.gallery-card.tall { grid-row: span 2; }
.gallery-card.wide { grid-column: span 2; }
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); z-index: 2; }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(27,27,46,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  opacity: 0;
  transition: opacity var(--d-base) var(--ease);
}
.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-visible .gallery-card-overlay { opacity: 1; }
.gallery-card-caption {
  color: white;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.gallery-card-caption::after {
  content: "↗";
  font-size: 1.2rem;
  opacity: 0.85;
}
.gallery-card.is-hidden {
  display: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 15, 25, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-base) var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-stage {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  display: grid;
  place-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  background: var(--c-ink);
  display: block;
}
.lightbox-caption {
  position: absolute;
  bottom: -2.5rem; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.95rem;
}
.lightbox-btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: white;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
  backdrop-filter: blur(8px);
}
.lightbox-btn:hover { background: white; color: var(--c-ink); transform: scale(1.08); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-prev  { left: clamp(0.75rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: clamp(0.75rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-counter {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  color: rgba(255,255,255,0.7);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
html[dir="rtl"] .lightbox-close { right: auto; left: clamp(1rem, 3vw, 2rem); }
html[dir="rtl"] .lightbox-prev  { left: auto; right: clamp(0.75rem, 2vw, 1.5rem); }
html[dir="rtl"] .lightbox-next  { right: auto; left: clamp(0.75rem, 2vw, 1.5rem); }
html[dir="rtl"] .lightbox-counter { left: auto; right: clamp(1rem, 3vw, 2rem); }
html[dir="rtl"] .hero-photo-badge { left: auto; right: 14px; }
body.no-scroll { overflow: hidden; }

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}
.faq-item {
  background: var(--c-paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--d-base) var(--ease), transform var(--d-base) var(--ease);
  border-left: 4px solid var(--c-pink);
}
html[dir="rtl"] .faq-item { border-left: 0; border-right: 4px solid var(--c-pink); }
.faq-item:nth-child(6n+2) { border-color: var(--c-blue); }
.faq-item:nth-child(6n+3) { border-color: var(--c-green); }
.faq-item:nth-child(6n+4) { border-color: var(--c-orange); }
.faq-item:nth-child(6n+5) { border-color: var(--c-teal); }
.faq-item:nth-child(6n+6) { border-color: var(--c-purple); }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--c-ink);
  transition: color var(--d-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-pink); }
.faq-icon {
  flex: 0 0 32px;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: var(--c-pink-soft);
  color: var(--c-pink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform var(--d-base) var(--ease-bouncy), background var(--d-fast) var(--ease);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--c-pink);
  color: white;
}
.faq-answer {
  padding: 0 1.5rem 1.35rem;
  animation: faq-fade 0.4s var(--ease-out);
}
.faq-answer p {
  color: var(--c-text-2);
  line-height: 1.7;
  max-width: none;
}
.faq-answer a { color: var(--c-pink); font-weight: 700; }
.faq-answer a:hover { color: var(--c-pink-2); text-decoration: underline; }
@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Native video player ---------- */
.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
  border: 0;
}

/* ---------- Latest shorts row (under main video) ---------- */
.shorts-section {
  margin: 2.5rem auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.shorts-section .shorts-eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--c-yellow);
  background: rgba(255, 193, 7, 0.18);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.shorts-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 720px;
}
.short-card {
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform var(--d-base) var(--ease-bouncy),
              box-shadow var(--d-base) var(--ease);
}
.short-card:nth-child(1) { background: var(--g-pink); }
.short-card:nth-child(2) { background: var(--g-blue); }
.short-card:nth-child(3) { background: var(--g-green); }
.short-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}
.short-card::before {
  /* dark vignette so the label always reads */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 0;
}
.short-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-ink);
  display: grid;
  place-items: center;
  z-index: 1;
  transition: transform var(--d-fast) var(--ease-bouncy),
              background var(--d-fast) var(--ease);
}
.short-card:hover .short-card-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: white;
}
.short-card-play svg {
  width: 22px; height: 22px;
  margin-left: 3px;
}
.short-card-label {
  position: relative;
  z-index: 1;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.short-card-label::after {
  content: "↗";
  opacity: 0.85;
  font-size: 1.1rem;
}
.shorts-channel-link {
  margin-top: 1.25rem;
  font-size: 0.92rem;
}
.shorts-channel-link a {
  color: var(--c-yellow);
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 193, 7, 0.4);
}
.shorts-channel-link a:hover {
  color: white;
  border-bottom-color: white;
}
@media (max-width: 520px) {
  .short-card { width: 150px; }
}
.video-fallback-line {
  position: relative; z-index: 1;
  text-align: center;
  margin: 1.5rem auto 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 1080px;
}
.video-fallback-line a {
  color: var(--c-yellow);
  font-weight: 700;
  border-bottom: 1px dashed rgba(255,193,7,0.4);
}
.video-fallback-line a:hover {
  color: white;
  border-bottom-color: white;
}

/* ---------- Performance: content-visibility for off-screen sections ---------- */
/* contain-intrinsic-size keeps layout stable while sections paint lazily */
#programs, #services, .video-section, #gallery, #location, #faq, #visit, .footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

/* =========================================================
   LOCATION LANDING PAGES — shared blocks
   ========================================================= */

/* Page eyebrow that names the city as primary keyword */
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--c-pink-soft);
  color: var(--c-pink-2);
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Inline pill list — neighborhoods/areas served */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 980px;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
}
.areas-list li {
  background: white;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  border: 2px solid transparent;
}
.areas-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--c-pink);
  color: var(--c-pink);
}
.areas-list li.is-here {
  background: var(--c-yellow);
  color: var(--c-ink);
  font-weight: 800;
}
.areas-list li.is-here::before {
  content: "📍";
  margin-right: 0.4rem;
}

/* Bus-route block — split layout */
.bus-route {
  background: var(--c-paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  box-shadow: var(--shadow);
  margin: 2rem auto 0;
  max-width: 1080px;
}
.bus-route-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.bus-route-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.bus-route:hover .bus-route-image img { transform: scale(1.04); }
.bus-route-info h3 { margin-bottom: 0.85rem; }
.bus-route-info ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}
.bus-route-info ul li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--c-text-2);
}
.bus-route-info ul li::before {
  content: "✓";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-green);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
}

/* Final CTA banner */
.cta-banner {
  background: var(--g-pink);
  color: white;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 280px; height: 280px;
  background: var(--c-yellow);
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -10%;
  width: 280px; height: 280px;
  background: var(--c-blue);
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}
.cta-banner h2 {
  color: white;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
  margin: 0 auto 1.75rem;
  position: relative;
  z-index: 1;
}
.cta-banner .btn-yellow {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  padding: 1.15rem 2.5rem;
}
.cta-banner .btn-ghost {
  position: relative; z-index: 1;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.cta-banner .btn-ghost:hover {
  border-color: white;
  color: white;
  background: rgba(255,255,255,0.1);
}

/* Breadcrumb trail */
.breadcrumb {
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-3);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.breadcrumb a {
  color: var(--c-text-2);
  transition: color var(--d-fast) var(--ease);
}
.breadcrumb a:hover { color: var(--c-pink); }
.breadcrumb span[aria-current] { color: var(--c-pink); }
.breadcrumb-sep { color: var(--c-text-3); }
html[dir="rtl"] .breadcrumb-sep { transform: scaleX(-1); display: inline-block; }

@media (max-width: 1080px) {
  .bus-route { grid-template-columns: 1fr; }
  .bus-route-image { aspect-ratio: 16/10; max-width: 540px; margin: 0 auto; }
}

/* =========================================================
   TRUST STRIP — credibility row below hero
   ========================================================= */
.trust-strip {
  background: var(--c-paper);
  border-radius: var(--radius-lg);
  padding: 1.5rem clamp(1rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  z-index: 2;
  margin-top: -3rem;
}
.trust-stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: background var(--d-fast) var(--ease);
}
.trust-stat:hover { background: var(--c-bg-2); }
.trust-stat + .trust-stat { border-left: 2px dashed var(--c-line); }
html[dir="rtl"] .trust-stat + .trust-stat { border-left: 0; border-right: 2px dashed var(--c-line); }
.trust-stat-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
}
.trust-stat:nth-child(1) .trust-stat-icon { background: var(--g-pink); }
.trust-stat:nth-child(2) .trust-stat-icon { background: var(--g-blue); }
.trust-stat:nth-child(3) .trust-stat-icon { background: var(--g-yellow); color: var(--c-ink); }
.trust-stat:nth-child(4) .trust-stat-icon { background: var(--g-green); }
.trust-stat:nth-child(5) .trust-stat-icon { background: var(--g-purple); }
.trust-stat-icon svg { width: 22px; height: 22px; }
.trust-stat-body { line-height: 1.15; }
.trust-stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-ink);
  display: block;
}
.trust-stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-top: 0.15rem;
  display: block;
}

@media (max-width: 980px) {
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -2rem;
  }
  .trust-stat + .trust-stat { border-left: 0; }
  html[dir="rtl"] .trust-stat + .trust-stat { border-right: 0; }
  .trust-stat:nth-child(odd) { border-right: 2px dashed var(--c-line); padding-right: 0.6rem; }
  html[dir="rtl"] .trust-stat:nth-child(odd) { border-right: 0; border-left: 2px dashed var(--c-line); padding-right: 0; padding-left: 0.6rem; }
  .trust-stat:nth-child(5) { grid-column: span 2; justify-content: center; border: 0; }
  html[dir="rtl"] .trust-stat:nth-child(5) { border: 0; }
}
@media (max-width: 520px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-stat:nth-child(odd) { border: 0; padding-right: 0; padding-left: 0; }
  html[dir="rtl"] .trust-stat:nth-child(odd) { border: 0; padding-right: 0; padding-left: 0; }
}

/* =========================================================
   TESTIMONIALS — Parent quotes
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial-card {
  position: relative;
  background: var(--c-paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--d-base) var(--ease-bouncy), box-shadow var(--d-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -12px; right: 14px;
  font-family: var(--f-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--c-pink-soft);
  z-index: 0;
}
html[dir="rtl"] .testimonial-card::before {
  content: "\201D";
  right: auto; left: 14px;
}
.testimonial-card:nth-child(6n+1) { border-top: 4px solid var(--c-pink); }
.testimonial-card:nth-child(6n+2) { border-top: 4px solid var(--c-blue); }
.testimonial-card:nth-child(6n+3) { border-top: 4px solid var(--c-green); }
.testimonial-card:nth-child(6n+4) { border-top: 4px solid var(--c-yellow); }
.testimonial-card:nth-child(6n+5) { border-top: 4px solid var(--c-orange); }
.testimonial-card:nth-child(6n+6) { border-top: 4px solid var(--c-purple); }

.testimonial-quote {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-line);
  position: relative;
  z-index: 1;
}
.testimonial-avatar {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  color: white;
  font-size: 1rem;
}
.testimonial-card:nth-child(6n+1) .testimonial-avatar { background: var(--g-pink); }
.testimonial-card:nth-child(6n+2) .testimonial-avatar { background: var(--g-blue); }
.testimonial-card:nth-child(6n+3) .testimonial-avatar { background: var(--g-green); }
.testimonial-card:nth-child(6n+4) .testimonial-avatar { background: var(--g-yellow); color: var(--c-ink); }
.testimonial-card:nth-child(6n+5) .testimonial-avatar { background: var(--g-orange); }
.testimonial-card:nth-child(6n+6) .testimonial-avatar { background: var(--g-purple); }
.testimonial-author-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-ink);
}
.testimonial-author-role {
  font-size: 0.78rem;
  color: var(--c-text-3);
  margin-top: 0.1rem;
}
.testimonial-stars {
  display: flex;
  gap: 0.15rem;
  color: var(--c-yellow);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

/* Instagram CTA — full-width card */
.instagram-cta {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #FCAF45 100%);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: white;
  flex-wrap: wrap;
}
.instagram-cta-text h3 {
  color: white;
  margin: 0;
}
.instagram-cta-text p {
  color: rgba(255,255,255,0.9);
  max-width: 50ch;
  margin: 0.5rem 0 0;
}
.instagram-cta-btn {
  background: white;
  color: #E1306C;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform var(--d-base) var(--ease-bouncy), box-shadow var(--d-base) var(--ease);
  flex-shrink: 0;
}
.instagram-cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

@media (max-width: 1080px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .instagram-cta { flex-direction: column; text-align: center; }
}

/* =========================================================
   BLOG — index grid + article layout
   ========================================================= */

/* Article card grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.article-card {
  background: var(--c-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--d-base) var(--ease-bouncy), box-shadow var(--d-base) var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.article-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--c-yellow-soft);
}
.article-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.article-card:hover .article-card-image img { transform: scale(1.05); }
.article-card-category {
  position: absolute;
  top: 1rem; left: 1rem;
  background: white;
  color: var(--c-pink-2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
html[dir="rtl"] .article-card-category { left: auto; right: 1rem; letter-spacing: 0.04em; }
.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
}
.article-card-meta time::before { content: "📅 "; }
.article-card-meta .reading-time::before { content: "⏱ "; }
.article-card h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--c-ink);
  margin: 0;
}
.article-card:hover h3 { color: var(--c-pink); }
.article-card-excerpt {
  color: var(--c-text-2);
  line-height: 1.6;
  font-size: 0.94rem;
}
.article-card-readmore {
  margin-top: auto;
  color: var(--c-pink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.article-card-readmore::after {
  content: "→";
  transition: transform var(--d-fast) var(--ease);
}
html[dir="rtl"] .article-card-readmore::after { content: "←"; }
.article-card:hover .article-card-readmore::after { transform: translateX(4px); }
html[dir="rtl"] .article-card:hover .article-card-readmore::after { transform: translateX(-4px); }

/* Single article page */
.article-hero-banner {
  background: var(--g-sky);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.article-hero-banner::before {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 400px; height: 400px;
  background: var(--c-pink-soft);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 0;
}
.article-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.article-hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: 1.25rem;
  line-height: 1.15;
}
.article-meta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--c-text-2);
  font-weight: 600;
}
.article-meta-row .article-meta-pill {
  background: white;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
}

.article-feature-image {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.article-feature-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Article body — long-form prose typography */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--c-text);
  max-width: 720px;
}
.article-body p {
  margin: 1.25rem 0;
  max-width: none;
}
.article-body h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 100px;
  color: var(--c-pink-2);
}
.article-body ul, .article-body ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  list-style: revert;
}
html[dir="rtl"] .article-body ul,
html[dir="rtl"] .article-body ol { padding-left: 0; padding-right: 1.5rem; }
.article-body li {
  margin: 0.5rem 0;
  line-height: 1.75;
}
.article-body strong { color: var(--c-ink); font-weight: 700; }
.article-body a {
  color: var(--c-pink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--c-pink-2); }
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--c-yellow-soft);
  border-left: 5px solid var(--c-yellow);
  border-radius: 12px;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--c-ink);
}
html[dir="rtl"] .article-body blockquote { border-left: 0; border-right: 5px solid var(--c-yellow); }
.article-body .callout {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--c-pink-soft);
  border-radius: 14px;
  border-left: 5px solid var(--c-pink);
}
html[dir="rtl"] .article-body .callout { border-left: 0; border-right: 5px solid var(--c-pink); }
.article-body .callout h3 { margin-top: 0; color: var(--c-pink-2); }
.article-body .callout :last-child { margin-bottom: 0; }

/* Table of contents (sticky sidebar on desktop) */
.article-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--c-paper);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}
.article-toc h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin: 0 0 0.85rem;
}
.article-toc ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.article-toc a {
  color: var(--c-text-2);
  font-weight: 600;
  line-height: 1.35;
  display: block;
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all var(--d-fast) var(--ease);
}
html[dir="rtl"] .article-toc a { border-left: 0; border-right: 2px solid transparent; padding-left: 0; padding-right: 0.75rem; }
.article-toc a:hover {
  color: var(--c-pink);
  border-left-color: var(--c-pink);
}
html[dir="rtl"] .article-toc a:hover { border-left-color: transparent; border-right-color: var(--c-pink); }

/* Bottom article CTA */
.article-cta {
  background: var(--g-pink);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-top: 3rem;
}
.article-cta h3 { color: white; margin: 0 0 0.75rem; }
.article-cta p { color: rgba(255,255,255,0.9); margin: 0 auto 1.5rem; max-width: 50ch; }

/* Related articles */
.related-articles {
  margin-top: 3rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--c-line);
}
.related-articles h3 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

@media (max-width: 1080px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; }
}
@media (max-width: 680px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-meta-row { gap: 0.85rem; font-size: 0.85rem; }
}

/* Hide the OLD coloured gallery boxes if they slip in */
.gallery-grid .gallery-item { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-image { aspect-ratio: 16/12; max-width: 540px; margin: 0 auto; }
  .gallery-photo-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .gallery-card.wide { grid-column: span 2; }
  .hero-photo-cluster { aspect-ratio: 4/3; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .hero-photo-cluster {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: auto;
  }
  .hero-photo.tall  { grid-row: auto; aspect-ratio: 3/4; }
  .hero-photo.wide  { aspect-ratio: 3/4; }
  .hero-photo.small { aspect-ratio: 3/4; }
  .gallery-photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 0.65rem; }
  .gallery-card.tall { grid-row: auto; }
  .gallery-card.wide { grid-column: span 2; }
  .lightbox-btn { width: 44px; height: 44px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox-prev:hover, .lightbox-next:hover { transform: scale(1.08); }
}

