/* =======================================================
   CrossPoint Education — styles.css
   Brand: #14447c (navy) / #ac2c2c (red) / #b03854 (rose)
   Themes: light + dark via [data-theme] on <html>
   Type:  Poppins (light & thin weights), tight sizing
   ======================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --c-navy: #14447c;
  --c-navy-d: #0e2f5a;
  --c-navy-l: #3b6fb8;
  --c-red: #ac2c2c;
  --c-red-d: #8a2222;
  --c-rose: #b03854;
  --c-rose-l: #d75a78;
  --c-gold: #e8b257;

  /* Light mode (default) */
  --bg: #FAF7F2;
  --bg-alt: #F2EDE5;
  --surface: #ffffff;
  --surface-alt: #F8F4EE;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text: #1F2937;
  --text-muted: #6B7280;
  --text-soft: #9CA3AF;

  /* Functional */
  --primary: var(--c-navy);
  --primary-hover: var(--c-navy-d);
  --accent: var(--c-red);
  --accent-hover: var(--c-red-d);
  --highlight: var(--c-rose);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20, 68, 124, 0.06), 0 1px 3px rgba(20, 68, 124, 0.08);
  --shadow-md: 0 4px 12px rgba(20, 68, 124, 0.08), 0 2px 4px rgba(20, 68, 124, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 68, 124, 0.12), 0 4px 12px rgba(20, 68, 124, 0.08);
  --shadow-glow: 0 0 0 3px rgba(20, 68, 124, 0.18);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;

  /* Typography — Poppins family, tight sizing */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-body: 13px;     /* desktop body */
  --fs-small: 11px;
  --fs-tiny: 10px;
  --fw-thin: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
}

/* Dark mode overrides */
[data-theme="dark"] {
  --bg: #0E1726;
  --bg-alt: #131e34;
  --surface: #1A2438;
  --surface-alt: #20304a;
  --border: #2A3654;
  --border-strong: #3a4a6e;
  --text: #E8EDF5;
  --text-muted: #94A3B8;
  --text-soft: #64748B;

  --primary: var(--c-navy-l);
  --primary-hover: #5586c8;
  --accent: #d14848;
  --accent-hover: #b83a3a;
  --highlight: var(--c-rose-l);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 0 3px rgba(59, 111, 184, 0.3);
}

/* Responsive base font scaling — slightly larger on smaller screens for legibility */
@media (max-width: 980px) {
  :root { --fs-body: 13.5px; --fs-small: 11.5px; }
}
@media (max-width: 720px) {
  :root { --fs-body: 14px; --fs-small: 12px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* Safety net: prevent horizontal scroll across the whole site */
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-weight: var(--fw-thin);
  letter-spacing: 0.005em;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: var(--fw-semibold); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: var(--fw-semibold); }
h3 { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: var(--fw-semibold); }
h4 { font-size: 0.95rem; font-weight: var(--fw-semibold); }
p { margin: 0 0 1em; font-weight: var(--fw-thin); }
strong, b { font-weight: var(--fw-medium); }
.lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: var(--fw-thin);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  font-family: var(--font-body);
  margin: 0 0 0.6em;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(48px, 7vw, 80px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.text-center { text-align: center; }
.bg-alt { background: var(--bg-alt); }
.bg-surface { background: var(--surface); }
.bg-navy {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-d) 100%);
  color: #fff;
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .lead, .bg-navy p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
[data-theme="dark"] .site-header {
  background: rgba(14, 23, 38, 0.92);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header.scrolled .nav-inner { padding-top: 8px; padding-bottom: 8px; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  transition: padding var(--transition);
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 14px;
  padding: 4px 0;
}
.brand img {
  height: 42px;
  width: auto;
  max-width: 100%;
  transition: height var(--transition);
}
.site-header.scrolled .brand img { height: 36px; }
.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.primary-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
  align-items: center;
}
.primary-nav > li {
  list-style: none;
  position: relative;
}
.primary-nav a, .primary-nav .nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition), background var(--transition);
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav .nav-toggle-btn:hover {
  color: var(--primary);
  background: var(--surface-alt);
}
.primary-nav a.active, .primary-nav .has-dropdown.active > .nav-toggle-btn {
  color: var(--primary);
}
.primary-nav a.active::after,
.primary-nav .has-dropdown.active > .nav-toggle-btn::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.primary-nav .nav-toggle-btn .chev {
  transition: transform var(--transition);
}
.primary-nav .has-dropdown.open > .nav-toggle-btn .chev,
.primary-nav .has-dropdown:hover > .nav-toggle-btn .chev {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { display: block; }
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: var(--fs-body);
  border-radius: 6px;
  white-space: nowrap;
}
.dropdown a:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Mobile nav button */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-large { padding: 12px 22px; font-size: 0.92rem; }
.btn-on-dark {
  background: #fff;
  color: var(--c-navy);
  border-color: #fff;
}
.btn-on-dark:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-navy);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn-pulse { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(172, 44, 44, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(172, 44, 44, 0); }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 7vw, 88px);
  background: linear-gradient(135deg, rgba(20, 68, 124, 0.04) 0%, rgba(176, 56, 84, 0.04) 100%);
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, rgba(59, 111, 184, 0.08) 0%, rgba(215, 90, 120, 0.08) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 { margin-bottom: 18px; }
.hero-text h1 .accent {
  background: linear-gradient(120deg, var(--c-navy), var(--c-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
  background: var(--surface-alt);
  will-change: transform;
}
.hero-image img,
.hero-image svg { width: 100%; height: 100%; object-fit: cover; }
.hero-decoration {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 80% 20%, rgba(176, 56, 84, 0.12), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(20, 68, 124, 0.12), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Marquee ---------- */
.marquee {
  background: linear-gradient(90deg, var(--c-navy) 0%, var(--c-rose) 100%);
  color: #fff;
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  margin-top: 3px;       /* small gap from preceding section */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  font-weight: var(--fw-regular);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
}
.marquee-star {
  color: var(--c-gold);
  margin: 0 6px;
  font-size: 0.65rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.trust-item .num {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-item .label {
  font-size: var(--fs-tiny);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(20, 68, 124, 0.1), rgba(172, 44, 44, 0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.9rem; }

/* ---------- Destinations ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.dest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--text);
}
.dest-card .photo {
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  overflow: hidden;
  position: relative;
}
.dest-card .photo img,
.dest-card .photo svg { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.dest-card:hover .photo img,
.dest-card:hover .photo svg { transform: scale(1.05); }
.dest-card .body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dest-card .body .left { display: flex; align-items: center; gap: 10px; }
.dest-card .body .left .name {
  font-weight: var(--fw-medium);
  color: var(--text);
  font-size: 0.95rem;
}
.dest-card .flag {
  width: 30px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
  flex-shrink: 0;
}
.dest-card .flag img { width: 100%; height: 100%; object-fit: cover; }
.dest-card .arrow { color: var(--accent); transition: transform var(--transition); }
.dest-card:hover .arrow { transform: translateX(4px); }

.dest-card.coming-soon { opacity: 0.7; pointer-events: auto; }
.dest-card.coming-soon .photo { filter: grayscale(0.85) brightness(0.85); }
.dest-card.coming-soon::after {
  content: 'COMING SOON';
  position: absolute;
  top: 12px;
  right: -32px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  padding: 3px 32px;
  transform: rotate(28deg);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.dest-card.coming-soon:hover { opacity: 0.95; }

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 28px;
}
.step {
  position: relative;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}
.step:hover { transform: translateY(-3px); border-color: var(--primary); }
.step .num-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-navy), var(--c-rose));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 28px 24px;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  font-weight: var(--fw-semibold);
}
.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 16px;
  font-style: italic;
  font-weight: var(--fw-thin);
}
.testimonial cite {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.testimonial cite strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
  font-weight: var(--fw-medium);
}

/* ---------- Closing CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-d) 60%, var(--c-rose) 100%);
  color: #fff;
  padding: clamp(40px, 6vw, 70px) 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(232, 178, 87, 0.1), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.88); margin-bottom: 24px; }
.cta-banner .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 0.9rem; }

/* Image / text alternating rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.split:last-child { margin-bottom: 0; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split .img-wrap {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.split .img-wrap img,
.split .img-wrap svg { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 12px; }
.split .meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.split .meta span { display: inline-flex; align-items: center; gap: 5px; }
.split .meta svg { width: 12px; height: 12px; color: var(--accent); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy-d);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 22px;
  font-size: 0.84rem;
  font-weight: var(--fw-thin);
}
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 6px; line-height: 1.55; }
.footer-col p { margin-bottom: 10px; line-height: 1.6; }
.footer-brand img { height: 54px; width: auto; max-width: 100%; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 8px; margin-top: 14px; }
.footer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  line-height: 0;          /* ensures no extra inline-baseline space */
  padding: 0;
}
.footer-socials a:hover { background: var(--accent); transform: translateY(-2px); }
.footer-socials a svg {
  width: 16px;
  height: 16px;
  display: block;          /* removes any inline gap */
  fill: currentColor;
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--bg-alt);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(176, 56, 84, 0.08), transparent 50%);
}
.page-header > * { position: relative; }
.page-header h1 { margin-bottom: 10px; }
.page-header p { color: var(--text-muted); max-width: 600px; font-size: 0.94rem; margin: 0; }
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Team — explicit 3-column layout ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.team-card .photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #14447c, #0e2f5a);
  position: relative;
  overflow: hidden;
}
.team-card .photo img,
.team-card .photo svg { width: 100%; height: 100%; object-fit: cover; }
.team-card .body { padding: 16px 18px 20px; }
.team-card .name {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 1rem;
  margin: 0 0 3px;
  color: var(--text);
}
.team-card .role {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0 0 10px;
  font-weight: var(--fw-thin);
}
.team-card .bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.6;
  font-weight: var(--fw-thin);
}
.team-card .socials a {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: var(--primary);
  margin-right: 5px;
  transition: background var(--transition), color var(--transition);
}
.team-card .socials a:hover { background: var(--primary); color: #fff; }
.team-card .socials svg { width: 13px; height: 13px; display: block; }
.team-card.placeholder { border-style: dashed; border-color: var(--highlight); }
.team-card.placeholder::before {
  content: 'NEW HIRE';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--highlight);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: var(--fw-semibold);
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 2;
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.faq-sidebar {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.faq-sidebar h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: var(--fw-semibold);
}
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { margin-bottom: 3px; }
.cat-list button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
  font-weight: var(--fw-thin);
}
.cat-list button:hover { background: var(--surface-alt); }
.cat-list button.active { background: var(--primary); color: #fff; font-weight: var(--fw-medium); }
.cat-list .count { font-size: 0.7rem; opacity: 0.7; }

.faq-search {
  position: relative;
  margin-bottom: 16px;
}
.faq-search input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: var(--fw-thin);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.faq-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--primary); }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 15px 20px;
  font-size: 0.92rem;
  font-weight: var(--fw-medium);
  color: var(--text);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.faq-question:hover { color: var(--primary); }
.faq-question .chev {
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}
.faq-question .chev svg { width: 18px; height: 18px; }
.faq-item.open .faq-question .chev { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer { max-height: 1500px; }
.faq-answer-inner {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
  font-weight: var(--fw-thin);
}
.faq-answer-inner strong { color: var(--text); font-weight: var(--fw-medium); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-panel h3 { margin-bottom: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: var(--fw-thin);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--surface-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-list .icon svg { width: 15px; height: 15px; }
.contact-list .text { flex: 1; }
.contact-list .text .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--fw-semibold);
}
.contact-list .text strong {
  display: block;
  color: var(--text);
  font-weight: var(--fw-medium);
}
.whatsapp-btn {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  width: 100%;
  justify-content: center;
}
.whatsapp-btn:hover { background: #1eba56; border-color: #1eba56; color: #fff; }

.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  overflow: hidden;
}
.form-wrap iframe {
  width: 100%;
  border: none;
  display: block;
  border-radius: var(--radius-sm);
}
.track-section {
  background: var(--surface);
  border: 1px solid var(--highlight);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  position: relative;
}
.track-section h3 {
  color: var(--highlight);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.map-wrap {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---------- Sticky country nav (Study Abroad) ---------- */
.dest-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
.dest-sticky-nav {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.dest-sticky-nav h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: var(--fw-semibold);
}
.dest-sticky-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.84rem;
  margin-bottom: 3px;
  transition: background var(--transition), color var(--transition);
  font-weight: var(--fw-thin);
}
.dest-sticky-nav a:hover { background: var(--surface-alt); color: var(--primary); }
.dest-sticky-nav .badge {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
}
.dest-sticky-nav .badge.live { background: #16a34a; }

.country-section {
  scroll-margin-top: 90px;
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.country-hero {
  aspect-ratio: 16 / 6;
  background: var(--surface-alt);
  position: relative;
}
.country-hero img,
.country-hero svg { width: 100%; height: 100%; object-fit: cover; }
.country-body { padding: 26px; }
.country-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.country-title .flag {
  width: 36px;
  height: 24px;
  box-shadow: 0 0 0 1px var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.country-title .flag img { width: 100%; height: 100%; object-fit: cover; }
.country-title h2 { margin: 0; }
.country-meta { color: var(--text-muted); margin-bottom: 18px; font-size: 0.84rem; }
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.country-fact {
  padding: 14px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.country-fact .label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  display: block;
  margin-bottom: 6px;
}
.country-fact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  font-weight: var(--fw-thin);
}
.country-fact ul li { padding: 2px 0; }
.country-section.dim .country-hero { filter: grayscale(0.85) brightness(0.9); }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 0.92rem;
}
.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content h3 { margin-top: 22px; margin-bottom: 8px; font-size: 0.98rem; }
.legal-content ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.legal-content li {
  margin-bottom: 4px;
  font-weight: var(--fw-thin);
  color: var(--text);
}
.legal-content p { color: var(--text); }

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .primary-nav a, .primary-nav .nav-toggle-btn { padding: 7px 9px; font-size: 0.82rem; }
  .nav-actions .btn { padding: 8px 12px; font-size: 0.8rem; }
  .brand img { height: 38px; }
  .site-header.scrolled .brand img { height: 34px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 22px; direction: ltr; }
  .split.reverse > * { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .faq-layout, .dest-layout, .contact-grid { grid-template-columns: 1fr; }
  .faq-sidebar, .dest-sticky-nav { position: static; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .brand img {
    height: 34px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    object-position: left center;
  }
  .site-header.scrolled .brand img { height: 30px; max-width: 160px; }
  .footer-brand img { height: 44px; max-width: 220px; }
  .menu-toggle { display: inline-flex; }
  .nav-inner { gap: 8px; }
  .nav-actions { gap: 6px; }
  .primary-nav {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 88%;
    max-width: 360px;
    height: calc(100vh - 64px);
    background: var(--surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 14px;
    gap: 2px;
    transition: right 320ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }
  .primary-nav.open { right: 0; }
  .primary-nav > li { width: 100%; }
  .primary-nav a, .primary-nav .nav-toggle-btn {
    padding: 11px 12px;
    font-size: 0.94rem;
    border-radius: 8px;
    width: 100%;
    justify-content: space-between;
  }
  .primary-nav a.active::after,
  .primary-nav .has-dropdown.active > .nav-toggle-btn::after { display: none; }

  /* Mobile dropdown — clean display-based show/hide.
     Reset desktop positioning/visibility, use display:none/block toggled by .open class. */
  .dropdown {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    margin: 6px 0 8px;
    padding: 6px 0;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    max-height: none;
    overflow: visible;
    border-radius: 10px;
    display: none;
  }
  /* Cancel desktop hover/focus auto-show on mobile (touch shouldn't trigger hover) */
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    display: none;
  }
  .has-dropdown.open > .dropdown {
    display: block;
  }
  .dropdown li { display: block; width: 100%; }
  .dropdown a {
    display: block !important;
    padding: 11px 16px !important;
    font-size: 0.92rem !important;
    width: 100% !important;
    color: var(--text) !important;
    background: transparent !important;
    text-align: left !important;
    justify-content: flex-start !important;
    border-radius: 0 !important;
    white-space: normal !important;
  }
  .dropdown a:hover,
  .dropdown a:focus {
    background: rgba(20, 68, 124, 0.08) !important;
    color: var(--primary) !important;
  }
  .dropdown a.active {
    color: var(--primary) !important;
    font-weight: 500;
  }
  [data-theme="dark"] .dropdown a:hover,
  [data-theme="dark"] .dropdown a:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
  }

  .nav-actions .btn-secondary { display: none; }
  .nav-actions .btn-primary { padding: 8px 12px; font-size: 0.78rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .hero { padding-top: 40px; padding-bottom: 36px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .country-body { padding: 18px; }
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta-banner .actions { flex-direction: column; align-items: stretch; }
  .cta-banner .actions .btn { justify-content: center; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .marquee-track { font-size: 0.74rem; }
  .brand img { height: 30px; max-width: 140px; }
  .site-header.scrolled .brand img { height: 26px; max-width: 130px; }
  .nav-actions .btn-primary { padding: 7px 10px; font-size: 0.72rem; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 16px; height: 16px; }
}

@media (max-width: 360px) {
  .brand img { max-width: 110px; }
  .nav-actions .btn-primary {
    padding: 6px 9px;
    font-size: 0.68rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .btn-pulse { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .marquee, .nav-actions, .menu-toggle, .theme-toggle { display: none !important; }
  body { color: #000; background: #fff; }
}
