/* AimePrime — custom styles layered on top of Tailwind (CDN) */

:root {
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-050: #eef2ff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Accessible focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Gradient hero blob */
.blob {
  filter: blur(60px);
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.08); }
}

/* Card hover lift */
.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
}

/* Fade-in for modals */
.fade-in {
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob { animation: none; }
  .card-lift { transition: none; }
  .fade-in { animation: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Utility: line clamp fallback */
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------------
   Full-width banner slider
--------------------------------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1024px) {
  .hero-slider { min-height: 640px; }
}

/* 3D perspective stage for a depth-aware transition */
.hero-slider {
  perspective: 1600px;
  perspective-origin: 50% 50%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform, opacity;
  z-index: 0;
}

/* The artwork sits in its own layer so it can parallax independently */
.hero-slide__bg {
  position: absolute;
  inset: -6%;               /* extra bleed so the parallax shift never shows edges */
  background-size: cover;
  background-position: center;
  transform: scale(1.12) translateX(0);
  transition: transform 6.5s ease-out;
}

/* Readability veil over the artwork */
.hero-slide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.74) 0%, rgba(2, 6, 23, 0.45) 42%, rgba(2, 6, 23, 0.10) 100%);
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* ---- Direction-aware 3D reveal ----
   Incoming slide swings in from the right (next) or left (prev) with a
   subtle Y-axis rotation; the outgoing slide swings away in the opposite
   direction. Driven by data-dir set in slider.js. */
.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  z-index: 2;
  animation: heroSwingIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-slide.is-leaving {
  visibility: visible;
  opacity: 1;
  z-index: 1;
  animation: heroSwingOut 1s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}
/* Next direction (moving forward) */
.hero-slider[data-dir="next"] .hero-slide.is-active { animation-name: swingInRight; }
.hero-slider[data-dir="next"] .hero-slide.is-leaving { animation-name: swingOutLeft; }
/* Prev direction (moving backward) */
.hero-slider[data-dir="prev"] .hero-slide.is-active { animation-name: swingInLeft; }
.hero-slider[data-dir="prev"] .hero-slide.is-leaving { animation-name: swingOutRight; }

.hero-slide.is-active .hero-slide__bg { transform: scale(1) translateX(0); }

@keyframes swingInRight {
  from { opacity: 0; transform: translateX(60%) rotateY(-22deg) scale(0.92); }
  to   { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
}
@keyframes swingOutLeft {
  from { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
  to   { opacity: 0; transform: translateX(-45%) rotateY(18deg) scale(0.9); }
}
@keyframes swingInLeft {
  from { opacity: 0; transform: translateX(-60%) rotateY(22deg) scale(0.92); }
  to   { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
}
@keyframes swingOutRight {
  from { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
  to   { opacity: 0; transform: translateX(45%) rotateY(-18deg) scale(0.9); }
}
/* First paint / no-direction fallback */
@keyframes heroSwingIn {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroSwingOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Staged text: reveal + rise, layered on the 3D motion.
   NOTE: no clip-path here — clip-path clips glyph descenders (g, y, j) and the
   title drop-shadow. A plain opacity + translate reveal can never clip text. */
.hero-slide .anim {
  opacity: 0;
  transform: translateY(26px);
}
.hero-slide.is-active .anim {
  animation: heroTextIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-slide.is-active .anim.d1 { animation-delay: 0.35s; }
.hero-slide.is-active .anim.d2 { animation-delay: 0.48s; }
.hero-slide.is-active .anim.d3 { animation-delay: 0.61s; }
.hero-slide.is-active .anim.d4 { animation-delay: 0.74s; }
@keyframes heroTextIn {
  to { opacity: 1; transform: none; }
}

/* Give the big title room for descenders and its shadow so nothing is cut */
.hero-slide h1 {
  line-height: 1.15;
  padding-bottom: 0.12em;
  overflow: visible;
}

/* Controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: grid;
  place-items: center;
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.28); }
.hero-arrow:active { transform: translateY(-50%) scale(0.94); }

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.6rem;
}
.hero-dot {
  height: 0.65rem;
  width: 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.3s ease, background 0.3s ease;
}
.hero-dot.is-active {
  width: 2rem;
  background: #fff;
}

/* Progress bar for autoplay */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  z-index: 5;
  width: 0;
  background: rgba(255, 255, 255, 0.9);
}
.hero-progress.run {
  animation: heroProgress linear forwards;
}
@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slider[data-dir="next"] .hero-slide.is-active,
  .hero-slider[data-dir="next"] .hero-slide.is-leaving,
  .hero-slider[data-dir="prev"] .hero-slide.is-active,
  .hero-slider[data-dir="prev"] .hero-slide.is-leaving {
    animation: none !important;
    transform: none !important;
    transition: opacity 0.3s ease, visibility 0.3s;
  }
  .hero-slide.is-leaving { opacity: 0; visibility: hidden; }
  .hero-slide__bg { transition: none; transform: scale(1); }
  .hero-slide.is-active .anim { animation: none; opacity: 1; transform: none; clip-path: none; }
  .hero-progress.run { animation: none; }
}

/* ---------------------------------------------------------------
   Course cards & category grids
--------------------------------------------------------------- */
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgb(226 232 240);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.dark .course-card { background: rgb(15 23 42); border-color: rgb(30 41 59); }
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(2, 6, 23, 0.4);
}
.course-card:focus-within { border-color: var(--brand); }

/* Coloured header strip with icon */
.course-card__head {
  position: relative;
  height: 84px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.course-card__head svg { height: 40px; width: 40px; color: #fff; position: relative; z-index: 1; }
.course-card__head::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
}

/* Segment card (bigger, with illustration) */
.segment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgb(226 232 240);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dark .segment-card { background: rgb(15 23 42); border-color: rgb(30 41 59); }
.segment-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -24px rgba(2, 6, 23, 0.45); }
.segment-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.segment-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.segment-card:hover .segment-card__media img { transform: scale(1.05); }

/* Skill/level chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgb(241 245 249);
  color: rgb(51 65 85);
}
.dark .chip { background: rgb(30 41 59); color: rgb(203 213 225); }

/* ---------------------------------------------------------------
   Slider illustration (vector on the right of each slide)
--------------------------------------------------------------- */
.hero-slide__art {
  border-radius: 1.25rem;
  animation: heroArtFloat 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroArtFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide__art { animation: none; }
}

/* ===============================================================
   Light "study abroad" hero slider (redesign)
   =============================================================== */
.lhero {
  position: relative;
  background: #f7f5ef;            /* cream */
  overflow: hidden;
  isolation: isolate;
}
.dark .lhero { background: #0b1120; }

.lhero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(180,150,90,0.18) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 60% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 60% 40%, #000 30%, transparent 75%);
}

/* Slide track: only the active slide is shown, cross-faded */
.lhero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.lhero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

/* Eyebrow pill */
.lhero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(180,140,70,0.12);
  color: #9a6b1e;
  border: 1px solid rgba(180,140,70,0.3);
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dark .lhero__eyebrow { background: rgba(212,175,110,0.14); color: #e7c98f; border-color: rgba(212,175,110,0.3); }

/* Script accent word */
.lhero__script {
  font-family: "Caveat", "Segoe Script", cursive;
  font-weight: 700;
  color: #c99a44;
  white-space: nowrap;
}

/* Arch-shaped media */
.lhero__media {
  position: relative;
  aspect-ratio: 5 / 6;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  border-radius: 58% 42% 55% 45% / 45% 48% 52% 55%;   /* organic blob */
  animation: lheroBlob 12s ease-in-out infinite;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(30,20,60,0.45);
}
.lhero__media img, .lhero__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes lheroBlob {
  0%, 100% { border-radius: 58% 42% 55% 45% / 45% 48% 52% 55%; }
  50%      { border-radius: 45% 55% 42% 58% / 55% 45% 55% 45%; }
}

/* Floating cards */
.lhero__float {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,0.96);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -18px rgba(30,20,60,0.35);
  animation: lheroFloat 6s ease-in-out infinite;
}
.dark .lhero__float { background: rgba(15,23,42,0.96); }
.lhero__float--stat { top: 14%; left: -6%; padding: 0.9rem 1.1rem; text-align: center; }
.lhero__float--chips { bottom: 12%; left: -10%; padding: 0.9rem 1rem; animation-delay: -2s; }
@media (max-width: 1023px) { .lhero__float--stat, .lhero__float--chips { left: 2%; } }

@keyframes lheroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Rotating seal */
.lhero__seal {
  position: absolute;
  right: -4%;
  bottom: 6%;
  z-index: 3;
  width: 104px; height: 104px;
  display: grid; place-items: center;
  border-radius: 9999px;
  background: #c99a44;
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(120,90,20,0.6);
}
.lhero__seal svg { width: 100%; height: 100%; animation: lheroSpin 14s linear infinite; }
.lhero__seal span { position: absolute; font-size: 1.4rem; }
@keyframes lheroSpin { to { transform: rotate(360deg); } }

/* Dotted connector flourish */
.lhero__dots-path { position: absolute; z-index: 1; opacity: 0.5; pointer-events: none; }

/* Slider controls (light theme) */
.lhero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  display: grid; place-items: center; height: 2.75rem; width: 2.75rem;
  border-radius: 9999px; color: #6b5a34; background: rgba(255,255,255,0.9);
  border: 1px solid rgba(180,140,70,0.3); box-shadow: 0 8px 18px -8px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.2s;
}
.dark .lhero__arrow { background: rgba(15,23,42,0.9); color: #e7c98f; border-color: rgba(212,175,110,0.25); }
.lhero__arrow:hover { transform: translateY(-50%) scale(1.06); }
.lhero__dots { display: flex; gap: 0.5rem; }
.lhero__dot { height: 0.55rem; width: 0.55rem; border-radius: 9999px; background: rgba(160,130,70,0.35); transition: width 0.3s, background 0.3s; }
.lhero__dot.is-active { width: 1.8rem; background: #c99a44; }

/* Staged entrance for active slide content */
.lhero__slide .la { opacity: 0; transform: translateY(20px); }
.lhero__slide.is-active .la { animation: lheroIn 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.lhero__slide.is-active .la.d1 { animation-delay: 0.05s; }
.lhero__slide.is-active .la.d2 { animation-delay: 0.15s; }
.lhero__slide.is-active .la.d3 { animation-delay: 0.25s; }
.lhero__slide.is-active .la.d4 { animation-delay: 0.35s; }
.lhero__slide.is-active .la.d5 { animation-delay: 0.45s; }
@keyframes lheroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .lhero__slide { transition: opacity 0.3s ease, visibility 0.3s; }
  .lhero__float, .lhero__seal svg, .lhero__media { animation: none; }
  .lhero__slide.is-active .la { animation: none; opacity: 1; transform: none; }
}

/* Subtle brand tint over hero photo for cohesion */
.lhero__media { position: relative; }
.lhero__media-tint { position: absolute; inset: 0; pointer-events: none; }

/* ===============================================================
   XHERO — bold dark aurora hero slider (awesome redesign)
   =============================================================== */
.xhero {
  --xh: #6d28d9;                 /* active segment accent, set per-slide via JS */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(85% 85% at 12% 8%, color-mix(in srgb, var(--xh) 92%, #ffffff 6%) 0%, transparent 55%),
    radial-gradient(80% 80% at 92% 18%, color-mix(in srgb, var(--xh) 70%, #ec4899) 0%, transparent 52%),
    radial-gradient(90% 90% at 80% 100%, color-mix(in srgb, var(--xh) 55%, #06b6d4) 0%, transparent 55%),
    radial-gradient(70% 70% at 26% 100%, color-mix(in srgb, var(--xh) 45%, #f59e0b) 0%, transparent 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--xh) 55%, #14082e), color-mix(in srgb, var(--xh) 40%, #1a0b33));
  transition: background 0.9s ease;
}
/* Animated aurora blobs behind everything — all derived from the active accent */
.xhero__aurora { position: absolute; inset: -20% -10%; z-index: 0; filter: blur(80px); opacity: 0.95; pointer-events: none; }
.xhero__aurora span { position: absolute; display: block; width: 44vw; height: 44vw; border-radius: 9999px; mix-blend-mode: screen; animation: xheroDrift 18s ease-in-out infinite; transition: background 0.9s ease; }
.xhero__aurora .b1 { top: -10%; left: 2%; background: var(--xh); }
.xhero__aurora .b2 { top: 6%; right: 0%; background: color-mix(in srgb, var(--xh) 65%, #ec4899); animation-delay: -5s; }
.xhero__aurora .b3 { bottom: -16%; left: 30%; background: color-mix(in srgb, var(--xh) 55%, #06b6d4); animation-delay: -10s; }
.xhero__aurora .b4 { bottom: -6%; right: 22%; width: 34vw; height: 34vw; background: color-mix(in srgb, var(--xh) 55%, #f59e0b); animation-delay: -14s; }
@keyframes xheroDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(6%, -5%) scale(1.12); }
  66% { transform: translate(-5%, 6%) scale(0.94); }
}
/* Fine grid overlay */
.xhero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.28;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 78%);
}

.xhero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0.8s; }
.xhero__slide.is-active { position: relative; opacity: 1; visibility: visible; }

.xhero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.4rem 0.9rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #e9d5ff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.xhero__eyebrow .dot { height: 7px; width: 7px; border-radius: 9999px; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.25); }

/* Gradient-clipped headline */
.xhero__title { font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.xhero__grad {
  background: linear-gradient(100deg, #fff 0%, #c4b5fd 40%, #f0abfc 70%, #fca5a5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Free-standing line-art illustration (no frame/box) */
.xhero__art {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto;
  animation: xheroArtFloat 8s ease-in-out infinite;
}
.xhero__art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 50px rgba(0,0,0,0.45)); }
@keyframes xheroArtFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Glass stat/chips cards */
.xhero__glass {
  position: absolute; z-index: 3; border-radius: 1rem; padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  animation: xheroFloat 6s ease-in-out infinite;
}
.xhero__glass--stat { top: 8%; left: -7%; text-align: center; }
.xhero__glass--chips { bottom: 9%; left: -11%; animation-delay: -2.5s; }
@media (max-width: 1023px) { .xhero__glass--stat, .xhero__glass--chips { left: 3%; } }
@keyframes xheroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.xhero__chip {
  display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem;
  border-radius: 9999px; background: rgba(255,255,255,0.16); color: #f1f5f9; border: 1px solid rgba(255,255,255,0.14);
}

/* Buttons */
.xhero__btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.85rem; padding: 0.85rem 1.5rem; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; }
.xhero__btn--primary { color: #0b1120; background: linear-gradient(100deg, #fff, #e9d5ff); box-shadow: 0 12px 30px -10px rgba(233,213,255,0.5); }
.xhero__btn--primary:hover { transform: translateY(-2px); }
.xhero__btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.xhero__btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* Controls */
.xhero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 9999px;
  color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.xhero__arrow:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.08); }
.xhero__dots { display: flex; gap: 0.5rem; }
.xhero__dot { height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: rgba(255,255,255,0.35); transition: width 0.3s, background 0.3s; }
.xhero__dot.is-active { width: 1.9rem; background: #fff; }

/* Staged entrance */
.xhero__slide .xa { opacity: 0; transform: translateY(22px); }
.xhero__slide.is-active .xa { animation: xheroIn 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.xhero__slide.is-active .xa.d1 { animation-delay: 0.05s; }
.xhero__slide.is-active .xa.d2 { animation-delay: 0.15s; }
.xhero__slide.is-active .xa.d3 { animation-delay: 0.25s; }
.xhero__slide.is-active .xa.d4 { animation-delay: 0.35s; }
.xhero__slide.is-active .xa.d5 { animation-delay: 0.45s; }
@keyframes xheroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .xhero__aurora span, .xhero__glass { animation: none; }
  .xhero__slide { transition: opacity 0.3s ease, visibility 0.3s; }
  .xhero__slide.is-active .xa { animation: none; opacity: 1; transform: none; }
  .xhero__art { animation: none; }
}

/* ===============================================================
   BENTO stats grid (after the hero)
   =============================================================== */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  grid-template-areas:
    "intro intro programs languages"
    "intro intro results  image";
}
.bento .b-intro     { grid-area: intro; }
.bento .b-programs  { grid-area: programs; }
.bento .b-languages { grid-area: languages; }
.bento .b-results   { grid-area: results; }
.bento .b-image     { grid-area: image; }
@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "intro intro"
      "programs languages"
      "results image";
  }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "intro" "programs" "languages" "results" "image"; }
  .bento__tile { min-height: 200px; }
}

.bento__tile {
  position: relative; overflow: hidden; border-radius: 1.5rem; padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dark .bento__tile { border-color: rgba(255,255,255,0.08); }
.bento__tile:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(2,6,23,0.4); }

/* Span helpers */
.bento__tile--tall { grid-row: span 2; }
.bento__tile--wide { grid-column: span 2; }
@media (max-width: 560px) { .bento__tile--tall, .bento__tile--wide { grid-row: auto; grid-column: auto; } }

/* Variants */
.bento--dark { background: #17151a; color: #fff; }
.bento--gold { background: linear-gradient(150deg, #d6a247, #b9822b); color: #1c1206; }
.bento--light { background: #fff; color: #1c1206; }
.dark .bento--light { background: #f4f1ea; }
.bento--ink { background: #14131a; color: #fff; }

.bento__eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.bento__ico { display: grid; place-items: center; height: 30px; width: 30px; border-radius: 8px; background: rgba(0,0,0,0.14); }
.bento--dark .bento__ico, .bento--ink .bento__ico { background: rgba(255,255,255,0.12); }
.bento__big { font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 0.95; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.01em; }
.bento__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.bento__desc { font-size: 0.85rem; opacity: 0.8; margin-top: 0.4rem; }
.bento__img { position: absolute; inset: 0; }
.bento__img img { width: 100%; height: 100%; object-fit: cover; }
.bento__title { font-family: Georgia, serif; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.08; }
/* faint dotted deco */
.bento__dots { position: absolute; right: 1rem; top: 3rem; width: 90px; height: 60px; opacity: 0.5;
  background-image: radial-gradient(currentColor 1.4px, transparent 0); background-size: 14px 14px; color: rgba(0,0,0,0.25); }
.bento--dark .bento__dots, .bento--ink .bento__dots { color: rgba(255,255,255,0.2); }

/* ===============================================================
   PROGRAMS section — "built for every step" cards
   =============================================================== */
.prog-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgb(226 232 240); border-radius: 1.25rem; padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dark .prog-card { background: rgb(15 23 42); border-color: rgb(30 41 59); }
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(2,6,23,0.35); }
.prog-card__ico {
  display: grid; place-items: center; height: 44px; width: 44px; border-radius: 12px;
  color: #fff; font-size: 1.25rem;
}
.prog-card__arrow {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 2; height: 30px; width: 30px; border-radius: 9999px;
  display: grid; place-items: center; color: #64748b;
  background: rgb(241 245 249); transition: background 0.2s, color 0.2s;
}
.dark .prog-card__arrow { background: rgb(30 41 59); color: #94a3b8; }
.prog-card:hover .prog-card__arrow { background: var(--pc, #4f46e5); color: #fff; }
.prog-card__eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.prog-card__list li { position: relative; padding-left: 1rem; font-size: 0.83rem; }
.prog-card__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; height: 6px; width: 6px; border-radius: 9999px; background: var(--pc, #4f46e5); }

/* ===============================================================
   CONSULT POPUP — timed two-panel enquiry modal
   =============================================================== */
.cpop { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.cpop.is-open { display: flex; }
.cpop__overlay { position: absolute; inset: 0; background: rgba(8,6,16,0.72); backdrop-filter: blur(4px); animation: cpopFade 0.3s ease; }
.cpop__dialog {
  position: relative; z-index: 1; width: 100%; max-width: 880px; overflow: hidden;
  border-radius: 1.5rem; background: #fff; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
  display: grid; grid-template-columns: 1fr 1fr; animation: cpopIn 0.4s cubic-bezier(0.22,1,0.36,1);
}
.dark .cpop__dialog { background: #0f172a; }
@media (max-width: 760px) {
  .cpop { padding: 0.75rem; align-items: flex-start; overflow-y: auto; }
  /* Constrain to the viewport width so nothing spills off the right edge. */
  .cpop__dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: min(460px, 100%);
    margin: auto;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
  }
  .cpop__media { display: none; }
  .cpop__body { padding: 1.6rem 1.25rem; }
}
@keyframes cpopFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cpopIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Left media panel */
.cpop__media { position: relative; min-height: 380px; display: flex; align-items: flex-end; padding: 1.6rem;
  background: linear-gradient(135deg, #4338ca, #7c3aed 55%, #db2777); color: #fff; }
.cpop__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 20%, rgba(255,255,255,0.18), transparent 60%); }
.cpop__mediaimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.cpop__mediaov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,6,16,0.15), rgba(8,6,16,0.72)); }
.cpop__badge { position: absolute; top: 1.3rem; left: 1.3rem; z-index: 2; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); border-radius: 9999px; padding: 0.35rem 0.75rem; backdrop-filter: blur(6px); }
.cpop__mediatext { position: relative; z-index: 2; }
.cpop__pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.cpop__pill { font-size: 0.7rem; font-weight: 600; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 9999px; padding: 0.25rem 0.6rem; }

/* Right form panel */
.cpop__body { padding: 2rem 1.8rem; position: relative; }
.cpop__close { position: absolute; top: 1rem; right: 1rem; height: 32px; width: 32px; border-radius: 9999px; display: grid; place-items: center;
  color: #64748b; background: rgb(241 245 249); border: none; cursor: pointer; }
.dark .cpop__close { background: rgb(30 41 59); color: #94a3b8; }
.cpop__step { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7c3aed;
  background: rgba(124,58,237,0.1); border-radius: 9999px; padding: 0.3rem 0.7rem; }
.cpop__field { width: 100%; border: 1px solid rgb(203 213 225); border-radius: 0.7rem; padding: 0.75rem 0.9rem; font-size: 0.9rem; background: #fff; color: #0f172a; }
.dark .cpop__field { background: rgb(15 23 42); border-color: rgb(51 65 85); color: #e2e8f0; }
.cpop__field:focus { outline: none; box-shadow: 0 0 0 3px rgba(124,58,237,0.25); border-color: #7c3aed; }
.cpop__submit { width: 100%; border: none; cursor: pointer; border-radius: 0.7rem; padding: 0.85rem; font-weight: 700; color: #fff;
  background: linear-gradient(100deg, #7c3aed, #db2777); transition: transform 0.2s; }
.cpop__submit:hover { transform: translateY(-2px); }

/* ===============================================================
   CORPORATE LIGHT THEME (bciame-style) — header + hero
   =============================================================== */
:root { --navy: #16234d; --navy2: #1e2a5a; --gold: #c9a227; --gold-2: #b8901f; --ink: #1f2937; --paper: #f4f7fb;
  /* Accessible gold for text on LIGHT backgrounds (>=4.5:1 on white).
     The brand --gold stays for use on dark backgrounds where it already passes. */
  --gold-ink: #856514; }

/* Top utility bar */
.topbar { background: var(--navy); color: #cdd6ee; font-size: 0.8rem; }
.topbar a { color: #cdd6ee; }
.topbar a:hover { color: #fff; }
.topbar .gold { color: var(--gold); font-weight: 600; }

/* Corporate header */
.chead { background: #fff; border-bottom: 1px solid #e6ebf3; }
.chead__link { color: #334155; font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.85rem; border-radius: 0.5rem; transition: color 0.2s, background 0.2s; }
.chead__link:hover, .chead__link.is-active { color: var(--navy); background: #eef2fb; }
.chead__cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--navy); color: #fff; font-weight: 700; padding: 0.7rem 1.4rem; border-radius: 0.6rem; transition: background 0.2s, transform 0.2s; }
.chead__cta:hover { background: var(--navy2); transform: translateY(-1px); }
.chead__cta .ico { color: var(--gold); }

/* CHERO — corporate light hero */
.chero { position: relative; background: linear-gradient(180deg, #eef3fb, #f7f9fd); overflow: hidden; }
.chero__map { position: absolute; inset: 0; opacity: 0.06; background-repeat: no-repeat; background-position: right center; background-size: cover; pointer-events: none; }
.chero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; }
.chero__slide.is-active { position: relative; opacity: 1; visibility: visible; }

.chero__eyebrow { color: var(--gold-ink); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; }
.chero__title { color: var(--navy); font-weight: 800; letter-spacing: -0.01em; line-height: 1.02; font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.chero__title .gold { color: var(--gold); }
.chero__lead { color: #51607a; font-size: 1.05rem; line-height: 1.7; max-width: 34rem; }

.chero__btn { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; border-radius: 0.6rem; padding: 0.9rem 1.6rem; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; }
.chero__btn--primary { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -12px rgba(22,35,77,0.5); }
.chero__btn--primary:hover { background: var(--navy2); transform: translateY(-2px); }
.chero__btn--primary .ico { color: var(--gold); }
.chero__btn--ghost { background: #fff; color: var(--navy); border: 1px solid #d7deec; }
.chero__btn--ghost:hover { border-color: var(--navy); }

/* Media + floating stat badge */
.chero__media { position: relative; }
.chero__photo { width: 100%; border-radius: 1rem; object-fit: cover; }
.chero__stat {
  position: absolute; top: 18%; right: -2%; z-index: 3; display: flex; align-items: center; gap: 0.7rem;
  background: var(--navy); color: #fff; border-radius: 0.9rem; padding: 0.8rem 1.1rem; box-shadow: 0 20px 40px -18px rgba(22,35,77,0.6);
}
.chero__stat .ico { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 8px; background: rgba(201,162,39,0.25); color: var(--gold); }
.chero__stat b { font-size: 1.15rem; line-height: 1; }
.chero__stat span { font-size: 0.68rem; opacity: 0.8; }

/* Trust row */
.chero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.chero__trust .item { display: flex; align-items: center; gap: 0.6rem; color: #51607a; font-weight: 600; font-size: 0.9rem; }
.chero__trust .item .ico { color: var(--gold); }
.chero__trust .sep { width: 1px; height: 26px; background: #d7deec; }

/* Light slider controls */
.chero__arrow { position: absolute; top: 42%; z-index: 5; height: 2.6rem; width: 2.6rem; border-radius: 9999px; display: grid; place-items: center;
  color: var(--navy); background: #fff; border: 1px solid #d7deec; box-shadow: 0 8px 18px -10px rgba(0,0,0,0.25); transition: transform 0.2s; }
.chero__arrow:hover { transform: scale(1.08); }
.chero__dots { display: flex; gap: 0.5rem; }
.chero__dot { height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: #c5cee0; transition: width 0.3s, background 0.3s; }
.chero__dot.is-active { width: 1.8rem; background: var(--gold); }

.chero__slide .ca { opacity: 0; transform: translateY(18px); }
.chero__slide.is-active .ca { animation: cheroIn 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.chero__slide.is-active .ca.d1 { animation-delay: 0.05s; }
.chero__slide.is-active .ca.d2 { animation-delay: 0.15s; }
.chero__slide.is-active .ca.d3 { animation-delay: 0.25s; }
.chero__slide.is-active .ca.d4 { animation-delay: 0.35s; }
@keyframes cheroIn { to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .chero__stat { right: 2%; top: 8%; } }

/* ===============================================================
   CORPORATE SECTIONS (bciame-style) — below the hero
   =============================================================== */
.sec-eyebrow { color: var(--gold-ink); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.74rem; }
.sec-title { color: var(--navy); font-weight: 800; letter-spacing: -0.01em; }
.link-gold { color: var(--gold-ink); font-weight: 700; }
.link-gold:hover { color: var(--gold-2); }

/* Certification course cards (circular badge) */
.cert-card {
  --c: var(--navy);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid #e8edf5; border-radius: 1.2rem; padding: 1.5rem 1.4rem 0;
  overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* soft tinted glow that grows from the badge on hover */
.cert-card::after {
  content: ""; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 9999px;
  background: var(--c); opacity: 0.08; transition: transform 0.4s ease; transform: scale(0.6);
}
.cert-card:hover { transform: translateY(-8px); box-shadow: 0 30px 55px -28px rgba(22,35,77,0.45); border-color: color-mix(in srgb, var(--c) 40%, #e8edf5); }
.cert-card:hover::after { transform: scale(1.4); }

/* rounded-square badge */
.cert-badge {
  position: relative; z-index: 1; height: 62px; width: 62px; border-radius: 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; line-height: 1; box-shadow: 0 12px 24px -10px rgba(0,0,0,0.45);
  transition: transform 0.3s ease, border-radius 0.3s ease;
}
.cert-card:hover .cert-badge { transform: translateY(-2px); border-radius: 1.4rem; }
.cert-badge .code { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; }
.cert-badge small { font-size: 0.44rem; font-weight: 700; opacity: 0.9; letter-spacing: 0.08em; text-transform: uppercase; max-width: 52px; }

.cert-card h3 { position: relative; z-index: 1; color: var(--navy); font-weight: 800; font-size: 0.98rem; margin-top: 1.1rem; line-height: 1.25; }
.cert-card h3::after { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--gold); margin-top: 0.5rem; transition: width 0.3s ease; }
.cert-card:hover h3::after { width: 44px; }
.cert-card p { color: #8a93a6; font-size: 0.74rem; margin-top: 0.5rem; }
.cert-card .loc { display: inline-flex; align-items: center; gap: 0.3rem; color: #64748b; font-size: 0.72rem; margin-top: 0.7rem; }
/* full-width footer bar that fills navy on hover */
.cert-card .explore {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--navy); font-weight: 700; font-size: 0.8rem; margin: 1.1rem -1.4rem 0; padding: 0.85rem 1.4rem;
  border-top: 1px solid #eef2f8; width: calc(100% + 2.8rem); transition: background 0.25s, color 0.25s;
}
.cert-card:hover .explore { background: var(--navy); color: #fff; }

/* Stat cards */
.statstrip { background: transparent; }
.statstrip .cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.6rem 1.1rem 1.4rem;
  background: linear-gradient(160deg, var(--navy), #26356e);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 26px -20px rgba(16,24,64,0.55);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.statstrip .cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold, #c9a24b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.statstrip .cell:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,75,0.55);
  box-shadow: 0 22px 40px -20px rgba(16,24,64,0.65);
}
.statstrip .cell:hover::before { transform: scaleX(1); }
.statstrip .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.35rem;
  border-radius: 0.85rem;
  background: rgba(201,162,75,0.14);
  color: var(--gold);
  font-size: 1.4rem;
  transition: transform .28s ease, background-color .28s ease;
}
.statstrip .cell:hover .ico { transform: scale(1.1) rotate(-4deg); background: rgba(201,162,75,0.24); }
.statstrip b { font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -0.01em; }
.statstrip span { font-size: 0.8rem; letter-spacing: 0.02em; opacity: 0.78; }
@media (prefers-reduced-motion: reduce) {
  .statstrip .cell, .statstrip .cell::before, .statstrip .ico { transition: none; }
  .statstrip .cell:hover { transform: none; }
}

/* Field cards */
.field-card { background: #fff; border: 1px solid #e6ebf3; border-radius: 1rem; padding: 1.5rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.field-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -22px rgba(22,35,77,0.3); border-color: #cdd6ee; }
.field-card__ico { height: 46px; width: 46px; border-radius: 0.7rem; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.field-card h3 { color: var(--navy); font-weight: 800; margin-top: 1rem; }
.field-card p { color: #6b7280; font-size: 0.88rem; margin-top: 0.5rem; line-height: 1.6; }
.field-card .tags { color: var(--gold-2); font-weight: 700; font-size: 0.78rem; margin-top: 0.9rem; }

/* About split */
.about-panel { background: linear-gradient(160deg, var(--navy), #202f66); color: #fff; border-radius: 1.25rem; padding: 2.2rem; }
.about-panel .big { font-size: 2.6rem; font-weight: 800; }
.about-panel .mini { display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 0.7rem; padding: 0.8rem 0.9rem; font-size: 0.82rem; font-weight: 600; }
.about-panel .mini .ico { color: var(--gold); }
.check { display: flex; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid #e6ebf3; border-radius: 0.7rem; padding: 0.85rem 1rem; color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.check .ico { color: var(--gold-2); }

/* Resource centre panel */
.resource-panel { background: linear-gradient(160deg, var(--navy), #1a274f); color: #fff; border-radius: 1.25rem; padding: 2.2rem; }
.resource-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 0.7rem; padding: 0.9rem 1.1rem; color: #e7ecf7; font-weight: 600; font-size: 0.9rem; transition: background 0.2s; }
.resource-link:hover { background: rgba(255,255,255,0.12); }
.resource-cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--gold); color: #1c1206; font-weight: 700; border-radius: 0.6rem; padding: 0.8rem 1.4rem; }
.resource-cta:hover { background: var(--gold-2); }

/* FAQ accordion */
.faq-item { background: #fff; border: 1px solid #e6ebf3; border-radius: 0.8rem; margin-bottom: 0.75rem; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; color: var(--navy); font-weight: 700; font-size: 0.95rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--gold-2); transition: transform 0.2s; font-size: 1.2rem; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: #51607a; font-size: 0.9rem; line-height: 1.7; }

/* ===============================================================
   FULL-WIDTH LAYOUT — widen all section containers
   =============================================================== */
.max-w-7xl { max-width: 1600px !important; }
/* Give a touch more side breathing room on very large screens */
@media (min-width: 1600px) {
  .max-w-7xl { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ===============================================================
   MEGA MENU — Courses dropdown (bciame-style)
   =============================================================== */
.has-mega { position: relative; }
/* invisible bridge fills the gap so the cursor never leaves the hover area */
.has-mega::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 22px; z-index: 59;
  opacity: 0; pointer-events: none;
}
.has-mega:hover::after, .has-mega:focus-within::after { pointer-events: auto; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 0; transform: translateY(8px);
  width: min(880px, calc(100vw - 2rem)); z-index: 60;
  background: #fff; border: 1px solid #e6ebf3; border-radius: 1.1rem;
  box-shadow: 0 40px 80px -30px rgba(22,35,77,0.4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 300px;
}
/* open on hover (desktop) or when JS adds .is-open */
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.mega__left { padding: 1.6rem 1.7rem; }
.mega__eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.68rem; }
.mega__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; }
.mega__title { color: var(--navy); font-weight: 800; font-size: 1.4rem; }
.mega__viewall { color: var(--navy); font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.mega__viewall:hover { color: var(--gold-2); }
.mega__grid { margin-top: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.mega__item { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.8rem; border: 1px solid #eef2f8; border-radius: 0.7rem; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s; }
.mega__item:hover { border-color: var(--gold); background: #fbfcfe; transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(22,35,77,0.35); }
.mega__ico { flex: none; height: 42px; width: 42px; border-radius: 0.6rem; display: grid; place-items: center; background: #eef2fb; color: var(--navy); font-size: 1.1rem; transition: background 0.2s, color 0.2s, transform 0.2s; }
.mega__item:hover .mega__ico { background: var(--navy); color: #fff; transform: scale(1.05); }
.mega__item b { display: block; color: var(--navy); font-weight: 800; font-size: 0.9rem; line-height: 1.1; }
.mega__item span { color: #7a879c; font-size: 0.74rem; }

.mega__right { background: linear-gradient(165deg, var(--navy), #1a2750); color: #fff; padding: 1.7rem; display: flex; flex-direction: column; }
.mega__right .badge { height: 46px; width: 46px; border-radius: 0.7rem; background: rgba(201,162,39,0.2); color: var(--gold); display: grid; place-items: center; font-size: 1.3rem; }
.mega__right h3 { font-weight: 800; font-size: 1.4rem; line-height: 1.15; margin-top: 1rem; }
.mega__right p { color: #c6cfe4; font-size: 0.85rem; line-height: 1.6; margin-top: 0.7rem; }
.mega__cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--gold); color: #1c1206; font-weight: 800; border-radius: 0.6rem; padding: 0.75rem 1rem; }
.mega__cta:hover { background: var(--gold-2); }
.mega__cta2 { margin-top: 0.6rem; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #fff; font-weight: 700; border: 1px solid rgba(255,255,255,0.3); border-radius: 0.6rem; padding: 0.7rem 1rem; }
.mega__cta2:hover { background: rgba(255,255,255,0.08); }

.chead__link .caret { display: inline-block; margin-left: 0.25rem; font-size: 0.7rem; transition: transform 0.2s; }
.has-mega:hover .chead__link .caret { transform: rotate(180deg); }

@media (max-width: 1023px) { .mega { display: none !important; } }

/* ---- Footer column titles (consistent alignment across columns) ---- */
.footcol-title {
  display: flex;
  align-items: center;
  height: 2.25rem; /* matches the brand row height so all columns align */
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  color: #ffffff;
}
.footcol-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-left: 12px;
  border-radius: 2px;
  background: var(--gold, #c9a24b);
}

/* ---- Hero headline typewriter with animated multi-colour gradient
   (skillversityglobal.com style: vibrant gradient that cycles through
   colour sets). Applies to the typed word AND its trailing period. ---- */
.chero__title .gold,
.chero__type {
  display: inline;
  /* Slightly smaller than the main heading — the language entries are long. */
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  background: linear-gradient(
    100deg,
    #ef4444 0%,    /* red */
    #f97316 22%,   /* orange */
    #f59e0b 40%,   /* amber */
    #2563eb 62%,   /* blue */
    #7c3aed 82%,   /* violet */
    #db2777 100%   /* pink */
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: cheroGradient 8s ease-in-out infinite;
}
@keyframes cheroGradient {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .chero__title .gold,
  .chero__type { animation: none; background-position: 0% 50%; }
}
.chero__caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: -0.08em;
  background: var(--gold, #c9a24b);
  animation: chero-caret-blink 1s steps(1) infinite;
}
@keyframes chero-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chero__caret { animation: none; opacity: 1; }
}

/* ---- "Designed for students" feature boxes — hover effect ---- */
.feature-box {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.25rem;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* gold top accent bar that slides in on hover */
.feature-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold, #c9a24b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.feature-box:hover,
.feature-box:focus-within {
  transform: translateY(-6px);
  border-color: var(--gold, #c9a24b);
  box-shadow: 0 18px 34px -18px rgba(16, 24, 64, 0.35);
}
.feature-box:hover::before,
.feature-box:focus-within::before {
  transform: scaleX(1);
}
.feature-box__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background: #eef2ff;
  transition: transform .25s ease, background-color .25s ease;
}
.feature-box:hover .feature-box__ico {
  transform: scale(1.08) rotate(-4deg);
  background: #e3e9ff;
}
@media (prefers-reduced-motion: reduce) {
  .feature-box,
  .feature-box::before,
  .feature-box__ico { transition: none; }
  .feature-box:hover { transform: none; }
}

/* ---- Mobile "Courses" expandable submenu ---- */
.mnav-caret { transition: transform .2s ease; display: inline-block; font-size: 0.7rem; }
.mnav-group.is-open > .mnav-toggle .mnav-caret,
.mnav-group2.is-open > .mnav-toggle2 .mnav-caret { transform: rotate(180deg); }
/* keep the nested course list from getting too tall — scroll within */
.mnav-sub2 { max-height: 15rem; overflow-y: auto; }

/* ================================================================
   PAGE BANNER PARTIAL — shared inner-page hero
   ================================================================ */
.pb-banner {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
/* Decorative blobs */
.pb-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,0.04);
}
.pb-blob--1 { width: 420px; height: 420px; top: -140px; right: -80px; }
.pb-blob--2 { width: 260px; height: 260px; bottom: -80px; left: 8%; background: rgba(255,255,255,0.03); }

.pb-eyebrow {
  display: inline-block;
  /* Banner sits on a dark accent gradient, so use a LIGHT gold for contrast. */
  color: #ffd97a;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.pb-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 36rem;
}
.pb-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 36rem;
}
.pb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
}
.pb-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.6rem; padding: 0.8rem 1.6rem; font-weight: 700;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.pb-cta:hover { transform: translateY(-2px); }
.pb-cta--primary {
  background: #fff; color: var(--navy);
  box-shadow: 0 14px 28px -10px rgba(0,0,0,0.3);
}
.pb-cta--primary:hover { background: #f1f5ff; }
.pb-cta--ghost {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.pb-cta--ghost:hover { background: rgba(255,255,255,0.2); }

/* ================================================================
   INNER PAGE — course cards grid (reusable section wrapper)
   ================================================================ */
.ip-section { max-width: 1600px; margin-inline: auto; padding: 4rem 1.25rem; }
.ip-section--sm { padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width:640px) { .ip-section { padding-inline: 1.5rem; } }

/* Section heading bar */
.ip-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-bottom: 2rem; }
.ip-heading h2 { color: var(--navy); font-weight: 800; font-size: clamp(1.4rem,3vw,2rem); letter-spacing: -0.01em; }
.ip-heading .view-all { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--gold-2,#b8901f); font-weight: 700; font-size: 0.9rem; }
.ip-heading .view-all:hover { color: var(--gold); }

/* Group heading with accent bar */
.ip-group-title {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--navy); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 1.25rem; margin-top: 2.5rem;
}
.ip-group-title::before {
  content: ""; flex-shrink: 0;
  display: block; height: 1.1rem; width: 4px; border-radius: 4px;
  background: var(--seg-accent, var(--gold));
}

/* Segment/category card for courses index */
.seg-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 1.1rem; overflow: hidden;
  background: #fff; border: 1px solid #e4eaf5;
  box-shadow: 0 6px 22px -14px rgba(16,24,64,0.18);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.seg-card:hover { transform: translateY(-7px); box-shadow: 0 24px 44px -20px rgba(16,24,64,0.32); border-color: var(--seg-accent, var(--navy)); }
.seg-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.4rem 1.1rem;
  background: var(--seg-accent, var(--navy));
  color: #fff;
}
.seg-card__head h2 { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.seg-card__head .count { font-size: 0.78rem; opacity: 0.85; font-weight: 600; }
.seg-card__ico { font-size: 2rem; }
.seg-card__body { padding: 1.1rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.seg-card__desc { font-size: 0.9rem; color: #4a5568; line-height: 1.6; }
.seg-card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.seg-card__tag { background: #f0f4ff; color: #2d3a7c; border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.75rem; font-weight: 500; }
.seg-card__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: auto; font-weight: 700; font-size: 0.88rem;
  color: var(--seg-accent, var(--navy));
  transition: gap .2s;
}
.seg-card:hover .seg-card__cta { gap: 0.75rem; }

/* Redesigned course card */
.ccard {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e4eaf5; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 4px 16px -10px rgba(16,24,64,0.15);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ccard:hover { transform: translateY(-5px); box-shadow: 0 20px 38px -18px rgba(16,24,64,0.28); border-color: var(--seg-accent, var(--navy)); }
.ccard__stripe { height: 4px; background: var(--seg-accent, var(--navy)); }
.ccard__body { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.ccard__seg { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--seg-accent, var(--navy)); }
.ccard__title { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.ccard__title a::after { content:""; position:absolute; inset:0; }
.ccard__meta { font-size: 0.78rem; color: #64748b; }
.ccard__blurb { font-size: 0.86rem; color: #4a5568; line-height: 1.6; flex: 1; }
.ccard__skills { display:flex; flex-wrap:wrap; gap:0.35rem; }
.ccard__skill { background: #f0f4ff; color: #334172; border-radius:999px; padding:0.18rem 0.6rem; font-size:0.7rem; font-weight:600; }
.ccard__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.3rem; border-top: 1px solid #eef2f8;
  background: #fafbff; font-size: 0.8rem; font-weight: 700;
  color: var(--seg-accent, var(--navy)); transition: background .2s, color .2s;
}
.ccard:hover .ccard__footer { background: var(--seg-accent, var(--navy)); color: #fff; }

/* Course detail sidebar card */
.cdetail-sidebar {
  background: #fff; border: 1px solid #e4eaf5; border-radius: 1.1rem; overflow: hidden;
  box-shadow: 0 8px 28px -16px rgba(16,24,64,0.2);
}
.cdetail-sidebar__head {
  padding: 1.1rem 1.3rem;
  background: var(--seg-accent, var(--navy)); color: #fff;
}
.cdetail-sidebar__head .label { font-size: 0.72rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.1em; }
.cdetail-sidebar__head .value { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.cdetail-sidebar__body { padding: 1.2rem 1.3rem; }
.cdetail-sidebar dl dt { font-size: 0.78rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1rem; }
.cdetail-sidebar dl dd { font-weight: 700; color: var(--navy); font-size: 0.95rem; }

/* Banner accent per-page colour classes (each visibly distinct) */
.banner--language       { background: linear-gradient(135deg,#4f46e5 0%,#4338ca 55%,#1e1b4b 100%) !important; } /* indigo */
.banner--accounting     { background: linear-gradient(135deg,#0d9488 0%,#0f766e 55%,#134e4a 100%) !important; } /* teal */
.banner--administration { background: linear-gradient(135deg,#2563eb 0%,#1d4ed8 55%,#1e3a8a 100%) !important; } /* blue */
.banner--technology     { background: linear-gradient(135deg,#7c3aed 0%,#6d28d9 55%,#3b0764 100%) !important; } /* violet */
.banner--blog           { background: linear-gradient(135deg,#ea580c 0%,#c2410c 55%,#7c2d12 100%) !important; } /* orange */
.banner--events         { background: linear-gradient(135deg,#0891b2 0%,#0e7490 55%,#134e4a 100%) !important; } /* cyan */
.banner--faculty        { background: linear-gradient(135deg,#059669 0%,#047857 55%,#064e3b 100%) !important; } /* emerald */
.banner--portfolios     { background: linear-gradient(135deg,#db2777 0%,#be185d 55%,#500724 100%) !important; } /* magenta */
.banner--enquiry        { background: linear-gradient(135deg,#4f46e5 0%,#6d28d9 55%,#1e1b4b 100%) !important; } /* indigo-violet */
.banner--page           { background: linear-gradient(135deg,var(--navy) 0%,#22336e 100%) !important; }
.banner--courses        { background: linear-gradient(135deg,#16234d 0%,#2d3e80 60%,#1a2454 100%) !important; }

/* ================================================================
   CONTACT PAGE — Reach Us Anytime
   ================================================================ */
.contact-row {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid #eef1f7; border-radius: 0.9rem;
  padding: 1rem 1.1rem; background: #fbfcff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-row:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(16,24,64,0.3); border-color: #dfe5f2; }
.contact-row__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.75rem; flex-shrink: 0;
}
.contact-row__label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: #94a3b8; text-transform: uppercase; }
.contact-row__val { display: block; font-weight: 700; color: var(--navy); font-size: 0.98rem; margin-top: 0.1rem; }

.social-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 0.65rem;
  background: #f1f4fb; color: #475569;
  transition: background .2s, color .2s, transform .2s;
}
.social-chip:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.contact-form-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid #eef1f7; border-radius: 1.25rem;
  box-shadow: 0 24px 50px -28px rgba(16,24,64,0.28);
}
.contact-form-card__bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,#4f46e5,#7c3aed,#0d9488); }

.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.form-input {
  width: 100%; border: 1px solid #d7dded; border-radius: 0.6rem;
  padding: 0.65rem 0.85rem; font-size: 0.92rem; color: #1f2937; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }

/* ================================================================
   CONTACT PAGE — info cards, help tiles, embedded map
   (added for the full-featured /contact page)
   ================================================================ */

/* Info cards: Address / Working Hours / Quick Connect */
.info-card {
  background: #fff; border: 1px solid #eef1f7; border-radius: 1.1rem;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 18px 40px -30px rgba(16,24,64,0.3);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.info-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(16,24,64,0.35); border-color: #dfe5f2; }
.info-card__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.8rem; margin-bottom: 1rem;
}
.info-card__title { font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.info-card__text { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.6; color: #64748b; }
.info-card__link {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.9rem;
  font-size: 0.85rem; font-weight: 700; color: #4f46e5;
  transition: gap .2s ease, color .2s ease;
}
.info-card__link:hover { gap: 0.55rem; color: #4338ca; }
.info-card__inline { color: #4f46e5; font-weight: 600; }
.info-card__inline:hover { text-decoration: underline; }

/* How Can We Help? — quick-link tiles */
.help-tile {
  display: flex; align-items: center; gap: 1rem;
  background: #f8fafc; border: 1px solid #eef1f7; border-radius: 0.9rem;
  padding: 1.1rem 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.help-tile:hover { transform: translateY(-2px); background: #fff; border-color: #d7dded; box-shadow: 0 16px 30px -20px rgba(16,24,64,0.3); }
.help-tile__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.7rem; flex-shrink: 0;
  background: #eef2ff; font-size: 1.35rem; line-height: 1;
}
.help-tile__body { display: flex; flex-direction: column; }
.help-tile__title { font-weight: 800; color: var(--navy); font-size: 0.98rem; }
.help-tile__cta {
  margin-top: 0.15rem; font-size: 0.82rem; font-weight: 700; color: #4f46e5;
  transition: color .2s ease;
}
.help-tile:hover .help-tile__cta { color: #4338ca; }

/* Embedded map */
.contact-map {
  overflow: hidden;
  border-top: 1px solid #eef1f7;
  min-height: 420px;
}
.contact-map iframe { filter: grayscale(0.1); }
.contact-map__placeholder {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: 420px; width: 100%;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  color: var(--navy); font-weight: 700;
  transition: background .2s ease;
}
.contact-map__placeholder:hover { background: linear-gradient(135deg, #e0e7ff 0%, #eef2ff 100%); }
.contact-map__pin { font-size: 1.6rem; }

/* ================================================================
   PERFORMANCE / CLS STABILISERS
   Reserve space for hero media & the typewriter word so the
   layout does not shift as images/fonts/JS settle (fixes CLS).
   ================================================================ */
/* Reserve the hero image box by aspect-ratio (matches width/height attrs 1000x667). */
.chero__photo {
  aspect-ratio: 1000 / 667;
  background: #eef3fb;
}
/* Give the hero a stable minimum height so the first (absolute) slide
   reserves vertical space before hydration, preventing a big shift. */
@media (min-width: 1024px) {
  .chero { min-height: 560px; }
}
@media (max-width: 1023px) {
  .chero { min-height: 520px; }
}

/* ================================================================
   MOBILE OVERFLOW FIX
   Prevents sideways scrolling / content being pushed off-screen
   on small viewports (header logo clipped, Enquire button off-edge).
   ================================================================ */
/* Use overflow-x: clip (not hidden) so it does NOT create a scroll
   container — this preserves the sticky header behaviour. */
html, body { max-width: 100%; overflow-x: clip; }

/* The hero container must clip its own decorative/absolute children
   (map layer, floating stat badge) so they never widen the page. */
.chero { overflow-x: clip; }

/* Keep the floating stat badge inside the viewport on small screens. */
@media (max-width: 640px) {
  .chero__stat { right: 0.75rem; top: auto; bottom: 0.75rem; padding: 0.6rem 0.85rem; }
  .chero__stat b { font-size: 1rem; }
}

/* Sticky header must never exceed the viewport width. */
.chead, .topbar { max-width: 100%; }
.chead nav, .topbar > div { min-width: 0; }

/* Long words / tokens shouldn't force horizontal scroll. */
.chero__title { overflow-wrap: anywhere; }

/* ================================================================
   CUSTOM SCROLLBAR — blue thumb on a light-blue rail (all pages).
   A page can override --sb-thumb / --sb-track to recolour it
   (e.g. course pages set it to their banner accent).
   ================================================================ */
:root {
  --sb-thumb: #2563eb;   /* blue thumb */
  --sb-thumb-hover: #1d4ed8;
  --sb-track: #dbeafe;   /* light blue rail */
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--sb-thumb) var(--sb-track);
}

/* WebKit / Chromium / Edge / Safari */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sb-track); }
::-webkit-scrollbar-thumb {
  background: var(--sb-thumb);
  border-radius: 9999px;
  border: 3px solid var(--sb-track);   /* keeps a slim rail visible around the thumb */
}
::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
::-webkit-scrollbar-corner { background: var(--sb-track); }

/* ================================================================
   COURSES INDEX — grouped course listing (cards + group titles)
   ================================================================ */
.courses-group-title {
  font-size: 0.95rem; font-weight: 800; color: var(--navy);
  letter-spacing: 0.02em; margin: 0.25rem 0 1rem;
  padding-left: 0.75rem; border-left: 4px solid var(--gold);
}
.ccard__cta {
  margin-top: auto; padding-top: 0.35rem;
  font-size: 0.82rem; font-weight: 700;
  color: var(--seg-accent, var(--navy));
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: gap .2s ease;
}
.ccard:hover .ccard__cta { gap: 0.55rem; }

/* ================================================================
   COURSES INDEX — sticky in-page category jump nav
   ================================================================ */
.courses-jumpnav {
  position: sticky;
  top: 80px;                 /* sits just below the sticky site header (h-20) */
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6ebf3;
}
.courses-jumpnav__inner {
  max-width: 1600px; margin-inline: auto;
  padding: 0.7rem 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.courses-jumpnav__inner::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .courses-jumpnav__inner { padding-inline: 1.5rem; } }
.courses-jumpnav__label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #94a3b8; flex: none;
}
.courses-jumpnav__link {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
  background: #eef2fb; border: 1px solid #e0e7f5;
  border-radius: 999px; padding: 0.4rem 0.85rem;
  transition: background .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.courses-jumpnav__link:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.courses-jumpnav__link.is-active { background: var(--navy); color: #fff; }
.courses-jumpnav__count {
  font-size: 0.68rem; font-weight: 700;
  background: rgba(22,35,77,0.1); color: inherit;
  border-radius: 999px; padding: 0.05rem 0.4rem; min-width: 1.2rem; text-align: center;
}
.courses-jumpnav__link:hover .courses-jumpnav__count { background: rgba(255,255,255,0.25); }

/* Offset anchored sections so they aren't hidden under the sticky bars. */
section[id^="seg-"] { scroll-margin-top: 140px; }

/* ================================================================
   Cross-category internal-link cards (course page "Other Fields")
   ================================================================ */
.xlink-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: #f8fafc; border: 1px solid #eef1f7; border-radius: 0.9rem;
  padding: 1.1rem 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.xlink-card:hover { transform: translateY(-2px); background: #fff; border-color: #d7dded; box-shadow: 0 16px 30px -20px rgba(16,24,64,0.3); }
.xlink-card__title { font-weight: 800; color: var(--navy); font-size: 0.98rem; }
.xlink-card__cta { font-size: 0.82rem; font-weight: 700; color: #4f46e5; }
