/**
 * King Kong Market — home page styles
 *
 * Floating pill header, full-bleed hero, layered rounded sections, glass cards
 * and light parallax. Home page only; inner pages use king-kong.css.
 */

:root {
  --kh-navy: #0d202c;
  --kh-deep: #091923;
  --kh-teal: #367d78;
  --kh-teal-d: #2a6662;
  --kh-mint: #7ea8a5;
  --kh-cream: #f8f6f0;
  --kh-sand: #e8dfd0;
  --kh-ink: #142b3b;
  --kh-muted: #5d6a70;
  --kh-focus: #d79532;
  --kh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --kh-r: clamp(2rem, 5vw, 4.5rem);
  --kh-section: clamp(4.5rem, 8vw, 8rem);
  --kh-wrap: 80rem;
  --kh-gut: clamp(1.25rem, 4vw, 4rem);
  --kh-font: 'Plus Jakarta Sans', 'Noto Sans SC', 'Noto Sans', system-ui, -apple-system, sans-serif;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

*,
*::before,
*::after { box-sizing: inherit; }

body.kkm-front {
  margin: 0;
  background: var(--kh-cream);
  font-family: var(--kh-font);
  -webkit-font-smoothing: antialiased;
}

body.kh-menu-open { overflow: hidden; }

.kh-shell { background: var(--kh-cream); color: var(--kh-ink); overflow-x: clip; }

:where(.kh-shell) img { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.kh-shell) h1,
:where(.kh-shell) h2,
:where(.kh-shell) h3 { margin: 0; font-family: var(--kh-font); letter-spacing: -0.035em; }
:where(.kh-shell) p { margin: 0; }
:where(.kh-shell) a { color: inherit; text-decoration: none; }
:where(.kh-shell) ul { margin: 0; padding: 0; list-style: none; }

.kh-main { overflow: clip; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.kh-wrap {
  width: min(100% - 2 * var(--kh-gut), var(--kh-wrap));
  margin-inline: auto;
}

/* ---------- Progress ---------- */

.kh-progress { position: fixed; inset: 0 0 auto 0; z-index: 90; height: 3px; pointer-events: none; }

.kh-progress i {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--kh-teal), var(--kh-mint), var(--kh-sand));
}

/* ---------- Shared type, buttons, links ---------- */

.kh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font: 700 0.74rem var(--kh-font);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kh-teal);
}

.kh-eyebrow::before { content: ""; width: 2.25rem; height: 2px; border-radius: 2px; background: currentColor; }
.kh-eyebrow--light { color: var(--kh-mint); }

.kh-h2 {
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--kh-navy);
}

.kh-h2 em { font-style: normal; color: var(--kh-teal); }

.kh-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--kh-muted); }

.kh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0 1.9rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem var(--kh-font);
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s var(--kh-ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
}

.kh-btn svg { flex: none; width: 18px; height: 18px; transition: transform 0.35s var(--kh-ease); }
.kh-btn:hover { transform: translateY(-3px); }
.kh-btn:hover svg { transform: translateX(5px); }

.kh-btn--primary { background: var(--kh-teal); color: #ffffff; box-shadow: 0 12px 30px rgba(54, 125, 120, 0.25); }
.kh-btn--primary:hover { background: var(--kh-teal-d); }
.kh-btn--outline { border-color: var(--kh-navy); background: transparent; color: var(--kh-navy); }
.kh-btn--outline:hover { background: var(--kh-navy); color: #ffffff; }
.kh-btn--light { background: var(--kh-sand); color: var(--kh-navy); box-shadow: 0 12px 32px rgba(13, 32, 44, 0.25); }
.kh-btn--light:hover { background: #ffffff; }

.kh-btn--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.kh-btn--ghost:hover { border-color: #ffffff; background: #ffffff; color: var(--kh-navy); }

.kh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 700 0.95rem var(--kh-font);
  color: var(--kh-teal);
}

.kh-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--kh-ease); }
.kh-link:hover svg { transform: translateX(5px); }

.kh-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(54, 125, 120, 0.12);
  font: 700 0.62rem var(--kh-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kh-teal);
}

.kh-tag--outline { border: 1px solid currentColor; background: transparent; }

.kh-btn:focus-visible,
.kh-link:focus-visible,
.kh-shell a:focus-visible,
.kh-shell button:focus-visible { outline: 3px solid var(--kh-focus); outline-offset: 3px; }

/* ---------- Reveal ---------- */

.kh-js .kh-r {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.9s var(--kh-ease), transform 1s var(--kh-ease);
  transition-delay: var(--rd, 0s);
}

.kh-js .kh-r.is-in { opacity: 1; transform: none; }

.kh-rise { opacity: 0; transform: translateY(28px); animation: khRise 1s var(--kh-ease) forwards; animation-delay: var(--d, 0s); }
@keyframes khRise { to { opacity: 1; transform: none; } }

.kh-line { display: block; overflow: hidden; margin-bottom: -0.12em; padding-bottom: 0.12em; }
.kh-line > span { display: block; transform: translateY(110%); animation: khLine 1.2s var(--kh-ease) forwards; animation-delay: var(--d, 0s); }
@keyframes khLine { to { transform: none; } }

/* ---------- Header ---------- */

.kh-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  padding: clamp(0.75rem, 1.6vw, 1.25rem) var(--kh-gut);
  pointer-events: none;
}

.admin-bar .kh-header { top: 32px; }

.kh-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(var(--kh-wrap) + 10rem);
  margin-inline: auto;
  pointer-events: none;
}

.kh-header__inner > * { pointer-events: auto; }

.kh-wordmark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-height: 3.75rem;
  padding: 0.4rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--kh-navy);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(13, 32, 44, 0.3);
}

.kh-wordmark__word { font: 800 1.7rem/1 var(--kh-font); letter-spacing: -0.08em; }
.kh-wordmark__sub { font: 700 0.55rem/1 var(--kh-font); letter-spacing: 0.24em; text-transform: uppercase; color: var(--kh-mint); }
.kh-shell .kh-wordmark__img { width: auto; height: 2.6rem; object-fit: contain; }

.kh-nav {
  display: flex;
  margin-inline: auto;
  gap: 0.15rem;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(13, 32, 44, 0.6);
  box-shadow: 0 14px 40px rgba(13, 32, 44, 0.22);
  color: #ffffff;
  font-size: 0.8rem;
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.kh-nav__item { position: relative; display: flex; align-items: center; border-radius: 999px; }

.kh-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  font: 600 0.8rem var(--kh-font);
  transition: background 0.25s, color 0.25s;
}

.kh-nav__link svg { width: 10px; height: 10px; }
.kh-nav__item:hover > .kh-nav__link,
.kh-nav__link.is-active { background: var(--kh-sand); color: var(--kh-navy); }

.kh-nav__dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 13rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  background: var(--kh-navy);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.3s var(--kh-ease), visibility 0.25s;
}

.kh-nav__item:hover .kh-nav__dropdown,
.kh-nav__item:focus-within .kh-nav__dropdown { opacity: 1; visibility: visible; transform: none; }

.kh-nav__dropdown a { display: block; padding: 0.8rem 1rem; border-radius: 0.8rem; font: 600 0.9rem var(--kh-font); color: #ffffff; }
.kh-nav__dropdown a:hover { background: var(--kh-teal); }

.kh-header__actions { display: flex; align-items: center; gap: 0.75rem; }

.kh-lang { position: relative; }

.kh-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.75rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(13, 32, 44, 0.6);
  box-shadow: 0 14px 40px rgba(13, 32, 44, 0.22);
  color: #ffffff;
  font: 600 0.8rem var(--kh-font);
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.kh-lang__toggle svg { width: 16px; height: 16px; }

.kh-lang__menu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 13rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  background: var(--kh-navy);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.3s var(--kh-ease), visibility 0.25s;
}

.kh-lang.is-open .kh-lang__menu { opacity: 1; visibility: visible; transform: none; }

.kh-lang__option { display: flex; gap: 0.75rem; padding: 0.8rem 1rem; border-radius: 0.8rem; font: 600 0.9rem var(--kh-font); color: #ffffff; }
.kh-lang__option:hover,
.kh-lang__option.is-active { background: var(--kh-teal); }
.kh-lang__code { font-weight: 800; opacity: 0.7; }

.kh-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.75rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  background: var(--kh-teal);
  box-shadow: 0 14px 40px rgba(13, 32, 44, 0.28);
  color: #ffffff;
  font: 700 0.9rem var(--kh-font);
  transition: transform 0.35s var(--kh-ease), background 0.25s;
}

.kh-cta:hover { background: var(--kh-navy); transform: translateY(-2px); }
.kh-cta svg { width: 18px; height: 18px; }

.kh-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--kh-cream);
  color: var(--kh-navy);
  box-shadow: 0 14px 40px rgba(13, 32, 44, 0.22);
  cursor: pointer;
}

.kh-burger svg { width: 24px; height: 24px; }

.kh-menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6.5rem var(--kh-gut) 3rem;
  overflow-y: auto;
  background: radial-gradient(60rem 40rem at 90% 0, rgba(54, 125, 120, 0.25), transparent 60%), var(--kh-navy);
  color: #ffffff;
  clip-path: circle(0 at calc(100% - 3.5rem) 3.5rem);
  visibility: hidden;
  transition: clip-path 0.7s var(--kh-ease);
}

.kh-menu.is-open { clip-path: circle(150% at calc(100% - 3.5rem) 3.5rem); visibility: visible; }

.kh-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font: 700 clamp(1.5rem, 6.5vw, 2.4rem) var(--kh-font);
  letter-spacing: -0.04em;
}

.kh-menu__link small { font: 700 0.7rem var(--kh-font); letter-spacing: 0.2em; color: var(--kh-mint); }
.kh-menu__langs { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.kh-menu__langs a { padding: 0.6rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; font: 700 0.8rem var(--kh-font); }
.kh-menu__langs a.is-active { background: var(--kh-sand); color: var(--kh-navy); }
.kh-menu .kh-btn { align-self: flex-start; margin-top: 1.75rem; }

/* Header once the page has scrolled: solid pills that stand out on light sections */

.kh-wordmark,
.kh-nav,
.kh-lang__toggle,
.kh-cta,
.kh-burger { transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s, transform 0.35s var(--kh-ease); }

.kh-header.is-scrolled .kh-wordmark {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--kh-navy);
  box-shadow: 0 12px 34px rgba(13, 32, 44, 0.35);
}

.kh-header.is-scrolled .kh-nav,
.kh-header.is-scrolled .kh-lang__toggle {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(13, 32, 44, 0.97);
  box-shadow: 0 12px 34px rgba(13, 32, 44, 0.35);
}

.kh-header.is-scrolled .kh-cta { box-shadow: 0 12px 34px rgba(13, 32, 44, 0.35); }

.kh-header.is-scrolled .kh-burger {
  background: var(--kh-navy);
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(13, 32, 44, 0.35);
}

/* ---------- Hero ---------- */

.kh-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* The full screen, plus the wave at the bottom edge, which shows as you scroll. */
  --kh-wave-h: clamp(3.5rem, 8vw, 7.5rem);
  min-height: calc(100vh + var(--kh-wave-h));
  min-height: calc(100svh + var(--kh-wave-h));
  overflow: hidden;
  background: var(--kh-navy);
  color: #ffffff;
}

.kh-hero__media { position: absolute; inset: -6% 0; will-change: transform; }

.kh-hero__media img,
.kh-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.kh-hero__media img { animation: khZoom 24s ease-in-out infinite alternate; }
@keyframes khZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }

/* Slow crossfade of the city photos (5 slides x 7s) while there is no video. */
.kh-hero__media .kh-hero__slide {
  opacity: 0;
  object-position: 50% var(--y, 55%);
  animation: khSlide 30s linear infinite;
  animation-delay: calc(var(--i, 0) * 10s - 2s);
}
.kh-hero__media .kh-hero__slide:only-child { opacity: 1; animation: khZoom 24s ease-in-out infinite alternate; }
@keyframes khSlide {
  0%   { opacity: 0; transform: scale(1); }
  7%   { opacity: 1; }
  33%  { opacity: 1; }
  40%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}

/* Same overlay as the KKM design: dark at the top and bottom, and on the left behind the text. */
.kh-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 25, 35, 0.45) 0%, rgba(13, 32, 44, 0.05) 26%, rgba(13, 32, 44, 0.2) 55%, rgba(9, 25, 35, 0.8) 100%),
    linear-gradient(90deg, rgba(9, 25, 35, 0.5), rgba(0, 0, 0, 0) 68%);
}

/* Same sizes as the KKW hero: the headline scales with the screen height as
   well as its width, so the whole hero fits on one screen. */
.kh-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--kh-gut), var(--kh-wrap));
  margin-inline: auto;
  padding: 7rem 0 calc(var(--kh-wave-h) + clamp(3rem, 5vh, 4.5rem));
}

.kh-hero .kh-eyebrow { color: #ffffff; text-shadow: 0 1px 12px rgba(9, 25, 35, 0.55); }

.kh-hero h1 {
  filter: drop-shadow(0 2px 18px rgba(9, 25, 35, 0.4));
  max-width: 62rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  font-size: clamp(2.4rem, min(5.6vw, 8.6vh), 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #ffffff;
}

.kh-hero h1 em {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: var(--kh-mint);
  background: linear-gradient(90deg, var(--kh-sand), var(--kh-mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kh-hero .kh-line { margin-bottom: -0.2em; padding-bottom: 0.2em; }
.kh-hero .kh-line > span { transform: translateY(135%); }
.kh-hero__lede { max-width: 41rem; font-size: clamp(1rem, min(1.3vw, 2.3vh), 1.15rem); line-height: 1.7; color: #f1f6f8; text-shadow: 0 1px 14px rgba(9, 25, 35, 0.45); }
.kh-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.kh-hero__caption {
  position: absolute;
  z-index: 3;
  right: var(--kh-gut);
  bottom: calc(var(--kh-wave-h) + clamp(3rem, 5vh, 4.5rem));
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 21rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  background: rgba(13, 32, 44, 0.4);
  color: #ffffff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.kh-hero__caption span { font: 800 0.68rem var(--kh-font); color: var(--kh-mint); }
.kh-hero__caption p { margin: 0; font-size: 0.85rem; line-height: 1.6; }

.kh-hero__connection {
  position: absolute;
  z-index: 3;
  right: var(--kh-gut);
  bottom: calc(var(--kh-wave-h) + clamp(3rem, 5vh, 4.5rem) + 7rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font: 700 0.62rem var(--kh-font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
}

.kh-hero__connection i { position: relative; width: 6rem; height: 2px; background: var(--kh-mint); }
.kh-hero__connection i::after { content: ""; position: absolute; right: 0; top: 50%; width: 0.4rem; height: 0.4rem; border: 2px solid var(--kh-mint); border-radius: 50%; background: var(--kh-navy); transform: translateY(-50%); }

/* Pause button: bottom right, clear of the buttons. */
.kh-hero__controls { position: absolute; z-index: 3; right: var(--kh-gut); bottom: calc(var(--kh-wave-h) + clamp(3rem, 5vh, 4.5rem)); display: flex; gap: 0.6rem; }

.kh-hero__ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(13, 32, 44, 0.45);
  color: #ffffff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.kh-hero__ctrl svg { width: 16px; height: 16px; }

.kh-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 4;
  display: block;
  width: 100%;
  height: clamp(3.5rem, 8vw, 7.5rem);
  pointer-events: none;
}

.kh-wave path { fill: var(--kh-cream); }

/* ---------- Intro ---------- */

.kh-intro {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(6rem, 10vw, 10rem);
  background: radial-gradient(40rem 34rem at 100% 10%, rgba(54, 125, 120, 0.13), transparent 65%), var(--kh-cream);
}

.kh-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  grid-template-areas: "e e" "t c";
  gap: 1rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.kh-intro__grid > .kh-eyebrow { grid-area: e; }
.kh-intro__grid > h2 { grid-area: t; font-size: clamp(2.5rem, 5.6vw, 5.2rem); line-height: 1.02; }
.kh-intro__grid h2 em { display: block; }
.kh-intro__copy { grid-area: c; padding-bottom: 0.75rem; }
.kh-intro__copy p { font-size: 1.1rem; line-height: 1.75; color: var(--kh-muted); }
.kh-intro__copy .kh-link { margin-top: 1.5rem; }

/* ---------- Layered sections ---------- */

.kh-pillars,
.kh-education,
.kh-ecosystem,
.kh-member,
.kh-partner,
.kh-insights,
.kh-final,
.kh-footer {
  position: relative;
  margin-top: calc(var(--kh-r) * -1);
  border-radius: var(--kh-r) var(--kh-r) 0 0;
  padding-top: calc(var(--kh-section) + var(--kh-r));
}

.kh-pillars { z-index: 2; }
.kh-education { z-index: 3; }
.kh-ecosystem { z-index: 4; }
.kh-member { z-index: 5; }
.kh-partner { z-index: 6; }
.kh-insights { z-index: 7; }
.kh-final { z-index: 8; }
.kh-footer { z-index: 9; }

/* ---------- Pillars ---------- */

.kh-pillars {
  padding-bottom: calc(var(--kh-section) + var(--kh-r));
  background:
    radial-gradient(48rem 32rem at 85% 0, rgba(54, 125, 120, 0.27), transparent 65%),
    radial-gradient(40rem 28rem at 0 100%, rgba(126, 168, 165, 0.13), transparent 60%),
    var(--kh-navy);
  color: #ffffff;
}

.kh-pillars .kh-eyebrow { color: var(--kh-mint); }
.kh-pillars h2 { color: #ffffff; margin-bottom: 1.25rem; }
.kh-pillars__intro { max-width: 52rem; }
.kh-pillars__intro .kh-lead { color: #c6d0d5; }

.kh-pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.kh-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 31rem;
  padding: 2rem 2rem 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 2rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  transition: transform 0.55s var(--kh-ease), border-color 0.4s, box-shadow 0.5s;
}

.kh-pillar::before {
  content: "";
  position: absolute;
  inset: auto -30% -50% -30%;
  height: 75%;
  background: radial-gradient(circle at 50% 100%, rgba(54, 125, 120, 0.8), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.kh-pillar:hover { transform: translateY(-12px); border-color: rgba(126, 168, 165, 0.67); box-shadow: 0 36px 80px rgba(0, 0, 0, 0.4); }
.kh-pillar:hover::before { opacity: 1; }
.kh-pillar--featured { border-color: rgba(255, 255, 255, 0.25); background: linear-gradient(160deg, #367d78, #2a6662); }
.kh-pillar > * { position: relative; }

.kh-pillar__media { display: block; height: 10rem; overflow: hidden; border-radius: 1.4rem; }
.kh-pillar__media img { transition: transform 0.7s var(--kh-ease); }
.kh-pillar:hover .kh-pillar__media img { transform: scale(1.07); }

.kh-pillar__top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1.75rem; }

.kh-pillar__index {
  font: 800 3.6rem/1 var(--kh-font);
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(126, 168, 165, 0.7);
}

.kh-pillar__icon { width: 3rem; height: 3rem; padding: 0.75rem; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.kh-pillar__body { display: flex; flex: 1; flex-direction: column; }
.kh-pillar .kh-tag { align-self: flex-start; margin-top: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.33); background: transparent; color: #e3eaed; }
.kh-pillar--featured .kh-tag { border-color: var(--kh-sand); color: var(--kh-sand); }
.kh-pillar h3 { margin: 1rem 0 0.8rem; font-weight: 700; font-size: clamp(1.5rem, 2vw, 1.8rem); line-height: 1.12; color: #ffffff; }
.kh-pillar p { font-size: 0.95rem; line-height: 1.7; color: #d2dade; }
.kh-pillar .kh-link { margin-top: auto; padding-top: 1.5rem; color: var(--kh-sand); }

/* ---------- Education ---------- */

.kh-education { padding-bottom: calc(var(--kh-section) + var(--kh-r)); background: var(--kh-cream); }

.kh-education__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; }
.kh-education__intro { max-width: 46rem; }
.kh-education__intro h2 { margin-bottom: 1.25rem; }

.kh-education__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.kh-card {
  overflow: hidden;
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(13, 32, 44, 0.08);
  transition: transform 0.55s var(--kh-ease), box-shadow 0.5s;
}

.kh-card:nth-child(even) { margin-top: 3.5rem; }
@media (max-width: 75rem) { .kh-education__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kh-card:hover { transform: translateY(-12px); box-shadow: 0 40px 90px rgba(13, 32, 44, 0.18); }
.kh-card__media { display: block; height: clamp(15rem, 22vw, 19rem); overflow: hidden; }
.kh-card h3 a:hover,
.kh-insight h3 a:hover { color: var(--kh-teal); }
.kh-card__media img { transition: transform 1.1s var(--kh-ease); }
.kh-card:hover .kh-card__media img { transform: scale(1.08); }
.kh-card__body { padding: 1.75rem; }
.kh-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.kh-card__index {
  margin: 1.75rem 0 1rem;
  font: 800 3.2rem/1 var(--kh-font);
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--kh-teal);
}

.kh-card h3 { margin-bottom: 0.8rem; font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.03em; color: var(--kh-ink); }
.kh-card__text { font-size: 0.98rem; line-height: 1.65; color: var(--kh-muted); }
.kh-card .kh-link { margin-top: 1.5rem; }

/* ---------- Beyond the classroom ---------- */

.kh-ecosystem {
  display: flex;
  align-items: center;
  min-height: min(100svh, 56rem);
  padding-bottom: calc(var(--kh-section) + var(--kh-r));
  overflow: hidden;
  background: var(--kh-navy);
}

.kh-ecosystem__grid { position: relative; z-index: 2; width: min(100% - 2 * var(--kh-gut), var(--kh-wrap)); margin-inline: auto; }
.kh-ecosystem__media { position: absolute; inset: 0; z-index: 0; }
.kh-ecosystem__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; will-change: transform; }
.kh-ecosystem__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 32, 44, 0.15), rgba(13, 32, 44, 0.5) 55%, rgba(9, 25, 35, 0.85)); }

.kh-ecosystem__copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  margin-left: auto;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2rem;
  background: rgba(13, 32, 44, 0.8);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.kh-ecosystem .kh-eyebrow { color: var(--kh-mint); }
.kh-ecosystem h2 { margin-bottom: 1.25rem; font-size: clamp(2.1rem, 3.6vw, 3.2rem); color: #ffffff; }
.kh-ecosystem__text { font-size: 1.02rem; line-height: 1.7; color: #d2dade; }
.kh-ecosystem__list { margin: 1.75rem 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.kh-ecosystem__row { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.kh-ecosystem__row span { font: 800 1.5rem/1 var(--kh-font); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.2px var(--kh-mint); }
.kh-ecosystem__row p { font-size: 0.9rem; line-height: 1.6; color: #c6d0d5; }
.kh-ecosystem__row strong { display: block; margin-bottom: 0.2rem; font-size: 1rem; color: #ffffff; }

/* ---------- Member Club ---------- */

.kh-member {
  padding-bottom: calc(var(--kh-section) + var(--kh-r));
  background:
    radial-gradient(40rem 26rem at 15% 0, rgba(54, 125, 120, 0.2), transparent 65%),
    radial-gradient(36rem 26rem at 100% 100%, rgba(126, 168, 165, 0.2), transparent 60%),
    var(--kh-sand);
}

.kh-member__content { max-width: 50rem; }
.kh-member h2 { max-width: 44rem; margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.kh-member .kh-lead { max-width: 36rem; margin-bottom: 2rem; font-size: 1.15rem; }

/* ---------- Partner ---------- */

.kh-partner {
  padding-bottom: calc(var(--kh-section) + var(--kh-r));
  background: radial-gradient(48rem 32rem at 0 0, rgba(54, 125, 120, 0.25), transparent 65%), var(--kh-navy);
  color: #ffffff;
}

.kh-partner__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.kh-partner .kh-eyebrow { color: var(--kh-mint); }
.kh-partner h2 { margin-bottom: 1.25rem; font-size: clamp(2.3rem, 4.4vw, 4rem); color: #ffffff; }
.kh-partner .kh-lead { margin-bottom: 2rem; font-size: 1.1rem; color: #c6d0d5; }
.kh-partner__list { display: grid; gap: 1rem; }

.kh-partner__item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  transition: transform 0.45s var(--kh-ease), background 0.35s, border-color 0.35s;
}

.kh-partner__item:hover { transform: translateX(12px); border-color: rgba(255, 255, 255, 0.4); background: rgba(54, 125, 120, 0.85); }
.kh-partner__item span { font: 800 2.2rem/1 var(--kh-font); letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 1.3px var(--kh-mint); }
.kh-partner__item strong { font: 700 1.2rem var(--kh-font); color: #ffffff; }
.kh-partner__item svg { width: 22px; height: 22px; color: var(--kh-sand); }

/* ---------- Insights ---------- */

.kh-insights { padding-bottom: calc(var(--kh-section) + var(--kh-r)); background: var(--kh-cream); }
.kh-insights__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.kh-insights__intro { flex: 1 1 40rem; }
.kh-insights__intro h2 { margin-bottom: 1.25rem; font-size: clamp(2.3rem, 4.4vw, 4rem); }
.kh-insights__intro .kh-lead { font-size: 1.1rem; }

.kh-insights__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.kh-insight {
  padding-bottom: 2rem;
  overflow: hidden;
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(13, 32, 44, 0.08);
  transition: transform 0.55s var(--kh-ease), box-shadow 0.5s;
}

.kh-insight:hover { transform: translateY(-12px); box-shadow: 0 40px 90px rgba(13, 32, 44, 0.18); }
.kh-insight > :not(.kh-insight__media) { margin-inline: 1.75rem; }
.kh-insight__media { display: block; height: clamp(15rem, 20vw, 19rem); overflow: hidden; }
.kh-insight__media img { transition: transform 1.1s var(--kh-ease); }
.kh-insight:hover .kh-insight__media img { transform: scale(1.08); }
.kh-insight__meta { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 1.5rem; font: 700 0.66rem var(--kh-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kh-teal); }
.kh-insight h3 { margin-block: 0.9rem; font-weight: 700; font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.25; letter-spacing: -0.03em; color: var(--kh-ink); }
.kh-insight__text { margin-bottom: 1.25rem; font-size: 0.98rem; line-height: 1.65; color: var(--kh-muted); }

/* ---------- Closing banner ---------- */

.kh-final {
  display: flex;
  align-items: center;
  min-height: clamp(32rem, 90svh, 50rem);
  padding-bottom: calc(var(--kh-section) + var(--kh-r));
  overflow: hidden;
  background: var(--kh-navy);
  color: #ffffff;
  text-align: center;
}

.kh-final__media { position: absolute; inset: -8% 0; will-change: transform; }
.kh-final__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 28rem at 50% 50%, rgba(13, 32, 44, 0.6), rgba(13, 32, 44, 0.2) 80%), linear-gradient(180deg, rgba(13, 32, 44, 0.55), rgba(13, 32, 44, 0.25) 40%, rgba(20, 43, 59, 0.85)); }

.kh-final__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 2 * var(--kh-gut), var(--kh-wrap));
  margin-inline: auto;
}

.kh-final .kh-eyebrow { color: var(--kh-mint); }
.kh-final h2 { max-width: 52rem; font-size: clamp(2.5rem, 5.6vw, 5rem); color: #ffffff; }
.kh-final__text { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #e6edf0; }
.kh-final .kh-actions { justify-content: center; margin-top: 2.5rem; }

/* ---------- Footer ---------- */

.kh-footer { padding: calc(5rem + var(--kh-r)) 0 2rem; background: var(--kh-deep); color: #c6d0d5; }
.kh-footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; }
.kh-footer .kh-wordmark { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; color: #ffffff; }
.kh-footer .kh-wordmark__sub { color: var(--kh-mint); }
.kh-footer__brand p { max-width: 26rem; margin-top: 1.25rem; line-height: 1.7; }
.kh-footer__brand .kh-footer__tag { margin-top: 1rem; font: 700 0.72rem var(--kh-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kh-mint); }
.kh-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.kh-footer h3 { margin-bottom: 1.1rem; font: 700 0.72rem var(--kh-font); letter-spacing: 0.18em; text-transform: uppercase; color: #ffffff; }
.kh-footer__cols a { display: block; margin-bottom: 0.85rem; color: #9caab2; transition: color 0.2s, transform 0.3s var(--kh-ease); }
.kh-footer__cols a:hover { color: #ffffff; transform: translateX(4px); }

.kh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: #9caab2;
}

.kh-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.kh-footer__bottom a:hover { color: #ffffff; }

/* ---------- Responsive ---------- */

@media (max-width: 70rem) {
  .kh-nav,
  .kh-cta { display: none; }

  .kh-burger { display: inline-flex; }
  .kh-header__actions { margin-left: auto; }
  .kh-pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-pillar { min-height: 30rem; }
  .kh-hero__connection,
  .kh-hero__caption { display: none; }
  .kh-hero__controls { right: var(--kh-gut); }
  .kh-partner__grid,
  .kh-education__head,
  .kh-footer__top { grid-template-columns: minmax(0, 1fr); }
  .kh-intro__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "e" "t" "c"; }
  .kh-ecosystem__copy { margin-inline: auto; }

  .kh-education__grid,
  .kh-insights__grid {
    display: flex;
    gap: 1.25rem;
    margin-inline: calc(var(--kh-gut) * -1);
    padding: 0.5rem var(--kh-gut) 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .kh-education__grid::-webkit-scrollbar,
  .kh-insights__grid::-webkit-scrollbar { display: none; }
  .kh-card,
  .kh-insight { flex: none; width: min(84vw, 24rem); scroll-snap-align: start; }
  .kh-card:nth-child(even) { margin-top: 0; }
}

@media (max-width: 48rem) {
  .kh-lang__toggle span { display: none; }
  .kh-wordmark { min-height: 3.25rem; padding: 0.35rem 1.25rem; }
  .kh-shell .kh-wordmark__img { height: 2.2rem; }
  .kh-burger { width: 3.25rem; height: 3.25rem; }
  .kh-lang__toggle { min-height: 3.25rem; padding: 0 1rem; }
  .kh-hero__inner { padding: 8.5rem 0 calc(var(--kh-wave-h) + 2.5rem); }
  .kh-hero__controls { right: var(--kh-gut); top: 6rem; bottom: auto; }
  .kh-hero h1 em { display: inline; }
  .kh-hero h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .kh-actions .kh-btn { width: 100%; }
  .kh-pillars__grid { grid-template-columns: minmax(0, 1fr); }
  .kh-pillar { min-height: 0; }
  .kh-ecosystem { min-height: 0; }
  .kh-insights__head { flex-direction: column; align-items: flex-start; }
  .kh-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-partner__item { grid-template-columns: 3.5rem 1fr auto; padding: 1.25rem; }
}

@media screen and (max-width: 782px) {
  .admin-bar .kh-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kh-hero__media img { animation: none; }
  .kh-hero__media .kh-hero__slide { animation: none; opacity: 0; }
  .kh-hero__media .kh-hero__slide:first-child { opacity: 1; }
  .kh-line > span,
  .kh-rise { opacity: 1; transform: none; animation: none; }
  .kh-js .kh-r { opacity: 1; transform: none; transition: none; }
}

/* ---------- WhatsApp click-to-chat ---------- */

.kkm-wa {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  height: 3.5rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font: 700 0.9rem 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(7, 40, 24, 0.35);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s, box-shadow 0.3s;
}

.kkm-wa:hover,
.kkm-wa:focus-visible { background: #1ebe5b; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(7, 40, 24, 0.45); }
.kkm-wa:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.kkm-wa svg { flex: none; width: 1.75rem; height: 1.75rem; }

.kkm-wa__label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s, margin 0.35s;
}

.kkm-wa:hover .kkm-wa__label,
.kkm-wa:focus-visible .kkm-wa__label { max-width: 15rem; margin-left: 0.6rem; margin-right: 0.25rem; opacity: 1; }

@media (max-width: 40rem) {
  .kkm-wa { height: 3.25rem; padding: 0 0.8rem; }
  .kkm-wa__label { display: none; }
}

@media print { .kkm-wa { display: none; } }

/* ---------- Programme page: key information and units (static design pages) ---------- */

.ks .program-detail-price { margin-top: 0.75rem; font: 800 1.35rem var(--kh-font); color: var(--kh-navy); }
.ks .program-facts { background: #ffffff; }
.ks .program-facts-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ks .program-facts-list { margin: 0; border-top: 1px solid rgba(20, 43, 59, 0.12); }
.ks .program-facts-list > div { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(20, 43, 59, 0.12); }
.ks .program-facts-list dt { font: 700 0.85rem var(--kh-font); color: var(--kh-navy); }
.ks .program-facts-list dd { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--kh-muted); }
.ks .program-units-intro { margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.65; color: var(--kh-muted); }
.ks .program-units { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ks .program-units th { padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 2px solid var(--kh-navy); font: 700 0.72rem var(--kh-font); letter-spacing: 0.12em; text-transform: uppercase; text-align: left; color: var(--kh-navy); }
.ks .program-units td { padding: 0.8rem 0.75rem 0.8rem 0; border-bottom: 1px solid rgba(20, 43, 59, 0.12); vertical-align: top; color: var(--kh-ink); }
.ks .program-units td:first-child { font-weight: 700; white-space: nowrap; color: var(--kh-teal); }
.ks .program-more { margin-top: 2.5rem; }
.ks .program-more details { padding: 1rem 0; border-bottom: 1px solid rgba(20, 43, 59, 0.12); }
.ks .program-more summary { font: 700 1rem var(--kh-font); color: var(--kh-navy); cursor: pointer; }
.ks .program-facts-note { margin-top: 2rem; font-size: 0.88rem; line-height: 1.6; color: var(--kh-muted); }
.ks .program-facts-note a { color: var(--kh-teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ks .form-status { margin: 0 0 1.25rem; padding: 1rem 1.25rem; border-radius: 1rem; font-size: 0.95rem; line-height: 1.6; }
.ks .form-status--success { background: #e6f0e9; color: #1f4c34; }
.ks .form-status--error { background: #f8e4df; color: #8a2f22; }

@media (max-width: 64rem) {
  .ks .program-facts-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  .ks .program-facts-list > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .ks .program-units td:first-child { white-space: normal; }
}

/* ---------- Header: never wraps; the button makes room on mid-size screens ---------- */

.kh-nav { flex-wrap: nowrap; }
.kh-nav__link { white-space: nowrap; }
.kh-header__actions { flex: none; }

@media (max-width: 85rem) {
  .kh-cta { display: none; }
}

/* ---------- Rich text written in the WordPress editor ---------- */

.ks .kh-rich { font-size: 1.02rem; line-height: 1.75; color: var(--kh-muted); overflow-wrap: anywhere; }
.ks .kh-rich > * + * { margin-top: 1.1rem; }
.ks .kh-rich :is(h1, h2, h3, h4, h5, h6) { margin-top: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--kh-navy); }
.ks .kh-rich h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ks .kh-rich h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.ks .kh-rich :is(h4, h5, h6) { font-size: 1.1rem; }
.ks .kh-rich p { margin-bottom: 0; }
.ks .kh-rich :is(ul, ol) { margin-left: 0; padding-left: 1.4rem; }
.ks .kh-rich ul { list-style: disc; }
.ks .kh-rich ol { list-style: decimal; }
.ks .kh-rich li { margin: 0.45rem 0; padding-left: 0.2rem; }
.ks .kh-rich li::marker { color: var(--kh-teal); }
.ks .kh-rich :is(ul, ol) :is(ul, ol) { margin-top: 0.4rem; }
.ks .kh-rich strong, .ks .kh-rich b { font-weight: 700; color: var(--kh-ink); }
.ks .kh-rich a { color: var(--kh-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ks .kh-rich blockquote { margin-left: 0; padding: 0.4rem 0 0.4rem 1.25rem; border-left: 3px solid var(--kh-teal); font-size: 1.12rem; color: var(--kh-ink); }
.ks .kh-rich hr { border: 0; border-top: 1px solid rgba(20, 43, 59, 0.14); margin: 2rem 0; }
.ks .kh-rich img, .ks .kh-rich video, .ks .kh-rich iframe { max-width: 100%; height: auto; border-radius: 1rem; }
.ks .kh-rich table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.ks .kh-rich :is(th, td) { padding: 0.65rem 0.8rem; border-bottom: 1px solid rgba(20, 43, 59, 0.12); text-align: left; vertical-align: top; }
.ks .kh-rich th { font-weight: 700; color: var(--kh-navy); border-bottom: 2px solid var(--kh-navy); }
.ks .kh-rich figure { margin: 1.5rem 0; }
.ks .kh-rich figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--kh-muted); }
.ks .kh-rich .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.ks .kh-rich .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.ks .kh-rich .aligncenter { display: block; margin-inline: auto; }
.ks .kh-rich::after { content: ""; display: table; clear: both; }

/* The overview sits in the right column of the programme page */
.ks .program-overview-copy.kh-rich .lead { font-size: 1.15rem; line-height: 1.6; color: var(--kh-ink); }
.ks .program-overview-copy.kh-rich p:not(.lead) { max-width: 46rem; }
.ks .program-overview-copy.kh-rich :is(ul, ol) { max-width: 46rem; }

/* Units table scrolls inside its own box on small screens */
.ks .program-units-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ks .program-units { min-width: 30rem; }

/* ---------- Programme page: tablet and phone ---------- */

@media (max-width: 64rem) {
  .ks .program-detail-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ks .program-detail-image { max-height: 22rem; overflow: hidden; border-radius: 1.5rem; }
  .ks .program-overview-grid,
  .ks .program-next-step-grid,
  .ks .program-provider-grid { grid-template-columns: minmax(0, 1fr); }
  .ks .program-facts-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  .ks .program-detail-title h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); overflow-wrap: anywhere; }
  .ks .program-detail-title .button,
  .ks .program-next-step .button { width: 100%; }
  .ks .program-next-step .button-row { flex-direction: column; }
  .ks .program-units { min-width: 26rem; font-size: 0.85rem; }
  .ks .program-detail-image { max-height: 16rem; }
  .ks .breadcrumbs { flex-wrap: wrap; row-gap: 0.4rem; }
}

/* Programme overview: the heading stays at the top beside a long formatted text */
.ks .program-overview-grid { align-items: start; }

@media (min-width: 64.01rem) {
  .ks .program-overview-grid > div:first-child { position: sticky; top: 7rem; }
}

/* Thank-you pages: centred, as in the design */
.ks .confirmation-page { text-align: center; }
.ks .confirmation-content { margin-inline: auto; text-align: center; }
.ks .confirmation-content .confirmation-next { margin-inline: auto; max-width: 34rem; }
.ks .confirmation-content .eyebrow { justify-content: center; }
.ks .confirmation-content .button-row { justify-content: center; }
