/* ============================================================
   Kigali German Language Institute — Public stylesheet
   Palette:  Navy #101828 · Green #15803D · Warm White #FCFCFA
             Soft Gray #F2F4F7 · Gold #D4A72C · Success #16A34A
   Type:     Poppins (display + body)
   ============================================================ */

:root {
  --navy: #101828;
  --navy-2: #1D2939;
  --navy-3: #344054;
  --brand: #15803D;
  --brand-dark: #166534;
  --brand-soft: #F0FDF4;
  --bg: #FCFCFA;
  --gray: #F2F4F7;
  --border: #E4E7EC;
  --muted: #667085;
  --gold: #D4A72C;
  --gold-soft: #FDF6E3;
  --green: #16A34A;
  --green-soft: #ECFDF3;
  --white: #FFFFFF;

  /* Hero: warm gallery-white ground */
  --hero-cream: #F6F1E7;

  /* Class-time accents: sunrise orange, midday yellow, night indigo */
  --time-morning: #F97316;
  --time-afternoon: #EAB308;
  --time-evening: #6366F1;

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .09);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy-3);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
h4, h5 { color: var(--navy); }

/* Tricolor accent — used sparingly */
.tricolor {
  height: 3px;
  background: linear-gradient(90deg, #101828 0 33.3%, #15803D 33.3% 66.6%, #D4A72C 66.6% 100%);
}


/* ---------- Icons8 (Line Awesome) icon font ---------- */
.las, .lar, .lab {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; line-height: 1; text-align: center;
  font-style: normal; flex-shrink: 0;
}

/* Class-time icons keep their own colour everywhere they appear */
.las.la-cloud-sun { color: var(--time-morning); }
.las.la-sun       { color: var(--time-afternoon); }
.las.la-moon      { color: var(--time-evening); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 18px; width: 18px; height: 18px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(21, 128, 61, .3); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21, 128, 61, .35); }

.btn-outline { border-color: var(--border); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { color: var(--brand); padding: 13px 6px; font-weight: 600; }
.btn-ghost:hover { gap: 12px; }

.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(252, 252, 250, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(16,24,40,.05); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; }
/* Wordmark: three stacked lines, so it needs width to stay legible */
.brand-logo { height: 54px; width: auto; display: block; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(21, 128, 61,.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; position: relative; }
.brand-text .bt-name { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.brand-text .bt-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-top: 2px; }
.brand-flag {
  position: absolute; left: 0; bottom: -3px;
  width: 34px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #101828 0 33.3%, #15803D 33.3% 66.6%, #D4A72C 66.6% 100%);
}
.brand-light .bt-name { color: #fff; }
.brand-light .bt-sub { color: rgba(255,255,255,.55); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 500; font-size: 15px; color: var(--navy-3); position: relative; padding: 6px 0; }
.nav a:not(.btn):hover { color: var(--navy); }
.nav a:not(.btn).active { color: var(--brand); font-weight: 600; }
.nav a:not(.btn).active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.btn-nav { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 8px; }
.nav-toggle i { font-size: 26px; width: 26px; height: 26px; }

/* Header sitting on the warm hero — blends with the cream ground until scrolled */
.site-header.on-hero:not(.scrolled) { background: rgba(246, 241, 231, .88); }

/* ---------- Hero ---------- */
.hero {
  --hero-curve: clamp(54px, 6.4vw, 98px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(620px, 88vh, 740px);
  padding: 150px 0 calc(var(--hero-curve) + 46px);
  background: var(--hero-cream);
}
.hero-inner { position: relative; width: 100%; }

.hero-copy { max-width: 600px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }

.hero h1 {
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--brand); font-style: normal; }

/* Hand-drawn brush stroke under a highlighted word */
.underline-brush { position: relative; display: inline-block; white-space: nowrap; }
.underline-brush svg {
  position: absolute;
  left: 0; bottom: -.21em;          /* clears the descender of "g" */
  width: 100%; height: .3em;
  overflow: visible;
  pointer-events: none;
}
.underline-brush path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hero-sub {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.btn-hero-dark {
  background: var(--navy);
  color: #fff;
  padding: 16px 36px;
  box-shadow: 0 14px 28px -12px rgba(16, 24, 40, .35);
}
.btn-hero-dark:hover { background: var(--navy-2); transform: translateY(-3px); box-shadow: 0 20px 34px -12px rgba(16, 24, 40, .4); }

.hero-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; color: var(--navy); }
.hero-link i { font-size: 17px; transition: transform .25s var(--ease); }
.hero-link:hover { color: var(--brand); }
.hero-link:hover i { transform: translateX(4px); }
.hero .btn:focus-visible, .hero-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Wavy bottom edge: the hero rolls into the section beneath it.
   Two offset crests give the edge some depth instead of a flat sweep. */
.hero-shape {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: var(--hero-curve);
  display: block;
  pointer-events: none;
  z-index: 3;
}
.hero-shape .wave-back { fill: var(--gray); opacity: .45; }
.hero-shape .wave-front { fill: var(--gray); }
.hero-shape path { transform-box: view-box; transform-origin: 0 0; }

/* The two layers drift against each other, like water over water */
@media (prefers-reduced-motion: no-preference) {
  .hero-shape .wave-front { animation: waveDriftLeft 19s linear infinite; }
  .hero-shape .wave-back  { animation: waveDriftRight 27s linear infinite; }
}

@keyframes waveDriftLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}
@keyframes waveDriftRight {
  from { transform: translateX(-1440px); }
  to   { transform: translateX(0); }
}

/* Photo bleeding to the right edge of the viewport */
.hero-media {
  position: absolute;
  top: 118px;
  right: 0;
  bottom: calc(var(--hero-curve) + 22px);
  width: min(46vw, 700px);
  border-radius: 36px 0 0 36px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(16, 24, 40, .35);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ----- Entrance, only when motion is welcome ----- */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim { opacity: 0; animation: heroRise .8s var(--ease) forwards; }
  .hero-copy .hero-anim:nth-child(1) { animation-delay: .08s; }
  .hero-copy .hero-anim:nth-child(2) { animation-delay: .18s; }
  .hero-copy .hero-anim:nth-child(3) { animation-delay: .28s; }
  .hero-media.hero-anim { animation: heroFade 1s var(--ease) .25s forwards; }

  /* wipe the brush stroke in once the headline has settled.
     A clip wipe rather than a dash offset: dash lengths render in screen
     units here, so they cannot cover the stretched path reliably. */
  .underline-brush svg {
    clip-path: inset(-60% 100% -60% -8%);
    animation: brushDraw .7s var(--ease) .75s forwards;
  }
}

@keyframes brushDraw {
  to { clip-path: inset(-60% -8% -60% -8%); }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroFade {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-gray { background: var(--gray); }
.section-navy { background: var(--navy); }

.section-head { max-width: 620px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.left { margin-left: 0; text-align: left; }
.section-navy .section-head h2 { color: #fff; }
.section-navy .section-head p { color: rgba(255,255,255,.62); }

/* ---------- Journey ---------- */
.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Continuous rail behind the nodes: pale at A1, brand-deep at B2.
   z-index keeps it above the cards' hover background, below the nodes. */
.journey-line {
  position: absolute;
  top: 67px; left: 12.5%; right: 12.5%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #C7EBD3 0%, #8DD3A8 38%, #3E9D63 72%, var(--brand) 100%);
  z-index: 1;
}

/* Selectors are scoped with .journey so the hover state outranks .reveal.visible */
.journey .journey-step {
  position: relative;
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  padding: 28px 18px 30px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: opacity .7s var(--ease), transform .35s var(--ease),
              background .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
/* The lift makes the card a stacking context, so raise it past the rail
   (z-index 1) — the card floats above the line instead of the line
   cutting across the node. */
.journey .journey-step:hover,
.journey .journey-step:focus-within {
  transform: translateY(-6px);
  z-index: 3;
  transition-delay: 0s;
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
.journey .journey-step:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

/* Progress ring — the conic fill shows how far along the pathway this stage sits */
.journey-node {
  display: block;
  position: relative;
  z-index: 2;
  width: 78px; height: 78px;
  margin: 0 auto 20px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #CFD7E0 0);
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.journey-node span {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .04);
  font-family: var(--font-display);
  font-weight: 700; font-size: 21px;
  letter-spacing: -.01em;
  color: var(--navy);
  transition: color .35s var(--ease), background .35s var(--ease);
}
.journey-step:hover .journey-node,
.journey-step:focus-within .journey-node {
  transform: scale(1.06);
  filter: drop-shadow(0 10px 18px rgba(21, 128, 61, .22));
}
.journey-step:hover .journey-node span,
.journey-step:focus-within .journey-node span {
  background: var(--brand-soft);
  color: var(--brand);
}

.journey-stage {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.journey-step b {
  display: block;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.journey-step em {
  display: block;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Closing note */
.journey-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 52px auto 0;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  color: var(--muted);
}
.journey-cta i { color: var(--brand); font-size: 18px; }
.journey-cta strong { color: var(--navy); font-weight: 600; }

/* "Learn more" hint — space is always reserved so the card never reflows */
.journey-more {
  display: block;
  margin-top: 14px;
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.journey-more i { font-size: 15px; margin-left: 4px; transition: transform .3s var(--ease); }
.journey .journey-step:hover .journey-more,
.journey .journey-step:focus-within .journey-more { opacity: 1; transform: none; }
.journey .journey-step:hover .journey-more i { transform: translateX(3px); }
/* Touch devices never hover, so keep the hint visible there */
@media (hover: none) {
  .journey-more { opacity: 1; transform: none; }
}

/* ---------- Journey — level detail dialog ---------- */
.level-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: 86vh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  color: var(--navy-3);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
/* Also positions the dialog for browsers falling back to the [open] attribute */
.level-modal[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 200;
  animation: lm-in .32s var(--ease);
}
.level-modal::backdrop { background: rgba(16, 24, 40, .55); }
.level-modal[open]::backdrop { animation: lm-fade .32s var(--ease); backdrop-filter: blur(3px); }

@keyframes lm-in   { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes lm-fade { from { opacity: 0; } }

body.modal-open { overflow: hidden; }

.lm-inner {
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 34px 32px 30px;
}

.lm-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: all .25s var(--ease);
}
.lm-close:hover { background: var(--gray); color: var(--navy); }
.lm-close i { font-size: 20px; }

.lm-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-right: 44px; }
.lm-head .journey-node { width: 64px; height: 64px; margin: 0; flex-shrink: 0; }
.lm-head .journey-node span { font-size: 18px; }
.lm-stage {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 5px;
}
.lm-head h3 { font-size: 22px; }
.lm-tag { font-size: 14px; color: var(--muted); margin-top: 2px; }

.lm-desc { font-size: 15px; line-height: 1.7; }

.lm-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.lm-meta span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gray);
  font-size: 13px; font-weight: 500;
  color: var(--navy);
}
.lm-meta i { font-size: 16px; color: var(--brand); }

.lm-points-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 13px;
}
.lm-points { display: grid; gap: 11px; margin-bottom: 28px; }
.lm-points li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; }
.lm-points i {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

.lm-actions { display: flex; gap: 10px; }
.lm-actions .btn { flex: 1; justify-content: center; }

/* ---------- Course cards ---------- */
/* start, not stretch: expanding one card on hover must not leave a void in its neighbours */
.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }

/* Accent deepens with the level, echoing the A1→B2 pathway above */
.course-card[data-level="A1"] { --accent: #57B37E; --accent-soft: #ECF7F1; }
.course-card[data-level="A2"] { --accent: #35A167; --accent-soft: #E6F4EC; }
.course-card[data-level="B1"] { --accent: #15803D; --accent-soft: #E0F1E7; }
.course-card[data-level="B2"] { --accent: #0E6330; --accent-soft: #DDEDE4; }

.course-card {
  position: relative;
  background: #fff;
  /* Outline as an inset shadow rather than a border — it sits inside the box,
     so the hover shadow swaps in cleanly with no 1px ring left behind. */
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 20px;
  padding: 26px 22px 22px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
/* Oversized ghost level code — depth without another element */
.course-card::after {
  content: attr(data-level);
  position: absolute; top: -18px; right: -4px;
  font-family: var(--font-display);
  font-size: 90px; font-weight: 800;
  line-height: 1; letter-spacing: -.04em;
  color: var(--navy);
  opacity: .04;
  pointer-events: none;
}
.course-card:hover, .course-card.open, .course-card:focus-visible {
  transform: translateY(-10px);
  box-shadow: 0 26px 50px -18px rgba(16, 24, 40, .32);
}

.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.cc-level {
  font-family: var(--font-display);
  font-size: 25px; font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent);
  width: 60px; height: 60px;
  background: var(--accent-soft);
  border-radius: 18px;
  display: grid; place-items: center;
  transition: transform .35s var(--ease), background .35s, color .35s;
}
.course-card:hover .cc-level, .course-card.open .cc-level {
  background: var(--accent); color: #fff;
  transform: rotate(-5deg) scale(1.06);
}

.badge-popular {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border: 0;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(212, 167, 44, .4);
}
.badge-popular i { font-size: 12px; width: 12px; height: 12px; color: var(--navy); }

.course-card h3 { font-size: 21px; margin-bottom: 4px; letter-spacing: -.02em; }
.cc-tag { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

/* Duration reads as a chip rather than loose text */
.cc-meta {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 12.5px; font-weight: 600;
  color: var(--navy-3);
  background: var(--gray);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.cc-meta i { font-size: 14px; width: 14px; height: 14px; }

/* auto margin pins price + CTA to the bottom so all four cards line up */
.cc-price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 26px; font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.cc-price small { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

/* Books & materials line under the tuition figure */
.cc-extra { margin-top: 7px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.cc-extra b { color: var(--navy); font-weight: 700; }
.cc-extra span { display: block; font-size: 11px; opacity: .85; }
.is-popular .cc-extra { color: rgba(255,255,255,.68); }
.is-popular .cc-extra b { color: #fff; }

.cc-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), opacity .35s .05s, margin .45s var(--ease);
}
.course-card:hover .cc-reveal, .course-card.open .cc-reveal { max-height: 340px; opacity: 1; margin-top: 18px; }

.cc-reveal-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cc-reveal ul { margin-bottom: 16px; }
.cc-reveal li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; padding: 3.5px 0; color: var(--navy-3); }
.cc-reveal li i { font-size: 15px; width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.cc-link { margin-top: 16px; font-size: 14.5px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s; }
.cc-link:hover { gap: 11px; }
.cc-link i { font-size: 16px; width: 16px; height: 16px; }

/* ---------- Featured level (is_popular) — inverted card ---------- */
.course-card.is-popular {
  --accent: var(--gold);
  background: linear-gradient(165deg, #1E9A50 0%, var(--brand) 52%, #0E5B2B 100%);
  box-shadow: 0 20px 44px -16px rgba(21, 128, 61, .55);
}
/* Needs its own hover rule — it sits later in the file than .course-card:hover
   and would otherwise keep the resting shadow */
.course-card.is-popular:hover, .course-card.is-popular.open {
  box-shadow: 0 30px 56px -18px rgba(21, 128, 61, .6);
}
.course-card.is-popular::after { color: #fff; opacity: .07; }
.is-popular h3, .is-popular .cc-price { color: #fff; }
.is-popular .cc-tag { color: rgba(255,255,255,.6); }
.is-popular .cc-price { border-top-color: rgba(255,255,255,.14); }
.is-popular .cc-price small { color: rgba(255,255,255,.55); }
.is-popular .cc-meta { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.is-popular .cc-level { background: rgba(255,255,255,.12); color: #fff; }
.is-popular:hover .cc-level { background: var(--gold); color: var(--navy); }
.is-popular .cc-reveal-title { color: rgba(255,255,255,.5); }
.is-popular .cc-reveal li { color: rgba(255,255,255,.78); }
.is-popular .cc-reveal li i { color: var(--gold); }
.is-popular .btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 4px 14px rgba(212,167,44,.35); }
.is-popular .btn-primary:hover { background: #E4B93C; }

/* ---------- Why us ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-icon i { font-size: 24px; width: 24px; height: 24px; }
.feature:nth-child(2) .feature-icon { background: var(--gold-soft); color: var(--gold); }
.feature:nth-child(3) .feature-icon { background: var(--green-soft); color: var(--green); }
.feature:nth-child(4) .feature-icon { background: #EFF4FF; color: #2952CC; }
.feature h3 { font-family: var(--font-body); font-weight: 700; font-size: 17.5px; margin-bottom: 9px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- Future / opportunity ---------- */
.future { position: relative; overflow: hidden; }
/* Germany map motif. germany.jpg is artwork on a white field, so the white is
   knocked out into a transparent PNG (germany-map.png) — dropped in as-is the
   white block would fight the navy and flatten the text contrast. */
.future::before {
  content: '';
  position: absolute;
  /* Sized by height so the whole outline fits inside the section — sized by
     width it overflowed and read as coloured blobs instead of Germany. */
  top: 50%; right: 10px;
  transform: translateY(-50%);
  height: 88%;
  aspect-ratio: 879 / 1100;
  background: url('../img/germany-map.png') no-repeat center / contain;
  /* Lifts the near-black north so the whole silhouette reads over navy */
  filter: brightness(1.55) saturate(1.25);
  opacity: .17;
  pointer-events: none;
}
/* Content rides above the motif */
.future .container { position: relative; z-index: 1; }
.future h2 { font-size: clamp(30px, 4vw, 46px); color: #fff; max-width: 560px; }
.future h2 em { color: var(--gold); }
.future-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
/* White cards on the navy band — text flips to dark so it stays readable */
.future-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.future-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
/* Bare icon — no tile behind it, so it sits flush with the text below */
.future-card .fc-icon { color: var(--brand); display: block; margin-bottom: 14px; }
.future-card .fc-icon i { font-size: 32px; width: 32px; height: 32px; }
.future-card h3 { color: var(--navy); font-family: var(--font-body); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.future-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 26px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(21, 128, 61,.4);
}
.cta-band::after {
  content: '';
  position: absolute; left: -60px; bottom: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); max-width: 460px; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 10px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 150px 0 64px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 16px 0 14px; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ---------- Course detail ---------- */
.course-hero { padding: 150px 0 72px; }
.course-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.level-chip {
  display: inline-grid; place-items: center;
  width: 74px; height: 74px;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(21, 128, 61,.3);
  margin-bottom: 22px;
}
.course-hero h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 12px; }
.course-hero .course-tagline { font-size: 19px; color: var(--muted); margin-bottom: 26px; }
.course-desc { font-size: 16px; color: var(--navy-3); max-width: 560px; }

.enroll-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 32px 30px;
  position: sticky; top: 100px;
}
.enroll-box .eb-price { font-size: 34px; font-weight: 800; color: var(--navy); }
.enroll-box .eb-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.enroll-box .eb-extra { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.enroll-box .eb-extra b { color: var(--navy); font-weight: 700; }
.enroll-box .eb-extra span { display: block; font-size: 12px; opacity: .9; }
.enroll-box .eb-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--gray); font-size: 14.5px; }
.enroll-box .eb-row:last-of-type { border-bottom: 0; margin-bottom: 18px; }
.enroll-box .eb-row i { font-size: 17px; width: 17px; height: 17px; }
/* everything except the class-time icons, which carry their own colour */
.enroll-box .eb-row i:not(.la-cloud-sun):not(.la-sun):not(.la-moon) { color: var(--brand); }

.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.learn-item {
  display: flex; gap: 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.learn-item i { font-size: 20px; width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.learn-item b { display: block; color: var(--navy); font-size: 15.5px; }

/* ---------- Enrollment wizard ---------- */
.enroll-wrap { max-width: 780px; margin: 0 auto; }

.steps-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.step-dot { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; width: 90px; }
.step-dot .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  color: var(--muted);
  transition: all .3s var(--ease);
}
.step-dot span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.step-dot.active .num { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); }
.step-dot.active span { color: var(--navy); }
.step-dot.done .num { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 -18px 26px; }

.enroll-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.enroll-card h2 { font-size: 25px; margin-bottom: 6px; }
.enroll-card .step-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.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: 14px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(21, 128, 61,.09);
  background: #fff;
}
.field .hint { font-size: 12.5px; color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: all .25s var(--ease);
  background: #fff;
  height: 100%;
}
.choice label:hover { border-color: #CBD2DC; transform: translateY(-2px); }
.choice input:checked + label {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 4px rgba(21, 128, 61,.08);
}
.choice input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice .ch-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.choice .ch-level { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--navy); }
.choice .ch-price { font-weight: 700; font-size: 14.5px; color: var(--brand); }
.choice .ch-name { font-weight: 600; font-size: 15px; color: var(--navy); }
.choice .ch-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.choice .ch-emoji { font-size: 24px; margin-bottom: 8px; display: block; }

.summary-box { background: var(--gray); border-radius: 14px; padding: 24px; margin-bottom: 22px; }
.summary-box .sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; border-bottom: 1px dashed var(--border); }
.summary-box .sum-row:last-child { border-bottom: 0; }
.summary-box .sum-row span { color: var(--muted); }
.summary-box .sum-row b { color: var(--navy); text-align: right; }
.summary-box .sum-total { font-size: 18px; }
.summary-box .sum-total b { color: var(--brand); }

.pay-note {
  display: flex; gap: 12px;
  background: var(--gold-soft);
  border: 1px solid #F2E4BC;
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  font-size: 14px;
  color: #7A5C0F;
  margin-bottom: 26px;
}
.pay-note i { font-size: 19px; width: 19px; height: 19px; flex-shrink: 0; color: var(--gold); }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }

.alert { border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 24px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert i { font-size: 19px; width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: var(--brand-soft); border: 1px solid #F7C6C2; color: var(--brand-dark); }
.alert-success { background: var(--green-soft); border: 1px solid #B8E6C9; color: #15803D; }
.alert ul { margin-top: 4px; }
.alert li { padding: 1px 0; }

/* ---------- Success page ---------- */
.success-card { max-width: 620px; margin: 0 auto; text-align: center; }
.success-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid; place-items: center;
  margin: 0 auto 26px;
}
.success-icon i { font-size: 40px; width: 40px; height: 40px; }
.success-card h1 { font-size: 34px; margin-bottom: 12px; }
.success-card > p { color: var(--muted); margin-bottom: 30px; }
.success-card .summary-box { text-align: left; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 18px; }
.about-grid p { color: var(--navy-3); margin-bottom: 14px; }
.about-panel {
  border-radius: 24px;
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 44px 40px;
  position: relative; overflow: hidden;
}
.about-panel::after {
  content: 'Ü';
  position: absolute; right: -20px; bottom: -80px;
  font-family: var(--font-display);
  font-size: 300px; color: rgba(255,255,255,.04); line-height: 1;
}
.about-panel .stat { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.about-panel .stat:last-child { border-bottom: 0; }
.about-panel .stat b { display: block; font-family: var(--font-display); font-size: 36px; color: var(--gold); }
.about-panel .stat span { color: rgba(255,255,255,.65); font-size: 14.5px; }

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

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.contact-item .ci-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.contact-item .ci-icon i { font-size: 21px; width: 21px; height: 21px; }
.contact-item b { display: block; color: var(--navy); margin-bottom: 2px; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 14.5px; }
.contact-item a:hover { color: var(--brand); }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-sm); }

/* White footer — every colour flips off the old navy ground */
.site-footer { background: var(--white); color: var(--muted); margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 64px 24px 44px;
}
.footer-brand p { font-size: 14.5px; margin-top: 18px; max-width: 300px; }
.site-footer h4 { color: var(--navy); font-size: 15px; margin-bottom: 16px; }
.site-footer a, .site-footer span { display: block; font-size: 14.5px; padding: 5px 0; color: var(--muted); }
.site-footer .brand { display: flex; align-items: center; gap: 12px; padding: 0; }
/* The white pill existed to lift the mark off the navy — pointless on white */
.site-footer .brand-logo { height: 62px; }
.site-footer .brand-text, .site-footer .brand-text span { padding: 0; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.footer-bottom a { padding: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .journey { gap: 0; max-width: 100%; }
  .journey-line { top: 58px; }
  .journey .journey-step { padding: 24px 8px 26px; }
  .journey .journey-node { width: 68px; height: 68px; margin-bottom: 16px; }
  .journey .journey-node span { font-size: 19px; }
  .journey .journey-step b { font-size: 15px; }
  .journey .journey-step em { font-size: 13.5px; }
  .courses-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 0; padding: 128px 0 calc(var(--hero-curve) + 40px); flex-direction: column; align-items: stretch; }
  .hero-copy { max-width: 100%; }
  .hero-sub { max-width: 560px; }
  .hero-media { position: static; width: min(560px, 100% - 48px); height: 360px; margin: 48px auto 0; border-radius: 28px; }
  .course-hero-grid { grid-template-columns: 1fr; }
  .enroll-box { position: static; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .hero { padding: 116px 0 calc(var(--hero-curve) + 32px); }
  .hero h1 { line-height: 1.08; }
  .hero-media { height: 300px; margin-top: 40px; border-radius: 24px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: all .3s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--gray); }
  .btn-nav { margin: 14px 0 0; justify-content: center; }
  /* Journey folds into a vertical timeline */
  .journey { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
  .journey-line { display: none; }
  .journey .journey-step {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: start;
    column-gap: 20px;
    text-align: left;
    padding: 18px 16px 22px;
  }
  .journey .journey-step:hover, .journey .journey-step:focus-within { transform: none; }
  .journey .journey-node { grid-column: 1; grid-row: 1 / span 4; width: 62px; height: 62px; margin: 0; }
  .journey .journey-node span { font-size: 18px; }
  .journey .journey-stage, .journey .journey-step b, .journey .journey-step em,
  .journey .journey-more { grid-column: 2; }
  .journey-more { margin-top: 8px; font-size: 12.5px; }
  /* Vertical rail linking each node to the next */
  .journey .journey-step::after {
    content: '';
    position: absolute;
    top: 84px; bottom: -18px; left: 46px;
    width: 2px;
    background: linear-gradient(180deg, #C7EBD3, #8DD3A8);
    z-index: 1;
  }
  .journey .journey-step:last-child::after { display: none; }
  .journey-cta { margin-top: 40px; padding: 12px 22px; font-size: 14px; text-align: center; }

  .lm-inner { padding: 28px 22px 24px; }
  .lm-head { gap: 14px; margin-bottom: 18px; }
  .lm-head .journey-node { width: 56px; height: 56px; }
  .lm-head .journey-node span { font-size: 16px; }
  .lm-head h3 { font-size: 20px; }
  .lm-actions { flex-direction: column; }

  .future-grid, .values-grid { grid-template-columns: 1fr; }
  /* Motif sits behind a single column of cards — keep it faint */
  .future::before { width: 300px; right: -90px; top: 34%; opacity: .1; }
  .cta-band { flex-direction: column; text-align: center; padding: 48px 28px; }
  .form-grid, .choice-grid, .learn-grid { grid-template-columns: 1fr; }
  .enroll-card { padding: 28px 22px; }
  .steps-bar { margin-bottom: 34px; }
  .step-dot { width: auto; }
  .step-dot span { display: none; }
  .step-line { margin-bottom: 0; }
}

@media (max-width: 480px) {
  .brand-logo { height: 44px; }
  .brand-text .bt-name { font-size: 15px; }
  .brand-text .bt-sub { font-size: 9px; }
  .courses-grid, .features-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { gap: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-media { height: 240px; border-radius: 20px; }
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  display: inline-flex; align-items: center; gap: 0;
  flex-direction: row-reverse;          /* icon hugs the corner, label opens leftward */
  height: 58px;
  padding: 0;
  border-radius: 999px;
  background: #25D366;                      /* WhatsApp brand green */
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
  overflow: hidden;
  transition: gap .3s var(--ease), padding-left .3s var(--ease),
              box-shadow .3s var(--ease), transform .3s var(--ease);
}
.wa-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.wa-icon i { font-size: 31px; width: 31px; height: 31px; }

/* Label is collapsed until hover, so the button stays a tidy circle at rest */
.wa-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-size: 15px; font-weight: 600;
  transition: max-width .35s var(--ease), opacity .25s var(--ease);
}
.wa-float:hover, .wa-float:focus-visible {
  gap: 4px;
  padding-left: 22px;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, .5);
}
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 200px; opacity: 1; }

/* Pulse ring — draws the eye once the page settles */
.wa-float::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
  .wa-float { right: 16px; bottom: 16px; height: 52px; }
  .wa-icon { width: 52px; height: 52px; }
  .wa-icon i { font-size: 28px; width: 28px; height: 28px; }
  .wa-float::after { width: 52px; height: 52px; }
}

/* ---------- Enrollment: books & materials choice ---------- */
.materials-pick {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.materials-pick .mp-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--navy); }
.materials-pick .mp-sub { font-size: 14px; color: var(--muted); margin: 3px 0 16px; }
.mp-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px) { .mp-options { grid-template-columns: 1fr; } }

/* ---------- "You still need to pick this" highlight ---------- */
.needs-pick {
  border-radius: var(--radius);
  animation: pick-pulse 1.15s var(--ease) 2;
}
@keyframes pick-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
  50%      { box-shadow: 0 0 0 7px rgba(21, 128, 61, .2); }
}
/* Dashed border block gets a solid brand edge while it is being pointed at */
.materials-pick.needs-pick { border-color: var(--brand); border-style: solid; }

/* SweetAlert2 dialogs in the site's own type and shape */
.kgi-swal { border-radius: 20px !important; font-family: var(--font-body) !important; }
.kgi-swal .swal2-title { font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.kgi-swal .swal2-html-container { font-size: 15px; color: var(--navy-3); }
.kgi-swal .swal2-confirm { border-radius: 999px !important; padding: 12px 28px !important; font-weight: 600; }

/* ---------- Timetable (courses page) ---------- */
.timetable { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.tt-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tt-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); background: var(--gray); }
.tt-head h3 { font-size: 17px; letter-spacing: -.01em; }
.tt-head span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tt-block table { width: 100%; border-collapse: collapse; }
.tt-block th {
  text-align: left; padding: 10px 20px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border);
}
.tt-block td { padding: 13px 20px; border-bottom: 1px solid var(--gray); font-size: 14px; }
.tt-block tr:last-child td { border-bottom: 0; }
.tt-name { font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.tt-name i { font-size: 18px; }
.tt-time { white-space: nowrap; font-weight: 600; color: var(--navy); }
.tt-days { white-space: nowrap; color: var(--muted); font-size: 13px; }

/* Online sessions get their own accent alongside the class-time icons */
.las.la-laptop { color: #2952CC; }

/* ---------- Grouped session picker (enrollment step 3) ---------- */
.sched-group + .sched-group { margin-top: 26px; }
.sched-group .sg-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sched-group .sg-head h3 { font-size: 16px; letter-spacing: -.01em; }
.sched-group .sg-head span { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) { .timetable { grid-template-columns: 1fr; } }

/* ---------- Hero: card that flips between two classroom photos ---------- */
.hero-media { perspective: 1800px; }
.hero-flip {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.1s var(--ease);
}
.hero-flip.flipped { transform: rotateY(180deg); }
.hf-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden;
}
.hf-back { transform: rotateY(180deg); }
.hf-face img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Without 3D support the back face would sit on top of the front one */
@supports not (transform-style: preserve-3d) {
  .hf-back { display: none; }
}
/* Hold on one photo for anyone who does not want motion */
@media (prefers-reduced-motion: reduce) {
  .hero-flip { transition: none; }
  .hero-flip.flipped { transform: none; }
}
