/* ═══════════════════════════════════════════════════════════════
   AMORA TUTORIAL SERVICES — Stylesheet
   Design reference: clean white canvas, bold geometric type,
   pill buttons, soft blob accents, colour-blocked panels
   (yellow / blue / navy / pink), rounded cards.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── 1. RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input { font: inherit; border: none; background: none; color: inherit; }
button { cursor: pointer; }

/* ── 2. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Palette */
  --ink:      #15171C;
  --ink-soft: #3A3D46;
  --paper:    #FFFFFF;
  --cloud:    #F6F5F2;
  --line:     #ECEAE4;

  --amber:    #FFC94A;
  --amber-deep: #F5B400;
  --blue:     #2F6FF6;
  --blue-deep: #1E52C4;
  --navy:     #17205C;
  --pink:     #FBD3DE;
  --pink-deep:#F6A6BC;
  --mint:     #37C99B;

  --stone:    #6B7280;
  --stone-light: #9CA3AF;

  /* Type */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Shape / motion */
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 18px rgba(21,23,28,0.06);
  --shadow-md: 0 16px 40px rgba(21,23,28,0.10);
  --shadow-lg: 0 30px 80px rgba(21,23,28,0.16);

  --ease: cubic-bezier(.4,0,.2,1);
  --fast: .25s var(--ease);
  --med:  .45s var(--ease);
  --slow: .8s var(--ease);
}

/* ── 3. BASE ──────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.highlight {
  color: var(--blue);
  position: relative;
  white-space: nowrap;
}
.highlight::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 3px;
  background: var(--amber);
  border-radius: var(--radius-pill);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(47,111,246,0.08);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--stone);
  max-width: 560px;
  margin: 0 auto 8px;
}

/* Team section sits on --cloud (light), so the default dark
   .section-title/.section-sub already read fine — the only real
   difference here is an amber-tinted tag instead of the default blue */
.team-section-tag { color: var(--amber-deep); background: rgba(255,201,74,0.14); }

section[id] { text-align: center; }
.hero, .services-section, .stats-section, .story-section,
.bulletin-section, .team-section, .testimonials-section { text-align: center; }

/* Buttons */
.btn-primary, .btn-secondary, .branch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast), color var(--fast);
  white-space: nowrap;
}

.btn-primary, .branch-btn {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .branch-btn:hover {
  background: var(--amber);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
}

/* ── 4. SCROLL-REVEAL ANIMATION SYSTEM ──────────────────────────
   (self-playing on load / no dependency on unseen JS toggles)     */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes riseInLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes riseInRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal        { animation: riseIn .8s var(--ease) both; }
.reveal-left   { animation: riseInLeft .85s var(--ease) both; }
.reveal-right  { animation: riseInRight .85s var(--ease) both; }
.reveal-scale  { animation: scaleIn .8s var(--ease) both; }

.stagger-children > * { opacity: 0; animation: riseIn .7s var(--ease) both; }
.stagger-children > *:nth-child(1) { animation-delay: .05s; }
.stagger-children > *:nth-child(2) { animation-delay: .15s; }
.stagger-children > *:nth-child(3) { animation-delay: .25s; }
.stagger-children > *:nth-child(4) { animation-delay: .35s; }
.stagger-children > *:nth-child(5) { animation-delay: .45s; }
.stagger-children > *:nth-child(6) { animation-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════
   5. HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: 36px; object-fit: contain; border-radius: 10px; }
.logo h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.logo h2 span { color: var(--blue); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--fast);
}
.nav-links > li > a:hover { color: var(--blue); }
.nav-links .arrow i { font-size: 10px; transition: transform var(--fast); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 220px;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
  z-index: 50;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown:hover .arrow i { transform: rotate(180deg); }
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background var(--fast), color var(--fast), padding-left var(--fast);
}
.dropdown-menu li a i { color: var(--blue); width: 16px; text-align: center; }
.dropdown-menu li a:hover { background: var(--cloud); color: var(--ink); padding-left: 18px; }

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cloud);
  border-radius: var(--radius-pill);
  padding: 10px 8px 10px 18px;
  flex: 1;
  max-width: 260px;
  transition: box-shadow var(--fast);
}
.search-wrapper:focus-within { box-shadow: 0 0 0 3px rgba(47,111,246,0.18); }
.search-icon { color: var(--stone-light); font-size: 13px; }
.search-wrapper input {
  flex: 1;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink);
}
.search-wrapper input::placeholder { color: var(--stone-light); }
.search-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: background var(--fast), transform var(--fast);
}
.search-btn:hover { background: var(--blue); transform: scale(1.08); }

.nav-actions { display: flex; align-items: center; }
.login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
}
.login-btn:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
}
.mobile-menu-btn span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--fast), opacity var(--fast);
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   6. HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  text-align: left;
}

.hero-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: blobFloat 14s ease-in-out infinite;
}
.aurora-blob:nth-child(1) { width: 420px; height: 420px; top: -140px; right: 6%; background: var(--amber); animation-delay: 0s; }
.aurora-blob:nth-child(2) { width: 340px; height: 340px; bottom: -120px; left: -80px; background: var(--pink); animation-delay: -4s; }
.aurora-blob:nth-child(3) { width: 300px; height: 300px; top: 30%; right: -100px; background: var(--blue); opacity: 0.25; animation-delay: -8s; }
.aurora-blob:nth-child(4) { width: 220px; height: 220px; bottom: 10%; left: 30%; background: var(--mint); opacity: 0.18; animation-delay: -11s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-30px) scale(1.08); }
  66%      { transform: translate(-25px,20px) scale(0.94); }
}

.floating-shape {
  position: absolute;
  border: 2px solid rgba(21,23,28,0.08);
  border-radius: 50%;
  animation: shapeDrift 10s ease-in-out infinite;
  z-index: 0;
}
.floating-shape:nth-child(5) { width: 70px; height: 70px; top: 18%; left: 6%; }
.floating-shape:nth-child(6) { width: 40px; height: 40px; top: 62%; left: 12%; border-radius: 12px; animation-delay: -3s; }
.floating-shape:nth-child(7) { width: 26px; height: 26px; top: 40%; left: 3%; background: var(--amber); border: none; animation-delay: -6s; }

@keyframes shapeDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(20deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.hero-logo img {
  height: 200px;
  width: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--paper);
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom: 20px;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue-deep);
  background: rgba(47,111,246,0.08);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.tagline i { font-size: 11px; opacity: 0.6; }

.hero-text > p {
  font-size: 17px;
  color: var(--stone);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* — Carousel — */
.hero-visual { position: relative; z-index: 2; }
.hero-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: var(--shadow-lg);
}

.hero-carousel-track { position: relative; width: 100%; height: 100%; }

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility .7s;
}
.hero-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-image-wrapper { position: absolute; inset: 0; }
.slide-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.slide-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,32,92,0.88) 0%, rgba(23,32,92,0.15) 55%, rgba(47,111,246,0.1) 100%);
}

.hero-slide-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 32px 78px;
  color: var(--paper);
  text-align: left;
}
.slide-number {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.16);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.hero-slide-content h3 { color: var(--paper); font-size: 24px; margin-bottom: 8px; }
.hero-slide-content p { color: rgba(255,255,255,0.8); font-size: 14.5px; max-width: 300px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 5;
  box-shadow: var(--shadow-md);
  transition: background var(--fast), transform var(--fast), color var(--fast);
}
.carousel-arrow:hover { background: var(--ink); color: var(--paper); transform: translateY(-50%) scale(1.08); }
.carousel-arrow--prev { left: 18px; }
.carousel-arrow--next { right: 18px; }

.hero-carousel-controls {
  position: absolute;
  left: 32px;
  bottom: 30px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.carousel-dot {
  position: relative;
  width: 30px; height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.3);
  overflow: hidden;
  transition: width var(--fast), background var(--fast);
}
.carousel-dot.active { width: 46px; background: rgba(255,255,255,0.3); }
.dot-progress { position: absolute; inset: 0; width: 0; background: var(--amber); border-radius: var(--radius-pill); }
.carousel-dot.active .dot-progress { animation: dotFill 6s linear forwards; }
@keyframes dotFill { from { width: 0; } to { width: 100%; } }

.carousel-counter {
  position: absolute;
  top: 26px; right: 26px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--paper);
  background: rgba(23,32,92,0.45);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  z-index: 5;
}
.counter-separator { opacity: 0.5; }
.counter-total { opacity: 0.6; }

/* — Inline Login Card (replaces carousel) — */
.hero-login-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(155deg, var(--blue) 0%, var(--navy) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lg);
  padding: 42px 36px 36px;
  color: var(--paper);
  transition: box-shadow var(--med), transform var(--med);
}
.hero-login-card::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.35), transparent);
}
.hero-login-card.login-card-highlight {
  animation: cardPulse .9s var(--ease);
}
@keyframes cardPulse {
  0%   { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(255,201,74,0.5); }
  40%  { box-shadow: var(--shadow-lg), 0 0 0 10px rgba(255,201,74,0); }
  100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(255,201,74,0); }
}
.hero-login-card::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.18;
  filter: blur(80px);
  top: -110px; right: -80px;
  pointer-events: none;
}

.hero-login-card .login-logo { position: relative; text-align: center; margin-bottom: 26px; }
.hero-login-card .login-logo img { width: 50px; height: 50px; border-radius: 13px; margin: 0 auto 12px; box-shadow: var(--shadow-sm); }
.hero-login-card .login-logo h2 { color: var(--paper); font-size: 18px; margin-bottom: 4px; }
.hero-login-card .login-logo p { color: rgba(255,255,255,0.6); font-size: 12.5px; }

.hero-login-card .login-title { position: relative; text-align: center; margin-bottom: 22px; }
.hero-login-card .login-title h3 { color: var(--paper); font-size: 21px; margin-bottom: 6px; }
.hero-login-card .login-title p { color: rgba(255,255,255,0.62); font-size: 13.5px; }

.login-role-switch {
  position: relative;
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.08);
  padding: 5px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

/* Sliding pill indicator — moves behind the active button */
.login-role-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc(33.333% - 3px);
  border-radius: var(--radius-pill);
  background: var(--paper);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.22s ease;
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Slide indicator to the correct position based on active role */
.login-role-switch[data-active="parent"] .login-role-indicator { transform: translateX(0); }
.login-role-switch[data-active="tutor"]  .login-role-indicator { transform: translateX(calc(100% + 3px)); }
.login-role-switch[data-active="admin"]  .login-role-indicator { transform: translateX(calc(200% + 6px)); }

/* Colour the indicator per role */
.login-role-switch[data-active="parent"] .login-role-indicator { background: var(--paper); }
.login-role-switch[data-active="tutor"]  .login-role-indicator { background: #7dd3fc; }
.login-role-switch[data-active="admin"]  .login-role-indicator { background: #fcd34d; }

.login-role-btn {
  position: relative;
  z-index: 1;           /* sit above the sliding indicator */
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.65);
  transition: color 0.22s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Active state — label colour matches each role's indicator */
.login-role-switch[data-active="parent"] .login-role-btn[data-role="parent"] { color: var(--ink); }
.login-role-switch[data-active="tutor"]  .login-role-btn[data-role="tutor"]  { color: #0c4a6e; }
.login-role-switch[data-active="admin"]  .login-role-btn[data-role="admin"]  { color: #78350f; }

.login-role-btn:not(.active):hover { color: rgba(255,255,255,0.9); }

/* Input-group icon transitions so the swap feels animated */
.input-group > i:first-child {
  transition: color 0.2s ease, opacity 0.15s ease;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 13px;
  transition: box-shadow var(--fast);
}
.input-group:focus-within { box-shadow: 0 0 0 3px rgba(255,201,74,0.4); }
.input-group > i:first-child { color: var(--blue); font-size: 14.5px; flex-shrink: 0; }
.input-group input {
  flex: 1;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
}
.input-group input::placeholder { color: var(--stone-light); }
.toggle-pw { cursor: pointer; color: var(--stone-light); font-size: 13.5px; transition: color var(--fast); }
.toggle-pw:hover { color: var(--ink); }

.login-options {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  flex-wrap: wrap;
  gap: 8px;
}
.login-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.login-options input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--amber); }
.login-forgot-link { color: var(--paper); font-weight: 600; transition: color var(--fast); }
.login-forgot-link:hover { color: var(--amber); }

.login-submit {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  padding: 15px;
  border-radius: var(--radius-pill);
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
}
.login-submit:hover { background: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.login-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
}
.login-security-note i { font-size: 10.5px; }

.login-divider {
  position: relative;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  margin: 22px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-divider::before, .login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 36%;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.login-register {
  position: relative;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}
.login-register a { color: var(--amber); font-weight: 600; }
.login-register a:hover { text-decoration: underline; }

.login-error, .login-success {
  position: relative;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.login-error.show, .login-success.show { display: flex; animation: riseIn .4s var(--ease) both; }
.login-error { background: rgba(239,68,68,0.16); color: #FFB4B4; }
.login-success { background: rgba(55,201,155,0.18); color: #7FE9C4; }

.hero-scroll-hint {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 60px auto 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: bobDown 2.4s ease-in-out infinite;
}
@keyframes bobDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ═══════════════════════════════════════════════════════════════
   7. STATS — animated navy band with glass stat cards
   Each stat has its own accent colour (gold · blue · mint · pink)
   and icon, a gradient-outlined card, dashed "data-flow" lines
   joining the cards, a floating icon and a soft aurora behind it.
   Hover: the card lifts, its glow brightens, the icon straightens
   and the accent bar stretches. No HTML changes needed — the
   numbers still count up from your existing data-target script.
   ═══════════════════════════════════════════════════════════════ */
@property --glow { syntax: '<percentage>'; inherits: false; initial-value: 16%; }

.stats-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0 90px;
  background: linear-gradient(180deg, #121A52 0%, var(--navy) 55%, #0F1642 100%);
}
.stats-section::before {                                 /* drifting aurora */
  content: '';
  position: absolute;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(34% 34% at 14% 22%, rgba(47,111,246,0.55), transparent 70%),
    radial-gradient(28% 28% at 86% 28%, rgba(246,166,188,0.24), transparent 70%),
    radial-gradient(34% 34% at 58% 100%, rgba(55,201,155,0.24), transparent 70%);
  animation: statsAurora 18s ease-in-out infinite alternate;
}
.stats-section::after {                                  /* faint grid, faded at the edges */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask: radial-gradient(70% 80% at 50% 45%, #000 20%, transparent 100%);
          mask: radial-gradient(70% 80% at 50% 45%, #000 20%, transparent 100%);
}
@keyframes statsAurora { to { transform: translate(5%, -4%) rotate(6deg) scale(1.08); } }

.stats-section .container { position: relative; }
.stats-section .section-tag {
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
}
.stats-section .section-title,
.stats-section .section-sub { position: relative; color: var(--paper); }
.stats-section .section-sub { color: rgba(255,255,255,0.66); }
.stats-section .section-title .highlight {
  background: linear-gradient(90deg, #FFE9A8, #FFC94A);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.stats-grid {
  position: relative;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* ── Card ── */
.stats-grid .stat-item {
  --c: #FFC94A; --c2: #FF9F43;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px 34px;
  opacity: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) var(--glow), transparent), transparent 62%) padding-box,
    linear-gradient(160deg, #1D2776, #141C63) padding-box,
    linear-gradient(160deg, color-mix(in srgb, var(--c) 75%, transparent), rgba(255,255,255,0.07) 45%, rgba(255,255,255,0.05) 60%, color-mix(in srgb, var(--c2) 60%, transparent)) border-box;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.55);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, --glow .5s ease;
}
.stats-grid .stat-item:nth-child(2) { --c: #7FA8FF; --c2: #5B4CF0; }
.stats-grid .stat-item:nth-child(3) { --c: #37C99B; --c2: #1CA7C9; }
.stats-grid .stat-item:nth-child(4) { --c: #F6A6BC; --c2: #F58FB0; }

.stats-grid .stat-item:hover {
  --glow: 34%;
  transform: translateY(-10px);
  box-shadow: 0 34px 56px -24px color-mix(in srgb, var(--c) 70%, transparent);
}

/* icon badge (drawn by CSS, one per card) */
.stats-grid .stat-item::before {
  content: '\f19d';
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 23px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--c), var(--c2));
  border-radius: 20px;
  box-shadow: 0 14px 26px -10px var(--c);
  transform: rotate(-6deg);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  animation: statFloat 3.8s ease-in-out infinite alternate;
}
.stats-grid .stat-item:nth-child(2)::before { content: '\f51c'; animation-delay: -.9s; }   /* chalkboard-user */
.stats-grid .stat-item:nth-child(3)::before { content: '\f274'; animation-delay: -1.8s; }  /* calendar-check */
.stats-grid .stat-item:nth-child(4)::before { content: '\f201'; animation-delay: -2.7s; }  /* chart-line */
.stats-grid .stat-item:hover::before { transform: rotate(0) scale(1.12); }
@keyframes statFloat { to { translate: 0 -7px; } }

/* dashed "data-flow" line joining each card to the next */
.stats-grid .stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 66px;
  left: calc(100% + 1px);
  width: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.45) 0 4px, transparent 4px 9px);
  animation: statsDash 1.1s linear infinite;
}
@keyframes statsDash { to { background-position: 9px 0; } }

/* ── Number & label ── */
.stat-item .number {
  margin: 20px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 25%, var(--c) 140%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.stat-item:hover .number { transform: scale(1.08); }
.stat-item .label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.74);
}
.stat-item .label::after {                                /* accent bar */
  content: '';
  display: block;
  width: 28px; height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c), var(--c2));
  transition: width .45s cubic-bezier(.22,1,.36,1);
}
.stat-item:hover .label::after { width: 64px; }

/* ── Entrance: cards rise in one after another as the band scrolls
      into view (scroll-driven, no JS) ── */
@keyframes statIn {
  from { opacity: 0; translate: 0 56px; scale: .9; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}
@supports (animation-timeline: view()) {
  .stats-grid .stat-item {
    animation: statIn linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  .stats-grid .stat-item:nth-child(2) { animation-range: entry 6%  entry 66%; }
  .stats-grid .stat-item:nth-child(3) { animation-range: entry 12% entry 72%; }
  .stats-grid .stat-item:nth-child(4) { animation-range: entry 18% entry 78%; }
}

@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stats-grid .stat-item:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) {
  .stats-section { padding: 60px 0 64px; }
  .stats-grid { gap: 12px; }
  .stats-grid .stat-item { padding: 26px 12px 24px; }
  .stats-grid .stat-item::before { width: 50px; height: 50px; font-size: 19px; border-radius: 16px; }
  .stat-item .label { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .stats-section::before,
  .stats-grid .stat-item,
  .stats-grid .stat-item::before,
  .stats-grid .stat-item::after { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   8. STORY / ABOUT — orbiting photo stack
   A 3D stack of photos that keeps turning on its own: the front
   photo glides to the back and stays visible behind, alternately
   on the left and right, instead of disappearing. Click any photo
   behind to bring it forward, drag/swipe, use the arrows or dots.
   Pauses on hover. Works with any number of photos (3–8).
   Needs script/story-carousel.js; without it the stack still shows
   as a static fan of photos.
   ═══════════════════════════════════════════════════════════════ */
.story-section {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: var(--paper);
}
.story-section::before {                                 /* soft pink glow */
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  left: -220px; bottom: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,166,188,0.35), transparent 65%);
  pointer-events: none;
}
.story-section .container { position: relative; }

.story-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 72px;
  align-items: center;
  text-align: left;
}

/* ── Visual: the photo stack ── */
.story-visual { position: relative; isolation: isolate; --dur: 4200ms; padding-top: 8px; }
.story-visual::before {                                  /* dashed orbit ring with two satellites */
  content: '';
  position: absolute;
  inset: 0 3% 86px;
  z-index: -1;
  border: 2px dashed rgba(47,111,246,0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%,   var(--blue)  0 6px, transparent 7px),
    radial-gradient(circle at 50% 100%, var(--amber) 0 7px, transparent 8px);
  animation: scOrbit 36s linear infinite;
}
.story-visual::after {                                   /* morphing colour blob */
  content: '';
  position: absolute;
  inset: 40px 9% 120px;
  z-index: -2;
  background: linear-gradient(155deg, var(--pink) 0%, var(--amber) 100%);
  border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%;
  opacity: 0.6;
  animation: scBlob 14s ease-in-out infinite alternate;
}
@keyframes scOrbit { to { transform: rotate(360deg); } }
@keyframes scBlob  { to { border-radius: 56% 44% 46% 54% / 44% 56% 48% 52%; transform: scale(1.06) rotate(8deg); } }

.sc-stage {
  position: relative;
  height: 460px;
  perspective: 1500px;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--tx, 0) * 5deg)) rotateX(calc(var(--ty, 0) * -4deg));
  transition: transform .35s ease-out;
  /* the stage's own box would sit in front of cards that have moved back,
     so let clicks pass through it to the cards themselves */
  pointer-events: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.story-visual { touch-action: pan-y; }
.story-visual.is-dragging .sc-card { cursor: grabbing !important; }

/* each photo sits at an offset --o from the front one (0 = front,
   ±1, ±2 = behind to the right / left); --a is its absolute value */
.sc-card {
  --step: 31%;
  position: absolute;
  top: 50%; left: 50%;
  width: 58%; height: 86%;
  pointer-events: auto;
  cursor: grab;
  margin: 0;
  padding: 8px;
  translate: -50% -50%;
  transform:
    translateX(calc(var(--o, 0) * var(--step)))
    translateZ(calc(var(--a, 0) * -110px))
    rotateY(calc(var(--o, 0) * -16deg))
    scale(calc(1 - var(--a, 0) * 0.07));
  z-index: calc(20 - var(--a, 0) * 4);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 34px 60px -28px rgba(23,32,92,0.55), 0 0 0 1px rgba(21,23,28,0.05);
  filter: brightness(calc(1 - var(--a, 0) * 0.13)) saturate(calc(1 - var(--a, 0) * 0.12));
  transition: transform .95s cubic-bezier(.22,1,.36,1), translate .4s ease, opacity .6s ease, filter .6s ease;
  will-change: transform;
}
/* default fan when the script hasn't run (inline --o/--a from JS wins) */
.sc-card:nth-child(1) { --o: 0;  --a: 0; }
.sc-card:nth-child(2) { --o: 1;  --a: 1; }
.sc-card:nth-child(3) { --o: 2;  --a: 2; }
.sc-card:nth-child(4) { --o: -1; --a: 1; }
.story-visual:not([data-sc-ready]) .sc-card:nth-child(n+5) { opacity: 0; pointer-events: none; }

.sc-card[data-far] { opacity: 0; pointer-events: none; }
.sc-card:not(.is-active) { cursor: pointer; }
.sc-card:not(.is-active):hover { filter: none; translate: -50% calc(-50% - 10px); }

.sc-card img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  border-radius: 22px;
  pointer-events: none;
}
.sc-card figcaption {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  opacity: 0;
  translate: 0 12px;
  transition: opacity .5s ease, translate .6s cubic-bezier(.22,1,.36,1);
}
.sc-card figcaption b { font-size: 12px; letter-spacing: .06em; color: var(--blue); }
.sc-card.is-active figcaption { opacity: 1; translate: 0 0; transition-delay: .35s; }

/* ── Controls ── */
.sc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.sc-btn {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--fast), background var(--fast), color var(--fast), border-color var(--fast);
}
.sc-btn:hover { color: #fff; background: var(--ink); border-color: var(--ink); transform: translateY(-3px); }
.sc-btn:active { transform: scale(.94); }
.sc-dots { display: flex; align-items: center; gap: 8px; }
.sc-dot {
  position: relative;
  width: 10px; height: 10px;
  padding: 0;
  overflow: hidden;
  background: rgba(21,23,28,0.16);
  border: 0;
  border-radius: 999px;
  transition: width .5s cubic-bezier(.22,1,.36,1), background var(--fast);
}
.sc-dot:hover { background: rgba(21,23,28,0.32); }
.sc-dot.is-active { width: 44px; }
.sc-dot::after {                                         /* progress to the next photo */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.sc-dot.is-active::after { animation: scFill var(--dur) linear forwards; }
@keyframes scFill { to { transform: scaleX(1); } }
.story-visual.is-paused .sc-dot.is-active::after,
.story-visual.is-offscreen .sc-dot.is-active::after { animation-play-state: paused; }
.sc-count {
  min-width: 56px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--stone);
}

/* ── Text column ── */
.story-text .section-tag,
.story-text .section-title,
.story-text .section-sub { text-align: left; margin-left: 0; }
.story-text .section-sub { margin-bottom: 24px; }

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.story-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--cloud);
  border-radius: var(--radius-pill);
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast);
}
.story-points li i {
  --pc: var(--blue);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--pc);
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: background var(--fast), color var(--fast), transform var(--fast);
}
.story-points li:nth-child(2) i { --pc: #16906E; }
.story-points li:nth-child(3) i { --pc: #C94D78; }
.story-points li:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-sm); }
.story-points li:hover i { color: #fff; background: var(--pc); transform: rotate(-10deg) scale(1.1); }

.story-stat {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  padding: 20px 26px;
  background: linear-gradient(135deg, #fff, var(--cloud));
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--med), box-shadow var(--med);
}
.story-stat:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.big-number {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.story-stat p { max-width: 210px; margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--stone); }

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 100% 3px no-repeat;
  transition: background-size .4s cubic-bezier(.22,1,.36,1), gap .3s ease;
}
.story-link:hover { background-size: 100% 100%; gap: 16px; }

@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; gap: 56px; }
  .sc-stage { height: 410px; }
}
@media (max-width: 520px) {
  .story-section { padding: 64px 0; }
  .sc-stage { height: 330px; }
  .sc-card { --step: 25%; width: 66%; height: 84%; padding: 6px; border-radius: 22px; }
  .sc-card img { border-radius: 17px; }
  .sc-card figcaption { left: 14px; right: 14px; bottom: 14px; padding: 9px 12px; font-size: 12.5px; }
  .story-stat { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-visual::before, .story-visual::after, .sc-dot::after { animation: none !important; }
  .sc-stage, .sc-card { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   9. SERVICES
   ═══════════════════════════════════════════════════════════════ */
.services-section { padding: 70px 0; background: var(--cloud); }
.services-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--med), box-shadow var(--med);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,201,74,0.18);
  color: var(--amber-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
  transition: transform var(--fast);
}
.service-card:nth-child(2) .icon-wrap { background: rgba(47,111,246,0.12); color: var(--blue); }
.service-card:nth-child(3) .icon-wrap { background: rgba(251,211,222,0.55); color: var(--pink-deep); }
.service-card:nth-child(4) .icon-wrap { background: rgba(55,201,155,0.15); color: var(--mint); }
.service-card:hover .icon-wrap { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--stone); }

/* ═══════════════════════════════════════════════════════════════
   10. BULLETIN BOARD — animated gallery
   Programs are shown as an image-led gallery wall: a mosaic of
   tiles (a big featured tile, wide and tall tiles mixed in), each
   with a number, a badge and a caption that slides up on hover.
   The mosaic adapts to however many programs exist (1, 2, 3, 4,
   or many), so it never leaves ugly holes.
   Markup: #programCardTemplate in main.html (no JS involved in
   the look — dynamic-loader.js only fills in text/images).
   ═══════════════════════════════════════════════════════════════ */
.bulletin-section { padding: 70px 0 80px; background: var(--paper); }
.bulletin-intro { margin-bottom: 30px; }

.bulletin-gallery {
  counter-reset: pg;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Empty / error messages span the whole gallery */
.bulletin-gallery > div:not(.program-card):not(.bulletin-card-skel):not(.loading-spinner) { grid-column: 1 / -1; }
/* The skeleton tiles already show loading, so the spinner text is kept
   for screen readers only instead of reserving a blank gallery row */
.bulletin-gallery > .loading-spinner {
  position: absolute; width: 1px; height: 1px; min-width: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── Gallery tile ── */
.program-card {
  counter-increment: pg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--slow), box-shadow var(--slow), filter var(--med);
}
.program-card:hover,
.program-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

/* Spotlight effect: while one tile is hovered the rest quietly dim */
.bulletin-gallery:hover .program-card:not(:hover):not(:focus-within) {
  filter: saturate(.65) brightness(.92);
}

/* Image fills the whole tile */
.program-card-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.program-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.program-card:hover .program-card-image img,
.program-card:focus-within .program-card-image img { transform: scale(1.08); }

/* Readability gradient — gets deeper on hover as the caption grows */
.program-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(21,23,28,0) 35%, rgba(21,23,28,.82) 100%);
  transition: background var(--med);
}
.program-card:hover::after,
.program-card:focus-within::after {
  background: linear-gradient(180deg, rgba(21,23,28,.08) 0%, rgba(21,23,28,.9) 100%);
}

/* Light sweep that glides across the tile on hover */
.program-card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.program-card:hover::before { left: 130%; transition: left .9s var(--ease); }

/* Gallery index number, top-right */
.program-card-body::before {
  content: counter(pg, decimal-leading-zero);
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
}

.program-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.program-badge.badge-new      { background: var(--mint); color: var(--paper); }
.program-badge.badge-popular  { background: var(--amber); }
.program-badge.badge-featured { background: var(--navy); color: var(--paper); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

/* Caption area covers the tile and pins its content to the bottom */
.program-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px 22px;
  color: var(--paper);
}
.program-card-body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
  margin: 0;
  transition: transform var(--med);
}
.program-card-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: max-height var(--med), opacity var(--med), margin var(--med);
}
.btn-learn-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  max-height: 0;
  padding: 0 16px;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--amber);
  border: none;
  border-radius: var(--radius-pill);
  transition: max-height var(--med), opacity var(--med), margin var(--med), padding var(--med), gap var(--fast), background var(--fast);
}
.btn-learn-more i { font-size: 11px; }
.btn-learn-more:hover { background: var(--paper); gap: 11px; }
/* Whole tile is clickable: the button's hit area stretches over it */
.btn-learn-more::after { content: ''; position: absolute; inset: 0; }

.program-card:hover .program-card-body p,
.program-card:focus-within .program-card-body p {
  max-height: 4.6em; opacity: 1; margin-top: 8px;
}
.program-card:hover .btn-learn-more,
.program-card:focus-within .btn-learn-more {
  max-height: 40px; padding: 9px 16px; opacity: 1; margin-top: 14px;
}
.program-card:hover .program-card-body h4 { transform: translateY(-2px); }

/* Touch screens have no hover — keep the caption visible */
@media (hover: none) {
  .program-card-body p { max-height: 4.6em; opacity: 1; margin-top: 8px; }
  .btn-learn-more { max-height: 40px; padding: 9px 16px; opacity: 1; margin-top: 14px; }
  .bulletin-gallery:hover .program-card { filter: none; }
}

/* ── Mosaic layout — desktop (4 columns) ──
   Repeating pattern of 7 tiles that tiles a clean 4 × 3 block:
     big (2×2) · small · small · wide (2×1) · small · wide · small
   The last, possibly incomplete, group is stretched so the gallery
   always ends as a clean rectangle — no holes, for any number of
   programs. */
@media (min-width: 1025px) {
  .program-card:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
  .program-card:nth-child(7n+4),
  .program-card:nth-child(7n+6) { grid-column: span 2; }

  .program-card:nth-child(7n+1) .program-card-body h4 { font-size: 26px; }
  .program-card:nth-child(7n+1) .program-card-body p  { -webkit-line-clamp: 4; font-size: 14.5px; }
  .program-card:nth-child(7n+4) .program-card-body p,
  .program-card:nth-child(7n+6) .program-card-body p  { -webkit-line-clamp: 3; }

  /* Stretch the final group to a full rectangle */
  .program-card:last-child:nth-child(7n+1) { grid-column: 1 / -1; grid-row: span 1; }
  .program-card:last-child:nth-child(7n+2) { grid-column: span 2; grid-row: span 2; }
  .program-card:nth-last-child(2):nth-child(7n+2) { grid-column: span 2; grid-row: span 1; }
  .program-card:last-child:nth-child(7n+3) { grid-column: span 2; }
  .program-card:last-child:nth-child(7n+5) { grid-column: 1 / -1; }
  .program-card:last-child:nth-child(7n+6) { grid-column: span 3; }

  /* A single program gets the whole stage */
  .program-card:nth-child(1):only-child { grid-column: 1 / -1; grid-row: span 2; }
}

/* ── Tablet (3 columns) — pattern of 6 tiles tiling a 3 × 3 block ── */
@media (min-width: 701px) and (max-width: 1024px) {
  .bulletin-gallery { grid-template-columns: repeat(3, 1fr); }
  .program-card:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
  .program-card:nth-child(6n+1) .program-card-body h4 { font-size: 24px; }

  .program-card:last-child:nth-child(6n+1) { grid-column: 1 / -1; grid-row: span 1; }
  .program-card:last-child:nth-child(6n+2) { grid-column: span 1; grid-row: span 2; }
  .program-card:last-child:nth-child(6n+4) { grid-column: 1 / -1; }
  .program-card:last-child:nth-child(6n+5) { grid-column: span 2; }
  .program-card:nth-child(1):only-child { grid-column: 1 / -1; grid-row: span 2; }
}

/* ── Phone ── */
@media (max-width: 700px) {
  .bulletin-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 12px; padding: 0 20px; }
  .program-card:first-child { grid-column: 1 / -1; grid-row: span 1; }
  .program-card-body { padding: 16px; }
  .program-card-body h4 { font-size: 16px; }
}
@media (max-width: 460px) {
  .bulletin-gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
}

/* ── Entrance animation: each tile rises, un-masks and settles as it
      scrolls into view (pure CSS scroll-driven animation — browsers
      without support simply show the tiles, no JS needed). ── */
@keyframes galleryIn {
  from {
    opacity: 0;
    translate: var(--gx, 0) 70px;
    scale: .9;
    clip-path: inset(0 0 100% 0 round 28px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    clip-path: inset(0 0 0 0 round 28px);
  }
}
@keyframes galleryDrift {
  from { scale: 1.02; translate: 0 0; }
  to   { scale: 1.13; translate: -2.5% -1.5%; }
}
@supports (animation-timeline: view()) {
  .program-card {
    animation: galleryIn linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 65%;
  }
  .program-card:nth-child(3n+1) { --gx: -40px; }
  .program-card:nth-child(3n+2) { --gx: 0px; }
  .program-card:nth-child(3n)   { --gx: 40px; }
}
/* The featured tile's photo slowly drifts, like a gallery slideshow */
.program-card:nth-child(7n+1) .program-card-image img { animation: galleryDrift 18s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .program-card { animation: none !important; }
  .program-card .program-card-image img { animation: none !important; }
}

/* ── Skeleton tiles (shown while programs load) ── */
.bulletin-card-skel {
  display: flex;
  flex-direction: column;
  background: var(--cloud);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.bulletin-card-skel:first-child { grid-column: span 2; grid-row: span 2; }
.bulletin-card-skel .h-card-img { flex: 1; }
.bulletin-card-skel .h-card-body { padding: 18px 22px 22px; }

.h-card-img {
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(47,111,246,0.14), rgba(255,201,74,0.18));
}
.h-card-body { padding: 22px; }

.skel-bar {
  height: 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--line) 25%, #f5f4f0 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
.skel-60 { width: 60%; } .skel-90 { width: 90%; } .skel-75 { width: 75%; }
.skel-55 { width: 55%; } .skel-80 { width: 80%; } .skel-65 { width: 65%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.loading-spinner {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-light);
  min-width: 160px;
}
.loading-spinner i { color: var(--blue); font-size: 18px; }

@media (max-width: 1024px) { .bulletin-card-skel:first-child { grid-column: span 2; grid-row: span 1; } }

/* ══════════════════════════════════════════════════════════════════
   TEAM DETAIL MODAL (View Profile Swal)
   ══════════════════════════════════════════════════════════════════ */
.swal2-popup.team-detail-swal {
  border-radius: 28px;
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--paper);
  box-shadow: 0 32px 80px -12px rgba(0,0,0,0.28);
}
.swal2-popup.team-detail-swal .swal2-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--stone);
  font-size: 18px;
  z-index: 10;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.swal2-popup.team-detail-swal .swal2-close:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(90deg);
}
/* Hide default Swal title — we render name inside the html */
.swal2-popup.team-detail-swal .swal2-title { display: none !important; }
.swal2-popup.team-detail-swal .swal2-html-container { margin: 0; padding: 0; }

/* ── Modal inner layout ── */
.team-detail-modal {
  display: flex;
  flex-direction: column;
}

/* ── Hero image strip ── */
.modal-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  flex-shrink: 0;
}
.modal-image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.85;
  transition: transform 0.4s ease;
}
.modal-image-wrapper:hover img { transform: scale(1.03); }

/* Gradient fade at the bottom of the image strip */
.modal-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
}

/* ── Level badge overlaid on image ── */
.modal-badge {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  z-index: 2;
}
.modal-badge.badge-leadership { background: var(--amber); }
.modal-badge.badge-management { background: #93c5fd; }
.modal-badge.badge-teacher    { background: var(--mint); }
.modal-badge.badge-support    { background: var(--pink); }

/* ── Content area below image ── */
.team-detail-modal .modal-content {
  padding: 24px 32px 32px;
}

/* ── Header row: name + position + level badge ── */
.team-detail-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.modal-name-title h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 5px;
  line-height: 1.2;
}
.modal-position-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--stone);
  background: var(--cloud);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}
.modal-level-badge {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.modal-level-badge.badge-leadership { background: var(--amber); }
.modal-level-badge.badge-management { background: #93c5fd; }
.modal-level-badge.badge-teacher    { background: var(--mint); }
.modal-level-badge.badge-support    { background: var(--pink); }

/* ── Bio block ── */
.modal-bio {
  background: var(--cloud);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  border-left: 3px solid var(--amber);
}
.modal-bio p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
}

/* ── Contact grid ── */
.modal-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cloud);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  transition: background 0.2s;
}
.contact-item:hover { background: var(--line); }
.contact-item i {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border-radius: 50%;
  color: var(--blue);
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ══════════════════════════════════════════════════════════════════
   PROGRAM DETAIL MODAL (Learn More Swal)
   ══════════════════════════════════════════════════════════════════ */
.swal2-popup.program-detail-swal {
  border-radius: 28px;
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--paper);
  box-shadow: 0 32px 80px -12px rgba(0,0,0,0.28);
  max-width: 820px;
}
.swal2-popup.program-detail-swal .swal2-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 18px;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
}
.swal2-popup.program-detail-swal .swal2-close:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(90deg);
}
.swal2-popup.program-detail-swal .swal2-title { display: none !important; }
.swal2-popup.program-detail-swal .swal2-html-container { margin: 0; padding: 0; }

/* ── Inner layout ── */
/* .program-detail-modal layout now defined with the image block above */

/* ── Left image panel ── */
.program-detail-modal {
  display: flex;
  flex-direction: column;  /* stack image on top, content below */
}
.program-detail-modal .modal-image {
  width: 100%;             /* full modal width */
  height: 240px;           /* fixed landscape height */
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--cloud);
  border-radius: 0;        /* flush with modal edges top */
}
.program-detail-modal .modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}
.program-detail-modal .modal-image:hover img { transform: scale(1.03); }

/* ── Right content panel ── */
.program-detail-modal .modal-content {
  flex: 1;
  padding: 32px 30px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Program badge */
.program-detail-modal .modal-content .program-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}
.program-detail-modal .modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.modal-short-desc {
  font-size: 14.5px;
  color: var(--stone);
  line-height: 1.75;
  margin: 0;
}

/* Long description */
.modal-long-desc {
  background: var(--cloud);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
}
.modal-long-desc h4 { font-size: 13px; font-weight: 700; color: var(--blue); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.modal-long-desc p  { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* Features list */
.modal-features { }
.modal-features h4 {
  font-size: 13px; font-weight: 700; color: var(--ink);
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.modal-features h4 i { color: var(--blue); }
.modal-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0; margin: 0;
}
.modal-features ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--cloud);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  line-height: 1.5;
}
.modal-features ul li i { color: var(--blue); margin-top: 2px; flex-shrink: 0; }

/* Schedule list */
.modal-schedule h4 {
  font-size: 13px; font-weight: 700; color: var(--ink);
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.modal-schedule h4 i { color: var(--amber); }
.modal-schedule ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.modal-schedule ul li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-soft);
  background: var(--cloud);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.modal-schedule ul li i { color: var(--amber); flex-shrink: 0; }

/* Includes */
.modal-includes {
  background: var(--cloud);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border-left: 3px solid var(--mint);
}
.modal-includes h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.modal-includes h4 i { color: var(--mint-deep, var(--mint)); }
.modal-includes p  { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.65; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .program-detail-modal .modal-image { height: 180px; }
  .program-detail-modal .modal-content { padding: 22px 20px 24px; }

  .team-detail-modal .modal-content { padding: 18px 20px 24px; }
  .team-detail-modal .modal-header { flex-direction: column; gap: 10px; }
  .modal-image-wrapper { height: 180px; }
}
/* ═══════════════════════════════════════════════════════════════
   12. TESTIMONIALS
   Cards get a star rating, a big floating quote mark, a staggered
   (masonry-style) layout and a gradient avatar. On hover the card
   lifts, the quote mark swings and the avatar ring lights up.
   No HTML changes needed.
   ═══════════════════════════════════════════════════════════════ */
.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  background: var(--paper);
}
.testimonials-section::before {                       /* soft colour wash */
  content: '';
  position: absolute;
  left: -10%; right: -10%; bottom: -35%;
  height: 75%;
  background: radial-gradient(55% 60% at 50% 100%, rgba(47,111,246,0.12), transparent 70%);
  pointer-events: none;
}
.testimonials-section .container { position: relative; }

.testimonials-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.testimonials-grid .testimonial-card:nth-child(even) { margin-top: 38px; }   /* staggered */

.testimonial-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  padding: 58px 38px 32px;
  background: linear-gradient(160deg, #fff 0%, var(--cloud) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--slow), box-shadow var(--slow), border-color var(--med);
}
.testimonials-grid .testimonial-card:nth-child(2) {
  background: linear-gradient(160deg, #fff 0%, var(--pink) 100%);
}
.testimonial-card:hover {
  transform: translateY(-10px) rotate(-0.4deg);
  border-color: transparent;
  box-shadow: 0 34px 60px -26px rgba(23,32,92,0.38);
}

/* 5-star rating */
.testimonial-card::before {
  content: '★★★★★';
  position: absolute;
  top: 26px; left: 38px;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--amber-deep);
  transition: letter-spacing var(--med);
}
.testimonial-card:hover::before { letter-spacing: 6px; }

/* big floating quote mark */
.testimonial-card::after {
  content: '\201C';
  position: absolute;
  top: -10px; right: 26px;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 170px;
  line-height: 1;
  color: var(--blue);
  opacity: 0.10;
  transition: transform var(--slow), opacity var(--med);
}
.testimonials-grid .testimonial-card:nth-child(2)::after { color: var(--pink-deep); opacity: 0.35; }
.testimonial-card:hover::after { transform: translateY(10px) rotate(-8deg) scale(1.12); opacity: 0.2; }

.testimonial-card .quote {
  margin-bottom: 26px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px dashed rgba(21,23,28,0.14);
}
.author-avatar {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(47,111,246,0.25);
  transition: transform var(--med), box-shadow var(--med);
}
.testimonials-grid .testimonial-card:nth-child(2) .author-avatar {
  background: linear-gradient(135deg, var(--pink-deep), #D4577F);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(246,166,188,0.5);
}
.testimonial-card:hover .author-avatar {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--amber);
}
.author-info h4 { font-size: 15.5px; margin-bottom: 2px; }
.author-info p  { font-size: 13px; color: var(--stone); }

@keyframes tcIn {
  from { opacity: 0; translate: var(--tx, 0) 60px; scale: .94; rotate: var(--rot, 0deg); }
  to   { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
}
@supports (animation-timeline: view()) {
  .testimonial-card {
    animation: tcIn linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 65%;
  }
  .testimonial-card:nth-child(odd)  { --tx: -50px; --rot: -2deg; }
  .testimonial-card:nth-child(even) { --tx:  50px; --rot:  2deg; }
}

/* ═══════════════════════════════════════════════════════════════
   13. BRANCHES / LOCATION
   Each branch is now a floating info card that overlaps its map,
   with a big outlined 01 / 02 numeral, an accent colour per branch,
   pill-style contact rows and a map that turns from grey to full
   colour on hover. No HTML changes needed.
   ═══════════════════════════════════════════════════════════════ */
.branches-program {
  counter-reset: br;
  padding: 80px 0 60px;
  background: var(--cloud);
}
.branches-header { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.branches-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(47,111,246,0.08);
  border-radius: var(--radius-pill);
}
.branches-header h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 12px; }
.branches-header p  { color: var(--stone); font-size: 16px; }

.branch-program {
  --accent: var(--amber-deep);
  counter-increment: br;
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  text-align: left;
}
.branch-program.reverse { --accent: var(--blue); direction: rtl; }
.branch-program.reverse > * { direction: ltr; }

/* info card, overlapping the map */
.branch-text {
  position: relative;
  z-index: 2;
  margin-right: -70px;
  padding: 44px 40px 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--slow), box-shadow var(--slow);
}
.branch-program.reverse .branch-text { margin-right: 0; margin-left: -70px; }
.branch-text:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -28px rgba(23,32,92,0.4); }

.branch-text::before {                                  /* accent bar */
  content: '';
  position: absolute;
  top: 0; left: 40px;
  width: 64px; height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--accent);
  transition: width var(--med);
}
.branch-text:hover::before { width: 130px; }
.branch-text::after {                                   /* 01 / 02 numeral */
  content: counter(br, decimal-leading-zero);
  position: absolute;
  top: 14px; right: 30px;
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(21,23,28,0.10);
  transition: -webkit-text-stroke-color var(--med), transform var(--med);
}
.branch-text:hover::after { -webkit-text-stroke-color: var(--accent); transform: translateY(-4px); }

.branch-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}
.main-tag      { background: rgba(255,201,74,0.2);  color: var(--amber-deep); }
.satellite-tag { background: rgba(47,111,246,0.12); color: var(--blue-deep); }

.branch-text h3 { font-size: 30px; margin-bottom: 20px; }

.branch-address-block {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px 20px;
  background: var(--cloud);
  border-left: 4px solid var(--accent);
  border-radius: 6px var(--radius-md) var(--radius-md) 6px;
}
.branch-address-block i { margin-top: 3px; font-size: 17px; color: var(--accent); }
.branch-address-block p { font-size: 14.5px; line-height: 1.7; color: var(--stone); }
.branch-address-block strong { color: var(--ink); }

.branch-contact-info { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
/* scoped to the branch cards — .contact-item is also used by the profile modal */
.branch-contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: background var(--fast), transform var(--fast);
}
.branch-contact-info .contact-item:hover { background: var(--cloud); transform: translateX(8px); }
.branch-contact-info .contact-item i {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  border-radius: 50%;
  box-shadow: none;
  transition: background var(--fast), color var(--fast), transform var(--fast);
}
.branch-contact-info .contact-item:hover i { color: #fff; background: var(--accent); transform: rotate(-10deg) scale(1.08); }

.branch-btn i { transition: transform var(--fast); }
.branch-btn:hover i { transform: translateX(4px) rotate(-12deg); }

.branch-image { position: relative; }
.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 440px;
  filter: grayscale(0.6) contrast(1.03);
  transition: filter 1s ease;
}
.branch-program:hover .map-wrapper iframe { filter: none; }

.map-label {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.branch-program.reverse .map-label { right: auto; left: 18px; }
.map-label i { color: var(--accent); animation: pinBounce 2.2s ease-in-out infinite; }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@keyframes brIn {
  from { opacity: 0; translate: var(--bx, -60px) 50px; scale: .96; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}
@supports (animation-timeline: view()) {
  .branch-program {
    animation: brIn linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  .branch-program.reverse { --bx: 60px; }
}

@media (max-width: 900px) {
  .branch-program, .branch-program.reverse { grid-template-columns: 1fr; gap: 22px; direction: ltr; }
  .branch-text, .branch-program.reverse .branch-text { margin: 0; padding: 36px 26px 30px; }
  .branch-text::after { font-size: 56px; }
  .map-wrapper iframe { height: 320px; }
}

/* ═══════════════════════════════════════════════════════════════
   14. CTA
   Animated colour-mesh panel, glowing rings, gradient headline,
   and a pulsing amber button whose arrow slides on hover.
   No HTML changes needed.
   ═══════════════════════════════════════════════════════════════ */
.cta-section { padding: 70px 32px 90px; background: var(--paper); }
.cta-section .container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1040px;
  padding: 78px 50px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 75%);
  border-radius: 44px;
  box-shadow: 0 44px 80px -34px rgba(23,32,92,0.65);
}
.cta-section .container::before {                         /* drifting colour mesh */
  content: '';
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(38% 38% at 18% 22%, rgba(120,190,255,0.42), transparent 70%),
    radial-gradient(40% 40% at 85% 80%, rgba(246,166,188,0.40), transparent 70%),
    radial-gradient(30% 30% at 70% 15%, rgba(55,201,155,0.28), transparent 70%);
  animation: ctaMesh 16s ease-in-out infinite alternate;
}
.cta-section .container::after {                          /* dotted grid + rings */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 92% 14%, transparent 0 88px, rgba(255,255,255,0.22) 89px 91px, transparent 92px),
    radial-gradient(circle at 92% 14%, transparent 0 140px, rgba(255,255,255,0.12) 141px 142px, transparent 143px),
    radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.6px) 0 0 / 26px 26px;
  -webkit-mask: radial-gradient(75% 85% at 50% 50%, #000 30%, transparent 100%);
          mask: radial-gradient(75% 85% at 50% 50%, #000 30%, transparent 100%);
  animation: ctaRings 12s ease-in-out infinite alternate;
}
@keyframes ctaMesh  { to { transform: translate(6%, -4%) rotate(8deg) scale(1.08); } }
@keyframes ctaRings { to { background-position: -30px 20px, -30px 20px, 26px 26px; } }

.cta-section h2 {
  position: relative;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  color: #fff;
}
.cta-section h2 span {
  background: linear-gradient(90deg, #FFE9A8, #FFC94A 55%, #FFB27A);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.cta-section p {
  position: relative;
  margin-bottom: 36px;
  font-size: 17px;
  color: rgba(255,255,255,0.8);
}
.cta-section .btn-primary {
  position: relative;
  padding: 18px 38px;
  font-size: 16px;
  color: var(--ink);
  background: var(--amber);
  box-shadow: 0 16px 34px -12px rgba(255,201,74,0.8);
}
.cta-section .btn-primary::after {                        /* pulsing ring */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255,201,74,0.6);
  animation: ctaPing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ctaPing { to { box-shadow: 0 0 0 20px rgba(255,201,74,0); } }
.cta-section .btn-primary i { transition: transform var(--fast); }
.cta-section .btn-primary:hover { color: var(--ink); background: #fff; transform: translateY(-4px) scale(1.03); }
.cta-section .btn-primary:hover i { transform: translateX(6px); }

@keyframes ctaIn {
  from { opacity: 0; translate: 0 50px; scale: .93; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}
@supports (animation-timeline: view()) {
  .cta-section .container {
    animation: ctaIn linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   15. FOOTER
   Glowing gradient top line, colour glows, a giant outlined AMORA
   watermark, underline-sweep links and brand-coloured social pills.
   No HTML changes needed.
   ═══════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 90px 32px 0;
  color: rgba(255,255,255,0.7);
  background:
    radial-gradient(55% 55% at 88% 0%, rgba(47,111,246,0.25), transparent 70%),
    radial-gradient(40% 45% at 0% 100%, rgba(255,201,74,0.10), transparent 70%),
    var(--ink);
}
.footer::before {                                         /* animated top line */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--amber), var(--pink-deep), var(--mint), var(--blue));
  background-size: 300% 100%;
  animation: footerFlow 10s linear infinite;
}
.footer::after {                                          /* watermark */
  content: 'AMORA';
  position: absolute;
  left: 50%; bottom: -0.3em;
  z-index: -1;
  translate: -50% 0;
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 300px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.07);
  pointer-events: none;
}
@keyframes footerFlow { to { background-position: -300% 0; } }

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 {
  margin-bottom: 12px;
  font-size: 25px;
  background: linear-gradient(90deg, #fff, #FFE9A8);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.footer-brand p { max-width: 320px; font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,0.55); }

.footer h4 {
  margin-bottom: 20px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.footer h4::after {
  content: '';
  display: block;
  width: 28px; height: 3px;
  margin-top: 10px;
  background: var(--amber);
  border-radius: 3px;
  transition: width var(--med);
}
.footer-links:hover h4::after,
.footer-social:hover h4::after { width: 56px; }

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  align-self: flex-start;
  padding-bottom: 3px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.6);
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat;
  transition: color var(--fast), background-size var(--med), transform var(--fast);
}
.footer-links a:hover { color: var(--amber); background-size: 100% 2px; transform: translateX(4px); }

.social-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 6px 6px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  transition: color var(--fast), transform var(--fast), background var(--fast), border-color var(--fast);
}
.social-links a i {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background var(--fast), transform var(--fast);
}
.social-links a:hover { color: #fff; transform: translateY(-4px); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }
.social-links a:hover i { transform: rotate(-10deg) scale(1.1); }
.social-links a[href*="facebook"]:hover i  { background: #1877F2; }
.social-links a[href*="instagram"]:hover i { background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 0 30px;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
}

@keyframes ftIn {
  from { opacity: 0; translate: 0 40px; }
  to   { opacity: 1; translate: 0 0; }
}
@supports (animation-timeline: view()) {
  .footer-content > * {
    animation: ftIn linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
}

@media (max-width: 820px) {
  .footer-content { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:nth-child(even) { margin-top: 0; }
  .cta-section .container { padding: 56px 26px; border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card, .branch-program, .cta-section .container, .footer-content > *,
  .cta-section .container::before, .cta-section .container::after,
  .cta-section .btn-primary::after, .footer::before, .map-label i { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   16. LOGIN MODAL — best-effort fallback for injected markup
   ═══════════════════════════════════════════════════════════════ */
#loginModalContainer [class*="overlay"] {
  position: fixed; inset: 0;
  background: rgba(21,23,28,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  animation: fadeInOverlay var(--fast) both;
}
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
#loginModalContainer [class*="modal"] {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: scaleIn var(--med) both;
}
#loginModalContainer input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 14.5px;
  transition: border-color var(--fast);
}
#loginModalContainer input:focus { border-color: var(--blue); outline: none; }
#loginModalContainer button[type="submit"],
#loginModalContainer [class*="submit"] {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  padding: 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background var(--fast);
}
#loginModalContainer button[type="submit"]:hover,
#loginModalContainer [class*="submit"]:hover { background: var(--blue); }

/* ═══════════════════════════════════════════════════════════════
   17. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-links, .search-wrapper { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.active {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    padding: 20px 32px 28px;
    box-shadow: var(--shadow-md);
  }
  .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; display: none; margin-top: 6px; width: 100%; }
  .dropdown.active .dropdown-menu { display: block; }

  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .story-grid { grid-template-columns: 1fr; }
  .branch-program, .branch-program.reverse { grid-template-columns: 1fr; direction: ltr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 44px 0 32px; }
  .cta-section .container { padding: 56px 28px; }
  .footer-content { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════════════════════════
   11. TEAM — organisation tree
   A modern org tree: profile cards with a colour banner and an
   overlapping avatar, joined by real branching connector lines
   (trunk → bar → drops) with a light pulse travelling down the trunk.
   Same HTML as before (org-chart > org-level > org-members-row >
   org-member > org-card …) — nothing to change in main.html or
   dynamic-loader.js. Each hierarchy level has its own colour family:
     0 Leadership = gold · 1 Management = blue · 2 Teachers = mint
     3 Support = pink
   Motion: cards rise in as they scroll into view, banners shimmer,
   the avatar ring spins on hover, a light sweep crosses the card and
   the other cards dim so the hovered person stands out.
   ═══════════════════════════════════════════════════════════════ */

.team-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 70px 0 80px;
  text-align: center;
  background:
    radial-gradient(rgba(21,23,28,0.07) 1.2px, transparent 1.5px) 0 0 / 24px 24px,
    var(--cloud, #F6F5F2);
}
/* two soft colour glows drifting behind the chart */
.team-section::before,
.team-section::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  animation: orgBlob 20s ease-in-out infinite alternate;
}
.team-section::before { top: -180px; left: -160px; background: radial-gradient(circle, rgba(255,201,74,0.38), transparent 65%); }
.team-section::after  { bottom: -200px; right: -170px; background: radial-gradient(circle, rgba(47,111,246,0.24), transparent 65%); animation-delay: -9s; }

.team-intro { max-width: 640px; margin: 0 auto 30px; }
.team-section-tag { color: var(--amber-deep, #F5B400); background: rgba(255,201,74,0.16); }

.org-chart-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 10px;
}

.org-chart {
  --org-line: rgba(23,32,92,0.20);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: var(--ink, #15171C);
}
.org-chart .team-loading { color: var(--stone, #6B7280) !important; }

/* ── Level colour families + sizes (set on the row and on the card
      so either one can be styled on its own) ── */
.org-level[data-level="0"], .org-card[data-level="0"] {
  --lvl: #FFC94A; --lvl-deep: #B97F00; --g1: #FFD66B; --g2: #FF9F43;
  --w: 272px; --banner: 98px; --av: 108px;
}
.org-level[data-level="1"], .org-card[data-level="1"] {
  --lvl: #2F6FF6; --lvl-deep: #1E52C4; --g1: #5B8DFF; --g2: #5B4CF0;
  --w: 238px; --banner: 80px; --av: 94px;
}
.org-level[data-level="2"], .org-card[data-level="2"] {
  --lvl: #37C99B; --lvl-deep: #16906E; --g1: #52E0B0; --g2: #1CA7C9;
  --w: 216px; --banner: 68px; --av: 82px;
}
.org-level[data-level="3"], .org-card[data-level="3"] {
  --lvl: #F6A6BC; --lvl-deep: #C94D78; --g1: #FFC2D4; --g2: #F58FB0;
  --w: 192px; --banner: 58px; --av: 70px;
}

.org-level {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.org-members-row {
  --gap: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--gap);
  width: 100%;
}

/* ── Branching connectors ──
   trunk (between levels) → horizontal bar → a drop to every card */
.org-connector { display: flex; justify-content: center; width: 100%; }
.org-connector .connector-line {
  position: relative;
  width: 2px;
  height: 46px;
  border-radius: 2px;
  background: var(--org-line);
  transform-origin: top;
  animation: orgLineGrow .9s cubic-bezier(.22,1,.36,1) backwards;
}
/* a little light travelling down the trunk */
.org-connector .connector-line::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--amber, #FFC94A);
  box-shadow: 0 0 12px 2px rgba(255,201,74,0.75);
  animation: orgPulse 2.8s ease-in-out infinite;
}

.org-level:not([data-level="0"]) .org-member {
  position: relative;
  padding-top: 32px;
}
.org-level:not([data-level="0"]) .org-member::before {      /* the bar */
  content: '';
  position: absolute;
  top: 0;
  left: calc(var(--gap, 26px) / -2);
  right: calc(var(--gap, 26px) / -2);
  height: 2px;
  background: var(--org-line);
}
.org-level:not([data-level="0"]) .org-member:first-child::before { left: 50%; }
.org-level:not([data-level="0"]) .org-member:last-child::before  { right: 50%; }
.org-level:not([data-level="0"]) .org-member:only-child::before  { display: none; }
.org-level:not([data-level="0"]) .org-member::after {        /* the drop */
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  width: 2px; height: 32px;
  background: var(--org-line);
  transition: background .3s ease;
}
.org-level:not([data-level="0"]) .org-member:hover::after { background: var(--lvl); }

/* ── Profile card ── */
.org-card {
  position: relative;
  overflow: hidden;
  width: var(--w, 216px);
  padding: 0 20px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(21,23,28,0.06);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(21,23,28,0.04), 0 14px 32px -14px rgba(21,23,28,0.22);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, opacity .35s ease, filter .35s ease;
}
.org-card[data-level="0"] {
  box-shadow: 0 1px 2px rgba(21,23,28,0.04), 0 26px 50px -22px rgba(245,180,0,0.55);
}
.org-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1px 2px rgba(21,23,28,0.04),
              0 34px 56px -20px color-mix(in srgb, var(--lvl) 60%, transparent);
}
/* spotlight: while one person is hovered, everyone else dims a little */
.org-chart:hover .org-card:not(:hover) { opacity: .8; filter: saturate(.8); }

/* colour banner behind the avatar — dotted, slowly shimmering */
.org-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--banner);
  background:
    radial-gradient(rgba(255,255,255,0.38) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(115deg, var(--g1), var(--g2), var(--g1)) 0 0 / 200% 100%;
  animation: orgBanner 9s linear infinite;
}
/* light sweep on hover */
.org-card::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 3;
}
.org-card:hover::after { left: 140%; transition: left .9s cubic-bezier(.22,1,.36,1); }

.org-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lvl-deep);
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(21,23,28,0.35);
  backdrop-filter: blur(6px);
}
.org-badge.leadership::before,
.org-badge.management::before {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
}
.org-badge.leadership::before { content: '\f521'; }   /* crown */
.org-badge.management::before { content: '\f005'; }   /* star  */

/* ── Avatar: overlaps the banner, ring spins on hover ── */
.org-avatar {
  position: relative;
  z-index: 1;
  width: var(--av);
  height: var(--av);
  margin: calc(var(--banner) - var(--av) / 2) auto 14px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 22px -8px rgba(21,23,28,0.4);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.org-card:hover .org-avatar { transform: scale(1.07) rotate(-3deg); }
.org-avatar img,
.org-avatar .avatar-placeholder { width: 100%; height: 100%; border-radius: 50%; }
.org-avatar img { display: block; object-fit: cover; }
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Sora', sans-serif);
  font-weight: 700;
  font-size: calc(var(--av) * .36);
  color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.org-avatar::before {                                   /* spinning ring */
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from var(--ang, 0deg), var(--lvl), transparent 38%, var(--g2) 68%, transparent 88%, var(--lvl));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: 0;
  transform: scale(.85);
  transition: opacity .4s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.org-card:hover .org-avatar::before { opacity: 1; transform: none; animation: orgSpin 3s linear infinite; }
.org-card[data-level="0"] .org-avatar::before { opacity: 1; transform: none; animation: orgSpin 7s linear infinite; }

/* ── Text ── */
.org-name {
  margin-bottom: 6px;
  font-family: var(--font-display, 'Sora', sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink, #15171C);
}
.org-card[data-level="0"] .org-name { font-size: 20px; }
.org-position {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--lvl-deep);
  background: color-mix(in srgb, var(--lvl) 15%, #fff);
  border-radius: 999px;
}
/* bio first, button last (the template lists the button first) */
.org-details { display: flex; flex-direction: column; align-items: center; }
.org-hover-details { order: 1; margin: 0 0 14px; }
.org-learn-more { order: 2; }
.org-bio {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--stone, #6B7280);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .3s ease;
}
.org-card:hover .org-bio { color: var(--ink-soft, #3A3D46); }

/* "View Profile": outlined pill that fills with the level gradient */
.org-learn-more {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lvl-deep);
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--lvl) 50%, transparent);
  border-radius: 999px;
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}
.org-learn-more::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--g1), var(--g2));
  transform: translateY(101%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.org-learn-more::after {                                /* arrow slides in */
  content: '\f061';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
  margin-left: -16px;
  opacity: 0;
  transition: margin .3s ease, opacity .3s ease;
}
.org-learn-more i { font-size: 11px; }
.org-card:hover .org-learn-more::after { margin-left: 0; opacity: 1; }
.org-learn-more:hover { color: #fff; border-color: transparent; transform: translateY(-2px); }
.org-learn-more:hover::before { transform: translateY(0); }

/* ── Keyframes ── */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes orgSpin     { to { --ang: 360deg; } }
@keyframes orgBanner   { to { background-position: 0 0, 200% 0; } }
@keyframes orgBlob     { to { translate: 70px 50px; scale: 1.15; } }
@keyframes orgLineGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes orgPulse {
  0%   { top: -6px; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: calc(100% - 2px); opacity: 0; }
}
@keyframes orgRise {
  from { opacity: 0; translate: 0 40px; scale: .93; }
  to   { opacity: 1; translate: 0 0;   scale: 1; }
}

/* Entrance: each branch rises as it scrolls into view (scroll-driven,
   no JS). Browsers without it get a short staggered load animation. */
@supports (animation-timeline: view()) {
  .org-member {
    animation: orgRise linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  .org-connector .connector-line {
    animation: orgLineGrow linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
}
@supports not (animation-timeline: view()) {
  .org-member { animation: orgRise .8s cubic-bezier(.22,1,.36,1) backwards; }
  .org-chart > :nth-child(3) .org-member { animation-delay: .25s; }
  .org-chart > :nth-child(5) .org-member { animation-delay: .5s; }
  .org-chart > :nth-child(7) .org-member { animation-delay: .75s; }
}

/* ── Smaller screens ── */
@media (max-width: 900px) {
  .org-members-row { --gap: 18px; }
}
@media (max-width: 700px) {
  .org-chart-wrapper { padding: 16px 16px 0; }
  .org-members-row { --gap: 14px; }
  /* rows wrap on phones, so the branch bar would look broken — keep
     just the trunk between levels */
  .org-level:not([data-level="0"]) .org-member { padding-top: 0; margin-top: 0; }
  .org-level:not([data-level="0"]) .org-member::before,
  .org-level:not([data-level="0"]) .org-member::after { display: none; }
  .org-level { row-gap: 14px; }
  .org-level[data-level="0"], .org-card[data-level="0"] { --w: 230px; --banner: 78px; --av: 88px; }
  .org-level[data-level="1"], .org-card[data-level="1"] { --w: 168px; --banner: 64px; --av: 74px; }
  .org-level[data-level="2"], .org-card[data-level="2"] { --w: 156px; --banner: 58px; --av: 66px; }
  .org-level[data-level="3"], .org-card[data-level="3"] { --w: 150px; --banner: 52px; --av: 60px; }
  .org-card { padding: 0 12px 16px; border-radius: 22px; }
  .org-name { font-size: 13.5px; }
  .org-card[data-level="0"] .org-name { font-size: 17px; }
  .org-position { font-size: 10.5px; padding: 3px 10px; }
  .org-bio { font-size: 11.5px; }
  .org-learn-more { padding: 8px 13px; font-size: 11.5px; }
  .org-badge { top: 8px; right: 8px; padding: 4px 8px; font-size: 9px; }
  .org-connector .connector-line { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .team-section::before, .team-section::after,
  .org-card::before, .org-member, .org-connector .connector-line,
  .org-connector .connector-line::after, .org-avatar::before { animation: none !important; }
  .org-card, .org-avatar { transition: none; }
}
/* ═══════════════════════════════════════════════════════════════
   SECTION EDGE BLENDING
   Every coloured section now dissolves into the page background at
   its top and bottom edge, so one section melts into the next
   instead of meeting it in a hard line (navy band, cream team and
   branches areas, the footer, and the soft glows in between).
   The fade lengths (--ft / --fb) are always shorter than each
   section's own padding, so no text or card is ever faded — to make a
   blend longer or shorter, change those two numbers on that section.
   Paste this at the END of styles.css.
   ═══════════════════════════════════════════════════════════════ */
.hero, .stats-section, .story-section, .team-section,
.testimonials-section, .branches-program, .footer {
  --ft: 0px;                      /* fade length at the top    */
  --fb: 0px;                      /* fade length at the bottom */
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0)    0,
    rgba(0,0,0,.08)  calc(var(--ft) * .2),
    rgba(0,0,0,.30)  calc(var(--ft) * .4),
    rgba(0,0,0,.70)  calc(var(--ft) * .6),
    rgba(0,0,0,.92)  calc(var(--ft) * .8),
    #000             var(--ft),
    #000             calc(100% - var(--fb)),
    rgba(0,0,0,.92)  calc(100% - var(--fb) * .8),
    rgba(0,0,0,.70)  calc(100% - var(--fb) * .6),
    rgba(0,0,0,.30)  calc(100% - var(--fb) * .4),
    rgba(0,0,0,.08)  calc(100% - var(--fb) * .2),
    rgba(0,0,0,0)    100%);
          mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0)    0,
    rgba(0,0,0,.08)  calc(var(--ft) * .2),
    rgba(0,0,0,.30)  calc(var(--ft) * .4),
    rgba(0,0,0,.70)  calc(var(--ft) * .6),
    rgba(0,0,0,.92)  calc(var(--ft) * .8),
    #000             var(--ft),
    #000             calc(100% - var(--fb)),
    rgba(0,0,0,.92)  calc(100% - var(--fb) * .8),
    rgba(0,0,0,.70)  calc(100% - var(--fb) * .6),
    rgba(0,0,0,.30)  calc(100% - var(--fb) * .4),
    rgba(0,0,0,.08)  calc(100% - var(--fb) * .2),
    rgba(0,0,0,0)    100%);
}
/* a section that starts the page (hero) or ends it (footer) keeps its
   outer edge sharp: fade only the side that touches another section */
.hero            { --ft: 0px;  --fb: 56px; padding-bottom: 64px; }
.stats-section   { --ft: 70px; --fb: 80px; }
.story-section   { --ft: 60px; --fb: 70px; }
.team-section    { --ft: 60px; --fb: 70px; }
.testimonials-section { --ft: 70px; --fb: 80px; }
.branches-program { --ft: 70px; --fb: 90px; }
.footer          { --ft: 70px; --fb: 0px; }

@media (max-width: 700px) {
  .stats-section, .story-section, .team-section,
  .testimonials-section, .branches-program, .footer { --ft: 44px; }
  .stats-section, .testimonials-section { --fb: 56px; }
  .story-section, .team-section { --fb: 52px; }
  .branches-program { --fb: 64px; }
}


/* ===============================================================
   AMORA HOMEPAGE — DESKTOP SPACING / WIDTH ALIGNMENT
   The only changes in this update. Keeps existing tablet and
   mobile layouts exactly as they were (1024px and below).
   =============================================================== */
@media (min-width: 1025px) {
  /* All normal content sections follow one centered, wider canvas. */
  .container {
    max-width: 1480px;
    padding-left: clamp(32px, 3.2vw, 48px);
    padding-right: clamp(32px, 3.2vw, 48px);
  }

  /* Align the navigation and hero scroll cue with the content. */
  .navbar,
  .hero-scroll-hint {
    max-width: 1480px;
    padding-left: clamp(32px, 3.2vw, 48px);
    padding-right: clamp(32px, 3.2vw, 48px);
  }

  /* Programs, Operations Team and Branches are outside .container. */
  .bulletin-gallery,
  .org-chart-wrapper,
  .branch-program {
    max-width: 1480px;
    padding-left: clamp(32px, 3.2vw, 48px);
    padding-right: clamp(32px, 3.2vw, 48px);
  }

  /* Keep footer text and links aligned with the wider content area. */
  .footer-content,
  .footer-bottom {
    max-width: 1384px;
  }
}


/* AMORA homepage: parent-linked testimonial cards.
   Added to the provided styles.css; preserves other homepage sections. */
.testimonials-grid.pt-public-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.pt-public-grid .testimonial-card { padding-top: 32px; }
.pt-public-grid .testimonial-card::before { content: none; }
.pt-public-grid .testimonial-card:nth-child(even) { margin-top: 0; }
.pt-public-card-header {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:18px;flex-wrap:wrap;
}
.pt-public-card-kicker {
  color:var(--blue-deep);font-weight:800;font-size:11px;letter-spacing:.11em;
}
.pt-public-stars {
  color:#c68600;letter-spacing:3px;font-size:15px;
}
.pt-public-headline {
  font-size:clamp(18px,2vw,23px);
  margin-bottom:13px;color:var(--navy);
  overflow-wrap:anywhere;
}
.pt-public-quote {
  margin:0 0 25px;line-height:1.75;font-style:normal;
  font-size:15.5px;white-space:pre-line;overflow-wrap:anywhere;
}
.pt-public-avatar { overflow:hidden; }
.pt-public-avatar img {
  display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;
}
.pt-public-loading,.pt-public-empty {
  grid-column:1/-1;max-width:620px;margin:0 auto;text-align:center;
  padding:30px;color:var(--stone);
}
@media (max-width:760px){
  .testimonials-grid.pt-public-grid { grid-template-columns:1fr; }
  .pt-public-grid .testimonial-card { padding:25px; }
}


/* =====================================================================
   AMORA OPERATIONS TEAM — CENTERED SINGLE-ROW GALLERY
   Original org-card banners, avatars, badges, profile buttons and
   per-level color variables remain unchanged.
   The team loader flattens its rendered hierarchy into gallery cards.
   Layout stays one row and scrolls on narrow devices.
   ===================================================================== */

#team.amora-team-gallery-section {
  background:
    radial-gradient(circle at 22% 32%, rgba(255,201,74,.085), transparent 35%),
    radial-gradient(circle at 82% 75%, rgba(47,111,246,.075), transparent 34%),
    radial-gradient(rgba(23,32,92,.075) 1px, transparent 1.35px) 0 0 / 23px 23px,
    #fff;
  padding: clamp(72px,6vw,110px) 0 clamp(56px,5vw,85px);
  color: #14204d;
}

/* Hero and header palette used only for team section typography. */
#team .team-intro {
  max-width: 800px;
  margin-bottom: 20px;
}
#team .team-section-tag {
  color: #8e6400;
  background: rgba(255,201,74,.18);
  border: 1px solid rgba(245,180,0,.25);
}
#team .team-section-title {
  color: #152354;
  font-size: clamp(2.15rem,3.25vw,3.65rem);
}
#team .team-section-title .highlight {
  color: #2f6ff6;
}
#team .team-section-title .highlight::after {
  background: #ffc94a;
}
#team .team-section-sub {
  color: #667089;
  max-width: 570px;
}

/* Team glows are gentler on white; other sections are unaffected. */
#team.team-section::before {
  background: radial-gradient(circle,rgba(255,201,74,.19),transparent 68%);
}
#team.team-section::after {
  background: radial-gradient(circle,rgba(47,111,246,.12),transparent 68%);
}

#team .org-chart-wrapper.amora-team-gallery-scroll {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 26px clamp(16px,2.6vw,46px) 38px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(47,111,246,.30) transparent;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
#team .org-chart-wrapper.amora-team-gallery-scroll:focus-visible {
  outline: 3px solid rgba(47,111,246,.42);
  outline-offset: -4px;
}
#team .org-chart-wrapper.amora-team-gallery-scroll::-webkit-scrollbar { height: 9px; }
#team .org-chart-wrapper.amora-team-gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(47,111,246,.30);
  border-radius: 100px;
}

/* The loader leaves a flat list of the EXISTING card elements.
   No wrapper level columns or connector lines are rendered in this view. */
#team .org-chart.amora-team-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(12px, 1.25vw, 22px);
  width: max-content;
  min-width: 100%;
  padding: 22px 4px 26px;
  color: #162148;
}
#team .org-chart.amora-team-gallery > .org-member {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: none;
  animation: amoraGalleryEnter .78s cubic-bezier(.22,1,.36,1) both !important;
  animation-timeline: auto !important;
  animation-range: normal !important;
  animation-delay: var(--gallery-delay,0ms) !important;
}
#team .org-chart.amora-team-gallery > .org-member::before {
  content: '';
  position: absolute;
  inset: 22px -10px 4px;
  border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(47,111,246,.14), transparent 68%);
  opacity: 0;
  filter: blur(18px);
  pointer-events: none;
  transition: opacity .5s ease;
}
#team .org-chart.amora-team-gallery > .org-member:hover::before,
#team .org-chart.amora-team-gallery > .org-member:focus-within::before {
  opacity: 1;
}

/* Keep the exact original visual language; only scale gallery widths
   responsively to keep more cards visible side-by-side. */
#team .org-chart.amora-team-gallery .org-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 324px;
  border-color: rgba(22,39,89,.08);
  box-shadow: 0 10px 20px -10px rgba(15,32,85,.1),
              0 18px 35px -23px rgba(15,32,85,.2);
  transition: transform .55s cubic-bezier(.22,1,.36,1),
              box-shadow .45s ease, opacity .3s ease, filter .3s ease;
}
#team .org-chart.amora-team-gallery .org-card[data-level="0"] {
  --w: clamp(223px, 15.3vw, 272px);
  box-shadow: 0 17px 38px -21px rgba(255,185,42,.52),
              0 0 0 1px rgba(255,201,74,.18);
}
#team .org-chart.amora-team-gallery .org-card[data-level="1"] {
  --w: clamp(168px, 12.1vw, 225px);
}
#team .org-chart.amora-team-gallery .org-card[data-level="2"] {
  --w: clamp(168px, 12.1vw, 218px);
}
#team .org-chart.amora-team-gallery .org-card[data-level="3"] {
  --w: clamp(168px, 12vw, 204px);
}
#team .org-chart.amora-team-gallery .org-card .org-details {
  width: 100%;
  flex: 1;
  min-height: 0;
}
#team .org-chart.amora-team-gallery .org-card .org-learn-more {
  margin-top: auto;
}
#team .org-chart.amora-team-gallery .org-card:hover,
#team .org-chart.amora-team-gallery .org-card:focus-within {
  transform: translateY(-12px);
  box-shadow: 0 27px 50px -18px color-mix(in srgb, var(--lvl) 46%, transparent),
              0 0 0 1px color-mix(in srgb, var(--lvl) 30%, transparent);
  opacity: 1;
  filter: none;
}
#team .org-chart.amora-team-gallery .org-card:focus-within {
  outline: 2px solid var(--lvl-deep);
  outline-offset: 3px;
}
/* Keep hovered member clear without hiding the others. */
#team .org-chart.amora-team-gallery:hover .org-card:not(:hover) {
  opacity: .93;
  filter: none;
}
/* Badge and avatar animation retain the original header colors. */
#team .org-chart.amora-team-gallery .org-avatar {
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}
#team .org-chart.amora-team-gallery .org-learn-more:focus-visible {
  outline: 3px solid rgba(47,111,246,.45);
  outline-offset: 4px;
}
@keyframes amoraGalleryEnter {
  from { opacity: 0; translate: 0 30px; filter: blur(4px); }
  to   { opacity: 1; translate: 0 0; filter: blur(0); }
}

#team .amora-team-scroll-note {
  display: none;
  margin: 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #657398;
  text-align: center;
}
#team .amora-team-scroll-note i {
  margin-right: 7px;
  color: #2f6ff6;
}
@media (max-width: 1600px) {
  #team .amora-team-scroll-note { display: block; }
}
@media (max-width: 700px) {
  #team .org-chart-wrapper.amora-team-gallery-scroll { padding: 18px 15px 26px; }
  #team .org-chart.amora-team-gallery { gap: 14px; padding-block: 14px 24px; }
  #team .org-chart.amora-team-gallery .org-card { min-height: 305px; }
  #team .org-chart.amora-team-gallery .org-card[data-level="0"] {
    --w: 220px; --banner: 78px; --av: 88px;
  }
  #team .org-chart.amora-team-gallery .org-card[data-level="1"] {
    --w: 180px; --banner: 64px; --av: 74px;
  }
  #team .org-chart.amora-team-gallery .org-card[data-level="2"] {
    --w: 180px; --banner: 64px; --av: 74px;
  }
  #team .org-chart.amora-team-gallery .org-card[data-level="3"] {
    --w: 180px; --banner: 64px; --av: 74px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #team .org-chart.amora-team-gallery > .org-member,
  #team .org-chart.amora-team-gallery .org-card::before,
  #team .org-chart.amora-team-gallery .org-avatar::before {
    animation: none !important;
    translate: none !important;
    filter: none !important;
  }
  #team .org-chart.amora-team-gallery .org-card,
  #team .org-chart.amora-team-gallery .org-avatar {
    transition: none !important;
  }
}

/* ==================================================================
   AMORA • FLOATING IMPACT BUBBLES / SPLIT HERO (NOV 2026)
   Scoped to the public homepage to preserve Admin, Team and modals.
   Overrides any earlier AMORA hero-left/stats-right experiments.
   ================================================================== */

/* Header retains all existing buttons, IDs and modal functionality. */
#mainHeader.header.amora-impact-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  z-index: 950;
  background: rgba(10, 22, 57, .18);
  border-bottom: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#mainHeader.header.amora-impact-header.is-scrolled {
  background: rgba(12, 24, 62, .91);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
#mainHeader.amora-impact-header .navbar {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  justify-content: space-between;
  align-items: center;
  gap: clamp(10px, 2vw, 25px);
  width: 100%;
  min-height: 76px;
}
#mainHeader.amora-impact-header .logo { min-width: 0; }
#mainHeader.amora-impact-header .logo h2 { color: #fff; }
#mainHeader.amora-impact-header .logo h2 span { color: #ffe29c; }
#mainHeader.amora-impact-header .nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 2;
}
#mainHeader.amora-impact-header .nav-actions > button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 126px;
  white-space: nowrap;
  line-height: 1.2;
  border-radius: 999px;
}
#mainHeader.amora-impact-header #headerEnrollBtn {
  color: #16204b;
  background: #ffc94a;
  padding: 11px 21px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255,201,74,.22);
}
#mainHeader.amora-impact-header #headerLoginBtn {
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.5);
  padding: 11px 21px;
}
#mainHeader.amora-impact-header .mobile-menu-btn { display: none; }
#mainHeader.amora-impact-header .nav-actions > button:hover {
  transform: translateY(-2px);
}

/* One image/aurora backdrop shared by the impact panel + the hero. */
#home.hero.amora-impact-home {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: min(880px, 100svh);
  overflow: hidden;
  padding: clamp(136px, 11vw, 174px) 0 clamp(52px, 6vw, 85px);
  background:
    radial-gradient(ellipse at 12% 46%, rgba(46,92,190,.42), transparent 52%),
    radial-gradient(ellipse at 76% 28%, rgba(82,114,197,.38), transparent 45%),
    linear-gradient(145deg,#0b163b,#14265b 55%,#091840);
  color: #fff;
  --ft: 0px;
  --fb: 32px;
}
#home.amora-impact-home .amora-hero-scene {
  position: absolute;
  inset: -25px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#home.amora-impact-home .amora-hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(17px) saturate(1.12);
  transform: scale(1.1);
  transition: opacity 1.5s ease, transform 10s ease;
}
#home.amora-impact-home .amora-hero-photo.is-active { opacity: .70; transform: scale(1.16); }
#home.amora-impact-home .amora-hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(103deg, rgba(6,14,40,.86) 3%, rgba(11,22,56,.72) 48%, rgba(8,20,52,.82)),
              linear-gradient(180deg,rgba(8,15,42,.35),rgba(7,14,37,.8));
}
#home.amora-impact-home .amora-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 22% 43%,rgba(67,105,212,.35),transparent 52%),
              radial-gradient(ellipse at 74% 61%,rgba(255,201,74,.13),transparent 44%);
  pointer-events: none;
}
#home.amora-impact-home .hero-aurora { z-index: 1; opacity: .17; }
#home.amora-impact-home .floating-shape { z-index: 1; border-color: rgba(255,255,255,.09); }

/* Desktop: stats on LEFT, original hero copy on RIGHT. */
#home.amora-impact-home > .amora-impact-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  width: min(100%, 1380px);
  max-width: 1380px;
  min-height: 550px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 62px);
}
#home.amora-impact-home .amora-hero-main.hero-content {
  position: relative;
  z-index: 3;
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
#home.amora-impact-home .amora-hero-main .hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 610px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#home.amora-impact-home .amora-hero-main .hero-eyebrow,
#home.amora-impact-home .amora-hero-main .tagline,
#home.amora-impact-home .amora-hero-main .hero-logo,
#home.amora-impact-home .amora-hero-main .hero-buttons {
  justify-content: flex-start;
  text-align: left;
}
#home.amora-impact-home .amora-hero-main .hero-logo { margin-bottom: 20px; }
#home.amora-impact-home .amora-hero-main .hero-logo img {
  width: clamp(92px, 8vw, 114px);
  height: clamp(92px, 8vw, 114px);
  object-fit: contain;
  background: #fff;
  padding: 5px;
}
#home.amora-impact-home .amora-hero-main .hero-text h1 {
  font-size: clamp(2.7rem, 4.15vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  max-width: 650px;
  color: #fff;
}
#home.amora-impact-home .amora-hero-main .hero-text h1 .highlight {
  color: #ffd77e;
  -webkit-text-fill-color: #ffd77e;
  white-space: normal;
}
#home.amora-impact-home .amora-hero-main .hero-text h1 .highlight::after { display: none; }
#home.amora-impact-home .amora-hero-main .hero-text > p {
  color: rgba(240,246,255,.87);
  max-width: 560px;
}
#home.amora-impact-home .amora-hero-main .hero-buttons { width: 100%; }
#home.amora-impact-home .amora-hero-main .hero-buttons .btn-primary {
  color: #14204c; background: #ffc94a;
}
#home.amora-impact-home .amora-hero-main .hero-buttons .btn-secondary {
  color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.6);
}

/* No standalone stats band, mask or gradient overlays. */
#home.amora-impact-home #stats.stats-section.amora-impact-panel {
  position: relative;
  z-index: 3;
  isolation: auto;
  grid-column: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-self: center;
  overflow: visible;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-mask-image: none;
  mask-image: none;
}
#home.amora-impact-home #stats.stats-section.amora-impact-panel::before,
#home.amora-impact-home #stats.stats-section.amora-impact-panel::after {
  display: none;
  content: none;
}
#home.amora-impact-home #stats .amora-impact-inner.container {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}
#home.amora-impact-home #stats .section-tag {
  background: rgba(255,201,74,.11);
  color: #ffda7b;
  border: 1px solid rgba(255,201,74,.17);
  font-size: 11px;
}
#home.amora-impact-home #stats .section-title {
  color: #fff;
  font-size: clamp(2rem, 3.15vw, 3.25rem);
  margin-bottom: 10px;
  line-height: 1.08;
}
#home.amora-impact-home #stats .section-title .highlight {
  color: #ffc94a;
  -webkit-text-fill-color: #ffc94a;
}
#home.amora-impact-home #stats .section-title .highlight::after { display: none; }
#home.amora-impact-home #stats .section-sub {
  color: rgba(235,240,255,.73);
  font-size: 14px;
  line-height: 1.65;
  max-width: 460px;
  margin: 0;
}

/* Floating orbs retain the existing counters, icon glyphs & accents. */
#home.amora-impact-home #stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 20px);
  justify-items: center;
  align-items: center;
  width: min(100%, 505px);
  max-width: 505px;
  margin: 28px auto 0;
  padding: 2px 7px 13px;
}
#home.amora-impact-home #stats .stats-grid .stat-item {
  --c: #ffc94a;
  --c2: #ff9f43;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(100%, 218px);
  min-width: 0;
  aspect-ratio: 1;
  min-height: 0;
  padding: 23px 16px 20px;
  border: 1.5px solid color-mix(in srgb, var(--c) 55%, rgba(255,255,255,.25));
  border-radius: 50%;
  opacity: 1;
  background:
    radial-gradient(circle at 27% 16%, color-mix(in srgb,var(--c) 20%,transparent), transparent 57%),
    radial-gradient(circle at 80% 85%, rgba(4,12,44,.22), transparent 66%),
    linear-gradient(145deg,rgba(44,64,145,.69),rgba(13,23,74,.87));
  box-shadow:
    0 20px 42px rgba(3,9,31,.32),
    0 0 35px color-mix(in srgb,var(--c) 16%,transparent),
    inset 0 1px 0 rgba(255,255,255,.23);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: amoraOrbFloat 5.8s ease-in-out infinite !important;
  animation-timeline: auto !important;
  animation-range: normal !important;
  transition: box-shadow .35s ease, scale .35s ease;
  will-change: transform;
}
#home.amora-impact-home #stats .stats-grid .stat-item:nth-child(2) {
  --c: #88a7ff; --c2: #686eff;
  margin-top: 38px;
  animation-delay: -1.5s !important;
}
#home.amora-impact-home #stats .stats-grid .stat-item:nth-child(3) {
  --c: #4cdec3; --c2: #18b79e;
  margin-left: 32px;
  margin-top: -12px;
  animation-delay: -2.7s !important;
}
#home.amora-impact-home #stats .stats-grid .stat-item:nth-child(4) {
  --c: #ffaccc; --c2: #e981b9;
  margin-top: 22px;
  animation-delay: -4s !important;
}
#home.amora-impact-home #stats .stats-grid .stat-item:hover {
  scale: 1.055;
  box-shadow: 0 25px 55px rgba(3,9,31,.4),
              0 0 47px color-mix(in srgb,var(--c) 27%,transparent);
}
#home.amora-impact-home #stats .stats-grid .stat-item::before {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 17px;
  font-size: 19px;
  animation: none;
  background: linear-gradient(145deg, var(--c), var(--c2));
  box-shadow: 0 9px 22px color-mix(in srgb,var(--c) 30%,transparent);
}
#home.amora-impact-home #stats .stats-grid .stat-item::after { display: none; content: none; }
#home.amora-impact-home #stats .stat-item .number {
  margin: 0 0 6px;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}
#home.amora-impact-home #stats .stat-item .label {
  font-size: clamp(10px, .9vw, 13px);
  line-height: 1.35;
  color: rgba(242,246,255,.9);
  text-align: center;
}
#home.amora-impact-home #stats .stat-item .label::after {
  margin-top: 11px;
  width: 24px;
}
#home.amora-impact-home > .hero-scroll-hint {
  position: relative;
  z-index: 3;
  display: flex;
  margin: clamp(23px, 3.5vw, 43px) auto 0;
  justify-content: center;
  max-width: none;
  text-align: center;
  color: rgba(241,245,255,.7);
}
@keyframes amoraOrbFloat {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-13px); }
}

/* Tablet/mobile: keep hero readable, 2 bubble columns below the copy. */
@media (max-width: 1040px) {
  #home.hero.amora-impact-home > .amora-impact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    min-height: 0;
    max-width: 740px;
  }
  #home.amora-impact-home .amora-hero-main.hero-content {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
  }
  #home.amora-impact-home #stats.stats-section.amora-impact-panel {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    max-width: 560px;
    text-align: center;
  }
  #home.amora-impact-home #stats .amora-impact-inner.container { text-align: center; }
  #home.amora-impact-home #stats .section-sub { margin: 0 auto; }
  #home.amora-impact-home .amora-hero-main .hero-text {
    align-items: center;
    text-align: center;
    max-width: 650px;
  }
  #home.amora-impact-home .amora-hero-main .hero-eyebrow,
  #home.amora-impact-home .amora-hero-main .tagline,
  #home.amora-impact-home .amora-hero-main .hero-logo,
  #home.amora-impact-home .amora-hero-main .hero-buttons {
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 700px) {
  #mainHeader.amora-impact-header .navbar {
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    padding: 12px 20px 13px;
  }
  #mainHeader.amora-impact-header .nav-actions {
    grid-column: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  #mainHeader.amora-impact-header .nav-actions > button {
    min-width: 0;
    width: 100%;
  }
  #home.hero.amora-impact-home {
    padding-top: 170px;
    padding-bottom: 55px;
  }
  #home.hero.amora-impact-home > .amora-impact-layout {
    padding-inline: 20px;
    gap: 48px;
  }
  #home.amora-impact-home .amora-hero-main .hero-text h1 {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }
  #home.amora-impact-home .amora-hero-main .hero-text > p {
    font-size: 14.5px;
    line-height: 1.65;
  }
  #home.amora-impact-home #stats .stats-grid {
    width: 100%;
    max-width: 480px;
    gap: 10px;
    margin-top: 25px;
    padding: 0 3px 10px;
  }
  #home.amora-impact-home #stats .stats-grid .stat-item {
    padding: 16px 9px;
    max-width: 190px;
  }
  #home.amora-impact-home #stats .stats-grid .stat-item:nth-child(3) {
    margin-left: 0;
  }
}
@media (max-width: 420px) {
  #home.hero.amora-impact-home > .amora-impact-layout { padding-inline: 16px; gap: 44px; }
  #home.amora-impact-home #stats .stats-grid .stat-item {
    width: min(100%, 159px);
  }
  #home.amora-impact-home #stats .stats-grid .stat-item:nth-child(2) { margin-top: 16px; }
  #home.amora-impact-home #stats .stats-grid .stat-item:nth-child(3) { margin-top: -4px; }
  #home.amora-impact-home #stats .stats-grid .stat-item:nth-child(4) { margin-top: 8px; }
  #home.amora-impact-home #stats .stats-grid .stat-item::before {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 13px;
    margin-bottom: 8px;
  }
  #home.amora-impact-home #stats .stat-item .number { font-size: 28px; }
  #home.amora-impact-home #stats .stat-item .label { font-size: 10px; }
  #home.amora-impact-home .amora-hero-main .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #home.amora-impact-home .amora-hero-main .hero-buttons a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #home.amora-impact-home #stats .stats-grid .stat-item {
    animation: none !important;
    transform: none !important;
  }
  #home.amora-impact-home .amora-hero-photo { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   AMORA STORY + BULLETIN BOARD — ORIGINAL 3D CAROUSEL RESTORED
   Reuses the original .story-visual, .sc-stage, .sc-card and .sc-*
   effects: orbit ring, morphing glow, 3D stacked cards, tilting
   stage, lift-on-hover, and animated progress dots. The content
   remains live Programs API cards. Other sections are unchanged.
   ═══════════════════════════════════════════════════════════════ */
#about.amora-story-programs {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 7vw, 110px) 0;
  --ft: 0px;
  --fb: 0px;
  -webkit-mask-image: none;
  mask-image: none;
  background:
    radial-gradient(ellipse at 5% 20%, rgba(47,111,246,.085), transparent 43%),
    radial-gradient(ellipse at 97% 86%, rgba(255,201,74,.12), transparent 44%),
    #f9faff;
  text-align: left;
}
#about.amora-story-programs::before {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background: radial-gradient(rgba(24,43,100,.075) .8px, transparent .8px) 0 0 / 24px 24px;
  border-radius: 0;
  pointer-events: none;
}
#about.amora-story-programs > .container {
  position: relative;
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
}
#about .amora-story-programs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(26px, 4.5vw, 76px);
  text-align: left;
}
#about .amora-story-programs-left {
  min-width: 0;
  scroll-margin-top: 100px;
}
#about .amora-story-programs-left .bulletin-intro {
  margin: 0 0 22px;
  text-align: left;
}
#about .amora-story-programs-left .section-tag {
  color: #234dae;
  background: rgba(47,111,246,.09);
  border: 1px solid rgba(47,111,246,.11);
}
#about .amora-story-programs-left .section-title {
  margin: 0 0 12px;
  color: #111c45;
  font-size: clamp(1.95rem, 3vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
#about .amora-story-programs-left .section-title .highlight {
  color: #2f6ff6;
  white-space: normal;
}
#about .amora-story-programs-left .section-sub {
  max-width: 570px;
  margin: 0;
  font-size: clamp(14px,1.1vw,16px);
  color: #61708d;
}

/* Original animated dashed orbit + morphing gold/pink background. */
#about .story-visual.amora-program-carousel {
  --dur: 4200ms;
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 10px 0 0;
  touch-action: pan-y;
}
#about .story-visual.amora-program-carousel::before {
  inset: 10px 2% 93px;
  border: 2px dashed rgba(47,111,246,.25);
  background:
    radial-gradient(circle at 50% 0%, #2f6ff6 0 6px, transparent 7px),
    radial-gradient(circle at 50% 100%, #ffc94a 0 7px, transparent 8px);
  animation: scOrbit 36s linear infinite;
}
#about .story-visual.amora-program-carousel::after {
  inset: 50px 11% 112px;
  background: linear-gradient(155deg, #fbd3de, #ffc94a);
  animation: scBlob 14s ease-in-out infinite alternate;
  opacity: .6;
}

/* The original 3D perspective stage; it must NOT clip the rear cards. */
#about .bulletin-gallery.amora-program-slides.sc-stage {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(450px, 41vw, 580px);
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1500px;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--tx, 0) * 5deg))
             rotateX(calc(var(--ty, 0) * -4deg));
  transition: transform .35s ease-out;
  pointer-events: none;
  touch-action: pan-y;
}

/* Original .sc-card stack movement: one large foreground card and
   adjacent smaller cards that move behind it, not cross-fading away. */
#about .amora-program-slides > .program-card.sc-card {
  --step: 34%;
  --o: 0;
  --a: 0;
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  display: block;
  width: 72%;
  height: 87%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 7px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 29px;
  background: #fff;
  box-shadow: 0 34px 60px -28px rgba(23,32,92,.55),
              0 0 0 1px rgba(21,23,28,.05);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
  translate: -50% -50%;
  transform:
    translateX(calc(var(--o) * var(--step)))
    translateZ(calc(var(--a) * -110px))
    rotateY(calc(var(--o) * -16deg))
    scale(calc(1 - var(--a) * .07));
  z-index: calc(20 - var(--a) * 4);
  filter: brightness(calc(1 - var(--a) * .13))
          saturate(calc(1 - var(--a) * .12));
  animation: none !important; /* suppress bulletin grid's entrance only */
  animation-timeline: auto !important;
  transition: transform .95s cubic-bezier(.22,1,.36,1),
              translate .4s ease, opacity .6s ease,
              filter .6s ease, box-shadow .6s ease;
  will-change: transform;
}
#about .amora-program-slides > .program-card.sc-card.is-active {
  z-index: 21;
  cursor: default;
  filter: none;
}
#about .amora-program-slides > .program-card.sc-card[data-far] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#about .amora-program-slides > .program-card.sc-card:not(.is-active):hover {
  filter: brightness(1) saturate(1);
  translate: -50% calc(-50% - 11px);
}
#about .amora-program-slides > .program-card.sc-card.is-active:hover {
  transform:
    translateX(0) translateZ(0) rotateY(0) scale(1.01);
  filter: none;
}
#about .amora-program-slides > .program-card.sc-card:focus-within {
  filter: none;
}

/* Complete original poster remains visible over a blurred copy. */
#about .amora-program-slides .program-card-image {
  position: absolute;
  inset: 7px;
  z-index: -2;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #2d53b3, #142050);
}
#about .amora-program-slides .program-card-image .amora-program-backdrop {
  position: absolute;
  inset: -9%;
  display: block;
  width: 118%;
  height: 118%;
  padding: 0;
  object-fit: cover;
  filter: blur(19px) saturate(.8) brightness(.65);
  opacity: .88;
  transform: scale(1.05);
  pointer-events: none;
}
#about .amora-program-slides .program-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(5,15,49,.14), rgba(7,16,49,.2));
  pointer-events: none;
}
#about .amora-program-slides .program-card-image .pc-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 13px 13px 155px;
  object-fit: contain;
  object-position: center;
  border-radius: 19px;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.15));
  transform: none;
  pointer-events: none;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}
#about .amora-program-slides .program-card.sc-card.is-active:hover .pc-image,
#about .amora-program-slides .program-card.sc-card.is-active:focus-within .pc-image {
  transform: scale(1.018);
}
#about .amora-program-slides .program-card.sc-card::after {
  inset: 7px;
  z-index: -1;
  border-radius: 22px;
  background: linear-gradient(180deg, transparent 22%,
    rgba(7,15,42,.13) 40%, rgba(7,15,42,.93) 100%);
}
#about .amora-program-slides .program-card.sc-card:hover::after {
  background: linear-gradient(180deg, transparent 20%,
    rgba(7,15,42,.2) 40%, rgba(7,15,42,.96) 100%);
}
#about .amora-program-slides .program-card-body {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(19px,2.6vw,33px);
  pointer-events: none;
  text-align: left;
}
#about .amora-program-slides .program-card-body::before {
  top: 18px;
  right: 18px;
  color: rgba(255,255,255,.8);
}
#about .amora-program-slides .program-card-body h4 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.22rem,1.9vw,1.85rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  max-width: 100%;
}
#about .amora-program-slides .program-card-body p,
#about .amora-program-slides .program-card.sc-card:hover .program-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
  max-height: 3.2em;
  margin-top: 9px;
  overflow: hidden;
  opacity: 1;
  color: rgba(255,255,255,.86);
  font-size: 12.5px;
  line-height: 1.4;
}
#about .amora-program-slides .btn-learn-more,
#about .amora-program-slides .program-card.sc-card:hover .btn-learn-more {
  pointer-events: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  max-height: 44px;
  padding: 10px 18px;
  margin-top: 13px;
  opacity: 1;
  overflow: visible;
  border-radius: 999px;
  background: #ffc94a;
  color: #161d36;
  box-shadow: 0 8px 22px rgba(255,201,74,.2);
}
#about .amora-program-slides .btn-learn-more::after { content: none; }
#about .amora-program-slides .program-badge {
  z-index: 4;
  left: 22px;
  top: 22px;
  font-size: 10px;
}
#about .amora-program-slides .amora-program-loading,
#about .amora-program-slides .amora-program-message {
  position: absolute;
  inset: 12% 13%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 25px;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  background: linear-gradient(135deg, #2a4c9c, #142052);
  border-radius: 27px;
  box-shadow: 0 22px 45px rgba(22,32,91,.18);
}
#about .amora-program-carousel-controls[hidden] { display: none !important; }

/* Original .sc-controls / .sc-btn / .sc-dot animated progress. */
#about .amora-program-carousel-controls.sc-controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding: 0 6px;
}
#about .amora-program-nav.sc-btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  color: #1d3679;
  border-color: rgba(47,111,246,.17);
  background: #fff;
}
#about .amora-program-nav.sc-btn:hover {
  color: #17205c;
  background: #ffc94a;
  border-color: #ffc94a;
  transform: translateY(-3px);
}
#about .amora-program-dots.sc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
#about .amora-program-dots .sc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(23,32,92,.17);
}
#about .amora-program-dots .sc-dot.is-active {
  width: 44px;
}
#about .amora-program-dots .sc-dot.is-active::after {
  animation: scFill var(--dur) linear forwards;
}
#about .story-visual.amora-program-carousel.is-paused .sc-dot.is-active::after,
#about .story-visual.amora-program-carousel.is-offscreen .sc-dot.is-active::after {
  animation-play-state: paused;
}
#about .amora-program-count.sc-count {
  min-width: 59px;
  color: #61708d;
  font-size: 13px;
}
#about .amora-program-nav:focus-visible,
#about .amora-program-dots button:focus-visible,
#about .amora-program-slides > .program-card.sc-card:focus-visible {
  outline: 3px solid #2f6ff6;
  outline-offset: 4px;
}

/* Philosophy column retains original wording, buttons and hovers. */
#about .story-text.amora-programs-philosophy {
  position: relative;
  min-width: 0;
  padding: clamp(23px,3vw,44px);
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(255,255,255,.97), rgba(242,246,255,.93));
  border: 1px solid rgba(47,111,246,.08);
  box-shadow: 0 25px 65px -43px rgba(14,32,87,.3);
}
#about .amora-programs-philosophy .section-title {
  color: #18254f;
  font-size: clamp(2rem,3.1vw,3.45rem);
  line-height: 1.08;
}
#about .amora-programs-philosophy .section-title .highlight { color: #2f6ff6; }
#about .amora-programs-philosophy .section-sub {
  color: #63718a;
  line-height: 1.8;
  font-size: clamp(14px,1.05vw,16px);
}
#about .amora-programs-philosophy .story-points li { color: #29395e; }
#about .amora-programs-philosophy .story-stat { border-color: rgba(47,111,246,.1); }
#about .amora-programs-philosophy .story-link { color: #2c61da; }

@media (max-width: 1050px) {
  #about .amora-story-programs-grid { grid-template-columns: 1fr; gap: 43px; }
  #about .amora-story-programs-left .bulletin-intro { text-align: center; }
  #about .amora-story-programs-left .section-sub { margin-inline: auto; }
  #about .bulletin-gallery.amora-program-slides.sc-stage {
    height: clamp(425px, 64vw, 625px);
  }
  #about .story-text.amora-programs-philosophy {
    max-width: 800px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  #about.amora-story-programs { padding-block: 62px; }
  #about.amora-story-programs > .container { padding-inline: 12px; }
  #about .amora-story-programs-grid { gap: 31px; }
  #about .amora-story-programs-left .section-title { font-size: clamp(1.65rem,6.4vw,2.3rem); }
  #about .bulletin-gallery.amora-program-slides.sc-stage {
    height: clamp(370px, 110vw, 480px);
  }
  #about .amora-program-slides > .program-card.sc-card {
    --step: 25%;
    width: 77%;
    height: 86%;
    padding: 5px;
    border-radius: 23px;
  }
  #about .amora-program-slides .program-card-image {
    inset: 5px;
    border-radius: 18px;
  }
  #about .amora-program-slides .program-card.sc-card::after {
    inset: 5px;
    border-radius: 18px;
  }
  #about .amora-program-slides .program-card-image .pc-image {
    padding: 9px 9px 165px;
  }
  #about .amora-program-slides .program-card-body { padding: 16px; }
  #about .amora-program-slides .program-card-body h4 { font-size: clamp(1.08rem,4.6vw,1.37rem); }
  #about .amora-program-slides .program-card-body p { font-size: 11px; }
  #about .amora-program-slides .btn-learn-more {
    padding: 9px 14px;
    margin-top: 10px;
    font-size: 12px;
  }
  #about .amora-program-slides .program-badge { top: 13px; left: 13px; }
  #about .amora-program-carousel-controls.sc-controls { gap: 12px; }
  #about .story-text.amora-programs-philosophy { padding: 23px 20px; border-radius: 23px; }
}
@media (max-width: 390px) {
  #about .amora-program-slides > .program-card.sc-card { width: 81%; }
  #about .amora-program-slides .program-card-body p { -webkit-line-clamp: 2; }
  #about .amora-program-slides .program-card-image .pc-image { padding-bottom: 170px; }
  #about .amora-program-nav.sc-btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  #about .story-visual.amora-program-carousel::before,
  #about .story-visual.amora-program-carousel::after,
  #about .amora-program-slides > .program-card.sc-card,
  #about .amora-program-dots .sc-dot::after {
    animation: none !important;
    transition: none !important;
  }
  #about .amora-program-slides.sc-stage { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   AMORA STORY + BULLETIN BOARD — OPEN / CONTAINER-FREE LAYOUT
   Applied after the restored 3D-carousel styles.
   This ONLY removes visual boxes; it does not override 3D motion,
   auto-rotation, hover, swiping, controls, APIs or modal behavior.
   ═══════════════════════════════════════════════════════════════ */

/* One clean page background — no colored panel enclosing the section. */
#about.amora-story-programs {
  background: #fff;
}
#about.amora-story-programs::before {
  /* Keep only a barely visible ambient dot texture, not a card shape. */
  opacity: .28;
}

/* Let the Bulletin Board title sit naturally on the page. */
#about .amora-story-programs-left .section-tag,
#about .story-text.amora-programs-philosophy > .section-tag {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Remove the large white/blue Philosophy panel, preserving its content. */
#about .story-text.amora-programs-philosophy {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* The philosophy list becomes simple icon-and-text rows, not pill boxes. */
#about .amora-programs-philosophy .story-points li,
#about .amora-programs-philosophy .story-points li:hover {
  padding: 7px 12px 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#about .amora-programs-philosophy .story-points li i {
  background: rgba(47, 111, 246, .08);
  box-shadow: none;
}

/* Make "500+" read like a typographic stat, not another information card. */
#about .amora-programs-philosophy .story-stat,
#about .amora-programs-philosophy .story-stat:hover {
  padding: 8px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Remove the white frame of every 3D program slide.
   The images, dark title gradient, rounded image corners and
   all the original stacked-card 3D transforms are untouched. */
#about .amora-program-slides > .program-card.sc-card {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 24px;
  box-shadow: 0 24px 52px -27px rgba(17, 32, 75, .46);
}
#about .amora-program-slides .program-card-image,
#about .amora-program-slides .program-card.sc-card::after {
  inset: 0;
  border-radius: 24px;
}
#about .amora-program-slides .program-card-image .pc-image {
  /* Poster stays contained; only the surrounding white frame is gone. */
  padding: 12px 12px 155px;
}

/* Clean round navigation buttons without opaque button containers. */
#about .amora-program-nav.sc-btn {
  border-color: rgba(47,111,246,.2);
  background: transparent;
  box-shadow: none;
}
#about .amora-program-nav.sc-btn:hover {
  color: #17205c;
  background: rgba(255,201,74,.2);
  border-color: #ffc94a;
}

/* Mobile: keep space for the poster caption and avoid reintroducing a panel. */
@media (max-width: 600px) {
  #about .story-text.amora-programs-philosophy {
    padding: 0 10px;
    border-radius: 0;
  }
  #about .amora-program-slides > .program-card.sc-card {
    border-radius: 20px;
  }
  #about .amora-program-slides .program-card-image,
  #about .amora-program-slides .program-card.sc-card::after {
    inset: 0;
    border-radius: 20px;
  }
  #about .amora-program-slides .program-card-image .pc-image {
    padding: 9px 9px 165px;
  }
}

/* ================================================================
   AMORA — 3D Bulletin Board / Philosophy overlap fix
   Append AFTER all existing carousel and no-container rules.

   The old --step: 34% spreads the +/-2 rear slides beyond the
   Bulletin Board's grid column into the Philosophy text.
   This reduces only their horizontal spread. Original orbit,
   morphing background, 3D depth/rotation, hover, dots, timer,
   arrows, swiping and Learn More are unchanged.
   ================================================================ */
#about.amora-story-programs .amora-program-slides > .program-card.sc-card {
  --step: 18%;
}

/* Keep the outer rear cards inside a narrow mobile viewport too. */
@media (max-width: 600px) {
  #about.amora-story-programs .amora-program-slides > .program-card.sc-card {
    --step: 13%;
  }
}


/* ================================================================
   AMORA — IMAGE-ONLY 3D BULLETIN CAROUSEL
   The poster is 100% visible: no 155px caption reservation,
   no opaque navy content panel, and no gradient covering the image.
   Real program text and Learn More move below the animated slides.
   Retains the original 3D orbit/stack and overlap-fix --step.
   ================================================================ */

/* Make the carousel slightly more landscape-friendly for wide posters. */
#about .bulletin-gallery.amora-program-slides.sc-stage {
  height: clamp(345px, 34vw, 490px);
}
#about.amora-story-programs .amora-program-slides > .program-card.sc-card {
  width: 79%;
  height: 82%;
  padding: 0;
  border: 0;
  border-radius: 25px;
  background: #122151;
  box-shadow: 0 22px 49px -23px rgba(13,31,87,.49);
}
/* Full-bleed image area, with a blurred copy only where proportions differ. */
#about .amora-program-slides .program-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(125deg,#17205c,#2853ab);
}
#about .amora-program-slides .program-card-image .amora-program-backdrop {
  position: absolute;
  inset: -9%;
  width: 118%;
  height: 118%;
  object-fit: cover;
  opacity: .84;
  filter: blur(22px) saturate(1.08) brightness(.86);
}
#about .amora-program-slides .program-card-image::after,
#about .amora-program-slides .program-card.sc-card::after {
  content: none !important;
  display: none !important;
}
#about .amora-program-slides .program-card-image .pc-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;       /* never crops a program poster */
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.1));
}

/* No text, tags, or dark gradients OVER the program artwork. */
#about .amora-program-slides .program-card-body,
#about .amora-program-slides .program-badge {
  display: none !important;
}
#about .amora-program-slides > .program-card.sc-card.is-active {
  cursor: zoom-in;           /* active image opens the program modal */
}

/* Program details are in the page below the photo stack, not on it. */
#about .amora-program-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 4px 8px 0;
  margin: 2px 0 0;
  color: #17205c;
  text-align: left;
}
#about .amora-program-meta[hidden] { display: none !important; }
#about .amora-program-meta-copy {
  min-width: 0;
  flex: 1;
}
#about .amora-program-meta-badge {
  display: inline-block;
  margin-bottom: 4px;
  color: #315cbd;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
#about .amora-program-meta-badge[hidden],
#about .amora-program-meta-description[hidden] { display:none !important; }
#about .amora-program-meta-title {
  color: #16275a;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1rem, 1.4vw, 1.24rem);
  line-height: 1.3;
  margin: 0;
}
#about .amora-program-meta-description {
  color: #62718d;
  font-size: 12px;
  margin: 5px 0 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#about .amora-program-meta-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  color: #192244;
  background: var(--amber, #ffc94a);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255,201,74,.16);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
#about .amora-program-meta-action:hover {
  background: #ffe08c;
  transform: translateY(-2px);
  box-shadow: 0 11px 23px rgba(255,201,74,.35);
}
#about .amora-program-meta-action:focus-visible {
  outline: 3px solid #2f6ff6;
  outline-offset: 3px;
}
#about .amora-program-carousel-controls.sc-controls {
  margin-top: 9px;
}
@media (max-width: 1050px) {
  #about .bulletin-gallery.amora-program-slides.sc-stage {
    height: clamp(345px, 54vw, 540px);
  }
}
@media (max-width: 600px) {
  #about .bulletin-gallery.amora-program-slides.sc-stage {
    height: clamp(315px, 86vw, 420px);
  }
  #about.amora-story-programs .amora-program-slides > .program-card.sc-card {
    width: 80%;
    height: 79%;
    border-radius: 19px;
  }
  #about .amora-program-slides .program-card-image {
    border-radius: 19px;
  }
  #about .amora-program-meta {
    padding: 4px 9px 0;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  #about .amora-program-meta-action {
    width: fit-content;
    margin: 4px auto 0;
  }
  #about .amora-program-carousel-controls.sc-controls { margin-top: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #about .amora-program-meta-action { transition: none !important; }
}



/* ======================================================================
   AMORA | PARENT VOICES + LOCATIONS, MERGED
   Loaded after original styles. Reuses the original animated .sc-stage,
   .sc-card, .story-visual and .sc-controls carousel system without
   changing the Bulletin Board carousel or global button styles.
   ====================================================================== */
#testimonials.amora-voices-locations {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(65px, 6vw, 104px) 0 clamp(70px, 7vw, 108px);
  background:
    radial-gradient(ellipse at 12% 65%, rgba(47,111,246,.11), transparent 42%),
    radial-gradient(ellipse at 89% 24%, rgba(255,201,74,.12), transparent 43%),
    radial-gradient(rgba(24,36,86,.065) .7px, transparent 1px) 0 0 / 24px 24px,
    #fff;
  -webkit-mask-image: none;
  mask-image: none;
  text-align: left;
  color: #192547;
}
#testimonials.amora-voices-locations::before {
  content: '';
  position: absolute;
  inset: -25% auto auto -22%;
  width: min(65vw, 900px);
  height: min(65vw, 900px);
  background: radial-gradient(circle, rgba(71,121,246,.1), transparent 68%);
  pointer-events: none;
}
#testimonials .amora-voices-locations-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
#testimonials .amora-voices-side,
#testimonials .amora-locations-side {
  min-width: 0;
  text-align: left;
}
#testimonials .amora-voices-intro,
#testimonials .amora-locations-intro {
  min-height: 150px;
  text-align: left;
  margin: 0 0 12px;
}
#testimonials .amora-voices-intro .section-tag,
#testimonials .amora-locations-intro .branches-tag {
  padding: 6px 13px;
  color: #235ac8;
  background: rgba(47,111,246,.09);
  border-radius: 999px;
  border: 1px solid rgba(47,111,246,.09);
  box-shadow: none;
}
#testimonials .amora-voices-intro .section-title,
#testimonials .amora-locations-intro h2 {
  color: #15224f;
  font-size: clamp(1.75rem,2.75vw,2.8rem);
  line-height: 1.15;
  margin: 5px 0 11px;
}
#testimonials .amora-voices-intro .section-title .highlight,
#testimonials .amora-locations-intro h2 .highlight {
  color: #2f6ff6;
}
#testimonials .amora-voices-intro .section-sub,
#testimonials .amora-locations-intro p {
  max-width: 510px;
  margin: 0;
  color: #6b7894;
  font-size: clamp(13px,1vw,15px);
  line-height: 1.7;
}
#testimonials .amora-testimonial-carousel {
  --dur: 5600ms;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  margin: 8px 0 0;
  padding: 9px 0 0;
  text-align: left;
  touch-action: pan-y;
}
#testimonials .amora-testimonial-carousel::before {
  inset: 30px 9% 74px;
  border-color: rgba(47,111,246,.20);
  animation: scOrbit 36s linear infinite;
  pointer-events: none;
}
#testimonials .amora-testimonial-carousel::after {
  inset: 90px 10% 90px;
  opacity: .22;
  background: linear-gradient(145deg, var(--amber), #86bbff, #d7ccff);
  animation: scBlob 14s ease-in-out infinite alternate;
  pointer-events: none;
}
#testimonials .amora-testimonial-stage.sc-stage.pt-public-grid {
  position: relative;
  height: clamp(430px, 38vw, 550px);
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  perspective: 1500px;
  transform-style: preserve-3d;
  pointer-events: none;
  overflow: visible;
}
#testimonials .amora-testimonial-stage > .testimonial-card.sc-card {
  --step: 12%;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 88%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(76,111,238,.16);
  border-radius: clamp(20px,2.3vw,30px);
  background: linear-gradient(155deg,#ffffff 0%,#f5f8ff 60%,#fff7e7 100%);
  box-shadow: 0 27px 58px -30px rgba(18,35,94,.5), 0 1px 0 rgba(255,255,255,.9) inset;
  translate: -50% -50%;
  transform:
    translateX(calc(var(--o, 0) * var(--step)))
    translateZ(calc(var(--a, 0) * -110px))
    rotateY(calc(var(--o, 0) * -16deg))
    scale(calc(1 - var(--a, 0) * 0.07));
  z-index: calc(20 - var(--a, 0) * 4);
  filter: brightness(calc(1 - var(--a, 0) * .09));
  transition: transform .95s cubic-bezier(.22,1,.36,1),
              filter .55s ease, opacity .55s ease, box-shadow .45s ease;
  animation: none !important; /* old masonry entrance must not override 3D transforms */
}
#testimonials .amora-testimonial-stage > .testimonial-card.sc-card.is-active {
  border-color: rgba(47,111,246,.23);
  box-shadow: 0 32px 69px -29px rgba(27,43,100,.48), 0 0 0 1px rgba(255,201,74,.2);
  cursor: default;
}
#testimonials .amora-testimonial-stage > .testimonial-card.sc-card:not(.is-active) {
  cursor: pointer;
}
#testimonials .amora-testimonial-stage > .testimonial-card.sc-card[data-far] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#testimonials .amora-testimonial-stage > .testimonial-card.sc-card:hover {
  /* never replace original 3D transform on hover */
  box-shadow: 0 33px 70px -30px rgba(47,111,246,.53);
}
#testimonials .amora-testimonial-stage .pt-public-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
#testimonials .amora-testimonial-stage .pt-public-card-kicker {
  color: #2753bf;
  font-size: 10px;
  letter-spacing: .12em;
}
#testimonials .amora-testimonial-stage .pt-public-stars {
  color: #d99e15;
  font-size: 15px;
  white-space: nowrap;
}
#testimonials .amora-testimonial-stage .pt-public-headline {
  margin: 0 0 13px;
  font-size: clamp(1.03rem, 1.43vw, 1.4rem);
  line-height: 1.25;
  color: #192656;
}
#testimonials .amora-testimonial-stage .pt-public-quote {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0 0 15px;
  padding: 0 6px 4px 0;
  font-size: clamp(13px, 1.07vw, 15.5px);
  line-height: 1.7;
  color: #4b5975;
  white-space: pre-line;
  scrollbar-width: thin;
  scrollbar-color: rgba(47,111,246,.28) transparent;
}
#testimonials .amora-testimonial-stage .author {
  flex: 0 0 auto;
  margin-top: auto;
  gap: 12px;
  padding-top: 17px;
  border-color: rgba(47,111,246,.15);
}
#testimonials .amora-testimonial-stage .author-avatar {
  width: 46px;
  height: 46px;
}
#testimonials .amora-testimonial-stage .author-info h4 {
  color: #162451;
  font-size: 14px;
}
#testimonials .amora-testimonial-stage .author-info p { font-size: 12px; }
#testimonials .amora-testimonial-stage > .pt-public-empty,
#testimonials .amora-testimonial-stage > .pt-public-loading {
  position: absolute;
  inset: 40% 12% auto;
  margin: 0;
  text-align: center;
  color: #5d6c86;
  background: rgba(255,255,255,.9);
  border: 1px solid #e2e9f7;
  border-radius: 22px;
  padding: 28px 14px;
  pointer-events: auto;
}
#testimonials .amora-testimonial-controls.sc-controls {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 9px 0 0;
}
#testimonials .amora-testimonial-controls[hidden] { display:none !important; }
#testimonials .amora-testimonial-controls .sc-btn {
  flex: 0 0 auto;
  border-color: rgba(47,111,246,.20);
  color: #2757b9;
}
#testimonials .amora-testimonial-controls .sc-btn:hover {
  background: #17205c;
  color: #fff;
}
#testimonials .amora-testimonial-controls .sc-dot.is-active::after {
  background: linear-gradient(90deg, #2f6ff6, #ffc94a);
}
#testimonials .amora-testimonial-controls .sc-btn:focus-visible,
#testimonials .amora-testimonial-controls .sc-dot:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* Selected branch: retains its existing address, contact, map & directions. */
#testimonials .amora-locations-side {
  position: relative;
}
#testimonials .amora-branch-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 15px;
}
#testimonials .amora-branch-tab {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 13px 17px;
  font-family: var(--font-display);
  font-size: clamp(12px,1.02vw,14px);
  font-weight: 700;
  color: #35518a;
  text-align: left;
  border: 1px solid rgba(47,111,246,.16);
  border-radius: 17px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 7px 26px -18px rgba(20,43,102,.32);
  transition: background .28s ease, color .28s ease, transform .28s ease,
              box-shadow .28s ease, border-color .28s ease;
}
#testimonials .amora-branch-tab small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: inherit;
  opacity: .78;
}
#testimonials .amora-branch-tab:hover { transform: translateY(-3px); border-color: #7299f3; }
#testimonials .amora-branch-tab.is-active {
  color: #fff;
  background: linear-gradient(120deg, #17205c 0%, #2f6ff6 100%);
  border-color: #325ce1;
  box-shadow: 0 12px 30px -12px rgba(28,66,179,.48);
}
#testimonials .amora-branch-tab:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
#testimonials .amora-branch-slide[hidden] { display: none !important; }
#testimonials .amora-branch-slide.is-active {
  animation: amoraBranchEnter .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes amoraBranchEnter {
  from { opacity: 0; transform: translateY(13px) scale(.987); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#testimonials .amora-branch-slide .branch-program,
#testimonials .amora-branch-slide .branch-program.reverse {
  display: block;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  direction: ltr;
  text-align: left;
  animation: none !important;
}
#testimonials .amora-branch-slide .branch-text,
#testimonials .amora-branch-slide .branch-program.reverse .branch-text {
  margin: 0;
  padding: clamp(20px,2.1vw,28px);
  border: 1px solid rgba(47,111,246,.12);
  border-radius: 23px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 15px 38px -29px rgba(23,32,92,.35);
}
#testimonials .amora-branch-slide .branch-text:hover { transform: none; }
#testimonials .amora-branch-slide .branch-text::after {
  font-size: 52px;
  opacity: .5;
  right: 24px;
}
#testimonials .amora-branch-slide .branch-text::before { left: 27px; }
#testimonials .amora-branch-slide .branch-text h3 {
  margin: 0 0 13px;
  color: #17205c;
  font-size: clamp(1.25rem,2.05vw,1.75rem);
}
#testimonials .amora-branch-slide .branch-tag {
  padding: 6px 11px;
  font-size: 10px;
  margin: 0 0 8px;
}
#testimonials .amora-branch-slide .branch-address-block {
  margin-bottom: 12px;
  padding: 12px 13px;
  gap: 10px;
  border-left-width: 3px;
  background: #f6f8fd;
}
#testimonials .amora-branch-slide .branch-address-block p {
  font-size: clamp(12px,1vw,13px);
  line-height: 1.55;
}
#testimonials .amora-branch-slide .branch-contact-info {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 3px;
  margin: 0 0 13px;
}
#testimonials .amora-branch-slide .branch-contact-info .contact-item {
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
  gap: 9px;
  padding: 2px 6px 2px 0;
}
#testimonials .amora-branch-slide .branch-contact-info .contact-item i {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
#testimonials .amora-branch-slide .branch-btn {
  color: #171f39;
  background: var(--amber);
  font-size: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px -14px rgba(208,157,33,.52);
}
#testimonials .amora-branch-slide .branch-image {
  margin-top: 13px;
  min-width: 0;
}
#testimonials .amora-branch-slide .map-wrapper {
  border-radius: 21px;
  border: 1px solid rgba(47,111,246,.14);
  box-shadow: 0 12px 40px -25px rgba(23,32,92,.36);
}
#testimonials .amora-branch-slide .map-wrapper iframe {
  height: clamp(185px, 17vw, 235px);
  filter: none;
}
#testimonials .amora-branch-slide .map-label { top: 11px; right: 11px; }
#testimonials .amora-branch-slide .branch-program.reverse .map-label { left: auto; right: 11px; }

@media (max-width: 1100px) {
  #testimonials .amora-voices-locations-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 820px;
  }
  #testimonials .amora-voices-intro,
  #testimonials .amora-locations-intro { min-height: 0; }
  #testimonials .amora-testimonial-stage.sc-stage.pt-public-grid {
    height: clamp(420px,65vw,540px);
  }
  #testimonials .amora-branch-slide .map-wrapper iframe {
    height: clamp(240px,35vw,320px);
  }
}
@media (max-width: 600px) {
  #testimonials.amora-voices-locations { padding: 56px 0 72px; }
  #testimonials .amora-voices-locations-grid { padding-inline: 16px; gap: 36px; }
  #testimonials .amora-testimonial-stage.sc-stage.pt-public-grid {
    height: clamp(380px,108vw,465px);
  }
  #testimonials .amora-testimonial-stage > .testimonial-card.sc-card {
    --step: 10%;
    width: 80%;
    height: 85%;
    padding: 19px;
    border-radius: 20px;
  }
  #testimonials .amora-testimonial-stage .pt-public-card-header { margin-bottom: 14px; }
  #testimonials .amora-testimonial-stage .pt-public-quote { font-size: 13px; }
  #testimonials .amora-testimonial-controls.sc-controls { gap: 9px; }
  #testimonials .amora-testimonial-controls .sc-btn { width: 40px; height: 40px; }
  #testimonials .amora-locations-intro h2 { font-size: clamp(1.7rem,7vw,2.25rem); }
  #testimonials .amora-branch-tab { padding: 11px 13px; }
  #testimonials .amora-branch-slide .branch-text { padding: 20px 16px; }
  #testimonials .amora-branch-slide .branch-text::after { font-size: 42px; }
  #testimonials .amora-branch-slide .map-wrapper iframe { height: 225px; }
}
@media (prefers-reduced-motion: reduce) {
  #testimonials .amora-testimonial-carousel::before,
  #testimonials .amora-testimonial-carousel::after,
  #testimonials .amora-testimonial-stage > .testimonial-card.sc-card,
  #testimonials .amora-testimonial-controls .sc-dot.is-active::after,
  #testimonials .amora-branch-slide.is-active { animation: none !important; transition: none !important; }
  #testimonials .amora-testimonial-stage.sc-stage { transform: none !important; }
}

/* =====================================================================
   AMORA OPERATIONS TEAM — ORBITING BACKGROUND
   Scoped to the public #team section. The gallery cards, layout,
   profile buttons, API logic and other page sections are untouched.
   Uses the same rotating dashed orbit / colored satellites seen
   in the AMORA program and testimonial carousels.
   ===================================================================== */

/* Keep the current white dotted background and navy/gold/blue glows. */
#team.amora-team-gallery-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Two gently rotating elliptical orbits with AMORA-color satellites.
   Replace the old drifting-glow pseudo elements behind the cards. */
#team.amora-team-gallery-section::before,
#team.amora-team-gallery-section::after {
  content: "";
  position: absolute;
  top: 59%;
  left: 50%;
  bottom: auto;
  right: auto;
  display: block;
  pointer-events: none;
  z-index: -1;
  box-sizing: border-box;
  border-radius: 50%;
  filter: none;
  opacity: 1;
  transform-origin: center center;
  will-change: transform;
}

#team.amora-team-gallery-section::before {
  width: min(91vw, 1340px);
  height: clamp(390px, 40vw, 590px);
  border: 2px dashed rgba(47,111,246,.22);
  background:
    radial-gradient(circle at 50% 0%, #ffc94a 0 8px, #fff 9px 11px, transparent 12px),
    radial-gradient(circle at 100% 50%, #2f6ff6 0 6px, #fff 7px 9px, transparent 10px),
    radial-gradient(circle at 50% 100%, #37c99b 0 5px, transparent 7px);
  box-shadow: 0 0 0 1px rgba(47,111,246,.035) inset;
  animation: amoraTeamOrbitClockwise 42s linear infinite;
}

#team.amora-team-gallery-section::after {
  width: min(73vw, 1030px);
  height: clamp(285px, 30vw, 440px);
  border: 1.5px solid rgba(255,185,49,.22);
  background:
    radial-gradient(circle at 50% 0%, #f6a6bc 0 6px, #fff 7px 9px, transparent 10px),
    radial-gradient(circle at 0% 50%, #ffc94a 0 7px, #fff 8px 10px, transparent 11px),
    radial-gradient(circle at 50% 100%, #2f6ff6 0 5px, transparent 7px);
  animation: amoraTeamOrbitCounter 32s linear infinite;
}

@keyframes amoraTeamOrbitClockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes amoraTeamOrbitCounter {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* The interactive gallery always stays above the decorative orbits. */
#team.amora-team-gallery-section > .container,
#team.amora-team-gallery-section > .org-chart-wrapper,
#team.amora-team-gallery-section > .amora-team-scroll-note {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  #team.amora-team-gallery-section::before {
    width: 780px;
    height: 425px;
    border-color: rgba(47,111,246,.17);
  }
  #team.amora-team-gallery-section::after {
    width: 580px;
    height: 310px;
    border-color: rgba(255,185,49,.15);
  }
}

/* Accessibility: no motion for visitors who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  #team.amora-team-gallery-section::before,
  #team.amora-team-gallery-section::after {
    animation: none !important;
    will-change: auto;
    transform: translate(-50%, -50%);
  }
}
