/* SPEDICS Institute - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0d9488;
  --primary-light: #22d3ee;
  --primary-dark: #0f766e;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --coral: #f97316;
  --dark: #0f172a;
  --dark-soft: #334155;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f0fdfa;
  --bg-warm: #fffbeb;
  --bg-soft: #ecfeff;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(13, 148, 136, 0.1);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.14);
  --gradient-brand: linear-gradient(135deg, #0891b2 0%, #0d9488 35%, #7c3aed 70%, #f59e0b 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(8,145,178,0.12) 0%, rgba(13,148,136,0.08) 35%, rgba(124,58,237,0.08) 70%, rgba(245,158,11,0.1) 100%);
  --gradient-hero: linear-gradient(125deg, #0c4a6e 0%, #0891b2 28%, #0d9488 52%, #6366f1 78%, #d97706 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #134e4a 45%, #312e81 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --header-h: 96px;
  --marquee-h: 42px;
  --topbar-h: 44px;
  --site-top-h: var(--header-h);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--site-top-h) + 12px); }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.12), transparent 32%),
    radial-gradient(circle at 100% 10%, rgba(124, 58, 237, 0.08), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.08), transparent 35%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: var(--site-top-h);
}
html { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 24px);
}
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-band-teal { background: linear-gradient(180deg, rgba(34,211,238,0.1) 0%, rgba(255,255,255,0.85) 100%); }
.section-band-gold { background: linear-gradient(180deg, rgba(251,191,36,0.12) 0%, rgba(255,255,255,0.9) 100%); }
.section-band-violet { background: linear-gradient(180deg, rgba(167,139,250,0.12) 0%, rgba(236,254,255,0.85) 100%); }
.section-band-white { background: var(--white); }
.section-band-mesh { background: var(--gradient-brand-soft); }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 40%, var(--coral) 100%);
  color: var(--dark);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
  border-color: rgba(245, 158, 11, 0.25);
}
.btn-accent:hover { transform: translateY(-2px); }
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
  color: var(--white);
}
.form-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Top bar */
.topbar {
  background: linear-gradient(90deg, #0f172a 0%, #134e4a 42%, #312e81 100%);
  color: rgba(255,255,255,0.92);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  position: relative;
  min-height: var(--topbar-h);
}
.topbar-inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-inner::-webkit-scrollbar { display: none; }
.topbar a:hover { color: var(--accent); }
.topbar-item { display: flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; white-space: nowrap; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1090;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(34,211,238,0.35), rgba(124,58,237,0.25), rgba(245,158,11,0.35)) 1;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo-wrap {
  flex-shrink: 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #fff;
}
.logo-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.logo-brand-name {
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #0891b2, #0d9488, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-brand-tag {
  margin-top: 0.15rem;
  font-size: clamp(0.52rem, 1.2vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0f172a;
  white-space: nowrap;
}
.footer-logo .logo-brand-name,
.footer-logo .logo-brand-tag {
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.footer-logo .logo-brand-name {
  background: linear-gradient(90deg, #67e8f9, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-logo .logo-brand-tag { color: rgba(255,255,255,0.82); }
.footer-logo .logo-seal { border-color: rgba(255,255,255,0.25); }
.logo {
  height: 68px;
  width: auto;
  max-width: min(320px, 58vw);
  transition: transform var(--transition), filter var(--transition);
  filter: drop-shadow(0 4px 14px rgba(8, 145, 178, 0.28));
}
.logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 8px 20px rgba(124, 58, 237, 0.28));
}
.logo-wrap:hover .logo-seal { transform: scale(1.03); }
.logo-wrap:hover .logo-brand-name { filter: brightness(1.05); }

/* Safe desktop-only logo sparkle (no layout impact) */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .logo-wrap::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -20%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    pointer-events: none;
  }
  .logo-wrap:hover::after {
    animation: logoSparkle 0.9s ease-out;
  }
}
@keyframes logoSparkle {
  0% { transform: translate(0, 0) scale(0.2); opacity: 0; }
  35% { opacity: 0.95; }
  100% { transform: translate(220px, -10px) scale(1.05); opacity: 0; }
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark-soft);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-dropdown > .nav-link::after {
  content: '▾';
  font-size: 0.65rem;
  opacity: 0.75;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(13,115,119,0.06); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  max-height: 70vh;
  overflow-y: auto;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 8px;
  color: var(--text);
}
.nav-dropdown-item:hover { background: var(--bg); color: var(--primary); }
.nav-dropdown-group + .nav-dropdown-group {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e2e8f0;
}
.nav-dropdown-heading {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  padding: 0.35rem 0.85rem 0.45rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.header-cta { display: flex; gap: 0.5rem; align-items: center; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 90vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg-photo {
  position: absolute;
  inset: -4%;
  background-image: var(--hero-bg-image, url('../images/hero-bg.jpg'));
  background-size: cover;
  background-position: center 40%;
  transform-origin: center;
  animation: heroKenBurns 28s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.04);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      color-mix(in srgb, var(--dark) 88%, transparent) 0%,
      color-mix(in srgb, var(--primary-dark) 72%, transparent) 38%,
      color-mix(in srgb, var(--primary) 48%, transparent) 68%,
      color-mix(in srgb, var(--accent) 28%, transparent) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}
@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
  .hero-bg-overlay {
    background:
      linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 118, 110, 0.72) 42%, rgba(13, 148, 136, 0.5) 70%, rgba(245, 158, 11, 0.28) 100%),
      linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.55) 100%);
  }
}
@keyframes heroKenBurns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}
.hero-shape:nth-child(4) { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.hero-shape:nth-child(5) { width: 250px; height: 250px; bottom: 10%; left: 5%; animation-delay: -2s; }
.hero-shape:nth-child(6) { width: 150px; height: 150px; top: 40%; right: 25%; animation-delay: -4s; background: rgba(251,191,36,0.22); }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  z-index: 1;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}
.hero-content--solo {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease forwards;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
  text-shadow: 0 2px 24px rgba(15, 23, 42, 0.45);
}
.hero-subtitle {
  color: rgba(255,255,255,0.94);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 2rem;
  max-width: 520px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.4);
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.08));
  backdrop-filter: blur(2px);
}
.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 520px;
}
.hero-actions .btn {
  min-width: 220px;
  min-height: 54px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-width: 2px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hero-actions .btn-accent {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #f97316 100%);
  color: var(--dark);
  border: none;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.4);
}
.hero-actions .btn-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.hero-actions .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.45);
}
.hero-actions .btn-white:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--accent-light);
}
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}
.hero-tag {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
}
.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}
.hero-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform var(--transition);
}
.hero-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.hero-stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-dark), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Highlight cards */
.highlights {
  margin-top: -4rem;
  position: relative;
  z-index: 10;
  padding-bottom: 2rem;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(13,148,136,0.08);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.highlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--violet), var(--accent));
}
.highlight-card:nth-child(2)::after {
  background: linear-gradient(90deg, var(--violet), var(--primary), var(--accent-light));
}
.highlight-card:nth-child(3)::after {
  background: linear-gradient(90deg, var(--accent), var(--coral), var(--primary-light));
}
.highlight-card::before {
  content: attr(data-num);
  position: absolute;
  top: -10px;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(13,148,136,0.06);
  line-height: 1;
}
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(13,148,136,0.15);
}
.highlight-card h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.highlight-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.highlight-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.highlight-link:hover { gap: 0.6rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gradient-brand);
}
.about-image-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 2rem;
  text-align: center;
}
.about-image-inner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.vision-mission {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}
.vm-card {
  padding: 1.25rem;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
}
.vm-card h4 { color: var(--primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.why-item {
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}
.why-item:hover { transform: translateY(-4px); }
.why-icon {
  width: 48px; height: 48px;
  margin: 0 auto 0.75rem;
  background: var(--gradient-brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.why-item h4 { font-size: 0.9rem; color: var(--dark); margin-bottom: 0.35rem; }
.why-item p { font-size: 0.8rem; color: var(--text-muted); }

/* Stats bar */
.stats-bar {
  background: var(--gradient-dark);
  padding: 3rem 0;
  position: relative;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(59,130,246,0.12), transparent 40%, rgba(14, 165, 233,0.12));
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label { font-size: 0.9rem; opacity: 0.85; margin-top: 0.5rem; }

/* Course cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(13, 148, 136, 0.06);
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.15);
  border-color: rgba(34, 211, 238, 0.35);
}
.course-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.course-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.course-card:hover .course-card-image img { transform: scale(1.08); }
.course-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  max-width: calc(100% - 1.7rem);
  white-space: normal;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.badge-role { background: var(--primary); color: var(--white); }
.badge-premium { background: var(--gradient-brand); color: var(--white); }
.badge-popular { background: var(--primary); color: var(--white); }
.badge-new { background: var(--coral); color: var(--white); }
.badge-essential, .badge-skill, .badge-language { background: var(--dark); color: var(--white); }
.course-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course-card-body h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 0.75rem; line-height: 1.35; }
.course-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }

/* Montessori section */
.montessori-section {
  background: linear-gradient(180deg, rgba(251,191,36,0.1) 0%, rgba(255,255,255,0.95) 100%);
}
.montessori-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.montessori-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(13,148,136,0.08);
  font-size: 0.95rem;
}
.montessori-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Learning modes */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mode-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.mode-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.mode-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(124,58,237,0.14), rgba(245,158,11,0.16));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.mode-card h3 { color: var(--dark); margin-bottom: 0.75rem; }
.mode-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.mode-features { text-align: left; }
.mode-features li {
  font-size: 0.85rem;
  padding: 0.35rem 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mode-features li::before { content: '•'; color: var(--accent); font-weight: 700; }

/* Certificates */
.cert-section { background: var(--white); }
.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 960px;
  margin-inline: auto;
}
.cert-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.cert-card:hover { transform: scale(1.01); }
.cert-card img,
.cert-card .cert-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #fff;
  display: block;
}
.cert-card video.cert-media { background: #0f1419; }
.cert-card-body { padding: 1.5rem; }
.affiliation-list { margin-top: 2rem; }
.affiliation-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  align-items: flex-start;
}
.affiliation-badge {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.affiliation-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  border: 1px solid rgba(13,148,136,0.08);
  flex-shrink: 0;
}
.affiliation-logo--contain {
  object-fit: contain;
  width: min(160px, 34vw);
  height: 88px;
}
.affiliation-body {
  min-width: 0;
  flex: 1;
}
.affiliation-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.affiliation-detail {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
  line-height: 1.55;
}
.affiliation-banner {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-top: 0.85rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(13, 148, 136, 0.1);
  padding: 8px;
  object-fit: contain;
}

/* Careers */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.career-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.career-card:hover { background: var(--primary); color: var(--white); transform: translateY(-4px); }
.career-card:hover p { color: rgba(255,255,255,0.85); }
.career-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.career-card h4 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.career-card p { font-size: 0.82rem; color: var(--text-muted); transition: color var(--transition); }

/* Testimonials */
.testimonials-section { background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, rgba(255,251,235,0.9) 50%, rgba(167,139,250,0.08) 100%); }
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 min(360px, 85vw);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(13,148,136,0.1);
  line-height: 1;
}
.testimonial-quote { font-size: 0.95rem; color: var(--text); margin-bottom: 1.5rem; font-style: italic; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; }
.testimonial-name { font-weight: 700; color: var(--dark); font-size: 0.9rem; }
.testimonial-meta { font-size: 0.8rem; color: var(--text-muted); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img,
.gallery-item video,
.gallery-item .gallery-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(26,35,50,0.88));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.25rem 1rem 0.9rem;
}
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: 0.9rem; }
.gallery-overlay small { color: rgba(255,255,255,0.82); font-size: 0.75rem; margin-top: 0.2rem; line-height: 1.35; }

/* Gallery lightbox */
body.gallery-lightbox-open { overflow: hidden; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.92);
}
.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.gallery-lightbox-media {
  background: #0f1419;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: min(72vh, 720px);
}
.gallery-lightbox-image,
.gallery-lightbox-video {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.gallery-lightbox-link {
  color: var(--white);
  padding: 1rem 1.5rem;
  text-decoration: underline;
}
.gallery-lightbox-content {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
}
.gallery-lightbox-content h3 {
  color: var(--dark);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.gallery-lightbox-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  z-index: 2;
  border: none;
  background: rgba(26, 35, 50, 0.72);
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(13, 148, 136, 0.92);
}
.gallery-lightbox-close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.gallery-lightbox-prev { left: 0.75rem; }
.gallery-lightbox-next { right: 0.75rem; }
@media (max-width: 640px) {
  .gallery-lightbox { padding: 0.5rem; }
  .gallery-lightbox-content { padding: 1rem; }
  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.5rem;
  }
}

/* Guides / GEO content pages */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(13,148,136,0.08);
  position: relative;
  overflow: hidden;
}
.guide-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.guide-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}
.guide-card h3 a { color: var(--dark); }
.guide-card h3 a:hover { color: var(--primary); }
.guide-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}
.guide-intro {
  opacity: 0.92;
  max-width: 760px;
  margin-top: 1rem;
  line-height: 1.7;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}
.guide-main { min-width: 0; }
.guide-block {
  margin-bottom: 2.5rem;
}
.guide-block h2 {
  color: var(--dark);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.guide-block-intro {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.guide-checklist {
  display: grid;
  gap: 1rem;
}
.guide-check-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.guide-check-item h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.65rem;
}
.guide-check-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.guide-spedics-note {
  color: var(--text) !important;
  background: rgba(13, 148, 136, 0.06);
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0 !important;
}
.guide-mode-highlight {
  color: var(--primary-dark);
  font-weight: 800;
  background: rgba(13, 148, 136, 0.14);
  padding: 0.08em 0.35em;
  border-radius: 4px;
}
.guide-list {
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.guide-table-wrap { overflow-x: auto; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.guide-table th,
.guide-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}
.guide-table th {
  background: var(--dark);
  color: var(--white);
  font-size: 0.85rem;
}
.guide-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.guide-sidebar-card h3 {
  color: var(--dark);
  font-size: 1rem;
}
.guide-link-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.guide-link-list li + li { margin-top: 0.5rem; }
.guide-link-list a {
  color: var(--primary);
  font-size: 0.9rem;
}
.guide-faq-list .faq-item { margin-bottom: 0.75rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform var(--transition), background var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 1.5rem 1.25rem; color: var(--text-muted); font-size: 0.92rem; }

/* Contact & Apply */
.contact-section {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #0891b2 100%);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail a:hover { color: var(--accent); }
.apply-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--text);
}
.apply-form h3 { color: var(--dark); margin-bottom: 1.5rem; font-size: 1.25rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-soft);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* Admission steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.75rem;
}
.step-card h4 { font-size: 0.85rem; color: var(--dark); margin-bottom: 0.35rem; }
.step-card p { font-size: 0.78rem; color: var(--text-muted); }

/* Who can join */
.join-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.join-tag {
  padding: 0.6rem 1.25rem;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13,148,136,0.1);
  transition: all var(--transition);
}
.join-tag:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* Footer */
.footer {
  background: linear-gradient(180deg, #0f172a 0%, #134e4a 55%, #0d9488 100%);
  color: rgba(255,255,255,0.82);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand p { margin: 1rem 0; font-size: 0.9rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Floating actions */
.float-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
.float-btn svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}
.float-btn:hover { transform: scale(1.08); }
.float-whatsapp {
  background: #25d366;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}
.float-call {
  background: #0284c7;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.4);
}

/* Animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Course detail page */
.page-hero {
  background: var(--gradient-hero);
  padding: 8rem 0 4rem;
  color: var(--white);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.course-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
}
.course-main {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.course-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: var(--shadow-lg);
  height: fit-content;
  position: sticky;
  top: calc(var(--site-top-h) + 1rem);
  min-width: 0;
}
.course-sidebar h3 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.sidebar-item {
  display: grid;
  grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
  gap: 0.65rem 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}
.sidebar-item:last-of-type {
  border-bottom: 1px solid #e2e8f0;
}
.sidebar-item .sidebar-label,
.sidebar-item > span:first-child {
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
  padding-top: 0.05rem;
}
.sidebar-item .sidebar-value,
.sidebar-item > span:last-child {
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.course-packages {
  margin-top: 1.35rem;
  padding-top: 0.25rem;
}
.course-packages h3 {
  color: var(--dark);
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}
.package-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.88rem;
  align-items: start;
}
.package-item:last-child {
  border-bottom: none;
}
.package-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.package-item strong {
  color: var(--primary-dark);
  font-size: 0.95rem;
  line-height: 1.35;
}
.package-item .package-duration {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}
.package-item .package-fee {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
  line-height: 1.35;
  max-width: 11rem;
  justify-self: end;
}
.course-sidebar .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (max-width: 480px) {
  .sidebar-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .package-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .package-item .package-fee {
    text-align: left;
    max-width: none;
    justify-self: start;
  }
}
.modules-list { margin-top: 2rem; }
.modules-list h3 { margin-bottom: 1rem; color: var(--dark); }
.module-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
}
.module-num {
  width: 32px; height: 32px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Admission marquee */
.admission-marquee {
  background: var(--gradient-dark);
  color: var(--white);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  min-height: var(--marquee-h);
  display: flex;
  align-items: center;
}
.admission-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.admission-marquee:hover .admission-marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-item {
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.marquee-item::after {
  content: '◆';
  margin-left: 2rem;
  opacity: 0.45;
  font-size: 0.55rem;
  vertical-align: middle;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .admission-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .hero-bg-photo {
    animation: none;
    inset: 0;
  }
}

/* Welcome block */
.welcome-block { max-width: 880px; margin: 0 auto; text-align: center; }
.welcome-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.welcome-seal {
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 3px solid rgba(13, 148, 136, 0.15);
}
.welcome-title { margin-top: 0.35rem; }
.welcome-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}
.content-block { max-width: 780px; margin: 0 auto; text-align: center; }
.content-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 1rem;
}

.vision-mission.vm-standalone {
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: 0 auto;
}

/* When Vision & Mission sits under Welcome, tighten the gap between the two white bands */
#welcome:has(+ #vision-mission) {
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
#welcome + #vision-mission {
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
}

#why-choose .why-grid { margin-top: 0; }

/* Nature of training */
.nature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.nature-intro { text-align: center; margin: 0 auto 1.25rem; max-width: 560px; }
.nature-list {
  max-width: 640px;
  margin: 1.5rem auto 0;
  text-align: left;
}
.nature-intro-left { text-align: left; margin: 0 0 1.25rem; max-width: none; }

/* Fee calculator */
.fee-calculator {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(14, 165, 233, 0.2);
}
.fee-calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.fee-calculator .form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark-soft);
  margin-bottom: 0.4rem;
}
.fee-calculator select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.fee-display {
  padding: 0.75rem 1rem;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.fee-display--contact,
.fee-total-value.fee-display--contact {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.fee-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px dashed rgba(13, 148, 136, 0.2);
  flex-wrap: wrap;
}
.fee-total-label strong { display: block; font-size: 1rem; color: var(--dark); }
.fee-note { font-size: 0.78rem; color: var(--text-muted); }
.fee-total-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--primary-dark);
}

/* FAQ + founder */
.faq-founder-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}
.faq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.founder-card {
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: sticky;
  top: calc(var(--site-top-h) + 16px);
}
.founder-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dark);
  margin: 0.5rem 0 1rem;
}
.founder-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
}
.founder-name {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

/* Affiliation logo strip */
.affiliation-strip-section {
  background: var(--white);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.affiliation-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.affiliation-strip-item {
  flex: 1 1 min(280px, 100%);
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.affiliation-strip-item img {
  width: min(200px, 100%);
  height: 80px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(13, 148, 136, 0.08);
}
.affiliation-strip-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-soft);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions, .hero-highlights { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .highlights-grid { grid-template-columns: 1fr; margin-top: 2rem; }
  .about-grid, .montessori-grid, .cert-grid, .contact-grid, .course-detail-grid, .guide-layout,
  .nature-grid, .faq-founder-grid, .vision-mission.vm-standalone, .fee-calculator-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 84px; --topbar-h: 40px; --marquee-h: 38px; }
  /* Avoid rotated cards creating sideways whitespace on small tablets */
  .hero { min-height: unset; }
  .hero-card { transform: none; }

  /* Header: logo left, hamburger flush right */
  .header-inner { gap: 0.5rem; justify-content: flex-start; }
  .logo-wrap { flex-shrink: 1; min-width: 0; }
  .logo-seal { width: 52px; height: 52px; }
  .logo-brand-tag { white-space: normal; max-width: 150px; line-height: 1.2; }
  .logo { height: 56px; max-width: 240px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
    padding: 10px;
    margin-right: -6px;
  }
  .nav {
    position: fixed;
    top: var(--site-top-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
    transition: none;
    max-height: calc(100vh - var(--site-top-h));
    overflow-y: auto;
    align-items: stretch;
    z-index: 1200;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 0.85rem 1rem; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 0;
    width: 100%;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown.open > .nav-link::after {
    transform: rotate(180deg);
  }
  .nav-dropdown > .nav-link::after {
    content: '▾';
    font-size: 0.75rem;
    margin-left: 0.15rem;
    display: inline-block;
    transition: transform var(--transition);
  }
  .nav-dropdown > .nav-link {
    justify-content: space-between;
    width: 100%;
  }
  .nav-dropdown-item {
    padding-left: 1.25rem;
    border-left: 3px solid rgba(13, 148, 136, 0.15);
    margin-left: 0.5rem;
  }
  .nav-dropdown-heading {
    padding-left: 0.85rem;
    margin-left: 0.15rem;
    color: var(--primary-dark);
  }
  .nav-dropdown-group + .nav-dropdown-group {
    border-top-color: rgba(13, 148, 136, 0.18);
  }
  .hero-shape { display: none; }
  .hero-text { width: 100%; }
  .hero-actions { margin-inline: auto; max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .founder-card { position: static; }
  .faq-actions .btn { flex: 1 1 auto; min-width: 140px; }
  .topbar-inner { font-size: 0.75rem; gap: 0.5rem; }
  .course-sidebar { position: static; }
}

/* Better desktop fit for About section */
@media (min-width: 1025px) {
  #about .container {
    width: min(1320px, 100%);
  }
  #about .section-header {
    max-width: 900px;
  }
}

@media (max-width: 480px) {
  html { scroll-padding-top: calc(var(--site-top-h) + 8px); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .fee-calculator-grid { grid-template-columns: 1fr; }
  .fee-total-row { flex-direction: column; align-items: flex-start; }
  .welcome-brand .section-title { font-size: 1.5rem; }
  .marquee-item { padding: 0.65rem 1.25rem; font-size: 0.78rem; }
  /* Prevent button shifting / horizontal gaps on small screens */
  .hero { min-height: unset; }
  .hero-content { padding: 3.25rem 0; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
  }
  .hero-actions .btn { width: 100%; }
  .hero-card { transform: none; }

  .header-inner { gap: 0.4rem; }
  .logo-seal { width: 48px; height: 48px; }
  .logo-brand-name { font-size: 1.05rem; }
  .logo-brand-tag { font-size: 0.5rem; max-width: 130px; }
  .logo { height: 52px; max-width: 220px; }
  .float-actions { bottom: 1rem; right: 1rem; }
  .float-btn { width: 52px; height: 52px; }
  .float-btn svg { width: 24px; height: 24px; }
}

/* Mobile hero title — keep visible with subtle glow (shimmer broke opacity) */
@media (max-width: 768px) {
  .hero h1 {
    opacity: 1;
    color: #ffffff;
    animation: fadeInUp 0.8s ease 0.1s forwards, heroTitlePulse 5s ease-in-out infinite;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
  }
}
@keyframes heroTitlePulse {
  0%, 100% { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2); }
  50% { text-shadow: 0 2px 32px rgba(232, 168, 56, 0.35); }
}

/* Course sidebar label/value alignment on mobile */
@media (max-width: 480px) {
  .sidebar-item {
    align-items: flex-start;
    gap: 10px;
  }
  .sidebar-item span:first-child {
    min-width: 120px;
    white-space: nowrap;
  }
  .sidebar-item span:last-child {
    flex: 1;
    text-align: right;
    word-break: break-word;
  }
}
