/* ============================================================
   Key 2 Learning College - design system
   Ink navy + chartreuse. Fraunces display / Manrope text.
   Content HTML is untouched; these styles restyle its shell.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-var.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #060d2b;
  --ink-2: #0b1540;
  --navy: #000080;
  --navy-soft: #23307c;
  --lime: #a7cb39;
  --lime-2: #c6e75a;
  --lime-dark: #7fa31f;
  --paper: #f6f7f1;
  --card: #ffffff;
  --text: #182038;
  --muted: #5b6178;
  --line: rgba(6, 13, 43, .1);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(6, 13, 43, .06);
  --shadow-md: 0 12px 40px -12px rgba(6, 13, 43, .18);
  --shadow-lg: 0 30px 80px -20px rgba(6, 13, 43, .35);
  --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* small document/file icon used for footer policy-link lists */
  --doc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cline x1='9' y1='13' x2='15' y2='13'/%3E%3Cline x1='9' y1='17' x2='15' y2='17'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden creates a scroll container and kills position:sticky */
}
html { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
p { font-size: .94em; } /* site-wide: paragraphs a touch smaller than base, scales per context */
a { color: var(--navy); text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.4rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.k-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* scroll progress */
.k-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.k-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--lime-2)); transition: width .1s linear; }

/* ---------------- topbar (source markup kept verbatim, shell restyled) ---------------- */
.k-topbar { background: var(--ink); color: #cdd4f0; font-size: .85rem; padding: .4rem 0; position: relative; z-index: 60; }
.k-topbar a { color: var(--lime-2); font-weight: 700; }
.k-topbar .k-wrap { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.k-topbar .k-wrap > * { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.k-topbar p { margin: 0; }
.k-topbar img { height: 34px; width: auto; display: inline-block; background: #fff; border-radius: 8px; padding: 3px 7px; }
.k-topbar .fl-col-group, .k-topbar .fl-col, .k-topbar .fl-module, .k-topbar .fl-module-content, .k-topbar .fl-rich-text, .k-topbar .fl-photo, .k-topbar .fl-photo-content { display: inline-flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; width: auto !important; }
/* the source topbar uses bootstrap grid markup with inline 100px heights; flatten it */
.k-topbar .row { display: flex !important; align-items: center; justify-content: center; gap: .6rem 2rem; flex-wrap: wrap; }
.k-topbar [class*="col-"] { height: auto !important; width: auto !important; display: inline-flex !important; align-items: center; gap: .6rem; float: none !important; }
.k-topbar .container, .k-topbar .container-fluid { width: 100%; }
@media (max-width: 700px) { .k-topbar img { display: none; } }

/* ---------------- header ---------------- */
.k-header {
  position: sticky; top: 0; z-index: 100;
  transition: transform .4s var(--ease), box-shadow .3s;
}
.k-header__inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: calc(var(--wrap) + 2rem); margin: .8rem auto 0; padding: .55rem 1.2rem;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.k-header.is-scrolled .k-header__inner { box-shadow: var(--shadow-md); }
.k-header__logo { padding-left: .7rem; }
.k-header__logo img { width: 140px; height: auto; }
.k-nav { margin-left: auto; }
.k-nav__list { display: flex; gap: .2rem; list-style: none; }
.k-nav__item { position: relative; }
.k-nav__link {
  display: flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .92rem;
  transition: background .25s, color .25s;
}
.k-nav__link:hover, .k-nav__link.is-active { background: var(--ink); color: #fff; }
.k-nav__caret { transition: transform .25s; }
.k-nav__item:hover .k-nav__caret { transform: rotate(180deg); }
.k-sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); list-style: none; padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 90;
}
.k-nav__item:hover > .k-sub, .k-nav__item:focus-within > .k-sub,
.k-sub li:hover > .k-sub--nested, .k-sub li:focus-within > .k-sub--nested { opacity: 1; visibility: visible; transform: translateY(0); }
.k-sub li { position: relative; }
.k-sub a {
  display: block; padding: .55rem .8rem; border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: .88rem; transition: background .2s, padding-left .2s;
}
.k-sub a:hover { background: var(--paper); padding-left: 1.05rem; color: var(--navy); }
.k-sub--nested { top: 0; left: calc(100% + 6px); }
.k-header__cta { margin-left: .4rem; }
.k-burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.k-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.k-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.k-burger.is-open span:nth-child(2) { opacity: 0; }
.k-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.k-mobilemenu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink);
  padding: 7.5rem 2rem 3rem; overflow-y: auto;
  opacity: 0; transition: opacity .35s var(--ease);
}
.k-mobilemenu.is-open { opacity: 1; }
.k-mobilemenu ul { list-style: none; }
.k-mobilemenu > nav > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, .08); padding: .7rem 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.k-mobilemenu.is-open > nav > ul > li { opacity: 1; transform: none; }
.k-mobilemenu a { color: #fff; font-size: 1.35rem; font-weight: 700; font-family: var(--font-display); }
.k-mobilemenu ul ul { padding: .4rem 0 0 1rem; }
.k-mobilemenu ul ul a { font-size: 1rem; font-family: var(--font-body); color: #b9c2e8; font-weight: 500; }
.k-mobilemenu ul ul ul a { font-size: .9rem; color: #8c96c4; }

/* ---------------- buttons / chips ---------------- */
.k-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .72rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; font-family: var(--font-body);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  position: relative; overflow: hidden;
}
.k-btn .k-arr { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.k-btn:hover .k-arr { transform: translateX(4px); }
.k-btn--solid { background: var(--lime); color: var(--ink); box-shadow: 0 6px 20px -6px rgba(167, 203, 57, .55); }
.k-btn--solid:hover { background: var(--lime-2); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(167, 203, 57, .7); }
.k-btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.k-btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.k-btn--ghostlight { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.k-btn--ghostlight:hover { background: #fff; color: var(--ink); }
.k-btn--lg { padding: .95rem 2rem; font-size: 1.02rem; }
.k-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(167, 203, 57, .16); color: var(--lime-dark);
  border: 1px solid rgba(167, 203, 57, .4);
  font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  padding: .28rem .8rem; border-radius: 999px; text-transform: uppercase;
}
.k-chip--lg { font-size: .9rem; padding: .4rem 1.1rem; }

/* ---------------- hero ---------------- */
.k-hero {
  position: relative;
  min-height: calc(100vh - 48px);
  min-height: calc(100svh - 48px);
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-soft) 0%, var(--ink) 55%, #04081c 100%);
  color: #fff; overflow: hidden;
  /* over-pull tucks the hero right under the opaque topbar so no page bg shows
     behind the floating header pill; excess simply hides behind the topbar */
  margin-top: -110px; padding-top: 110px;
}
.k-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-hero__grain {
  position: absolute; inset: 0; opacity: .5; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
}
.k-hero__slides { position: relative; z-index: 3; flex: 1; display: grid; }
.k-hero__slide {
  grid-area: 1 / 1; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), visibility .8s;
  padding: clamp(.5rem, 1.5vh, 1.1rem) 0;
}
.k-hero__slide.is-on { opacity: 1; visibility: visible; transform: none; }
.k-hero__content { max-width: 820px; }
.k-hero__text h1 {
  font-family: var(--font-display);
  font-weight: 640;
  line-height: 1.06; letter-spacing: -.03em; color: #fff;
  margin: 0 0 .5rem;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
}
.k-hero__text h1:empty { display: none; margin: 0; }
.k-hero__text p { font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.5; color: #ccd4f2; max-width: 60ch; margin: 0 0 .4rem; }
.k-hero__text strong { color: var(--lime-2); }
/* tame the source markup's inline sizes while keeping the words identical */
.k-hero__text [style] { font-family: inherit !important; }
.k-hero__text h1 [style*="font-size: 44px"] { font-size: inherit !important; }
.k-hero__text h1 [style*="font-size: 34px"] { font-size: clamp(1.35rem, 2.6vw, 1.9rem) !important; display: inline-block; color: var(--lime-2); }
.k-hero__text h1 [style*="font-size: 32px"],
.k-hero__text h1 [style*="font-size: 22px"] { font-size: clamp(.98rem, 1.6vw, 1.18rem) !important; line-height: 1.4; font-weight: 500; color: #dfe5fb; }
.k-hero__text p [style*="font-size: 20px"] { font-size: inherit !important; }
.k-hero__text img { display: inline-block; vertical-align: middle; width: clamp(64px, 7vw, 92px); height: auto; margin: 0 .85rem .4rem 0; border-radius: 14px; background: #fff; padding: 5px; box-shadow: var(--shadow-md); float: none !important; }
.k-hero__cta { margin-top: .85rem; }
.k-hero__ui {
  position: relative; z-index: 4; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1rem;
}
.k-hero__dots { display: flex; gap: .6rem; }
.k-hero__dot {
  width: 42px; height: 5px; border-radius: 99px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .22); position: relative; overflow: hidden; padding: 0;
}
.k-hero__dot span { position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.k-hero__dot.is-on span { animation: dotfill 7s linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }
.k-hero__scroll { display: flex; align-items: center; gap: .7rem; color: #9aa5d4; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
.k-hero__scroll i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--lime), transparent); animation: scrollhint 2s var(--ease) infinite; }
@keyframes scrollhint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* marquee */
.k-marquee { background: var(--lime); color: var(--ink); overflow: hidden; padding: .8rem 0; position: relative; z-index: 5; transform: rotate(-.6deg) scale(1.02); margin: -1rem 0 1rem; box-shadow: var(--shadow-md); }
.k-marquee__track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 36s linear infinite; font-weight: 800; letter-spacing: .12em; font-size: .9rem; align-items: center; }
.k-marquee__track i { font-style: normal; opacity: .45; font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- generic rows ---------------- */
.k-row { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
/* a row that is nothing but a lone image (e.g. the ACT Training Awards banner)
   doesn't need the full section padding - it just leaves a huge empty band */
.k-row:has(> .k-wrap > .k-col > .k-photoline:only-child) { padding-top: clamp(1rem, 2.2vw, 1.6rem); padding-bottom: clamp(1rem, 2.2vw, 1.6rem); }
.k-row:nth-child(even) { background: #fff; }
.k-row--bg { color: #fff; }
.k-row__bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.k-row__scrim { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6, 13, 43, .92), rgba(0, 0, 128, .78)); }
.k-row--bg .k-wrap { position: relative; z-index: 2; }
.k-cols { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.k-cols--nested { margin: 1.4rem 0; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.k-cols--nested .k-photo img { width: 100%; max-width: 100%; object-fit: cover; max-height: 460px; }
/* nested column groups of photo + heading + button (e.g. Domestic/International
   Students CTAs) read as a mini card; center the text/button under the photo
   instead of letting them fall back to browser-default left alignment */
.k-cols--nested .k-col:has(> .k-photo:first-child) { text-align: center; }
.k-cols--nested .k-col:has(> .k-photo:first-child) .k-actions { justify-content: center; }

/* Award "Congratulations" winners (Alleyne Forjanic / Alyssa Tracey): two
   identically-shaped cards in a small slider. The heading is pulled into the
   card body (smaller, tight rhythm); the portrait hangs up-and-right of the
   text box with the copy wrapping around it. Offsets are driven by the two
   --hang-* vars so the "60px higher / 100px further right" feel stays in sync
   between the reserved margin and the photo's negative pull. */
.k-awardslider { position: relative; --hang-up: 86px; --hang-right: 135px; }
/* the viewport clips the horizontal slide; the reserved hang space lives as
   card PADDING (not text-box margin) so the portrait stays inside the card and
   isn't cropped by the clip while the track slides. */
.k-awardslider__viewport { overflow: hidden; transition: height .65s cubic-bezier(.76, 0, .24, 1); }
.k-awardslider__track {
  display: flex; align-items: flex-start;
  transition: transform .65s cubic-bezier(.76, 0, .24, 1);  /* full attack + decay */
  will-change: transform;
}
.k-awardcard { flex: 0 0 100%; min-width: 0; padding: var(--hang-up) var(--hang-right) 0 0; }
.k-awardcard__text {
  position: relative; overflow: visible;
  background: linear-gradient(160deg, #fff, var(--paper));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem clamp(1.4rem, 3vw, 2.1rem) 1.5rem;
}
.k-awardcard__photo {
  float: right; width: clamp(150px, 26%, 205px);
  margin: calc(-1 * var(--hang-up)) calc(-1 * var(--hang-right)) 1rem 1.5rem;
  shape-outside: margin-box;
}
.k-awardcard__photo img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
/* headings pulled into the card: smaller, left-aligned, tight vertical rhythm */
.k-awardcard__text .k-prose { max-width: none; font-size: .88rem; line-height: 1.55; }
.k-awardcard__text .k-prose p { margin: 0 0 .4rem; }
.k-awardcard__text .k-prose > :last-child { margin-bottom: 0; }
.k-awardcard__text .k-prose,
.k-awardcard__text .k-prose :is(p, span, strong, blockquote) { text-align: left !important; }
/* the story panel - identical on both cards; neutralise any source <blockquote>
   so it doesn't paint a second nested panel inside this one */
.k-awardcard__body {
  margin-top: 1.1rem;
  padding: 1.2rem clamp(1.1rem, 2.4vw, 1.7rem);
  background: rgba(167, 203, 57, .07);
  border: 1px solid rgba(167, 203, 57, .25);
  border-radius: var(--radius);
}
.k-awardcard__body .k-prose > :last-child { margin-bottom: 0; }
.k-awardcard__text blockquote { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
.k-awardcard__text .k-prose [style*="font-size: 34px"] { font-size: 1.3rem !important; line-height: 1.15; display: inline-block; margin-bottom: .1rem; }
.k-awardcard__text .k-prose [style*="font-size: 30px"] { font-size: 1rem !important; letter-spacing: .01em; }
.k-awardcard__text .k-prose [style*="font-size: 16px"] { font-size: .82rem !important; }
.k-awardcard__text .k-prose [style*="font-size: 18px"], .k-awardcard__text .k-prose [style*="font-size: 14px"] { font-size: .84rem !important; }
/* controls */
.k-awardslider__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.3rem; }
.k-awardslider__nav {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
  cursor: pointer; transition: border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.k-awardslider__nav svg { width: 20px; height: 20px; }
.k-awardslider__nav:hover { border-color: var(--lime); color: var(--lime-dark); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.k-awardslider__dots { display: flex; gap: .5rem; }
.k-awardslider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(6, 13, 43, .18); cursor: pointer; transition: background .2s, transform .2s; }
.k-awardslider__dot:hover { transform: scale(1.15); }
.k-awardslider__dot.is-on { background: var(--lime-dark); }
@media (max-width: 620px) {
  .k-awardslider { --hang-up: 0px; --hang-right: 0px; }
  .k-awardcard__photo { float: none; width: min(210px, 62%); margin: 0 auto 1rem; }
  .k-awardcard__text { text-align: center; }
  .k-awardcard__text .k-prose, .k-awardcard__text .k-prose :is(p, span, strong, blockquote) { text-align: center !important; }
}

/* editorial "kicker" band: a single-column text row that carried a partial
   harvested width (60%, 36%...) reclaims that empty space as a numbered
   accent rail instead of stretching the copy across the full row - real
   design texture on pages with no photography of their own. */
.k-row--kicker .k-kickwrap { display: grid; grid-template-columns: clamp(3.4rem, 6vw, 4.6rem) minmax(0, var(--colw, 60%)); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.k-kicker { position: sticky; top: 128px; display: flex; flex-direction: column; align-items: center; gap: .5rem; height: 100%; }
.k-kicker__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.02em; color: var(--lime-dark); opacity: .55; line-height: 1; }
.k-kicker__rule { width: 2px; flex: 1; min-height: 48px; background: linear-gradient(var(--lime), rgba(167, 203, 57, 0)); border-radius: 2px; }

/* headings + prose */
.k-h {
  font-family: var(--font-display); font-weight: 620; line-height: 1.1;
  letter-spacing: -.025em; color: var(--ink); margin-bottom: 1.1rem;
}
.k-h--1, .k-h--2 { font-size: clamp(1.65rem, 3.3vw, 2.4rem); }
.k-h--3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.k-h--4, .k-h--5, .k-h--6 { font-size: 1.08rem; }
.k-row--bg .k-h { color: #fff; }
/* a heading that is the sole block in its row (a bare section title, e.g.
   "2024 Graduates" ahead of a gallery) reads as left-stranded against the
   centered content around it; center these standalone titles */
.k-col > .k-h:only-child { text-align: center; }

.k-prose { max-width: 72ch; }
/* an intro paragraph sitting directly above the two-column staff-bio rows
   (.fl-callout panels, which fill their 80% column) reads as stranded-narrow
   against the full-width panels below it - widen it to match instead of the
   default 72ch reading column. */
.k-row:has(+ .k-row .fl-callout) .k-prose { max-width: none; }
/* about-us and funding: single-column body copy that reads as stranded-narrow
   against the full desktop width. Scoped to these two pages only - other
   body_html-fallback pages (privacy-policy, maintenance) are long legal/plain
   text that should keep the narrow 72ch reading column for legibility. */
body[data-path="/about-us/"] .k-prose,
body[data-path="/funding/"] .k-prose { max-width: none; }
.k-prose p { margin-bottom: 1rem; }
.k-prose p:last-child { margin-bottom: 0; }
.k-prose h1, .k-prose h2, .k-prose h3, .k-prose h4 {
  font-family: var(--font-display); font-weight: 590; line-height: 1.15;
  letter-spacing: -.012em; color: var(--ink); margin: 1.6rem 0 .8rem;
}
.k-prose h1 { font-size: clamp(1.55rem, 2.9vw, 2.1rem); }
.k-prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.k-prose h3 { font-size: clamp(1.12rem, 1.9vw, 1.4rem); }
.k-prose h1:first-child, .k-prose h2:first-child, .k-prose h3:first-child { margin-top: 0; }
.k-prose ul, .k-prose ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.k-prose li { margin-bottom: .45rem; }
.k-prose li::marker { color: var(--lime-dark); font-weight: 800; }
.k-prose a { font-weight: 700; text-decoration: underline; text-decoration-color: rgba(167, 203, 57, .8); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.k-prose a:hover { color: var(--lime-dark); }
.k-prose img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 1.2rem 0; }
/* award/quote callouts (e.g. the ACT Small Training Provider award blurb) are
   plain <blockquote> markup with no styling of their own, so they rendered as
   unstyled inline text; give them a quiet card treatment consistent with the
   rest of the design system */
.k-prose blockquote { margin: 1.4rem 0; padding: 1.4rem 1.8rem; background: rgba(167, 203, 57, .07); border: 1px solid rgba(167, 203, 57, .25); border-radius: var(--radius); }
.k-prose blockquote > :first-child { margin-top: 0; }
.k-prose blockquote > :last-child { margin-bottom: 0; }
.k-prose table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; }
.k-prose th, .k-prose td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; }
.k-prose th { background: var(--paper); font-weight: 800; }
.k-prose [style*="font-family"] { font-family: inherit !important; }
.k-prose [style*="font-size: 44px"], .k-prose [style*="font-size: 34px"], .k-prose [style*="font-size: 32px"] {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem) !important; font-family: var(--font-display); line-height: 1.2; display: inline-block;
}
.k-prose [style*="font-size: 20px"], .k-prose [style*="font-size: 22px"] { font-size: 1.1rem !important; }
.k-row--bg .k-prose, .k-row--bg .k-prose h1, .k-row--bg .k-prose h2, .k-row--bg .k-prose h3 { color: #fff; }
.k-row--bg .k-prose a { color: var(--lime-2); }

/* single blog post: comfortable centred reading column */
.k-pagebody--article .k-row { padding: clamp(1.6rem, 3.5vw, 2.6rem) 0; }
.k-pagebody--article .k-row:first-of-type { padding-top: clamp(2.2rem, 5vw, 3.5rem); }
.k-pagebody--article .k-prose { max-width: 68ch; margin: 0 auto; font-size: 1.05rem; }
.k-postimg { max-width: 900px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.k-postimg img { width: 100%; max-height: 460px; object-fit: cover; }
/* harvested "Posted in <categories>" line reads as a plain sentence; treat it
   like understated tag metadata rather than body copy */
.k-pagebody--article .k-embed { max-width: 68ch; margin: 0 auto; font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.k-pagebody--article .k-embed a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); }
.k-pagebody--article .k-embed a:hover { color: var(--lime-dark); text-decoration-color: var(--lime-dark); }
/* embedded social-share widget ships as bare markup with no styling of its
   own; give it a quiet horizontal row consistent with the rest of the page */
.k-prose .scriptlesssocialsharing { max-width: 68ch; margin: 0 auto 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.k-prose .scriptlesssocialsharing__heading { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--muted); margin-bottom: .7rem; }
.k-prose .scriptlesssocialsharing__buttons { display: flex; gap: .6rem; flex-wrap: wrap; }
.k-prose .scriptlesssocialsharing__buttons .button {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 700;
  color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s, transform .2s;
}
.k-prose .scriptlesssocialsharing__buttons .button:hover { border-color: var(--lime-dark); color: var(--lime-dark); transform: translateY(-2px); }
.k-prose .scriptlesssocialsharing__icon { width: 1em; height: 1em; }

/* photos: natural size by default, never blown to container width */
.k-photo { position: relative; text-align: center; }
.k-photo img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  width: auto; max-width: min(100%, var(--natw, 100%)); height: auto;
  max-height: min(64vh, 560px); object-fit: contain;
  margin-inline: auto; display: inline-block;
  transition: transform .6s var(--ease);
}
.k-photo:hover img { transform: scale(1.015); }
.k-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; text-align: center; }
/* photos inside a sized slot fill it edge to edge */
.k-cols .k-photo img { width: 100%; max-width: 100%; object-fit: cover; max-height: 460px; }
.k-photoline { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; align-items: center; }

/* paired-image feature: two matched photos above a shared heading + caption */
.k-photofeat { margin: 0; }
.k-photofeat__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.6rem); }
.k-photofeat__imgs img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.k-photofeat__cap { text-align: center; max-width: 760px; margin: clamp(1.4rem, 3vw, 2.2rem) auto 0; }
.k-photofeat__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.2; color: var(--ink); margin-bottom: .7rem; }
.k-photofeat__cap p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
@media (max-width: 700px) {
  .k-photofeat__imgs { grid-template-columns: 1fr; }
  /* Icon grid: 2x2 on mobile (override the 1fr rule from 900px breakpoint) */
  .k-cols[style*="25fr 25fr 25fr 25fr"] { grid-template-columns: 1fr 1fr !important; }
}

/* whole-card links (Domestic / International students). Source photos are only
   370x270 native, so cards are capped ~360px wide (image never upscaled ->
   stays sharp) and use the native 37:27 aspect (no crop). Centered content,
   single-line CTA. */
.k-prose:has(+ .k-linkcards) { max-width: 820px; margin-inline: auto; }
.k-linkcards { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.4rem, 3vw, 2.2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.k-linkcard {
  width: 360px; max-width: 100%; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); --d: 0ms;
}
.k-linkcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.k-linkcard__media { display: block; aspect-ratio: 37 / 27; overflow: hidden; background: var(--paper); }
.k-linkcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.k-linkcard:hover .k-linkcard__media img { transform: scale(1.04); }
.k-linkcard__body { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.4rem 1.4rem 1.6rem; text-align: center; }
.k-linkcard__title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.k-linkcard__cta {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  background: var(--lime); color: var(--ink); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .6rem 1.3rem; border-radius: 999px; transition: background .2s;
}
.k-linkcard:hover .k-linkcard__cta { background: var(--lime-2); }
@media (max-width: 800px) { .k-linkcard { width: 300px; } }

/* "Up and Coming Courses" - one card per course */
.k-coursecards-intro { text-align: center; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.k-coursecards-intro h3 { color: var(--muted); font-weight: 600; }
.k-coursecards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 1.8rem); align-items: start; }
.k-coursecard {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; --d: 0ms;
}
.k-coursecard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(167, 203, 57, .5); }
.k-coursecard__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem;
  padding: 1.4rem 1.5rem; background: var(--ink); color: #fff; text-decoration: none;
}
.k-coursecard__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.k-coursecard:hover .k-coursecard__title { color: var(--lime-2); }
.k-coursecard__code { flex: 0 0 auto; align-self: flex-start; white-space: nowrap; font: 700 .7rem/1.3 var(--font-body); letter-spacing: .03em; color: var(--ink); background: var(--lime); border-radius: 6px; padding: .2em .5em; }
.k-coursecard__body { padding: 1.3rem 1.5rem .4rem; flex: 1; font-size: .92rem; }
.k-coursecard__body p strong { color: var(--ink); font-family: var(--font-display); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.k-coursecard__body > p:first-child { margin-top: 0; }
.k-coursecard__body ul { margin: .4rem 0 1rem; padding-left: 0; list-style: none; display: grid; gap: .4rem; }
.k-coursecard__body ul ul { margin: .3rem 0 0; }
.k-coursecard__body li { position: relative; padding-left: 1.4rem; line-height: 1.4; }
.k-coursecard__body li::before { content: ''; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dark); }
.k-coursecard__body li[style*="list-style-type: none"] { padding-left: 0; }
.k-coursecard__body li[style*="list-style-type: none"]::before { display: none; }
.k-coursecard__cta {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 1.5rem 1.5rem; align-self: flex-start; white-space: nowrap;
  color: var(--navy); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 2px solid var(--lime); padding-bottom: .15rem; transition: gap .2s;
}
.k-coursecard:hover .k-coursecard__cta { gap: .7rem; }
@media (max-width: 760px) { .k-coursecards { grid-template-columns: 1fr; } }

/* feature split: text beside sticky media */
.k-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.8rem, 4.5vw, 4rem); align-items: start; }
.k-feature--mleft { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.k-feature--mleft .k-feature__media { order: -1; }
.k-feature__media { position: sticky; top: 110px; display: grid; gap: 1.2rem; }
.k-feature__media .k-photo img { width: 100%; max-width: 100%; object-fit: cover; max-height: 540px; }

/* CTA cards: repeated photo + heading + button groups */
.k-ctacards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; margin-top: 1.8rem; }
.k-ctacard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.k-ctacard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(167, 203, 57, .55); }
.k-ctacard .k-photo { margin: 0; }
.k-ctacard .k-photo img { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; box-shadow: none; max-height: none; }
.k-ctacard .k-h { padding: 1.3rem 1.5rem 0; margin-bottom: .4rem; font-size: 1.4rem; }
.k-ctacard .k-prose { padding: 0 1.5rem; }
.k-ctacard .k-actions { padding: 0 1.5rem 1.5rem; margin-top: auto; padding-top: 1rem; }

/* actions */
.k-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* icon rows */
.k-iconlist { list-style: none; display: grid; gap: 1rem; }
.k-iconlist li, .k-iconrow { display: flex; gap: .9rem; align-items: flex-start; }
.k-iconrow { margin: .8rem 0; }
.k-iconrow__ic {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(167, 203, 57, .2), rgba(167, 203, 57, .06));
  border: 1px solid rgba(167, 203, 57, .4); color: var(--lime-dark);
}
.k-iconrow__ic svg { width: 21px; height: 21px; }
.k-iconrow__txt { align-self: center; font-weight: 600; }
.k-row--bg .k-iconrow__txt, .k-row--bg .k-iconrow__txt a { color: #fff; }

/* key-facts details: always-visible course info (price/requirements need to
   be readable immediately, not hidden behind an accordion click) */
.k-details { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.k-details__main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm);
}
.k-details__label { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: .9rem; color: var(--ink); }
.k-details__main .k-prose { max-width: none; }
.k-details__facts { display: grid; gap: 1.1rem; align-content: start; }
.k-factcard { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-md); border-left: 4px solid var(--lime); }
.k-factcard__label { display: block; font-family: var(--font-display); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-2); margin-bottom: .5rem; }
.k-factcard .k-prose { color: #fff; max-width: none; }
.k-factcard .k-prose a { color: var(--lime-2); text-decoration-color: rgba(198, 231, 90, .8); }

/* accordion */
.k-acc { display: grid; gap: .8rem; }
.k-acc__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.k-acc__item:has(.k-acc__q[aria-expanded="true"]) { box-shadow: var(--shadow-md); border-color: rgba(167, 203, 57, .6); }
.k-acc__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.05rem 1.3rem; font: 700 1.05rem/1.4 var(--font-body); color: var(--ink);
}
.k-acc__x { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; position: relative; background: var(--paper); border: 1px solid var(--line); transition: transform .35s var(--ease), background .3s; }
.k-acc__x::before, .k-acc__x::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 1.8px; background: var(--ink); translate: -50% -50%; transition: rotate .35s var(--ease); }
.k-acc__x::after { rotate: 90deg; }
.k-acc__q[aria-expanded="true"] .k-acc__x { background: var(--lime); transform: rotate(45deg); }
.k-acc__a { padding: 0 1.3rem 1.2rem; }

/* gallery + lightbox */
.k-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.k-gallery__item { border-radius: var(--radius); overflow: hidden; display: block; box-shadow: var(--shadow-sm); position: relative; }
.k-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.k-gallery__item:hover img { transform: scale(1.06); }

/* fade in/out gallery (e.g. homepage "2024 Graduates" slideshow) - a stack of
   real photos cross-fading in sequence via pure CSS keyframes, no JS. */
.k-fadegallery {
  position: relative; max-width: 380px; margin: 2.2rem auto 0; aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); display: block;
}
.k-fadegallery__slide {
  position: absolute; inset: 0; display: block; opacity: 0;
  animation: k-fade-cycle 9s infinite both;
  animation-delay: calc(var(--i, 0) * 3s);
}
.k-fadegallery__slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes k-fade-cycle {
  0% { opacity: 0; }
  4% { opacity: 1; }
  30% { opacity: 1; }
  34% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .k-fadegallery__slide { animation: none; opacity: 0; }
  .k-fadegallery__slide:first-child { opacity: 1; }
}
/* the "2024 Graduates" heading now shares the slideshow's section as its title;
   centre it above the (centred) slideshow */
.k-h:has(+ .k-gradshow) { text-align: center; margin-bottom: 0; }

/* graduates slideshow: one large image at a time on a uniform navy stage,
   auto-advancing with prev/next + dots (JS in site.js). */
.k-gradshow {
  position: relative; max-width: 940px; margin: 2.4rem auto 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--ink); outline: none;
}
.k-gradshow:focus-visible { box-shadow: 0 0 0 3px var(--lime), var(--shadow-lg); }
.k-gradshow__stage { position: relative; aspect-ratio: 16 / 10; background: var(--ink); }
.k-gradshow__slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease); pointer-events: none;
}
.k-gradshow__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.k-gradshow__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-gradshow__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 999px; cursor: pointer; z-index: 3;
  background: rgba(255, 255, 255, .88); color: var(--ink);
  box-shadow: var(--shadow-md); transition: background .25s, transform .25s;
}
.k-gradshow__nav svg { width: 24px; height: 24px; }
.k-gradshow__nav:hover { background: var(--lime); transform: translateY(-50%) scale(1.06); }
.k-gradshow__nav--prev { left: 14px; }
.k-gradshow__nav--next { right: 14px; }
.k-gradshow__dots {
  /* bottom-left, clear of the testimonial cards that overlap the bottom-centre */
  position: absolute; left: 18px; right: auto; bottom: 14px; z-index: 3;
  display: flex; gap: .5rem; justify-content: flex-start;
}
.k-gradshow__dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .5); box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  transition: background .25s, transform .25s;
}
.k-gradshow__dot:hover { background: rgba(255, 255, 255, .8); }
.k-gradshow__dot.is-on { background: var(--lime); transform: scale(1.25); }
@media (max-width: 560px) {
  .k-gradshow__stage { aspect-ratio: 4 / 3; }
  .k-gradshow__nav { width: 40px; height: 40px; }
}

/* testimonial-letter thumbnails: 30% smaller cards that overlap the bottom of
   the slideshow (top ~40% of their height sits over it) and lift off the page
   with a strong shadow; click opens the full letter in the site lightbox. */
.k-letters { max-width: 940px; margin: calc(-1 * var(--k-letter-overlap, 90px)) auto 0; position: relative; z-index: 5; }
.k-letters__grid {
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; align-items: flex-start;
}
.k-letter {
  position: relative; display: block; width: 168px; max-width: 42vw; /* ~30% smaller than the old 240px */
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 4px solid #fff; box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.k-letter:hover, .k-letter:focus-visible {
  transform: translateY(-8px) scale(1.03); box-shadow: 0 40px 80px -22px rgba(6, 13, 43, .5);
}
.k-letter img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 4; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.k-letters__label {
  text-align: center; color: var(--muted); font-weight: 600;
  font-size: .95rem; margin: 1.3rem 0 0;
}
@media (max-width: 560px) { .k-letters { --k-letter-overlap: 54px; } .k-letter { width: 128px; } }
.k-letter__zoom {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(6, 13, 43, .72); color: #fff;
  opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.k-letter__zoom svg { width: 20px; height: 20px; }
.k-letter:hover .k-letter__zoom, .k-letter:focus-visible .k-letter__zoom { opacity: 1; transform: scale(1); }

/* lightbox: a translucent tint over the (dimmed, blurred) page - NOT an opaque
   full-screen takeover - that fades in smoothly so it reads as an overlay on
   the current page, not a separate page load. */
.k-lightbox {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 3rem;
  background: rgba(6, 13, 43, .66); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  cursor: zoom-out; animation: k-lb-fade .28s var(--ease);
}
/* author display:grid beats the hidden attribute's UA display:none; restore it */
.k-lightbox[hidden] { display: none !important; }
.k-lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); cursor: default; animation: k-lb-pop .34s var(--ease); }
.k-lightbox__close { position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
@keyframes k-lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes k-lb-pop { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .k-lightbox, .k-lightbox img { animation: none; } }

/* video + embeds + maps */
.k-video { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 420px; margin: 0 auto; }
.k-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.k-map iframe { display: block; width: 100%; }
.k-embed iframe { max-width: 100%; }

/* ---------------- workshop / skill-set info-box cards ----------------
 * Harvested Beaver Builder "info-box" modules (see .uabb-infobox* markup,
 * e.g. /training-workshops/). The source theme made the whole tile
 * clickable via an empty .uabb-infobox-module-link overlay anchor sized by
 * BB's own plugin CSS, which we never harvested — so the anchor rendered
 * at 0x0 and nothing was clickable. Restyled as a k-card-style tile using
 * the same tokens as .k-card; content strings are untouched. */
.k-cols:has(.uabb-infobox) { align-items: stretch; }
.k-cols:has(.uabb-infobox) .k-col { display: flex; flex-direction: column; }
.k-embed:has(.uabb-infobox) { flex: 1; }
.uabb-infobox {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.uabb-infobox:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(167, 203, 57, .55); }
.uabb-infobox-left-right-wrap { position: relative; display: flex; flex-direction: column; height: 100%; }
.uabb-infobox-module-link { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.uabb-infobox-content { display: flex; flex-direction: column; flex: 1; }
.uabb-image { aspect-ratio: 1 / 1; overflow: hidden; }
.uabb-image-content { width: 100%; height: 100%; }
.uabb-photo-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.uabb-infobox:hover .uabb-photo-img { transform: scale(1.07); }
.uabb-infobox-title-wrap { padding: 1.3rem 1.4rem 0; }
.uabb-infobox-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 0; transition: color .3s; }
.uabb-infobox:hover .uabb-infobox-title { color: var(--lime-dark); }
.uabb-infobox-text-wrap { padding: .5rem 1.4rem 1.5rem; margin-top: auto; }
.uabb-infobox-text { font-size: .92rem; color: var(--muted); }
.uabb-infobox-text p { margin: 0; }

/* testimonials */
.k-testis { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 2.4rem 3rem; box-shadow: var(--shadow-md); overflow: hidden; }
.k-testis::before { content: '\201C'; position: absolute; top: -1.4rem; left: 1rem; font-family: var(--font-display); font-size: 9rem; color: rgba(167, 203, 57, .3); line-height: 1; }
.k-testis__item { display: none; font-size: 1.02rem; position: relative; z-index: 2; }
.k-testis__item.is-on { display: block; animation: testin .6s var(--ease); }
@keyframes testin { from { opacity: 0; transform: translateY(12px); } }
.k-testis__dots { position: absolute; bottom: 1.1rem; left: 2.4rem; display: flex; gap: .45rem; z-index: 3; }
.k-testis__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: background .25s, transform .25s; padding: 0; }
.k-testis__dots button.is-on { background: var(--lime-dark); transform: scale(1.3); }

/* ---------------- course cards ---------------- */
.k-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 1.6rem; }
.k-card {
  display: flex; flex-direction: column; background: var(--card);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  position: relative;
}
.k-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(167, 203, 57, .55); }
.k-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.k-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.k-card:hover .k-card__media img { transform: scale(1.07); }
.k-card__shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.k-card:hover .k-card__shine { transform: translateX(120%); }
.k-card__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.k-card__body .k-chip { align-self: flex-start; }
.k-card__title { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.k-card__excerpt { font-size: .92rem; color: var(--muted); }
.k-card__excerpt p { margin: 0; }
.k-card__cta { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .9rem; color: var(--lime-dark); }
.k-card__cta .k-arr { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.k-card:hover .k-card__cta .k-arr { transform: translateX(5px); }

/* filter pills */
.k-filter { display: flex; gap: .6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.k-filter__btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1.3rem; font: 700 .9rem var(--font-body); cursor: pointer; transition: all .25s; color: var(--muted); }
.k-filter__btn:hover { border-color: var(--ink); color: var(--ink); }
.k-filter__btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.k-card.is-hidden { display: none; }

/* ---------------- page hero ---------------- */
.k-pagehero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(130% 140% at 85% -10%, var(--navy-soft) 0%, var(--ink) 60%);
  /* over-pull under the opaque topbar (same as .k-hero) so no page bg shows
     behind the floating header pill; the extra 32px is added to the top padding */
  padding: clamp(7rem, 8vw + 2rem, 8.5rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  margin-top: -110px;
}
.k-pagehero__mesh {
  position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background:
    radial-gradient(42% 55% at 18% 108%, rgba(167, 203, 57, .28) 0%, transparent 100%),
    radial-gradient(35% 50% at 95% 20%, rgba(0, 0, 128, .55) 0%, transparent 100%);
}
.k-pagehero .k-wrap { position: relative; z-index: 2; }

/* pages carrying a genuine harvested photo (og_image) get it as a hero
   backdrop instead of relying on the mesh gradient alone - real imagery,
   tinted to stay on-brand and keep the title legible. */
.k-pagehero--photo { background: var(--ink); }
.k-pagehero__photo {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  opacity: .38; filter: saturate(.7) contrast(1.05);
}
.k-pagehero--photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ink) 18%, rgba(6, 13, 43, .55) 55%, rgba(6, 13, 43, .15) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 45%);
}
.k-pagehero--photo .k-pagehero__mesh { opacity: .4; mix-blend-mode: screen; }
.k-pagehero__title {
  font-family: var(--font-display); font-weight: 640;
  font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.08; letter-spacing: -.03em;
  max-width: 22ch;
}
.k-pagehero__title--long { font-size: clamp(1.3rem, 2.6vw, 1.85rem); max-width: 30ch; }
.k-pagehero__meta { color: #aeb8e2; margin-top: .8rem; }
.k-crumbs { display: flex; gap: .55rem; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8f99c9; margin-bottom: .8rem; flex-wrap: wrap; }
.k-crumbs a { color: #c3cbf0; }
.k-crumbs a:hover { color: var(--lime-2); }
.k-crumbs em { font-style: normal; color: var(--lime-2); }
.k-crumbs span { opacity: .4; }

/* ---------------- course page ---------------- */
.k-coursehero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(130% 150% at 90% -20%, var(--navy-soft) 0%, var(--ink) 62%);
  /* over-pull under the opaque topbar (same as .k-hero) so no page bg shows
     behind the floating header pill; the extra 32px is added to the top padding */
  padding: clamp(8.5rem, 12vw + 2rem, 11.5rem) 0 clamp(3rem, 7vw, 5rem);
  margin-top: -110px;
}
.k-coursehero__mesh { position: absolute; inset: 0; opacity: .6; background: radial-gradient(40% 60% at 10% 110%, rgba(167, 203, 57, .3) 0%, transparent 100%); }
.k-coursehero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.k-coursehero__title { font-family: var(--font-display); font-weight: 640; font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; margin: 1rem 0 1.6rem; }
.k-coursehero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.k-coursehero__media { position: relative; }
.k-coursehero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.k-coursehero__ring { position: absolute; inset: -14px; border: 1.5px solid rgba(167, 203, 57, .5); border-radius: calc(var(--radius-lg) + 14px); pointer-events: none; mask: linear-gradient(150deg, #000 20%, transparent 60%); }

.k-coursebody { padding: clamp(3rem, 6vw, 5rem) 0; }
.k-coursebody__grid { display: grid; grid-template-columns: 178px minmax(0, 1fr) 300px; gap: clamp(1.6rem, 3.5vw, 3rem); align-items: start; }
.k-coursenav { position: sticky; top: 110px; font-size: .78rem; }
.k-coursenav__label { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.k-coursenav ul { list-style: none; display: grid; gap: .1rem; border-left: 1.5px solid var(--line); }
.k-coursenav a { display: flex; gap: .5rem; padding: .42rem .75rem; color: var(--muted); font-weight: 600; border-left: 2px solid transparent; margin-left: -1.5px; transition: color .2s, border-color .2s, background .2s; border-radius: 0 10px 10px 0; }
.k-coursenav a:hover { color: var(--ink); background: rgba(167, 203, 57, .08); }
.k-coursenav a.is-on { color: var(--ink); border-left-color: var(--lime-dark); background: rgba(167, 203, 57, .12); }
.k-coursenav__n { font-size: .72rem; font-weight: 800; color: var(--lime-dark); padding-top: .18em; }

.k-csec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 1.6rem; scroll-margin-top: 120px; box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.k-csec:hover { box-shadow: var(--shadow-md); }
.k-csec__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.k-csec__num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--lime-dark); }
.k-csec__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.18rem, 2vw, 1.45rem); color: var(--ink); }
.k-csec__body { max-width: none; font-size: .92rem; line-height: 1.6; }

.k-coursesidebar { position: sticky; top: 110px; display: grid; gap: 1.3rem; }
.k-sidecard { background: linear-gradient(160deg, #fff, var(--paper)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); font-size: .95rem; }
.k-sidecard h2, .k-sidecard h3, .k-sidecard h4 { font-family: var(--font-display); color: var(--ink); margin-bottom: .7rem; font-size: 1.25rem; }
.k-sidecard p { margin-bottom: .8rem; }
.k-sidecard a { font-weight: 700; }
.k-sidecard img { border-radius: 12px; }
.k-sidecard ul { padding-left: 1.2rem; }
.k-sidecard__title { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem !important; text-align: left !important; }
.k-sidecard__title::before { content: ""; flex: none; width: 4px; height: 1.1em; border-radius: 3px; background: linear-gradient(var(--lime), var(--lime-dark)); }
/* Course sidebar: "other courses" navigation list (domestic + international) */
.k-sidecard .domestic-courses-buttons { display: grid; gap: .5rem; }
.k-sidecard .shortcode-course-button {
  display: flex; align-items: stretch; gap: 0; overflow: hidden;
  padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-sm);
  color: var(--ink); font-weight: 600; font-size: .8rem; line-height: 1.3;
  transition: border-color .2s, transform .2s, color .2s, box-shadow .2s;
}
.k-sidecard .k-cbtn__thumb {
  flex: none; width: 30%; min-width: 54px; max-width: 82px; align-self: stretch;
  position: relative; background: var(--paper);
}
.k-sidecard .k-cbtn__thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; border-radius: 0;
}
.k-sidecard .shortcode-course-button .fl-button-text {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  align-self: center; padding: .55rem .7rem;
}
.k-sidecard .k-cbtn__code {
  align-self: flex-start; background: var(--lime); color: var(--ink);
  font-weight: 800; font-size: .68rem; letter-spacing: .02em;
  padding: .16rem .5rem; border-radius: 999px; white-space: nowrap;
}
.k-sidecard .k-cbtn__name { font-weight: 600; font-size: .82rem; line-height: 1.25; color: var(--ink); }
.k-sidecard .shortcode-course-button:hover {
  border-color: var(--lime); color: var(--navy);
  transform: translateX(3px); box-shadow: var(--shadow-md);
}

.k-coursepager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.k-coursepager__link { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 1.1rem 1.4rem; display: grid; gap: .2rem; transition: border-color .25s, box-shadow .25s, transform .25s; }
.k-coursepager__link:hover { border-color: rgba(167, 203, 57, .6); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.k-coursepager__link span { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.k-coursepager__link strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.k-coursepager__link--next { text-align: right; }

/* ---------------- forms ---------------- */
.k-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-md); }
.k-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; margin-bottom: 1.5rem; }
.k-field { display: grid; gap: .45rem; }
.k-field--full { grid-column: 1 / -1; }
.k-field__label { font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.k-field__label em { color: var(--lime-dark); font-style: normal; }
.k-field input, .k-field textarea, .k-field select {
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem;
  font: 500 1rem var(--font-body); color: var(--text); background: var(--paper);
  transition: border-color .25s, box-shadow .25s, background .25s; width: 100%;
}
.k-field input:focus, .k-field textarea:focus { outline: none; border-color: var(--lime-dark); background: #fff; box-shadow: 0 0 0 4px rgba(167, 203, 57, .18); }
.k-form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.k-form__status { margin-top: 1rem; font-weight: 700; min-height: 1.4em; }
.k-form__status.ok { color: var(--lime-dark); }
.k-form__status.err { color: #b3261e; }

/* required-field validation (enrolment forms) */
.k-field--invalid > .k-field__label { color: #b3261e; }
.k-field--invalid input, .k-field--invalid textarea, .k-field--invalid select { border-color: #b3261e; background: #fdf4f3; }
.k-field--invalid input:focus, .k-field--invalid textarea:focus, .k-field--invalid select:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .15); }
.k-field--invalid .k-opt { border-color: #e4a9a4; }
.k-field__err { color: #b3261e; font-size: .82rem; font-weight: 700; }

/* ---------------- enrolment forms (Domestic / International) ---------------- */
/* decision gate: the applicant must pick who they are before any form shows */
.k-enrol__chooser { text-align: center; padding: .5rem 0 1rem; }
.k-enrol__gfx {
  width: 240px; max-width: 70%; height: auto; margin: 0 auto .4rem; display: block;
  animation: k-choose-bob 2.2s var(--ease) infinite;
}
@keyframes k-choose-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(6px) scale(1.03); }
}
.k-enrol__prompt { font: 700 clamp(1.3rem, 3vw, 1.8rem) var(--font-display); color: var(--ink); margin-bottom: 1.6rem; }
.k-enrol__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 760px; margin: 0 auto; }
.k-enrol__card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.6rem; cursor: pointer; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  animation: k-card-pulse 2.6s var(--ease) infinite;
}
.k-enrol__card:nth-child(2) { animation-delay: 1.3s; }
@keyframes k-card-pulse {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 0 0 4px rgba(167, 203, 57, .22), var(--shadow-md); }
}
.k-enrol__card:hover, .k-enrol__card:focus-visible {
  transform: translateY(-6px); border-color: var(--lime-dark); box-shadow: var(--shadow-lg);
  animation-play-state: paused; outline: none;
}
.k-enrol__card-ic { width: 3.2rem; height: 3.2rem; color: var(--lime-dark); }
.k-enrol__card-ic svg { width: 100%; height: 100%; }
.k-enrol__card-tag { font: 800 1.15rem var(--font-display); color: var(--ink); }
.k-enrol__card-desc { font-size: .92rem; line-height: 1.5; color: var(--muted); }
/* margin-top:auto anchors the CTA to the bottom of the (equal-height) cards so
   both buttons line up regardless of how many lines the description runs to */
.k-enrol__card-go { margin-top: auto; padding-top: .6rem; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.k-enrol__card-go .k-arr { flex: none; width: 1.1em; height: 1.1em; }
/* once a form is chosen, collapse the chooser to a slim reminder */
.k-enrol__chooser.is-picked .k-enrol__gfx,
.k-enrol__chooser.is-picked .k-enrol__prompt { display: none; }
.k-enrol__chooser.is-picked .k-enrol__cards { display: none; }

.k-enrol__active {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1rem 1.4rem; margin-bottom: 1.8rem;
}
/* stays hidden until a form is picked (the display:flex above otherwise defeats
   the hidden attribute, showing an empty "You are completing the ." bar) */
.k-enrol__active[hidden] { display: none; }
.k-enrol__active-label { font-size: 1rem; }
.k-enrol__active-label strong { color: var(--lime-2); }
.k-enrol__switch {
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; padding: .5rem 1.1rem; font: 700 .85rem var(--font-body); cursor: pointer; transition: background .2s;
}
.k-enrol__switch:hover { background: rgba(255, 255, 255, .26); }
.k-enrol__panel[hidden] { display: none; }
.k-enrol__panel-title { font: 800 clamp(1.4rem, 3vw, 2rem) var(--font-display); color: var(--ink); margin-bottom: 1.6rem; }

@media (max-width: 620px) {
  .k-enrol__cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .k-enrol__gfx, .k-enrol__card { animation: none; }
}

/* the whole gate reads better at a constrained measure on wide desktops */
.k-enrol { max-width: 960px; margin-inline: auto; }

.k-enrolform { display: flex; flex-direction: column; gap: 1.8rem; }
.k-enrolsec {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.k-enrolsec:focus-within { box-shadow: var(--shadow-md); border-color: rgba(127, 163, 31, .35); }
/* completed step: every required field in the card is satisfied -> soft green,
   so applicants can see their progress as they work down the form */
.k-enrolsec.is-complete { background: rgba(167, 203, 57, .09); border-color: rgba(127, 163, 31, .4); }
/* section header: filled lime number badge beside the title */
.k-enrolsec__title {
  display: flex; align-items: center; gap: .8rem;
  font: 700 clamp(1.05rem, 1.6vw, 1.2rem) var(--font-display); color: var(--ink);
  margin-bottom: .3rem; line-height: 1.25;
}
.k-enrolsec__num {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  font: 800 .95rem var(--font-body); letter-spacing: .01em; margin-right: 0;
  box-shadow: 0 1px 0 rgba(6, 13, 43, .08);
}
.k-enrolsec__hint { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 1.3rem 3.1rem; }
.k-enrolsec .k-form__grid { margin-bottom: 0; }

/* group fields (checkbox / radio option sets) */
.k-field--radio, .k-field--check { display: flex; flex-direction: column; gap: .6rem; }
.k-field--radio .k-field__label, .k-field--check .k-field__label { margin-bottom: .15rem; }

/* option rows become an aligned tile grid: columns line up regardless of
   label length, so no more ragged flex-wrap (the "section 08" problem) */
.k-optrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: .65rem;
}
/* Yes/No pairs: two equal tiles, side by side, even on mobile */
.k-optrow--binary { grid-template-columns: 1fr 1fr; max-width: 380px; }

/* each option is a full clickable tile; the native input stays inside for
   accessibility + form submission. Checked state via :has() with the plain
   accent-color tile as the graceful fallback. */
.k-opt {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper);
  font-size: .95rem; font-weight: 500; line-height: 1.45; color: var(--text);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.k-opt:hover { border-color: rgba(127, 163, 31, .55); background: #fff; }
.k-opt input {
  flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .12rem 0 0;
  accent-color: var(--lime-dark); cursor: pointer;
}
.k-opt:focus-within { outline: none; border-color: var(--lime-dark); box-shadow: 0 0 0 4px rgba(167, 203, 57, .2); }
.k-opt:has(input:checked) {
  border-color: var(--lime-dark); background: rgba(167, 203, 57, .12);
  box-shadow: inset 0 0 0 1px var(--lime-dark);
}

/* helper text under complex inputs */
.k-field__hint { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); line-height: 1.4; margin-top: .1rem; }
.k-field textarea { min-height: 108px; resize: vertical; }

/* file upload: dashed dropzone with a clear hover affordance */
.k-field--file input[type=file] {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: .95rem 1rem;
  background: var(--paper); font-size: .85rem; color: var(--muted); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.k-field--file input[type=file]:hover { border-color: rgba(127, 163, 31, .6); background: #fff; }
.k-field--file input[type=file]:focus { outline: none; border-color: var(--lime-dark); box-shadow: 0 0 0 4px rgba(167, 203, 57, .18); }

.k-conditional { margin-top: .4rem; }
.k-conditional[hidden] { display: none; }
.k-enrolform .k-btn { align-self: flex-start; margin-top: .4rem; }

/* informational footnotes (fees / privacy / document checklist): deliberately
   NOT numbered step cards, so they don't read as actions the applicant owes */
.k-enrolnote {
  background: rgba(6, 13, 43, .025);
  border: 1px solid var(--line); border-left: 3px solid var(--lime-dark);
  border-radius: 12px; padding: 1.1rem 1.4rem;
  font-size: .9rem; line-height: 1.55; color: var(--text);
}
.k-enrolnote__title { font: 800 .74rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.k-enrolnote p { margin: 0; }
.k-enrolnote__lead { margin: 0 0 .65rem; }
.k-enrolnote__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .35rem .9rem; }
.k-enrolnote__list li { position: relative; padding-left: 1.1rem; line-height: 1.4; }
.k-enrolnote__list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-dark); }

/* drawn-signature pad */
.k-sigpad { position: relative; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--paper); transition: border-color .25s, box-shadow .25s; }
.k-sigfield.is-signed .k-sigpad { border-style: solid; border-color: var(--lime-dark); }
.k-sigpad__canvas { display: block; width: 100%; height: 180px; cursor: crosshair; touch-action: none; border-radius: 12px; }
.k-sigpad__line { position: absolute; left: 8%; right: 8%; bottom: 34px; border-bottom: 1px solid rgba(6, 13, 43, .25); pointer-events: none; }
.k-sigpad__hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .78rem; color: var(--muted); pointer-events: none; transition: opacity .25s; }
.k-sigfield.is-signed .k-sigpad__hint { opacity: 0; }
.k-sigpad__bar { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
.k-sigpad__clear { background: none; border: 0; padding: 0; font: 700 .82rem var(--font-body); color: var(--navy-soft); cursor: pointer; text-decoration: underline; }
.k-sigpad__clear:hover { color: var(--ink); }
.k-sigpad__err { color: #b3261e; font-weight: 700; font-size: .85rem; }

/* ---------------- footer ---------------- */
.k-footer { background: var(--ink); color: #b7c0e6; position: relative; overflow: hidden; margin-top: 4rem; }
.k-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(167, 203, 57, .7), transparent); }
.k-footer__glow { position: absolute; width: 60%; height: 60%; left: -15%; bottom: -40%; background: radial-gradient(circle, rgba(0, 0, 128, .5), transparent 70%); pointer-events: none; }
.k-footer .k-wrap { position: relative; z-index: 2; }
.k-footer__top { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }

/* the standalone duplicate logo column was dropped - footCols[0] (logo +
   blurb + social) now carries that role as the first real column. Weights
   reflect actual content: about/social (0) and contact (3) are short; the
   two policy-link lists (1 & 2) are long, so they get more width. No column
   scrolls - see the compact icon-list treatment below instead. */
.k-footer__cols {
  display: grid;
  grid-template-columns: minmax(200px, .85fr) minmax(230px, 1.3fr) minmax(230px, 1.3fr) minmax(200px, 1fr);
  align-items: start;
  gap: 2.75rem 2.5rem;
  font-size: .93rem;
}
.k-footer__col { min-width: 0; }
.k-footer__col > :first-child { margin-top: 0; }
.k-footer__col h1, .k-footer__col h2, .k-footer__col h3, .k-footer__col h4, .k-footer__col .widget-title {
  color: #fff; font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase;
  margin: 0 0 .9rem; padding-bottom: .6rem; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.k-footer__col ul { list-style: none; display: grid; gap: .5rem; }
.k-footer__col a { color: #b7c0e6; transition: color .2s, padding-left .2s; }
.k-footer__col a:hover { color: var(--lime-2); padding-left: .3rem; }
.k-footer__col p { margin-bottom: .7rem; }
.k-footer__col img { max-width: 180px; height: auto; margin-bottom: .8rem; }

/* social icons (Facebook/Instagram) - swapped from the harvested <i class="fab
   fa-*"> icon-font markup (Font Awesome was never loaded, so those glyphs
   never rendered) for real inline SVG on a k-footer__social wrapper */
.k-footer__social { display: flex; gap: .6rem; margin-top: .9rem; }
.k-footer__social a {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); color: #b7c0e6; transition: background .2s, color .2s;
}
.k-footer__social a:hover { background: var(--lime-dark); color: var(--ink); padding-left: 0; }
.k-footer__social svg { width: 17px; height: 17px; }

/* policy/document link lists (2nd & 3rd columns) run to a dozen-plus
   verbatim-labelled links each. No scroll box - instead a compact list with
   a small theme-green document icon per item and tight vertical rhythm. */
/* dense policy/document lists: a faint hairline between rows with a little
   breathing room turns the wall of links into a scannable, table-like list */
.k-footer__col:nth-child(2) ul, .k-footer__col:nth-child(3) ul { gap: 0; font-size: .81rem; line-height: 1.35; }
.k-footer__col:nth-child(2) li, .k-footer__col:nth-child(3) li {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: 3px 0; border-bottom: 2px solid rgba(255, 255, 255, .12);
}
.k-footer__col:nth-child(2) li:last-child, .k-footer__col:nth-child(3) li:last-child { border-bottom: 0; }

/* POLICIES heading was removed from the 2nd links column - pad its top so its
   list lines up with the LINKS column's list (mirrors the heading box metrics:
   font 1.02rem x 1.7 line + .6rem pad-bottom + .9rem margin + 1px border) */
.k-footer__col:nth-child(3) { padding-top: calc(1.02rem * 1.7 + .6rem + .9rem + 1px); }
@media (max-width: 900px) { .k-footer__col:nth-child(3) { padding-top: 0; } }

/* CONTACT items: real SVG icon + text (replaces harvested dead icon-fonts) */
.k-footer__contact { list-style: none; display: grid; gap: .85rem; }
.k-footer__contact li { display: flex; align-items: flex-start; gap: .7rem; }
.k-footer__ci { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .15em; color: var(--lime); }
.k-footer__ci svg { width: 100%; height: 100%; display: block; }
.k-footer__contact a { color: #b7c0e6; }
.k-footer__contact a:hover { color: var(--lime-2); padding-left: 0; }

/* official document code (PP023, F009 ...) lifted out of the link text into a
   small chip after the document name - see badgeDocCodes() in server.js.
   The anchor is a flex row so the name fills the width and the chip is pushed
   to the column's right edge - all chips line up in a tidy right-hand column
   regardless of how many lines the name wraps to. */
.k-footer__col:nth-child(2) li a, .k-footer__col:nth-child(3) li a {
  flex: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem;
}
.k-doclink__name { flex: 1 1 auto; min-width: 0; }
.k-doccode {
  flex: 0 0 auto; align-self: flex-start; margin-top: .05rem; text-align: center; white-space: nowrap;
  min-width: 3.6rem; font: 700 .66rem/1.3 var(--font-body); letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: var(--lime-2); background: rgba(167, 203, 57, .13); border: 1px solid rgba(167, 203, 57, .28);
  border-radius: 5px; padding: .1em .45em;
}
.k-footer__col:nth-child(2) li::before, .k-footer__col:nth-child(3) li::before {
  content: ''; flex: 0 0 auto; width: 12px; height: 12px; margin-top: .2em;
  background-color: var(--lime); -webkit-mask: var(--doc-icon) no-repeat center / contain; mask: var(--doc-icon) no-repeat center / contain;
}

.k-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 1.4rem 0 1.8rem; font-size: .84rem; color: #7d88b8; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.k-footer__bottomline p { margin: 0; }
.k-footer__bottom a { color: #aab4de; }
.k-footer__bottom a:hover { color: var(--lime-2); }
.k-footer__credit { display: inline-flex; align-items: center; gap: .55rem; color: #7d88b8; }
.k-footer__credit a { display: inline-flex; align-items: center; line-height: 0; }
.k-footer__credit img { height: 22px; width: auto; opacity: .82; transition: opacity .2s; }
.k-footer__credit a:hover img { opacity: 1; }

/* ---------------- reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .k-coursebody__grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .k-coursenav { display: none; }
}
@media (max-width: 900px) {
  .k-nav, .k-header__cta { display: none; }
  .k-burger { display: flex; }
  .k-cols { grid-template-columns: 1fr !important; }
  .k-feature, .k-feature--mleft { grid-template-columns: 1fr; }
  .k-details { grid-template-columns: 1fr; }
  .k-feature__media { position: static; order: 1; }
  .k-feature--mleft .k-feature__media { order: -1; }
  .k-coursehero__grid { grid-template-columns: 1fr; }
  .k-coursebody__grid { grid-template-columns: 1fr; }
  .k-coursesidebar { position: static; }
  .k-footer__top { grid-template-columns: 1fr; }
  .k-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 1.5rem; }
  .k-form__grid { grid-template-columns: 1fr; }
  .k-coursepager { grid-template-columns: 1fr; }
  .k-coursepager__link--next { text-align: left; }
  .k-row--kicker .k-kickwrap { grid-template-columns: 1fr; }
  .k-kicker { position: static; flex-direction: row; height: auto; margin-bottom: 1rem; }
  .k-kicker__rule { width: 40px; height: 2px; min-height: 0; flex: 0 0 auto; background: linear-gradient(90deg, var(--lime), rgba(167, 203, 57, 0)); }
}
@media (max-width: 560px) {
  .k-marquee { transform: none; margin: 0; }
  .k-hero__ui { flex-direction: column; gap: 1rem; align-items: flex-start; padding-bottom: 1.1rem; }
  .k-hero__scroll { display: none; }
  .k-header__inner { margin-top: .5rem; padding: .45rem .8rem; }
  .k-header__logo img { width: 112px; }
  .k-footer__cols { grid-template-columns: 1fr; }
  .k-enrolsec__hint { margin-left: 0; }
}
