/* ============================================================
   SOPHORION ACADEMY — Shared Stylesheet
   Design tokens derived from the brand poster (see assets/)
   ============================================================ */

:root {
  /* --- Brand colors (from poster) --- */
  --ink: #161B33;            /* Midnight Blue — headings, footer bg */
  --ink-soft: #2A2F52;
  --indigo: #3A2C8C;         /* gradient deep */
  --purple: #7B4FE0;         /* Aurora Purple — primary accent */
  --purple-light: #A084EE;
  --gold: #F5A623;           /* Solar Gold — secondary accent / CTA */
  --gold-light: #FFC95C;
  --coral: #E8643C;          /* warm accent from icon strip (Explore/Create) */
  --cream: #FFF6EC;          /* light section background */
  --cream-deep: #FBE9D3;
  --white: #FFFFFF;
  --text: #2A2A38;
  --text-muted: #5C5C6E;

  /* --- Gradients --- */
  --grad-sky: linear-gradient(180deg, #1B1F4B 0%, #4A3B8C 38%, #C97B6E 72%, #FBCB8B 100%);
  --grad-purple: linear-gradient(135deg, var(--indigo), var(--purple));
  --grad-gold: linear-gradient(135deg, var(--gold), var(--coral));

  /* --- Type --- */
  --font-display: 'Sora', 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* --- Layout --- */
  --max-width: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 30px -10px rgba(22, 27, 51, 0.25);
  --shadow-soft: 0 6px 18px -6px rgba(22, 27, 51, 0.15);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

a {
  color: var(--purple);
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 27, 51, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  /* Wider than the site's content --max-width (1180px) on purpose — this row
     now carries 6 nav items plus 3 dropdowns' worth of buttons, and needs
     more breathing room than a text column does. */
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}

.nav-brand img { width: 38px; height: 38px; }

.nav-brand .brand-academy {
  font-weight: 500;
  color: var(--purple);
  font-size: 0.95rem;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-links a[aria-current="page"] {
  color: var(--purple);
}

.nav-cta {
  background: var(--grad-gold);
  color: var(--ink) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

/* When a full .btn is used directly in the navbar (instead of .nav-cta), restore its normal padding — .nav-links a would otherwise override it */
.nav-links a.btn {
  padding: 13px 26px;
}
.navbar .nav-links a.btn:hover {
  background: #7B4FE0;
  color: #fff;
}
#enroll-form button.btn:hover {
  background: #7B4FE0;
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg { width: 26px; height: 26px; }

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-social a {
  display: flex;
  color: var(--ink);
}

.nav-social svg { width: 18px; height: 18px; }

.nav-social a:hover svg { opacity: 0.8; }

@media (max-width: 1300px) {
  .nav-social { margin-top: 10px; gap: 20px; }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta { margin-top: 8px; }
}

/* ============================================================
   HERO (sky gradient, matches poster)
   ============================================================ */
.hero {
  background: var(--grad-sky);
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  color: var(--white);
}

.hero::before {
  /* starfield dots */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 15%, rgba(255,255,255,0.6) 0, transparent 50%),
    radial-gradient(1.5px 1.5px at 25% 8%, rgba(255,255,255,0.5) 0, transparent 50%),
    radial-gradient(2px 2px at 70% 12%, rgba(255,255,255,0.5) 0, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(255,255,255,0.4) 0, transparent 50%),
    radial-gradient(2px 2px at 45% 6%, rgba(255,255,255,0.45) 0, transparent 50%),
    radial-gradient(1.5px 1.5px at 60% 25%, rgba(255,255,255,0.4) 0, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 .accent-purple { color: var(--purple-light); }
.hero h1 .accent-gold { color: var(--gold-light); }

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero — two-column variant: main content left, enrollment highlight right */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-main { text-align: left; }
.hero-main .lede { margin-left: 0; margin-right: 0; }
.hero-main .hero-ctas { justify-content: flex-start; }

.hero-highlight {
  text-align: left;
  border-left: 1px solid rgba(255,255,255,0.22);
  padding-left: 40px;
}

.hero-highlight-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-highlight-icon svg { width: 22px; height: 22px; }

.hero-highlight-phrase {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.4;
  color: var(--white);
  margin: 0;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-main { text-align: center; }
  .hero-main .hero-ctas { justify-content: center; }
  .hero-highlight {
    text-align: center;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.22);
    padding-top: 28px;
  }
  .hero-highlight-icons { justify-content: center; }
}

/* Page header variant — smaller hero for program subpages */
.page-header {
  background: var(--grad-sky);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.page-header::before { content: ''; position: absolute; inset: 0; background-image:
    radial-gradient(2px 2px at 12% 20%, rgba(255,255,255,0.55) 0, transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 15%, rgba(255,255,255,0.45) 0, transparent 50%),
    radial-gradient(2px 2px at 55% 10%, rgba(255,255,255,0.4) 0, transparent 50%);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-light); }

.page-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.page-header-icon svg { width: 30px; height: 30px; stroke: var(--gold-light); }

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin-bottom: 14px;
}

.page-header p.tagline {
  font-size: 1.05rem;
  color: var(--gold-light);
  font-weight: 600;
  max-width: 560px;
  margin-bottom: 4px;
}

.page-header p.desc {
  max-width: 640px;
  color: rgba(255,255,255,0.85);
  font-size: 1.02rem;
}

/* Page header — optional two-column variant with a floating icon
   cluster filling the empty right-hand space on wide screens. */
.page-header-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.page-header-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-icon-cluster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 380px;
}

.ph-icon-card {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.25));
}

.ph-icon-card:hover { transform: translateY(-4px); }
.ph-icon-card svg { width: 34px; height: 34px; }
.ph-icon-card img { width: 100%; height: 100%; object-fit: contain; }

.ph-icon-card.ph-1 { grid-column: 1 / 3; }
.ph-icon-card.ph-2 { grid-column: 3 / 5; transform: translateY(-18px); }
.ph-icon-card.ph-3 { grid-column: 5 / 7; }
.ph-icon-card.ph-4 { grid-column: 2 / 4; transform: translateY(12px); }
.ph-icon-card.ph-5 { grid-column: 4 / 6; transform: translateY(-8px); }
.ph-icon-card.ph-2:hover, .ph-icon-card.ph-4:hover, .ph-icon-card.ph-5:hover { transform: translateY(-4px); }

@media (max-width: 860px) {
  .page-header-grid { grid-template-columns: 1fr; }
  .page-header-visual { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-gold);
  color: var(--ink);
  box-shadow: 0 8px 20px -6px rgba(245, 166, 35, 0.5);
}
.btn-primary:hover { box-shadow: 0 12px 26px -6px rgba(245, 166, 35, 0.6); }

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

/* ============================================================
   SECTIONS / GENERAL
   ============================================================ */
section { padding: 80px 0; }

.section-cream { background: var(--lavender); }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: rgba(255,255,255,0.85); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- diamond node divider: signature motif from the logo --- */
.node-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
  width: fit-content;
}
.node-divider .line { width: 48px; height: 1.5px; background: rgba(22,27,51,0.18); }
.node-divider .dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--purple); }
.node-divider .dot.gold { background: var(--gold); }

/* ============================================================
   PROGRAM GRID (home page — 5 pillars from poster)
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid #BBA7F3;
  border-bottom: 1px solid #BBA7F3;
}

.pillar-card {
  padding: 36px 18px;
  text-align: center;
  border-right: 1px solid #BBA7F3;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pillar-card:last-child { border-right: none; }
.pillar-card:hover { background: rgba(123, 79, 224, 0.05); transform: translateY(-4px); }

.pillar-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon svg { width: 100%; height: 100%; }

.pillar-card h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 920px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .pillar-card:nth-child(3) { border-right: none; }
}
@media (max-width: 620px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-card:nth-child(2n) { border-right: none; }
}

/* ============================================================
   CARD GRIDS (generic, used for features / levels / values)
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Centered trailing row of grid-3 cards (e.g. last 2 items of an odd count) */
.grid-3-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.grid-3-row > * { flex: 1 1 calc(33.333% - 19px); max-width: calc(33.333% - 19px); }
@media (max-width: 860px) {
  .grid-3-row > * { flex: 1 1 100%; max-width: 100%; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(22,27,51,0.06);
}

.card .card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: rgba(123, 79, 224, 0.1);
}
.card .card-icon svg { width: 24px; height: 24px; stroke: var(--purple); }

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ============================================================
   LEVEL / CURRICULUM LIST (program pages)
   ============================================================ */
.level-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.level-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid rgba(22,27,51,0.07);
  box-shadow: var(--shadow-soft);
}

/* Expandable variant: <details class="level-item"> */
details.level-item {
  display: block;
  padding: 0;
  overflow: hidden;
}
details.level-item > summary {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  background: #E3D7F1;
  cursor: pointer;
  list-style: none;
}
details.level-item > summary::-webkit-details-marker,
details.level-item > summary::marker { display: none; content: ""; }

.level-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--purple);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
details.level-item[open] .level-chevron { transform: rotate(180deg); }

.level-item-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 26px 24px 112px;
}

.level-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--purple);
  background: none;
  border-radius: 999px;
  padding: 6px 0;
  text-align: center;
  height: fit-content;
}

.level-item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.level-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 600px) {
  .level-item,
  details.level-item > summary { grid-template-columns: 1fr; gap: 8px; }
  .level-tag { width: fit-content; padding: 4px 12px; }
  .level-item-tracks { padding: 0 20px 20px; }
}

/* ============================================================
   TOOLS / TECH STRIP (badges)
   ============================================================ */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-pill {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-deep);
  border: 1px solid rgba(22,27,51,0.08);
  padding: 7px 16px;
  border-radius: 999px;
}

/* Career Opportunities role pills — distinct color from the default tag-pill */
.career-tags .tag-pill {
  background: #8F6FEB;
  color: #fff;
  border-color: transparent;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--grad-purple);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
  margin: 0 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto 28px; }
.cta-band .hero-ctas { justify-content: center; }

.cta-wrap { max-width: var(--max-width); margin: 0 auto; }

/* ============================================================
   FOOTER (matches poster's SOPH / ORI band)
   ============================================================ */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding-top: 56px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.footer-brand img {
  width: 32px; height: 32px;
  background: var(--white);
  border-radius: 50%;
  padding: 4px;
  box-sizing: border-box;
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 600;
}
.footer-tagline .soph { color: var(--purple-light); }
.footer-tagline .ori { color: var(--gold-light); }

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-ori-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.footer-bottom a:hover { color: var(--gold-light); }

.footer-bottom-strap {
  text-align: center;
  width: 100%;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  padding: 14px 0 26px;
}
.footer-bottom-strap .accent { color: var(--gold-light); }

.footer-values {
  display: flex;
  gap: 18px;
}
.footer-values .fv-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-values .fv-icon svg { width: 16px; height: 16px; stroke: var(--gold-light); }

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
}
.footer-social svg { width: 16px; height: 16px; stroke: currentColor; }
.footer-social a:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(22,27,51,0.15);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple);
}

#program.has-value {
  background: #7B4FE0;
  color: #fff;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 18px;
}

.field { margin-bottom: 20px; }
.field label span { color: var(--purple); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 17px;
  top: 44%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.field select { appearance: none; padding-right: 40px; cursor: pointer; }

.phone-row { display: flex; }
.country-code {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1.5px solid rgba(22,27,51,0.15);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--cream-deep);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.phone-row input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.field .hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 6px;
}

.error {
  display: block;
  color: #C93636;
  font-size: 0.78rem;
  min-height: 15px;
  margin-top: 5px;
}

.invalid input, .invalid select { border-color: #df6767; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 4px 0 0;
  cursor: pointer;
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
  flex-shrink: 0;
}

.submit-btn {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}
.submit-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.submit-btn .arrow { font-size: 1.05rem; }

/* --- Enrollment success modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22,27,51,0.55);
  backdrop-filter: blur(4px);
}
.modal.hidden { display: none; }

.success-box {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.14);
  color: #22c55e;
  font-size: 1.6rem;
  font-weight: 800;
}
.success-box .eyebrow { display: block; margin-bottom: 4px; }
.success-box h2 { margin-bottom: 8px; }
.success-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 8px;
}
.enquiry-id {
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 20px 0 14px;
}
.enquiry-id span {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 4px;
}
.enquiry-id strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}
.follow-up { margin-bottom: 8px; }
.secondary-btn {
  height: 46px;
  width: 100%;
  border: 1.5px solid rgba(22,27,51,0.15);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s ease;
}
.secondary-btn:hover { background: var(--cream); }

/* ============================================================
   CERTIFICATE VERIFICATION (verify-certificate.html)
   ============================================================ */
.verify-panel { max-width: 720px; margin: 0 auto; }
.verify-panel .eyebrow { display: block; margin-bottom: 6px; }
.verify-title { margin-bottom: 8px; }
.verify-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }

.sr-only-label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.verify-input-row { display: flex; gap: 12px; align-items: flex-start; }
.verify-field { flex: 1; margin-bottom: 0; }
.verify-field input {
  font-family: var(--font-display), Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.verify-submit { flex-shrink: 0; height: 46px; margin-top: 0; width: auto; }
@media (max-width: 560px) {
  .verify-input-row { flex-direction: column; }
  .verify-submit { width: 100%; }
}

.verify-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.verify-divider::before,
.verify-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(22,27,51,0.12);
}

.verify-scan-btn { width: 100%; justify-content: center; }
.verify-scan-btn svg { width: 18px; height: 18px; }
.verify-scan-hint,
.verify-camera-fallback {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 10px 0 0;
  text-align: center;
}

.verify-video-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}
.verify-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.verify-reticle {
  position: absolute;
  inset: 18%;
  border: 3px solid rgba(255,255,255,0.85);
  border-radius: 14px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,0.28);
}
.verify-scan-status { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin: 12px 0 10px; }
.verify-scan-cancel { max-width: 260px; margin: 0 auto; display: block; }

.verify-result {
  margin-top: 26px;
  border-radius: var(--radius-sm);
  padding: 22px;
  border: 1.5px solid rgba(22,27,51,0.1);
  background: var(--cream);
}
.verify-result-head { display: flex; gap: 14px; align-items: flex-start; }
.verify-result-head h3 { margin: 0 0 4px; font-size: 1.1rem; }
.verify-result-head p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.verify-result-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800;
  flex-shrink: 0;
}
.verify-result.valid   { background: #EDF9F1; border-color: #9BD9B2; }
.verify-result.valid   .verify-result-icon { background: rgba(34,197,94,0.16); color: #1E8449; }
.verify-result.invalid { background: #FDEDED; border-color: #E9A5A5; }
.verify-result.invalid .verify-result-icon { background: rgba(201,54,54,0.14); color: #C93636; }
.verify-result.revoked { background: #FEF6E7; border-color: #F0C579; }
.verify-result.revoked .verify-result-icon { background: rgba(245,166,35,0.18); color: #B9770E; }
.verify-result.error   .verify-result-icon { background: rgba(22,27,51,0.1); color: var(--ink); }

.cert-details { margin-top: 18px; border-top: 1px solid rgba(22,27,51,0.1); padding-top: 6px; }
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(22,27,51,0.07);
  font-size: 0.92rem;
}
.cert-row:last-child { border-bottom: 0; }
.cert-row span { color: var(--text-muted); }
.cert-row strong { color: var(--ink); text-align: right; }

.verify-help { max-width: 760px; margin: 44px auto 0; }
.verify-help p { color: var(--text-muted); }

/* --- Opportunity CTA row (e.g. above the enrollment form on contact.html) --- */
.opportunity-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.opportunity-cta-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.opportunity-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.opportunity-cta-buttons .btn { padding: 10px 20px; font-size: 0.86rem; }

/* --- Opportunities modal (Hire Talent / Become an Instructor / Openings) --- */
.opportunity-modal .opportunity-box {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px 34px;
  box-shadow: var(--shadow);
  text-align: left;
}
@media (max-width: 600px) {
  .opportunity-modal .opportunity-box { padding: 30px 20px 26px; border-radius: 16px; }
}

.opportunity-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(22,27,51,0.12);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.opportunity-close svg { width: 16px; height: 16px; }
.opportunity-close:hover { background: var(--cream-deep); }

.opportunity-choices .eyebrow { display: block; margin-bottom: 6px; }
.opportunity-choices h2 { margin-bottom: 8px; padding-right: 34px; }
.opportunity-choices-sub { color: var(--text-muted); margin-bottom: 26px; }

.opportunity-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .opportunity-choice-grid { grid-template-columns: 1fr; } }

.opportunity-choice {
  text-align: left;
  background: var(--cream);
  border: 1.5px solid rgba(22,27,51,0.08);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.opportunity-choice:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.opportunity-choice-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(123, 79, 224, 0.1);
}
.opportunity-choice-icon svg { width: 22px; height: 22px; }
.opportunity-choice h3 { font-size: 1rem; margin-bottom: 6px; }
.opportunity-choice p { color: var(--text-muted); font-size: 0.86rem; margin: 0; line-height: 1.4; }

.opportunity-choices.hidden,
.opportunity-form-wrap.hidden { display: none; }

.opportunity-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--purple);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0 0 18px;
  font-family: inherit;
}
.opportunity-back svg { width: 15px; height: 15px; }
.opportunity-back:hover { text-decoration: underline; }

.opportunity-form-title { margin-bottom: 20px; padding-right: 30px; }

.contact-info-card {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 18px; }
.contact-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-info-row svg { width: 20px; height: 20px; stroke: var(--gold-light); flex-shrink: 0; margin-top: 2px; }
.contact-info-row a, .contact-info-row span { color: rgba(255,255,255,0.85); font-size: 0.92rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV DROPDOWN — Courses menu
   ============================================================ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.6;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}

.nav-dropdown-btn::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-dropdown-btn[aria-expanded="true"]::after {
  width: 100%;
}

.nav-dropdown-btn svg {
  width: 12px; height: 12px;
  transition: transform 0.2s ease;
  stroke: var(--ink);
}

.nav-dropdown-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);   /* visual offset — keeps menu away from button */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(22,27,51,0.08);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

/* ── Invisible hit-area bridge ──────────────────────────────────────────────
   Fills the 14px gap between the button and the visible menu card so the
   cursor never leaves the .nav-dropdown container while moving toward items.
   This is the key fix for the "menu closes on mouse move" bug. */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;          /* reach up to cover the full gap */
  left: -20px;
  right: -20px;
  height: 14px;        /* exactly the gap height */
  background: transparent;
  /* No box-shadow / border — purely a hit-area expander */
}

.nav-dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(123,79,224,0.07);
  color: var(--purple);
}

.nav-dropdown-menu a::after { display: none; }

.nav-dropdown-menu .dd-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(123,79,224,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-dropdown-menu .dd-icon svg {
  width: 15px; height: 15px;
  stroke: var(--purple);
}

/* Mobile dropdown */
@media (max-width: 1300px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { width: 100%; padding: 10px 0; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(123,79,224,0.05);
    border-radius: var(--radius-sm);
    padding: 6px 0 6px 12px;
    min-width: unset;
    opacity: 1;
    pointer-events: auto;
    display: none;
    margin-top: 4px;
  }
  .nav-dropdown-menu::before { display: none; }

  /* FIX: `.nav-dropdown-menu.open` (2 classes) out-ranks the single-class rule
     above, so the desktop `translateX(-50%)` leaked through and pushed the
     mobile menu off the left edge of the screen. Match the specificity here. */
  .nav-dropdown-menu.open {
    display: block;
    transform: none;
  }

  .nav-dropdown-menu a { padding: 8px 10px; }
}

/* ============================================================
   COURSES MEGA MENU — full-width "Courses" nav panel
   ============================================================ */
.nav-dropdown-menu.mega {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--navbar-h, 78px);
  transform: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: calc(100vh - var(--navbar-h, 78px));
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 20px 40px -10px rgba(22,27,51,0.25);
}
.nav-dropdown-menu.mega::before { display: none; }
.nav-dropdown-menu.mega.open { transform: none; }

.nav-mega-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 32px 40px;
  position: relative;
}

.nav-mega-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(22,27,51,0.12);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  z-index: 1;
}
.nav-mega-close svg { width: 16px; height: 16px; }

@media (max-width: 1300px) {
  .nav-dropdown-menu.mega,
  .nav-dropdown-menu.mega.open {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    background: rgba(123,79,224,0.05);
  }
  .nav-mega-inner { padding: 12px 4px; }
  .nav-mega-close { display: none; }
}

/* ============================================================
   COURSE PAGE — placeholder sections
   ============================================================ */
.course-placeholder {
  border: 2px dashed rgba(123,79,224,0.25);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(123,79,224,0.03);
}
.course-placeholder h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 10px;
}
.course-placeholder p { margin: 0; font-size: 0.95rem; }

/* ============================================================
   COURSES HUB — category sidebar + course card grid
   ============================================================ */
.courses-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Grid items default to min-width:auto, which refuses to shrink below the
   content's intrinsic size and can overflow the 1fr track — force it to
   actually respect the track width. */
.courses-main { min-width: 0; }

.courses-sidebar {
  position: sticky;
  top: 96px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(22,27,51,0.07);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.courses-sidebar h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin: 4px 8px 14px;
}

.courses-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.courses-cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}

.courses-cat-btn .cc-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(123,79,224,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.courses-cat-btn .cc-icon svg { width: 18px; height: 18px; }

.courses-cat-btn:hover { background: rgba(123,79,224,0.06); }

.courses-cat-btn.active { background: rgba(123,79,224,0.12); color: var(--purple); }
.courses-cat-btn.active .cc-icon { background: var(--purple); }
.courses-cat-btn.active .cc-icon svg path,
.courses-cat-btn.active .cc-icon svg rect,
.courses-cat-btn.active .cc-icon svg circle,
.courses-cat-btn.active .cc-icon svg line,
.courses-cat-btn.active .cc-icon svg polyline { stroke: #fff !important; }

.courses-panel-head { margin-bottom: 28px; }
.courses-panel-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 8px; }
.courses-panel-head p { color: var(--text-muted); margin: 0; max-width: 640px; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.course-grid.course-grid-single {
  grid-template-columns: minmax(0, 380px);
}
@media (max-width: 640px) {
  .course-grid, .course-grid.course-grid-single { grid-template-columns: 1fr; }
}

/* The contact page uses an inline desktop ratio, so explicitly stack only
   that layout on phone-sized screens. */
@media (max-width: 700px) {
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .contact-layout > * {
    min-width: 0;
  }
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(22,27,51,0.07);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.course-card-top {
  background: var(--grad-purple);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.course-card-badge {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.course-card-hours {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.course-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  white-space: normal;
}
/* .course-card is an <a> that, in the header's mega-menu, sits nested inside
   .nav-links — so it also matches `.nav-links a { white-space: nowrap }`.
   That inherits down to this text and forces it onto one clipped line;
   reset it explicitly here since any declaration on the element itself
   overrides an inherited value regardless of selector specificity. */
.course-card-body h3 { font-size: 1.08rem; white-space: normal; }
.course-card-body p { color: var(--text-muted); font-size: 0.9rem; margin: 0; flex: 1; white-space: normal; }

.course-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple);
  margin-top: 6px;
  white-space: normal;
}
.course-card-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.course-card:hover .course-card-link svg { transform: translateX(3px); }

/* Homepage "Our Programs" cards reuse .course-card / .course-grid / .grid-3-row directly */
.course-card-top-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-card-top-icon svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .courses-page-layout { grid-template-columns: 1fr; }
  .courses-sidebar { position: static; padding: 12px; }
  .courses-cat-list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .courses-cat-btn { flex-direction: column; text-align: center; white-space: nowrap; padding: 10px 14px; gap: 6px; }
}

/* ============================================================
   ABOUT PAGE — Story, values, methodology grid
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr 1fr; } }

/* Heading flanked by short horizontal rules on either side, e.g. "— Trainer Core Values —" */
.divider-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.divider-heading::before,
.divider-heading::after {
  content: '';
  flex: 1 1 auto;
  max-width: 60px;
  height: 2px;
  background: var(--purple-light);
}

/* Centered trailing row for values-grid (e.g. a 7th card left over from 3 columns) */
.values-grid-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 20px; }
.values-grid-row > * { flex: 1 1 calc(33.333% - 13.33px); max-width: calc(33.333% - 13.33px); }
@media (max-width: 860px) { .values-grid-row > * { flex: 1 1 calc(50% - 10px); max-width: calc(50% - 10px); } }
@media (max-width: 540px) { .values-grid-row > * { flex: 1 1 100%; max-width: 100%; } }

/* Single-row 7-across variant of values-grid (e.g. all Student/Trainer values in one line) */
.values-grid.cols-7 { grid-template-columns: repeat(7, 1fr); gap: 18px; }
.values-grid.cols-7 .value-card { padding: 22px 18px; }
.values-grid.cols-7 .value-icon { width: 40px; height: 40px; margin-bottom: 12px; }
.values-grid.cols-7 .value-card h3 { font-size: 1rem; margin-bottom: 6px; }
.values-grid.cols-7 .value-card p { font-size: 0.82rem; }
@media (max-width: 1100px) { .values-grid.cols-7 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .values-grid.cols-7 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .values-grid.cols-7 { grid-template-columns: 1fr; } }

/* Rocket / arrow spine — tall right-pointing banner that floats alongside a stack of value rows
   without shrinking their width. The rows stay full-container-width and centered; the banner
   bleeds into the page margin as a decorative accent on wide viewports, and drops to a normal
   in-flow horizontal ribbon on narrower ones. */
.rocket-wrap {
  position: relative;
}

.journey-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 32px;
}

.journey-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.journey-copy {
  color: var(--text-muted);
  margin: 0;
}

.journey-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 28px;
  align-items: stretch;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.journey-column {
  display: grid;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(123, 79, 224, 0.12);
}

.journey-column-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(143, 111, 235, 0.14);
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(22, 27, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.journey-step .value-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(123,79,224,0.12);
  font-size: 1.15rem;
}

.journey-step h3 {
  margin: 0;
  font-size: 1rem;
}

.journey-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.journey-quote {
  display: grid;
  gap: 16px;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(123,79,224,0.1), rgba(183,129,245,0.08));
  border-radius: var(--radius);
  border: 1px solid rgba(123,79,224,0.16);
}

.journey-quote .eyebrow {
  margin: 0;
  color: var(--purple);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.journey-quote p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}

.journey-banner {
  display: grid;
  place-items: center;
  position: relative;
  width: 110px;
  min-height: 0;
  height: 100%;
  padding: 28px 18px 28px 0;
  background: linear-gradient(180deg, #ad95f1 0%, #8056df 48%, #35217d 100%);
  color: var(--white);
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%);
  overflow: hidden;
}

.journey-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 30%);
  pointer-events: none;
  z-index: 0;
}

.journey-banner-copy {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  position: relative;
  z-index: 1;
}

.journey-banner-icon {
  position: absolute;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  opacity: 0.15;
}

.journey-banner-icon svg {
  width: 80px;
  height: 80px;
}

.journey-banner-copy span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.32;
  letter-spacing: 0;
  white-space: pre-line;
  text-align: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 1220px) {
  .journey-main {
    grid-template-columns: 1fr;
  }
  .journey-banner {
    min-height: 260px;
    width: 100%;
    padding: 24px 20px;
    border-radius: var(--radius);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.rocket-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: -132px;
  height: 100%;
  width: 110px;
  background: linear-gradient(155deg, var(--purple-light) 0%, var(--purple) 55%, var(--indigo) 100%);
  color: var(--white);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.3;
  padding: 32px 34px 32px 18px;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%);
  filter: drop-shadow(0 10px 18px rgba(58, 44, 140, 0.35));
}
/* ============================================================
   FLOATING ACTIONS — sitewide WhatsApp chat + call-back buttons
   ============================================================ */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(22,27,51,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -4px rgba(22,27,51,0.4); }
.fab svg { width: 26px; height: 26px; }

.fab-whatsapp { background: #25D366; }
.fab-callback { background: var(--gold); }

.fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.fab:hover .fab-tooltip { opacity: 1; }

@media (max-width: 600px) {
  .floating-actions { right: 14px; bottom: 14px; gap: 12px; }
  .fab { width: 50px; height: 50px; }
  .fab svg { width: 23px; height: 23px; }
  .fab-tooltip { display: none; }
}

/* ============================================================
   PROMO POPUP — timed/scroll-triggered enrollment nudge
   ============================================================ */
.promo-popup {
  position: fixed;
  margin: auto;
  border: none;
  background: var(--grad-sky);
  color: var(--white);
  border-radius: var(--radius);
  max-width: 420px;
  width: calc(100% - 40px);
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.promo-popup::backdrop {
  background: rgba(22,27,51,0.55);
}

.promo-popup[open] {
  animation: promoPopIn 0.25s ease;
}

@keyframes promoPopIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.promo-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.promo-popup-close svg { width: 16px; height: 16px; }
.promo-popup-close:hover { background: rgba(255,255,255,0.25); }

.promo-popup-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.promo-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--white);
}

.promo-popup p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  font-size: 0.98rem;
}

.promo-popup .btn { width: 100%; justify-content: center; }

@media (max-width: 480px) {
  .promo-popup { padding: 34px 22px 26px; }
}

/* ============================================================
   COOKIE CONSENT — bottom banner + preferences modal
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ink);
  color: rgba(255,255,255,0.9);
  padding: 22px 28px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.cookie-banner.hidden { display: none; }

.cookie-banner-text { flex: 1 1 420px; }
.cookie-banner-text h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.cookie-banner-links {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-banner-links a,
.cookie-link-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-body);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner { padding: 18px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { width: 100%; justify-content: center; }
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22,27,51,0.55);
  backdrop-filter: blur(4px);
}
.cookie-modal.hidden { display: none; }

.cookie-modal-box {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal-head h3 { font-size: 1.3rem; margin: 0; }

.cookie-modal-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(22,27,51,0.12);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.cookie-modal-x svg { width: 16px; height: 16px; }

.cookie-modal-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 20px;
}

.cookie-cat {
  border: 1px solid rgba(22,27,51,0.08);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--cream);
}

.cookie-cat-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.cookie-cat-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
  flex-shrink: 0;
}
.cookie-cat-row input:disabled { opacity: 0.6; cursor: not-allowed; }
.cookie-cat-row strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.cookie-cat-row small {
  display: block;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.cookie-modal-actions .btn,
.cookie-modal-actions .secondary-btn { flex: 1 1 140px; margin: 0; }

.rocket-banner::before {
  /* top-edge highlight for a beveled, raised look */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 16%, rgba(0,0,0,0) 84%, rgba(0,0,0,0.18) 100%);
  clip-path: inherit;
  pointer-events: none;
}
.rocket-banner span {
  position: relative;
  z-index: 1;
}
/* Below this width there's no room to bleed a floating banner without overlapping content —
   drop it back into normal flow as a horizontal ribbon under the rows instead. */
@media (max-width: 1440px) {
  .rocket-banner {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 32px;
    padding: 20px 44px 20px 20px;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  }
}
@media (max-width: 540px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(22,27,51,0.06);
  box-shadow: var(--shadow-soft);
}
.value-card .value-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(123,79,224,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.value-card .value-icon svg { width: 22px; height: 22px; stroke: var(--purple); }
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.methodology-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin: 48px 0;
}
@media (max-width: 900px) { .methodology-steps { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (max-width: 560px) { .methodology-steps { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.methodology-steps.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .methodology-steps.cols-5 { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (max-width: 560px) { .methodology-steps.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.method-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.method-step::after {
  content: '';
  position: absolute;
  top: 22px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: rgba(123,79,224,0.2);
}
.method-step:last-child::after { display: none; }

.method-step .step-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-purple);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.method-step span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(22,27,51,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr 1fr; } }

.stat-row.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 700px) { .stat-row.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .stat-row.cols-5 { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
  background: var(--white);
  padding: 32px 20px;
  text-align: center;
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   ORI COMMUNITY PAGE
   ============================================================ */
.ori-activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .ori-activities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ori-activities { grid-template-columns: 1fr; } }

.ori-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(22,27,51,0.06);
  box-shadow: var(--shadow-soft);
}
.ori-card .ori-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.ori-card .ori-icon svg { width: 24px; height: 24px; }
.ori-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ori-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 600px) { .benefits-list { grid-template-columns: 1fr; } }

.benefits-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(22,27,51,0.06);
  font-size: 0.95rem;
}
.benefits-list li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.8rem;
  margin-top: 2px;
  flex-shrink: 0;
}
