/* 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
   Horizontal 3-up grid (own class so it doesn't depend on Tailwind's
   grid-cols utilities being present in the compiled build). */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

.info-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eef1f7; border-radius: 1.1rem;
  padding: 1.6rem 1.5rem 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(16,24,64,0.3);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* Coloured top accent bar (uses the per-card --ic colour). */
.info-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--ic, var(--navy));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.info-card:hover::before { transform: scaleX(1); }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -26px rgba(16,24,64,0.4); border-color: #dfe5f2; }
.info-card__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.1rem; height: 3.1rem; border-radius: 0.85rem; margin-bottom: 1rem;
  transition: transform .25s ease;
}
.info-card:hover .info-card__ico { transform: scale(1.06) rotate(-4deg); }
.info-card__title {
  font-size: 1.08rem; font-weight: 800; color: var(--navy);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f1f5f9;
}
.info-card__text { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.65; color: #64748b; }
.info-card__link {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.85rem; font-weight: 700; color: var(--ic, #4f46e5);
  transition: gap .2s ease, color .2s ease, filter .2s ease;
}
.info-card__link:hover { gap: 0.55rem; filter: brightness(0.9); }
.info-card__inline { color: var(--ic, #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; }

/* ================================================================
   RESPONSIVE REFINEMENTS — phones, tablets, laptops, large screens
   Goal: everything left-aligned and fitting the viewport on mobile,
   compact hero CTAs on one line, smaller tagline on mobile, and
   slider arrows hidden on touch (mobile + tablet).
   ================================================================ */

/* ---- Header CTA: show a compact "Enquire" on phones ---- */
.chead__cta-full { display: inline; }
.chead__cta-short { display: none; }
@media (max-width: 640px) {
  .chead__cta--sm { padding: 0.5rem 0.85rem; font-size: 0.82rem; border-radius: 0.55rem; }
  .chead__cta--sm .ico { display: none; }        /* drop the arrow to save width */
  .chead__cta-full { display: none; }
  .chead__cta-short { display: inline; }
}
/* Very narrow phones: keep the header from wrapping/clipping. */
@media (max-width: 380px) {
  .chead .flex.h-20 { gap: 0.5rem; }
  .chead__cta--sm { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
}

/* ---- Hero eyebrow (tagline): smaller on mobile ---- */
@media (max-width: 640px) {
  .chero__eyebrow { font-size: 0.62rem; letter-spacing: 0.14em; line-height: 1.35; }
}

/* ---- Hero copy: left-aligned and comfortably sized on mobile ---- */
@media (max-width: 1023px) {
  .chero__copy { text-align: left; }
  .chero__lead { font-size: 0.98rem; line-height: 1.6; max-width: 100%; }
}
@media (max-width: 640px) {
  /* Scale the big headline down so long language names fit one/two lines. */
  .chero__title { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.08; }
  .chero__lead { font-size: 0.92rem; margin-top: 1rem; }
  /* Pull the hero (image first) right up under the menu bar and tighten the
     gap between the image and the copy so the photo sits higher. */
  .chero__wrap { padding-top: 0.6rem; padding-bottom: 1.75rem; gap: 1.25rem; }
  .chero__media { margin-top: 0; }
}

/* ---- Hero CTA buttons: keep on ONE line, shrink, swap to short labels ---- */
.chero__btn-short { display: none; }
@media (max-width: 640px) {
  .chero__cta-row { flex-wrap: nowrap; gap: 0.6rem; }
  .chero__btn {
    flex: 1 1 0;                 /* share the row equally, fit to screen */
    justify-content: center;
    padding: 0.7rem 0.6rem;
    font-size: 0.85rem;
    gap: 0.35rem;
    white-space: nowrap;
    min-width: 0;
  }
  .chero__btn-full { display: none; }
  .chero__btn-short { display: inline; }
}
/* Small tablets / large phones: full labels but a touch tighter. */
@media (min-width: 641px) and (max-width: 1023px) {
  .chero__btn { padding: 0.8rem 1.2rem; font-size: 0.95rem; }
}

/* ---- Trust row: wrap neatly, hide separators on mobile ---- */
@media (max-width: 640px) {
  .chero__trust { gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
  .chero__trust .item { font-size: 0.82rem; }
  .chero__trust .sep { display: none; }
}

/* ---- Hero media: sits at the top (right below the menu bar) on mobile ----
   NOTE: the Tailwind `order-*` utilities are not present in the compiled CSS,
   so we drive the ordering explicitly here. The grid slide is the flex/grid
   parent, so `order` reliably reorders image (first) above the copy. ---- */
@media (max-width: 1023px) {
  .chero__slide .chero__wrap { display: flex; flex-direction: column; }
  .chero__media { order: -1; margin-inline: auto; max-width: 560px; width: 100%; }
  .chero__copy  { order: 1; }
  .chero__photo { border-radius: 0.9rem; }
}
@media (max-width: 640px) {
  .chero__media { max-width: 100%; }
  /* Keep the floating stat badge tucked inside the image on phones. */
  .chero__stat { right: 0.6rem; bottom: 0.6rem; top: auto; padding: 0.55rem 0.8rem; }
  .chero__stat b { font-size: 0.95rem; }
  .chero__stat span { font-size: 0.62rem; }
}

/* ---- Slider arrows: hidden on mobile AND tablet (touch), shown on desktop ---- */
@media (max-width: 1023px) {
  .chero__arrow { display: none !important; }
}

/* ---- Dots: a little larger tap target on touch ---- */
@media (max-width: 1023px) {
  .chero__dots { bottom: 0.9rem; gap: 0.6rem; }
  .chero__dot { height: 0.55rem; width: 0.55rem; }
  .chero__dot.is-active { width: 1.6rem; }
}

/* ================================================================
   GLOBAL MOBILE/TABLET POLISH (applies to all pages, not just home)
   Tightens container padding, section rhythm and typography so inner
   pages fit the screen and read well on phones/tablets.
   ================================================================ */
@media (max-width: 640px) {
  /* Consistent side gutters so no section content touches the edge. */
  .max-w-7xl { padding-left: 1rem !important; padding-right: 1rem !important; }
  .ip-section { padding: 2.25rem 1rem; }

  /* Section headings scale down a notch on phones. */
  .sec-title { font-size: 1.55rem !important; line-height: 1.2; }
  .pb-title { font-size: clamp(1.7rem, 8vw, 2.2rem); }

  /* Section vertical rhythm: less air on small screens. */
  .py-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}

/* Tablet range: two-up grids where four-up is too tight. */
@media (min-width: 641px) and (max-width: 1023px) {
  .max-w-7xl { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

/* Prevent any stray element from causing horizontal scroll on small screens. */
@media (max-width: 1023px) {
  img, video, iframe { max-width: 100%; height: auto; }
}

/* ================================================================
   SPAM-GUARD HONEYPOT — visually hidden from humans, reachable by bots.
   Not display:none (some bots skip those); pushed far off-screen instead.
   ================================================================ */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ================================================================
   HOME ENQUIRY BAND — split content (left) + stylish form (right)
   ================================================================ */
.enq-band {
  position: relative;
  background: linear-gradient(160deg, #0f1b3d 0%, #16234d 55%, #1e2a5a 100%);
  color: #eaf0ff;
  overflow: hidden;
}
/* Decorative faint network/dots on the right, like the reference image. */
.enq-band__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 15%, rgba(201,162,39,0.18), transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(79,70,229,0.22), transparent 45%);
  pointer-events: none;
}
.enq-band::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 0 40px rgba(255,255,255,0.03), 0 0 0 90px rgba(255,255,255,0.02);
  pointer-events: none;
}

/* ---- LEFT copy ---- */
.enq-eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
}
.enq-eyebrow__line { width: 46px; height: 2px; background: var(--gold); border-radius: 2px; }
.enq-title {
  margin-top: 1rem; font-weight: 800; line-height: 1.05; color: #fff;
  letter-spacing: -0.01em; font-size: clamp(2rem, 4.4vw, 3.2rem);
}
.enq-lead { margin-top: 1.1rem; color: #c3ccea; font-size: 1.02rem; line-height: 1.75; max-width: 34rem; }

.enq-feats { margin-top: 2rem; display: grid; gap: 1.25rem; }
.enq-feat { display: flex; gap: 1rem; align-items: flex-start; }
.enq-feat__ico {
  flex: none; display: grid; place-items: center;
  height: 3rem; width: 3rem; border-radius: 999px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: var(--gold);
}
.enq-feat__ico svg { height: 1.4rem; width: 1.4rem; }
.enq-feat h3 { font-weight: 800; color: #fff; font-size: 1.08rem; }
.enq-feat p { margin-top: 0.2rem; color: #b6c0e2; font-size: 0.92rem; line-height: 1.55; }

.enq-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.enq-btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff; font-weight: 800; font-size: 0.98rem;
  padding: 0.95rem 1.9rem; border-radius: 0.65rem;
  box-shadow: 0 16px 34px -14px rgba(220,38,38,0.7);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.enq-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.enq-talk { display: inline-flex; align-items: center; gap: 0.75rem; color: #eaf0ff; }
.enq-talk__ico {
  display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22); color: var(--gold);
}
.enq-talk__ico svg { height: 1.3rem; width: 1.3rem; }
.enq-talk small { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #aab6dd; }
.enq-talk b { font-size: 1.1rem; color: #fff; }

/* ---- RIGHT form card ---- */
.enq-formwrap { position: relative; }
.enq-form-card {
  background: #ffffff; color: #1f2937;
  border-radius: 1.1rem; padding: 1.75rem;
  box-shadow: 0 40px 80px -30px rgba(3,8,30,0.7);
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
}
.enq-form-card__head h3 { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.enq-form-card__head p { margin-top: 0.25rem; font-size: 0.9rem; color: #64748b; }

.enq-alert { margin-top: 1rem; border-radius: 0.6rem; padding: 0.7rem 0.9rem; font-size: 0.85rem; }
.enq-alert--ok { background: #ecfdf5; color: #065f46; }
.enq-alert--err { background: #fef2f2; color: #991b1b; }
.enq-alert ul { list-style: disc; padding-left: 1.1rem; }

.enq-form { margin-top: 1.25rem; display: grid; gap: 1.1rem; }
.enq-grid2 { display: grid; gap: 1.1rem; }
@media (min-width: 480px) { .enq-grid2 { grid-template-columns: 1fr 1fr; } }

/* Floating-label field */
.enq-field { position: relative; }
.enq-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #f8fafc;
  padding: 1.15rem 0.95rem 0.55rem;
  font-size: 0.95rem; color: #0f172a;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  outline: none;
}
textarea.enq-input { padding-top: 1.3rem; resize: vertical; min-height: 92px; }
.enq-select { padding-top: 1.15rem; }

/* Floating label sits over the input; lifts on focus / when filled. */
.enq-flabel {
  position: absolute; left: 0.95rem; top: 0.9rem;
  font-size: 0.95rem; color: #94a3b8;
  pointer-events: none;
  transition: transform .2s ease, color .2s ease, font-size .2s ease, top .2s ease;
}
.enq-input:focus + .enq-flabel,
.enq-input:not(:placeholder-shown) + .enq-flabel {
  top: 0.4rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.02em;
  /* Alternating, continuously-cycling colour effect on the label. */
  animation: enqLabelCycle 4s linear infinite;
}
/* The select uses a static (non-placeholder) label because it has no
   placeholder-shown state; keep it lifted and cycling. */
.enq-flabel--static { top: 0.4rem; font-size: 0.68rem; font-weight: 700; }
.enq-select:focus + .enq-flabel--static { animation: enqLabelCycle 4s linear infinite; }

/* Focus ring + animated colour-cycling border on the active field. */
.enq-input:focus {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(79,70,229,0.15);
  animation: enqBorderCycle 4s linear infinite;
}

/* Placeholder text also gently cycles colour while typing/focused. */
.enq-input:focus::placeholder { animation: enqPlaceholderCycle 4s linear infinite; }

@keyframes enqLabelCycle {
  0%   { color: #4f46e5; }
  25%  { color: #dc2626; }
  50%  { color: #0891b2; }
  75%  { color: #c9a227; }
  100% { color: #4f46e5; }
}
@keyframes enqBorderCycle {
  0%   { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.18); }
  25%  { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.18); }
  50%  { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,0.18); }
  75%  { border-color: #c9a227; box-shadow: 0 0 0 3px rgba(201,162,39,0.20); }
  100% { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.18); }
}
@keyframes enqPlaceholderCycle {
  0%   { color: #a5b4fc; }
  25%  { color: #fca5a5; }
  50%  { color: #67e8f9; }
  75%  { color: #e6cf7a; }
  100% { color: #a5b4fc; }
}
@media (prefers-reduced-motion: reduce) {
  .enq-input:focus + .enq-flabel,
  .enq-input:not(:placeholder-shown) + .enq-flabel,
  .enq-select:focus + .enq-flabel--static,
  .enq-input:focus,
  .enq-input:focus::placeholder { animation: none; }
  .enq-input:focus { border-color: #4f46e5; }
}

.enq-submit {
  margin-top: 0.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%;
  background: linear-gradient(135deg, #16234d, #4f46e5);
  color: #fff; font-weight: 800; font-size: 1rem;
  padding: 0.95rem 1rem; border-radius: 0.7rem;
  box-shadow: 0 18px 36px -16px rgba(22,35,77,0.7);
  transition: transform .2s ease, filter .2s ease;
}
.enq-submit:hover { transform: translateY(-2px); filter: brightness(1.06); }
.enq-submit__ico { transition: transform .2s ease; }
.enq-submit:hover .enq-submit__ico { transform: translateX(4px); }
.enq-trust { margin-top: 0.35rem; text-align: center; font-size: 0.75rem; color: #94a3b8; }

/* ---- Responsive: stack on tablet/mobile, form first is not needed here;
   keep copy first so the message reads before the form on small screens. --- */
@media (max-width: 1023px) {
  .enq-lead { max-width: 100%; }
  .enq-form-card { padding: 1.5rem 1.25rem; }
}
@media (max-width: 640px) {
  .enq-eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; }
  .enq-actions { gap: 1rem; }
  .enq-btn-primary { padding: 0.85rem 1.4rem; font-size: 0.92rem; }
  .enq-band .py-16 { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
}

/* ================================================================
   MOBILE NAV — off-canvas drawer (laflyer.in style), blue theme.
   Square grid-dots toggle → X, right slide-in panel with dimmed
   overlay, divider-list items, chevron boxes, contact + socials.
   ================================================================ */

/* ---- Blue palette for the mobile nav (darker) ---- */
:root {
  --mnav-blue: #1e3a8a;        /* darker primary blue (hover/active) */
  --mnav-blue-2: #1d4ed8;      /* brighter accent for gradients */
  --mnav-blue-dark: #0f1f4d;   /* deep navy text */
  --mnav-blue-soft: #e8eeff;   /* light-blue wash */
  --mnav-line: #e2e8f3;        /* divider line */
}

/* The toggle button + drawer are now available on all breakpoints
   (desktop shows it to the right of the Enquire button). */

/* ---- Toggle button — laflyer style: light-blue square, white grid icon ---- */
.mnav-btn {
  position: relative;
  display: inline-grid; place-items: center;
  height: 2.4rem; width: 2.4rem;     /* smaller, snug around the icon */
  border-radius: 0.5rem;
  border: 0;
  background: var(--mnav-blue);   /* dark blue (matches the icon squares) */
  color: #fff;                    /* white icon */
  overflow: visible;              /* let sparkles pop outside the edges */
  isolation: isolate;
  transition: background .2s ease;
}
.mnav-btn:hover { background: var(--mnav-blue-dark); }

/* Sparkle stars that twinkle around the button on hover. */
.mnav-btn__smoke { position: absolute; inset: -6px; z-index: 2; pointer-events: none; }
.mnav-btn__smoke span {
  position: absolute; height: 9px; width: 9px;
  /* 4-point sparkle star */
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  background: #dbeafe;            /* light blue sparkle */
  box-shadow: 0 0 7px rgba(147,197,253,0.95);
  opacity: 0;
  transform: scale(0);
}
.mnav-btn__smoke span:nth-child(1) { top: -4px;  left: 8%;   }
.mnav-btn__smoke span:nth-child(2) { top: 40%;   right: -5px; height: 12px; width: 12px; }
.mnav-btn__smoke span:nth-child(3) { bottom: -4px; left: 55%; height: 7px; width: 7px; }
.mnav-btn:hover .mnav-btn__smoke span { animation: mnavSparkle 1.1s ease-in-out infinite; }
.mnav-btn:hover .mnav-btn__smoke span:nth-child(2) { animation-delay: .35s; }
.mnav-btn:hover .mnav-btn__smoke span:nth-child(3) { animation-delay: .7s; }
@keyframes mnavSparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  40%      { opacity: 1; transform: scale(1) rotate(90deg); }
  70%      { opacity: .6; transform: scale(.7) rotate(160deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mnav-btn:hover .mnav-btn__smoke span { animation: none; }
}

/* 2x2 outlined-squares icon — fills the smaller button snugly */
.mnav-btn__menu { position: relative; display: grid; place-items: center; }
.mnav-btn__menu svg { position: relative; z-index: 1; height: 1.8rem; width: 1.8rem; overflow: visible; }

/* White round revealed in the centre as the shards scatter on hover. */
.mnav-btn__menu::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  height: 1.15rem; width: 1.15rem; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.85);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform .4s cubic-bezier(0.34,1.56,0.64,1), opacity .4s ease;
  z-index: 0;
  pointer-events: none;
}
.mnav-btn:hover .mnav-btn__menu::before { transform: translate(-50%, -50%) scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .mnav-btn__menu::before { transition: none; }
  .mnav-btn:hover .mnav-btn__menu::before { transform: translate(-50%,-50%) scale(0); opacity: 0; }
}

/* Glass-shard scatter: each square flies outward + rotates on hover, and
   glides back to place when hover is released (transition handles the revert). */
.mnav-btn__menu .shard {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .45s ease;
}
.mnav-btn:hover .shard--tl { transform: translate(-7px, -7px) rotate(-35deg) scale(0.85); opacity: 0.75; }
.mnav-btn:hover .shard--tr { transform: translate( 7px, -6px) rotate( 32deg) scale(0.85); opacity: 0.75; }
.mnav-btn:hover .shard--bl { transform: translate(-6px,  7px) rotate( 28deg) scale(0.85); opacity: 0.75; }
.mnav-btn:hover .shard--br { transform: translate( 7px,  7px) rotate(-30deg) scale(0.85); opacity: 0.75; }
@media (prefers-reduced-motion: reduce) {
  .mnav-btn__menu .shard { transition: none; }
  .mnav-btn:hover .shard { transform: none; opacity: 1; }
}
.mnav-btn__x { position: absolute; inset: 0; display: none; place-items: center; }
.mnav-btn__x svg { height: 1.4rem; width: 1.4rem; }
/* When open: same square, show the X. */
.mnav-btn.is-open .mnav-btn__menu { display: none; }
.mnav-btn.is-open .mnav-btn__x { display: grid; }

/* ---- Drawer shell ---- */
.mdrawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.mdrawer.is-open { visibility: visible; }
.mdrawer__overlay {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.5);
  opacity: 0; transition: opacity .3s ease;
}
.mdrawer.is-open .mdrawer__overlay { opacity: 1; }
.mdrawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(86vw, 360px);
  background: #fff;
  box-shadow: -20px 0 60px -24px rgba(15,23,42,0.5);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(0.22,1,0.36,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 1.1rem 1.25rem 2rem;
}
.mdrawer.is-open .mdrawer__panel { transform: translateX(0); }

/* ---- Drawer header (brand + close) ---- */
.mdrawer__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mdrawer__brand { display: flex; align-items: center; gap: 0.6rem; }
.mdrawer__brand img { height: 2.4rem; width: auto; object-fit: contain; }
.mdrawer__brand b { display: block; font-size: 1.05rem; font-family: 'Noto Serif Malayalam', 'Manjari', ui-serif, Georgia, serif; font-weight: 700; color: var(--brand-navy, #0A1D46); letter-spacing: -0.015em; line-height: 1.1; }
.mdrawer__brand small { display: block; font-size: 0.58rem; font-family: 'Montserrat', 'Poppins', ui-sans-serif, system-ui, sans-serif; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brand-navy, #0A1D46); }
.mdrawer__close {
  display: grid; place-items: center; height: 2.5rem; width: 2.5rem; flex: none;
  border-radius: 0.55rem; background: var(--mnav-blue); color: #fff;
  transition: filter .2s ease, transform .15s ease;
}
.mdrawer__close:hover { filter: brightness(1.1); transform: rotate(90deg); }
.mdrawer__close svg { height: 1.3rem; width: 1.3rem; }

.mdrawer__intro { margin-top: 1rem; font-size: 0.86rem; line-height: 1.7; color: #64748b; }

/* ---- Search ---- */
.mdrawer__search { position: relative; margin-top: 1rem; }
.mdrawer__search svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); height: 1.05rem; width: 1.05rem; color: #94a3b8; }
.mdrawer__search input {
  width: 100%; border: 1.5px solid #d7e3f8; border-radius: 0.6rem;
  padding: 0.65rem 0.9rem 0.65rem 2.4rem; font-size: 0.9rem; color: #0f172a;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mdrawer__search input:focus { outline: none; border-color: var(--mnav-blue); box-shadow: 0 0 0 3px rgba(29,78,216,0.14); }

/* ---- Nav list: divider-separated rows (laflyer style) ---- */
.mdrawer__nav { margin-top: 1.1rem; border-top: 1px solid var(--mnav-line); }
.mnav-row, .mnav-subrow {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 0.15rem;
  border: 0; border-bottom: 1px solid var(--mnav-line);
  background: transparent; cursor: pointer;
  color: var(--mnav-blue-dark); font-weight: 700; font-size: 1rem;
  text-align: left;
  transition: color .2s ease, padding-left .2s ease, background .2s ease;
}
/* Hover / active → blue, subtle indent + wash (like laflyer's red hover). */
.mnav-row:hover, .mnav-row:focus-visible,
.mnav-subrow:hover, .mnav-subrow:focus-visible {
  color: var(--mnav-blue);
  padding-left: 0.6rem;
  background: linear-gradient(90deg, var(--mnav-blue-soft), transparent);
  outline: none;
}
.mnav-row.is-active { color: var(--mnav-blue); box-shadow: inset 3px 0 0 0 var(--mnav-blue); padding-left: 0.6rem; }

/* Chevron box on the right for expandable rows */
.mnav-chev {
  display: grid; place-items: center;
  height: 1.7rem; width: 1.7rem; flex: none;
  border: 1px solid var(--mnav-line); border-radius: 0.4rem;
  color: #64748b; font-size: 1rem; line-height: 1;
  transition: transform .25s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.mnav-chev--sm { height: 1.45rem; width: 1.45rem; font-size: 0.9rem; }
.mnav-row:hover .mnav-chev, .mnav-subrow:hover .mnav-chev { color: var(--mnav-blue); border-color: var(--mnav-blue); background: #fff; }
/* Rotate chevron down when the group is open */
.mnav-group.is-open > .mnav-toggle .mnav-chev,
.mnav-group2.is-open > .mnav-toggle2 .mnav-chev { transform: rotate(90deg); color: var(--mnav-blue); border-color: var(--mnav-blue); }
.mnav-group.is-open > .mnav-toggle,
.mnav-group2.is-open > .mnav-toggle2 { color: var(--mnav-blue); }

/* Sub panels: indented, slightly recessed background */
.mnav-sub { padding-left: 0.6rem; background: #fafcff; }
.mnav-sub2 { padding-left: 0.75rem; }
.mnav-subrow { font-size: 0.92rem; font-weight: 600; color: #475569; padding-top: 0.72rem; padding-bottom: 0.72rem; }
.mnav-subrow--strong { font-weight: 700; color: var(--mnav-blue-dark); }
.mnav-subrow--sm { font-size: 0.85rem; }
.mnav-sub .mnav-group2:last-child .mnav-subrow,
.mnav-sub2 a:last-child { border-bottom: 0; }

/* ---- CTA ---- */
.mdrawer__cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, var(--mnav-blue), #2563eb);
  color: #fff; font-weight: 800; font-size: 0.95rem;
  padding: 0.85rem 1rem; border-radius: 0.6rem;
  box-shadow: 0 16px 30px -14px rgba(29,78,216,0.7);
  transition: transform .2s ease, filter .2s ease;
}
.mdrawer__cta:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ---- Contact block ---- */
.mdrawer__contact { margin-top: 1.75rem; }
.mdrawer__contact h3 { font-size: 1.25rem; font-weight: 800; color: var(--mnav-blue-dark); }
.mdrawer__crow {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: 0.85rem; color: #475569; font-size: 0.9rem;
  transition: color .2s ease, transform .15s ease;
}
.mdrawer__crow svg { height: 1.15rem; width: 1.15rem; color: var(--mnav-blue); flex: none; }
.mdrawer__crow:hover { color: var(--mnav-blue); transform: translateX(2px); }
.mdrawer__social { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.mdrawer__social a {
  display: grid; place-items: center; height: 2.4rem; width: 2.4rem;
  border: 1px solid var(--mnav-line); border-radius: 0.55rem;
  color: var(--mnav-blue); background: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.mdrawer__social a svg { height: 1.05rem; width: 1.05rem; }
.mdrawer__social a:hover { background: var(--mnav-blue); color: #fff; border-color: var(--mnav-blue); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .mdrawer__panel, .mdrawer__overlay, .mnav-row, .mnav-subrow, .mnav-chev,
  .mdrawer__close, .mdrawer__cta, .mdrawer__social a, .mnav-btn { transition: none; }
}

/* ================================================================
   BRAND TEXT ROTATOR — visible "aime Institute" cycles through the
   languages we teach; real name kept for SEO in an .sr-only span.
   ================================================================ */
/* Fallback for .sr-only in case the Tailwind utility isn't present. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.brand-rotate {
  transition: opacity .45s ease;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .brand-rotate { transition: none; }
}

/* ================================================================
   THANK-YOU PAGES — per-form confirmation (call + WhatsApp + links)
   Accent colour comes from --ty on the section (unique per source).
   ================================================================ */
.ty-wrap { max-width: 760px; margin-inline: auto; }

.ty-check {
  display: grid; place-items: center;
  height: 4.5rem; width: 4.5rem; margin: 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--ty, #1e3a8a);
  box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--ty, #1e3a8a) 65%, transparent);
  animation: tyPop .5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.ty-check svg { height: 2.3rem; width: 2.3rem; }
@keyframes tyPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ty-check { animation: none; } }

.ty-lead {
  margin-top: 1.5rem; text-align: center;
  font-size: 1.05rem; line-height: 1.75; color: #475569;
}

/* Fast-contact buttons */
.ty-actions {
  margin-top: 1.75rem;
  display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr;
}
@media (max-width: 560px) { .ty-actions { grid-template-columns: 1fr; } }
.ty-btn {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.95rem 1.2rem; border-radius: 0.8rem;
  color: #fff; font-weight: 700;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.ty-btn svg { height: 1.5rem; width: 1.5rem; flex: none; }
.ty-btn small { display: block; font-size: 0.72rem; opacity: 0.85; font-weight: 600; }
.ty-btn b { font-size: 1rem; }
.ty-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.ty-btn--call { background: linear-gradient(135deg, var(--ty, #1e3a8a), #2563eb); box-shadow: 0 16px 30px -14px rgba(30,58,138,0.7); }
.ty-btn--wa   { background: linear-gradient(135deg, #16a34a, #128c3e); box-shadow: 0 16px 30px -14px rgba(22,163,74,0.7); }

/* What happens next */
.ty-next { margin-top: 2.5rem; }
.ty-next h2, .ty-links h2 { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.ty-next ol { margin-top: 1rem; display: grid; gap: 0.8rem; list-style: none; padding: 0; }
.ty-next li { display: flex; align-items: flex-start; gap: 0.85rem; color: #475569; line-height: 1.6; }
.ty-num {
  flex: none; display: grid; place-items: center;
  height: 1.8rem; width: 1.8rem; border-radius: 50%;
  background: color-mix(in srgb, var(--ty, #1e3a8a) 12%, #fff);
  color: var(--ty, #1e3a8a); font-weight: 800; font-size: 0.85rem;
}

/* Internal links */
.ty-links { margin-top: 2.5rem; }
.ty-links__grid { margin-top: 1rem; display: grid; gap: 0.9rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .ty-links__grid { grid-template-columns: 1fr; } }
.ty-linkcard {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  background: #f8fafc; border: 1px solid #eef1f7; border-radius: 0.9rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ty-linkcard b { color: var(--navy); font-size: 0.95rem; }
.ty-linkcard span { font-size: 0.83rem; color: #64748b; line-height: 1.5; }
.ty-linkcard:hover {
  transform: translateY(-2px); background: #fff;
  border-color: color-mix(in srgb, var(--ty, #1e3a8a) 35%, #e2e8f0);
  box-shadow: 0 16px 30px -20px rgba(16,24,64,0.35);
}
.ty-home {
  display: inline-block; margin-top: 2rem;
  font-size: 0.9rem; font-weight: 700; color: var(--ty, #1e3a8a);
  transition: opacity .2s ease;
}
.ty-home:hover { opacity: 0.75; }

/* ================================================================
   CMS PAGE PROSE — readable styling for pages like "About aime"
   (no Tailwind Typography plugin installed, so style .prose here).
   ================================================================ */
.prose { color: #475569; line-height: 1.75; font-size: 1rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 {
  margin-top: 2rem; margin-bottom: 0.25rem;
  font-size: 1.4rem; font-weight: 800; color: var(--navy);
  padding-bottom: 0.4rem; border-bottom: 2px solid #eef2fb;
}
.prose h3 { margin-top: 1.4rem; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.prose p { color: #475569; }
.prose strong { color: #0f172a; font-weight: 700; }
.prose ul { margin-top: 0.75rem; padding-left: 1.25rem; list-style: disc; display: grid; gap: 0.5rem; }
.prose ul li { padding-left: 0.25rem; }
.prose ol { margin-top: 0.75rem; padding-left: 1.25rem; list-style: decimal; display: grid; gap: 0.5rem; }
.prose a { color: var(--gold-ink, #b8901f); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--navy); }
