/* ============================================================
   Technologies For Youth (TFY) - STEM Education Website
   Design system: dark tech theme with electric cyan accents
   ============================================================ */

:root {
  --bg: #060b16;
  --bg-soft: #0a1220;
  --surface: #0e1a2c;
  --surface-2: #12233a;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e8eef7;
  --text-soft: #c3cede;
  --muted: #8b99ad;
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --orange: #fbbf24;
  --orange-strong: #f59e0b;
  --green: #34d399;
  --purple: #a78bfa;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -12px rgba(2, 8, 20, 0.7);
  --maxw: 1180px;
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle tech grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(167, 139, 250, 0.08), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #7de8fb; }

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

.container {
  width: min(var(--maxw), 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
  position: relative;
}

.section-alt { background: linear-gradient(180deg, rgba(14, 26, 44, 0.55), rgba(6, 11, 22, 0.4)); }

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04222b;
  box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.5);
}
.btn-primary:hover { color: #04222b; transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(34, 211, 238, 0.6); }

.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  color: #231503;
  box-shadow: 0 10px 30px -8px rgba(251, 191, 36, 0.45);
}
.btn-orange:hover { color: #231503; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.btn-sm { padding: 10px 14px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 22, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
  line-height: 1.15;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 9px;
  white-space: nowrap;
  border-radius: 8px;
}

.main-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.main-nav a.active { color: var(--accent); }

.nav-cta { margin-left: 10px; }

/* The .main-nav a color rule (0-1-1) beats .btn-primary (0-1-0): force dark text on the CTA button */
.main-nav a.nav-cta,
.main-nav a.nav-cta:hover { color: #04222b; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(48px, 7vw, 84px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: linear-gradient(92deg, var(--accent), #818cf8, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero-desc {
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 560px;
}

.hero-stat {
  background: rgba(10, 18, 32, 0.85);
  padding: 16px 18px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent);
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-slider img.active { opacity: 1; transform: scale(1); }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.slider-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.slider-dots button.active { background: var(--accent); width: 24px; border-radius: 999px; }

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 8, 16, 0.55));
  pointer-events: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 24px 50px -16px rgba(2, 8, 20, 0.8);
}

.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 24px; }

.card-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}

.card h3 { font-size: 1.3rem; margin-bottom: 10px; }

.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link::after { content: "→"; transition: transform 0.2s; }
.card-link:hover::after { transform: translateX(4px); }

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

/* ---------- Feature items ---------- */
.feature {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: 0.97rem;
}
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 3px;
}

/* ---------- Timetable ---------- */
.class-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.class-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--accent));
}

.class-card h3 { font-size: 1.22rem; margin-bottom: 14px; }

.class-card .btn { margin: 0 8px 10px 0; }

.class-meta { display: grid; gap: 10px; margin-bottom: 18px; }

.class-meta div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.class-meta .icon {
  color: var(--accent);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.class-date {
  display: inline-block;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--orange);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}

.price-card:hover { transform: translateY(-6px); }

.price-card.popular {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), var(--surface) 40%);
}

.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04222b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-card .plan-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.price-note { color: var(--muted); font-size: 0.86rem; margin-bottom: 24px; }

.price-card .checklist { margin-bottom: 26px; }

/* ---------- Support / badges ---------- */
.support-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.support-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.support-item:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }

.support-item .role {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.support-item .name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.support-item .title { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.school-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.school-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.school-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }
.school-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.school-card p { color: var(--muted); font-size: 0.88rem; }
.school-card .icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery figure:hover img { transform: scale(1.06); }

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: linear-gradient(transparent, rgba(4, 8, 16, 0.85));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery figure:hover figcaption { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 6, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; }
.lightbox .close {
  position: absolute;
  top: 20px; right: 26px;
  font-size: 2.2rem;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Quote band ---------- */
.quote-band {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 22px;
  padding: clamp(34px, 6vw, 60px);
  text-align: center;
}

.quote-band .quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  max-width: 780px;
  margin: 0 auto 14px;
}

.quote-band .who { color: var(--muted); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }

.field label { font-size: 0.88rem; font-weight: 600; color: var(--text-soft); }
.field label .req { color: var(--danger); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.field select option { background: var(--surface); }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-success {
  display: none;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.form-success.show { display: block; }

.form-error {
  display: none;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.form-error.show { display: block; }
.form-error a { color: var(--accent); text-decoration: underline; }
.form-card button:disabled { opacity: 0.65; cursor: wait; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.form-consent a { color: var(--accent); text-decoration: underline; }

:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.75);
  outline-offset: 3px;
}

/* ---------- Contact info ---------- */
.contact-list { display: grid; gap: 14px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.contact-item .icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
}

.contact-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.contact-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(56px, 8vw, 92px) 0 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent);
}

.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 14px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.page-hero .eyebrow { margin-bottom: 14px; }

/* Compact variant: smaller hero so the form sits higher in the viewport */
.page-hero.compact { padding: clamp(30px, 4vw, 44px) 0 26px; }
.page-hero.compact h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.page-hero.compact p { font-size: 1rem; }

/* ---------- Steps (numbered process list) ---------- */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 12px; align-items: flex-start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700; font-size: 0.82rem;
  margin-top: 1px;
}
.steps strong { display: block; font-size: 0.95rem; }
.steps p { color: var(--muted); font-size: 0.88rem; margin: 2px 0 0; }

/* ---------- Breadcrumb / anchor pills ---------- */
.anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.anchor-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
}

.anchor-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Course detail rows ---------- */
.course-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(26px, 4vw, 50px);
  align-items: center;
  padding: clamp(40px, 6vw, 70px) 0;
  border-bottom: 1px solid var(--border);
}

.course-block:last-child { border-bottom: 0; }
.course-block.reverse .course-media { order: 2; }

.course-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}

.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
video { max-width: 100%; height: auto; }

.course-info h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.course-info .age-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.course-info .lead { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 18px; }

.course-info h3.mini { font-size: 0.95rem; margin: 18px 0 10px; color: var(--accent); letter-spacing: 0.04em; }

.course-info .checklist li { font-size: 0.92rem; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; position: relative; max-width: 780px; }

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding-bottom: 34px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 43px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline-item:last-child::before { display: none; }

.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 8px 0;
  text-align: center;
  align-self: start;
}

.timeline-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.timeline-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline-body p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 11, 22, 0.9);
  padding: clamp(46px, 6vw, 70px) 0 88px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 320px; }

.footer-col h4 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 5px 0;
}

.footer-col a:hover { color: var(--accent); }

.footer-contact p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.footer-contact p .fi { margin-top: 3px; width: 16px; height: 16px; color: #a9b8cf; }

/* ---------- Inline SVG icons (replace platform-dependent emoji) ---------- */
.fi { width: 15px; height: 15px; flex-shrink: 0; }
svg.fi { display: inline-block; vertical-align: -2px; }
.contact-item .icon .fi { width: 21px; height: 21px; }
.pay-icon { display: grid; place-items: center; }
.pay-icon .fi { width: 21px; height: 21px; }
.class-meta .icon .fi { width: 16px; height: 16px; margin-top: 2px; }
.badge-chip .fi { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
.evidence-icon .fi { width: 19px; height: 19px; }
.checklist .fi { margin-top: 2px; }
.camp-info .fi { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 40px; }
.hidden { display: none !important; }

.notice {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
}

.notice strong { color: var(--orange); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-slider { max-width: 640px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(3, 1fr); }
  .school-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-block { grid-template-columns: 1fr; }
  .course-block.reverse .course-media { order: 0; }
}

@media (max-width: 1300px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(6, 11, 22, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 4% 20px;
    gap: 4px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(6, 11, 22, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 4% 20px;
    gap: 4px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .timeline-item { grid-template-columns: 70px 1fr; }
}

@media (max-width: 520px) {
  .grid-4, .support-grid, .school-grid, .gallery { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { display: flex; justify-content: space-between; align-items: center; }
  .hero-stat strong { font-size: 1.2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Video ---------- */
.video-embed {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
}

.video-embed video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

/* ---------- Support / endorsement ---------- */
.support-quote {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.support-avatar {
  width: 122px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px -14px rgba(2, 8, 20, 0.95);
  flex-shrink: 0;
  background: #ffffff;
}
@media (max-width: 520px) {
  .support-avatar { width: 96px; height: 66px; }
}
.age-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Endorsement badges ---------- */
.badge-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 6px 8px 0;
}
.badge-location {
  color: var(--orange);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.badge-official {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.badge-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 10px;
  margin-top: 44px;
}
.badge-wall span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color 0.2s, color 0.2s;
}
.badge-wall span:hover { border-color: rgba(34, 211, 238, 0.4); color: var(--accent); }

/* ---------- Hero trust banner ---------- */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  font-weight: 600;
  max-width: 100%;
  color: var(--orange);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 999px;
  padding: 9px 18px;
  margin-bottom: 20px;
}
.hero-trust .icon {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
}

/* ---------- Student pathway ---------- */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pathway-step {
  position: relative;
  min-height: 210px;
  padding: 26px;
  background: linear-gradient(145deg, rgba(18, 29, 49, 0.96), rgba(10, 18, 33, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pathway-step::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 50%;
}

.pathway-number {
  position: absolute;
  top: 18px;
  right: 22px;
  font: 700 2rem/1 var(--font-display);
  color: rgba(34, 211, 238, 0.22);
}

.pathway-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.pathway-step h3 { font-size: 1.12rem; margin-bottom: 9px; }
.pathway-step p { color: var(--muted); font-size: 0.92rem; }
.pathway-step p.pathway-remark {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed rgba(139, 153, 173, 0.32);
  color: #a5b3c7;
  font-size: 0.81rem;
  line-height: 1.5;
}
.pathway-step p.pathway-remark strong { color: var(--accent); font-weight: 600; }

/* ---------- Parent trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 1.25rem;
}

.trust-card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.trust-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Comparable course facts ---------- */
.course-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 20px;
}

.course-fact {
  padding: 11px 13px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.course-fact span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.course-fact strong { color: var(--text-soft); font-size: 0.84rem; }

/* ---------- Evidence framework ---------- */
.evidence-key {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.evidence-item {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.evidence-item strong { display: block; color: var(--text); margin: 10px 0 5px; }
.evidence-item p { color: var(--muted); font-size: 0.87rem; }
.evidence-icon { font-size: 1.35rem; }
.source-link { color: var(--accent); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-list details[open] { border-color: rgba(34, 211, 238, 0.35); }

.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 19px 52px 19px 20px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Source timetable ---------- */
.source-board {
  margin: 0 0 34px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.source-board img {
  display: block;
  width: 100%;
  height: auto;
}

.source-board figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Mobile: timetable photos are unreadable when squeezed to 340px — let users pan a readable width */
@media (max-width: 768px) {
  .source-board { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .source-board img { width: 1080px; max-width: none; }
}

@media (max-width: 1024px) {
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .evidence-key { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .pathway-grid, .trust-grid, .evidence-key { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .course-facts { grid-template-columns: 1fr; }
}

/* ================= Floating WhatsApp button ================= */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}
.wa-float:hover,
.wa-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
.wa-float--hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}

/* ================= News strip (homepage) ================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.news-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent, rgba(251, 191, 36, 0.5));
}
.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.news-body {
  padding: 12px 16px 16px;
}
.news-tag {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange, #fb8c00);
  margin-bottom: 4px;
}
.news-body h3 {
  font-size: 1rem;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .news-card { transition: none; }
}
/* ================= Payment options panel ================= */
.pay-options { display: grid; gap: 10px; margin-top: 16px; }
.pay-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pay-icon { font-size: 1.3rem; flex: 0 0 auto; }
.pay-info { flex: 1 1 auto; min-width: 0; }
.pay-info strong { display: block; font-size: 0.92rem; }
.pay-info p { color: var(--muted); font-size: 0.78rem; margin: 2px 0 0; line-height: 1.45; }
.pay-opt .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) {
  .pay-opt { flex-wrap: wrap; }
  .pay-opt .btn { width: 100%; }
}

/* ---------- Holiday Camp：模块间距收紧（仅本页） ---------- */
.page-holiday-camp .page-hero { padding-bottom: 26px; }
.page-holiday-camp .section { padding-top: 44px; padding-bottom: 44px; }
.page-holiday-camp .mt-1 { margin-top: 10px; }
.page-holiday-camp .mt-2 { margin-top: 16px; }
.page-holiday-camp .mt-3 { margin-top: 24px; }
