/* EduGate — refined navy & gold */
:root {
  --navy: #0c4a7a;
  --navy-dark: #083556;
  --navy-light: #1a6a9e;
  --yellow: #d4a82a;
  --yellow-bright: #e8c04a;
  --yellow-soft: #f6edd8;
  --white: #ffffff;
  --off-white: #f4f7fa;
  --surface: #eef2f6;
  --text-dark: #152a3a;
  --text-muted: #5a6d7d;
  --border: #d8e2ea;
  --shadow-sm: 0 2px 8px rgba(8, 53, 86, 0.06);
  --shadow-md: 0 8px 28px rgba(8, 53, 86, 0.1);
  --font: 'Noto Sans Georgian', system-ui, sans-serif;
  --font-display: 'Noto Serif Georgian', 'Noto Sans Georgian', serif;
  --max: 1140px;
  --header-h: 88px;
  --radius: 10px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Motion / transitions ── */
html.js body {
  opacity: 0;
  transition: opacity 240ms ease;
}

html.js.is-loaded body {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 760ms cubic-bezier(0.16, 0.84, 0.22, 1),
    transform 760ms cubic-bezier(0.16, 0.84, 0.22, 1);
  will-change: opacity, transform;
}

.reveal.reveal-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Prevent flash: hide reveal targets before JS attaches classes */
html.reveal-prep .course-card,
html.reveal-prep .teacher-card,
html.reveal-prep .about-card,
html.reveal-prep .stat-block,
html.reveal-prep .content-panel,
html.reveal-prep .home-cta-card {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

/* Stagger grid reveals (JS sets --reveal-i per item) */
.program-grid .reveal,
.teacher-grid .reveal,
.about-cards .reveal,
.stats-bar-inner .reveal {
  transition-delay: calc(min(var(--reveal-i, 0), 12) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  html.js body { transition: none; opacity: 1; }
  .reveal, .reveal.reveal-in {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0a3f66 0%, var(--navy-dark) 100%);
  border-bottom: 2px solid rgba(212, 168, 42, 0.35);
  box-shadow: 0 4px 24px rgba(8, 53, 86, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 1.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.site-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.site-logo--footer {
  height: 110px;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}

.logo-wordmark-en {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--yellow-bright);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-wordmark-ka {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

/* Desktop header layout: logo | centered nav | actions (no overlap) */
@media (min-width: 641px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
  }

  .main-nav {
    margin-left: 0;
    justify-self: center;
  }

  .header-actions {
    justify-self: end;
  }
}

.nav-pill {
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.2s, color 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--yellow-bright);
  background: rgba(212, 168, 42, 0.22);
}

/* CTA link inside mobile menu */
.nav-link--cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.lang-btn {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.lang-btn.active { color: var(--white); }

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--yellow-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--yellow-bright);
  border: 1.5px solid rgba(232, 192, 74, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-lg { padding: 0.8rem 1.6rem; font-size: 0.95rem; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--navy-light);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Video hero (doodle navy section) ── */
.video-hero {
  position: relative;
  background: var(--navy);
  color: var(--yellow);
  overflow: hidden;
}

/* Doodle edges from brand banner */
.doodle-edge {
  width: 100%;
  height: 64px;
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 1;
  pointer-events: none;
}

.doodle-edge--top {
  background-image: url('../images/brand/doodle-top.png');
  background-position: center top;
}

.doodle-edge--bottom {
  background-image: url('../images/brand/doodle-bottom.png');
  background-position: center bottom;
  transform: none;
}

/* Subtle scattered doodle feel in middle */
.video-hero::before {
  content: '';
  position: absolute;
  inset: 72px 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(240, 192, 64, 0.06) 0%, transparent 8%),
    radial-gradient(circle at 85% 60%, rgba(240, 192, 64, 0.05) 0%, transparent 10%),
    radial-gradient(circle at 45% 80%, rgba(240, 192, 64, 0.04) 0%, transparent 6%);
  pointer-events: none;
}

.video-hero-body {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: center;
}

.video-hero-intro {
  max-width: 540px;
}

.video-hero-logo {
  height: min(220px, 32vw);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.video-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-bright);
  margin-bottom: 0.75rem;
}

.video-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--yellow);
  margin-bottom: 0.85rem;
}

.video-hero-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.video-hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ── Sections ── */
.section { padding: 3.75rem 0; }

.section--after-hero {
  padding-top: 2.75rem;
}

.section-programs {
  background: var(--white);
}

.section-alt {
  background: var(--surface);
}

.section-header--center {
  justify-content: center;
  text-align: center;
}

.section-header--center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 0.65rem;
}

.section-about {
  background: var(--white);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--navy);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.2s;
}

.section-link:hover { color: var(--navy-light); }

/* ── Course cards ── */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.program-grid--full {
  grid-template-columns: repeat(3, 1fr);
}

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(12, 74, 122, 0.25);
}

.course-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.course-card-media {
  aspect-ratio: 4 / 3;
  background: var(--navy-dark);
  overflow: hidden;
  position: relative;
}

.course-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card-media img {
  transform: scale(1.04);
}

.course-card-media-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #e4eaf0 0%, #d0dae4 100%);
}

.course-card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.course-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 0.85rem;
}

.course-card-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--yellow-soft);
  border: 1px solid rgba(212, 168, 42, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.course-card-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  transition: color 0.2s;
}

.course-card:hover .course-card-more {
  color: var(--navy-light);
}

/* ── Page hero ── */
.page-hero {
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 50%, #0f5285 100%);
  color: var(--yellow);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 92% 45%, rgba(212, 168, 42, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 8% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3.5rem;
  align-items: center;
  padding: 2.5rem 0 2.75rem;
}

.page-hero-grid--solo {
  grid-template-columns: 1fr;
}

.page-hero--compact .page-hero-grid {
  padding: 2rem 0 2.25rem;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.page-breadcrumb a:hover {
  color: var(--yellow-bright);
}

.page-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.page-breadcrumb-current {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-bright);
  margin-bottom: 0.65rem;
}

.page-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.page-hero-mark {
  /* Match homepage hero logo sizing for consistency */
  height: min(220px, 32vw);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.28));
  opacity: 0.95;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 700;
  color: var(--yellow-bright);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  max-width: 16ch;
}

.page-hero-sub {
  margin-top: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  line-height: 1.75;
}

.page-hero .back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, color 0.2s;
}

.page-hero .back-link:hover {
  color: var(--yellow-bright);
  background: rgba(255, 255, 255, 0.12);
}

.page-hero .program-meta-bar {
  margin-top: 1rem;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--surface);
  padding: 1.5rem 0;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-block--gold {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-bright) 100%);
  border-color: transparent;
}

.stat-block--gold .stat-block-value {
  color: var(--navy-dark);
}

.stat-block--gold .stat-block-label {
  color: var(--navy);
}

.stat-block-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.stat-block-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ── Home CTA ── */
.home-cta {
  padding: 2.5rem 0 3.5rem;
  background: var(--off-white);
}

.home-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.home-cta-card p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--navy);
  max-width: 520px;
  line-height: 1.45;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.back-link:hover { color: var(--yellow); }

.program-meta-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.program-meta-bar span {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.content-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.program-detail-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.program-detail-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
}

.program-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--surface);
}

.program-detail-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rich-content {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ── Program detail ── */

.sidebar-card {
  padding: 1.35rem;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  box-shadow: var(--shadow-sm);
}

.sidebar-logo {
  width: 56px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.sidebar-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.sidebar-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.teacher-mini-list { list-style: none; }

.teacher-mini-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.teacher-mini-list li:last-child { border-bottom: none; }

.teacher-mini-list img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.teacher-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.teacher-mini-list strong {
  display: block;
  font-size: 0.82rem;
  color: var(--navy);
}

.teacher-mini-list span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── About ── */
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-intro-visual {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-hero-logo {
  object-fit: contain;
  max-height: 280px;
}

.about-intro-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.about-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-card-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--yellow-soft);
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Teachers ── */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.teacher-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.teacher-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.teacher-photo {
  aspect-ratio: 1;
  background: var(--navy);
  overflow: hidden;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(145deg, var(--navy-dark), var(--navy));
  color: var(--yellow-bright);
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.teacher-info { padding: 1.35rem; }

.teacher-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.teacher-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.2rem 0 0.5rem;
}

.teacher-bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.teacher-programs { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  background: var(--yellow-soft);
  color: var(--navy);
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 42, 0.2);
  transition: background 0.2s;
}

.tag:hover { background: var(--yellow); }

/* ── CTA strip ── */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(212, 168, 42, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-strip-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yellow);
}

.cta-strip p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 2rem 2.5rem;
  padding-bottom: 2.25rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow-bright);
  margin-bottom: 0.35rem;
}

.footer-col a,
.footer-col p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s;
  line-height: 1.5;
}

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

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .video-hero-intro { max-width: none; }
  .video-hero-actions { justify-content: center; }
  .video-hero-logo { margin: 0 auto; }
  .page-hero-grid { grid-template-columns: 1fr; text-align: left; }
  .page-hero-visual { display: none; }
  .page-hero h1 { max-width: none; }
  .logo-wordmark { display: none; }
  .program-grid,
  .program-grid--full { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .program-detail-grid { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .about-intro-visual { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-dark);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .main-nav.open { display: flex; }
  .nav-pill {
    border-radius: var(--radius);
    padding: 0.5rem;
  }
  .nav-link { padding: 0.6rem 0.85rem; }

  /* Keep header in one clean row */
  .header-inner {
    flex-wrap: nowrap;
    position: relative;
    height: var(--header-h);
    padding: 0.45rem 0;
    gap: 0.6rem;
  }

  /* Order: logo (left) → actions → hamburger (right) */
  .logo-link { order: 1; }
  .header-actions { order: 2; }
  .nav-toggle { order: 3; }

  .logo-link { gap: 0.55rem; }
  .site-logo { height: 66px; }

  .header-actions {
    width: auto;
    margin-left: auto;
    gap: 0.5rem;
  }

  .lang-switch {
    padding: 0.28rem 0.55rem;
    font-size: 0.74rem;
  }

  /* Hide big CTA in header; show it in the opened menu instead */
  .header-actions .btn { display: none; }
  .nav-link--cta { display: inline-flex; justify-content: center; }

  /* Burger stays at far right */
  .nav-toggle { margin-left: 0; }

  .programs-columns { grid-template-columns: 1fr; }
  .doodle-edge { height: 48px; }

  .program-grid,
  .program-grid--full { grid-template-columns: 1fr; }

  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .teacher-grid,
  .footer-inner { grid-template-columns: 1fr; }

  .home-cta-card { flex-direction: column; text-align: center; }
  .site-logo--footer { height: 80px; }
  .program-detail-actions { justify-content: center; }
}
