/* ==========================================================================
   Premier Academy — global stylesheet
   Mobile first. Breakpoints: 576 / 768 / 992 / 1200.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Sampled from the live site and the Premier Academy crest:
     crimson #a60531, shield navy #103d67, laurel green #00703c,
     heading ink #221638, active-link coral #fe4a55. */
  --primary: #221638;        /* headings, nav, footer, hero overlay */
  --primary-dark: #160e25;
  --primary-light: #3a2a5c;
  --accent: #a60531;         /* crest crimson — buttons and CTAs */
  --accent-dark: #7d0425;
  --accent-bright: #fe4a55;  /* active links, the live site's hover colour */
  --accent-soft: #fdeef1;
  --gold: #d4a233;           /* laurel gold, for eyebrows on dark panels */
  --shield-navy: #103d67;

  --text: #4a4a58;
  --text-light: #6f6f80;
  --text-invert: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f8f9f8;
  --footer-bg: #1b1130;

  --border: #e6e6ec;
  --border-strong: #c9c9d4;

  --font-heading: "Poppins", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(34, 22, 56, .06), 0 1px 3px rgba(34, 22, 56, .08);
  --shadow-md: 0 4px 6px rgba(34, 22, 56, .05), 0 10px 20px rgba(34, 22, 56, .08);
  --shadow-lg: 0 12px 28px rgba(34, 22, 56, .12), 0 2px 8px rgba(34, 22, 56, .08);

  --header-h: 72px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-bright); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--bg-alt); padding: .15em .4em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* Honeypot — visually gone, still fillable by bots. */
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.mt-lg { margin-top: 2rem; }
.icon { flex: none; vertical-align: middle; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.5em; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-heading); font-size: .95rem; font-weight: 600;
  line-height: 1.2; cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn + .btn { margin-left: .6rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .55em 1.1em; font-size: .85rem; }
.btn--lg { padding: .9em 2em; font-size: 1.02rem; }

.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--outline { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; border-color: #fff; color: var(--primary); }

.btn--outline-primary { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline-primary:hover { background: var(--primary); color: #fff; }

.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.08); }
.btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

/* --- Header / top bar --------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: var(--shadow-sm); }
.header.is-stuck { box-shadow: var(--shadow-md); }

.topbar { background: var(--primary); color: rgba(255,255,255,.92); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 38px; flex-wrap: wrap; }
.topbar__spacer { flex: 1 1 auto; }
.topbar__link { display: inline-flex; align-items: center; gap: .45em; color: inherit; }
.topbar__link:hover { color: var(--gold); }
@media (max-width: 767.98px) { .topbar__link--hide-sm { display: none; } }

.header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand__logo { width: auto; height: 46px; object-fit: contain; }
@media (min-width: 992px) { .brand__logo { height: 54px; } }

/* --- Hamburger ---------------------------------------------------------- */
.hamburger {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 992px) { .hamburger { display: none; } }

/* --- Navigation --------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 120;
  background: #fff; transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: -8px 0 30px rgba(34,22,56,.22);
}
.nav.is-open { transform: translateX(0); }
.nav__scrim { position: fixed; inset: 0; background: rgba(34,22,56,.55); z-index: 110; }

.nav__mobile-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.nav__mobile-title { font-family: var(--font-heading); font-weight: 600; color: var(--primary); }
.nav__close { background: transparent; border: 0; color: var(--primary); cursor: pointer; padding: 6px; display: grid; place-content: center; }

.nav__list { list-style: none; margin: 0; padding: 8px 0; }
.nav__item { position: relative; border-bottom: 1px solid var(--border); }
.nav__link {
  display: flex; align-items: center; gap: .35em;
  padding: 13px 18px; font-family: var(--font-heading); font-weight: 500;
  font-size: .95rem; color: var(--primary);
}
.nav__item.is-active > .nav__link { color: var(--accent-bright); }
.nav__caret, .nav__flyout-caret { display: none; }

.nav__toggle {
  position: absolute; top: 4px; right: 8px; width: 42px; height: 42px;
  background: transparent; border: 0; color: var(--primary); cursor: pointer;
  display: grid; place-content: center; transition: transform .25s var(--ease);
}
.nav__toggle[aria-expanded="true"] { transform: rotate(180deg); }
.nav__toggle--sub { top: 2px; width: 38px; height: 38px; }

.nav__dropdown, .nav__flyout {
  list-style: none; margin: 0; padding: 0; display: none; background: var(--bg-alt);
}
.nav__item.is-expanded > .nav__dropdown,
.nav__subitem.is-expanded > .nav__flyout { display: block; }

.nav__subitem { position: relative; }
.nav__sublink {
  display: flex; align-items: center; padding: 11px 18px 11px 32px;
  font-size: .9rem; color: var(--text); border-top: 1px solid var(--border);
}
.nav__sublink:hover { color: var(--primary); background: #eef2f7; }
.nav__flyout .nav__sublink { padding-left: 48px; background: #e9eef5; }

.nav__actions {
  margin-top: auto; padding: 18px; display: flex; flex-direction: column;
  gap: 12px; border-top: 1px solid var(--border);
}
.langswitch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; align-self: flex-start; white-space: nowrap; }
.langswitch__btn {
  background: transparent; border: 0; cursor: pointer; padding: .45em 1em;
  font-family: var(--font-heading); font-size: .82rem; font-weight: 600; color: var(--text-light);
}
.langswitch__btn.is-active { background: var(--primary); color: #fff; }

/* Two copies exist: one in the top bar for desktop, one in the slide-in menu. */
.langswitch--topbar { display: none; }
.langswitch--topbar { border-color: rgba(255,255,255,.28); margin-left: 1.25rem; align-self: center; }
.langswitch--topbar .langswitch__btn { color: rgba(255,255,255,.72); padding: .2em .8em; font-size: .78rem; }
.langswitch--topbar .langswitch__btn:hover { color: #fff; }
.langswitch--topbar .langswitch__btn.is-active { background: var(--gold); color: #2a1d00; }

@media (min-width: 992px) {
  .nav {
    position: static; width: auto; transform: none; box-shadow: none; overflow: visible;
    flex-direction: row; align-items: center; gap: .75rem; margin-left: auto; background: transparent;
    min-width: 0;
  }
  .nav__mobile-head { display: none; }
  .nav__scrim { display: none !important; }

  .nav__list { display: flex; align-items: center; gap: 0; padding: 0; }
  .nav__item { border: 0; }
  .nav__link { padding: 10px 7px; font-size: .83rem; border-radius: var(--radius); white-space: nowrap; }
  .nav__link:hover { background: var(--bg-alt); }
  .nav__caret { display: inline-block; transition: transform .2s var(--ease); }
  .nav__item--has-children:hover > .nav__link .nav__caret { transform: rotate(180deg); }
  .nav__toggle { display: none; }

  .nav__dropdown {
    display: block; position: absolute; top: 100%; left: 0; min-width: 260px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 8px 0; border: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  /* Which dropdown needs right-alignment depends on label width, which varies
     by locale — handled in JS (main.js) rather than guessed here by position. */
  .nav__item.overflow-right .nav__dropdown,
  .nav__subitem--parent.overflow-right .nav__flyout { left: auto; right: 0; }
  .nav__subitem--parent.overflow-right .nav__flyout { right: 100%; }
  .nav__item--has-children:hover > .nav__dropdown,
  .nav__item--has-children:focus-within > .nav__dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav__sublink { padding: 10px 18px; border: 0; }
  .nav__subitem--parent > .nav__sublink { justify-content: space-between; gap: .5em; }
  .nav__flyout-caret { display: inline-block; transform: rotate(-90deg); }

  .nav__flyout {
    display: block; position: absolute; top: -8px; left: 100%; min-width: 230px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 8px 0; border: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateX(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav__subitem--parent:hover > .nav__flyout,
  .nav__subitem--parent:focus-within > .nav__flyout {
    opacity: 1; visibility: visible; transform: translateX(0);
  }
  .nav__flyout .nav__sublink { background: transparent; padding-left: 18px; }

  .nav__actions { display: none; }
  .langswitch--topbar { display: inline-flex; }
}
@media (min-width: 1200px) {
  .nav__link { padding: 10px 12px; font-size: .9rem; }
}
/* The header CTA stays in the mobile menu only — at desktop widths the seven
   nav items plus the language switch already fill the 1200px container, and
   "Contact Us" plus the top-bar phone number cover the same intent. */
@media (min-width: 1440px) {
  .nav__link { padding: 10px 13px; font-size: .92rem; }
}

/* --- Waves -------------------------------------------------------------- */
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; pointer-events: none; }
.wave svg { display: block; width: 100%; height: 56px; }
@media (min-width: 768px) { .wave svg { height: 84px; } }
.wave--white svg path { fill: var(--bg); }
.wave--alt svg path { fill: var(--bg-alt); }
.wave--footer { top: -1px; bottom: auto; transform: scaleY(-1); }
.wave--footer svg path { fill: var(--bg-alt); }
.wave--flip { transform: scaleX(-1); }

/* --- Sections ----------------------------------------------------------- */
.section { position: relative; padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 84px 0; } }
.section--white { background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--primary); color: rgba(255,255,255,.9); }
.section--navy .section__title { color: #fff; }
.section--navy .section__lead { color: rgba(255,255,255,.82); }
.section--flush { padding: 0; }

.section__head { margin-bottom: 2.5rem; }
.section__head--narrow { max-width: 760px; margin-inline: auto; text-align: center; }
.section__title { margin-bottom: .5rem; }
.section__lead { color: var(--text-light); font-size: 1.05rem; margin: 0; }
.eyebrow {
  font-family: var(--font-heading); font-size: .78rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 .5rem;
}
.section--navy .eyebrow { color: var(--gold); }

.note { font-size: .88rem; color: var(--text-light); margin-top: 1.5rem; }

.callout {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.75rem; font-size: .93rem;
}
.callout--warn { border-color: var(--accent-dark); }

/* --- Hero slider -------------------------------------------------------- */
.slider { position: relative; overflow: hidden; background: var(--primary-dark); }
.slider__track { position: relative; min-height: 460px; display: grid; }
@media (min-width: 768px) { .slider__track { min-height: 560px; } }
@media (min-width: 1200px) { .slider__track { min-height: 640px; } }

.slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(22,14,37,.92) 0%, rgba(22,14,37,.76) 48%, rgba(22,14,37,.38) 100%);
}
.slide__content { position: relative; padding-block: 90px 110px; max-width: 820px; color: #fff; }
.slide__eyebrow {
  font-family: var(--font-heading); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9rem;
}
h1.slide__title, h2.slide__title { color: #fff; font-size: clamp(1.7rem, 4.4vw, 3rem); margin-bottom: .7rem; }
.slide__text { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.88); max-width: 620px; margin-bottom: 1.8rem; }
.slide__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.slide__actions .btn + .btn { margin-left: 0; }

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff; display: none; place-content: center;
  transition: background-color .2s var(--ease);
}
.slider__arrow:hover { background: rgba(255,255,255,.3); }
.slider__arrow--prev { left: 18px; }
.slider__arrow--next { right: 18px; }
@media (min-width: 992px) { .slider__arrow { display: grid; } }

.slider__dots { position: absolute; left: 0; right: 0; bottom: 78px; z-index: 3; display: flex; justify-content: center; gap: 9px; }
.slider__dot {
  width: 11px; height: 11px; border-radius: 50%; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.45); border: 0; transition: background-color .2s var(--ease), width .2s var(--ease);
}
.slider__dot.is-active { background: var(--gold); width: 30px; border-radius: 999px; }

/* --- Page hero ---------------------------------------------------------- */
.pagehero {
  position: relative; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 52px 0 92px; text-align: center;
}
@media (min-width: 768px) { .pagehero { padding: 72px 0 126px; } }
.pagehero__title { color: #fff; margin-bottom: .4rem; max-width: 880px; margin-inline: auto; }
.pagehero__lead { color: rgba(255,255,255,.85); max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

.crumbs { margin-bottom: 1rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; font-size: .84rem; }
.crumbs li { color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; color: rgba(255,255,255,.35); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--gold); }

/* --- Grids & cards ------------------------------------------------------ */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--link { color: inherit; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: inherit; }
.card__media { aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card--link:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { margin-bottom: .45rem; }
.card__text { color: var(--text-light); font-size: .94rem; margin-bottom: 1rem; }
.card__link {
  margin-top: auto; display: inline-flex; align-items: center; align-self: flex-start; gap: .4em;
  font-family: var(--font-heading); font-weight: 600; font-size: .88rem; color: var(--accent-dark);
}
.card--link:hover .card__link { color: var(--primary); }

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
}
@media (min-width: 992px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--font-heading); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; color: var(--accent-dark); line-height: 1.1; }
.stat__label { display: block; font-size: .87rem; color: var(--text-light); margin-top: .3rem; }

/* --- Split -------------------------------------------------------------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 992px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .split--narrow-media { grid-template-columns: 300px 1fr; align-items: start; }
  .split--reverse .split__media { order: 2; }
}
.split__body > .prose > :first-child { margin-top: 0; }
.rounded { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }

.portrait { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-md); text-align: center; }
.portrait img { border-radius: var(--radius); width: 100%; }
.portrait figcaption { margin-top: .8rem; font-size: .9rem; }
.portrait figcaption strong { display: block; color: var(--primary); font-family: var(--font-heading); }
.portrait figcaption span { color: var(--text-light); font-size: .84rem; }

.signature { font-family: var(--font-heading); font-weight: 600; color: var(--primary); margin-top: 2rem; }
.signature span { display: block; font-weight: 400; font-size: .88rem; color: var(--text-light); }

/* --- Prose -------------------------------------------------------------- */
.prose { max-width: 760px; }
.section__head--narrow + .prose, .section--white > .container > .prose { margin-inline: auto; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose .lead { font-size: 1.12rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.legal__updated { color: var(--text-light); font-size: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

/* --- Tick lists --------------------------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { display: flex; gap: .6em; align-items: flex-start; margin-bottom: .6em; font-size: .95rem; }
.ticks .icon { color: var(--accent-dark); margin-top: .35em; }
@media (min-width: 768px) { .ticks--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2em 2rem; } }

.taglist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .taglist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .taglist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.taglist li {
  display: flex; align-items: center; gap: .55em; background: #fff;
  border: 1px solid var(--border); border-radius: 999px; padding: .6em 1.1em; font-size: .9rem;
}
.taglist .icon { color: var(--accent-dark); }

/* --- Topic groups ------------------------------------------------------- */
.topic { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.topic__title { border-bottom: 2px solid var(--accent); padding-bottom: .5rem; margin-bottom: .9rem; font-size: 1.05rem; }
.topic__list { list-style: none; padding: 0; margin: 0; }
.topic__list li { display: flex; gap: .55em; align-items: flex-start; font-size: .91rem; color: var(--text-light); margin-bottom: .45em; }
.topic__list .icon { color: var(--accent-dark); margin-top: .3em; }

/* --- Features (numbered) ------------------------------------------------ */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: feat; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature {
  display: flex; gap: 18px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__num {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: .95rem;
}
.feature__title { font-size: 1.05rem; margin-bottom: .35rem; }
.feature__text { color: var(--text-light); font-size: .93rem; margin: 0; }

/* --- Accordion ---------------------------------------------------------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.accordion__item + .accordion__item { border-top: 1px solid var(--border); }
.accordion__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 600; color: var(--primary); font-size: .98rem;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:hover { background: var(--bg-alt); }
.accordion__caret { transition: transform .25s var(--ease); flex: none; }
.accordion__item[open] .accordion__caret { transform: rotate(180deg); }
.accordion__panel { padding: 0 20px 20px; font-size: .94rem; color: var(--text-light); }
.accordion__panel .ticks { margin-bottom: 0; }

/* --- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.table caption { text-align: left; padding: 16px 20px 0; font-size: .85rem; color: var(--text-light); }
.table th, .table td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--primary); color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; border-bottom: 0; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: #fafbfd; }
.table tbody tr:hover { background: var(--accent-soft); }
.table tbody th { font-weight: 600; color: var(--primary); }

/* --- Teachers ----------------------------------------------------------- */
.teacher {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.teacher:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.teacher__avatar {
  width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; display: grid; place-content: center;
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600;
}
.teacher__name { margin-bottom: .4rem; font-size: 1.12rem; }
.teacher__degrees { font-size: .87rem; color: var(--text-light); margin-bottom: .9rem; }
.teacher__subjects { font-size: .88rem; margin: 0; padding-top: .9rem; border-top: 1px solid var(--border); }
.label {
  display: block; font-family: var(--font-heading); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .2rem;
}

/* --- Quotes ------------------------------------------------------------- */
.quote {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; height: 100%;
}
.quote__mark { color: var(--accent); opacity: .5; margin-bottom: .8rem; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1rem; color: var(--text); flex: 1; }
.quote blockquote p { margin: 0; }
.quote figcaption { padding-top: 1rem; border-top: 1px solid var(--border); }
.quote__name { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--primary); }
.quote__meta { display: block; font-size: .84rem; color: var(--accent-dark); }

/* --- Rank list ---------------------------------------------------------- */
.ranklist { list-style: none; padding: 0; margin: 0; counter-reset: rank; display: grid; gap: 10px; }
@media (min-width: 576px) { .ranklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .ranklist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ranklist li {
  counter-increment: rank; display: flex; align-items: center; gap: .85em;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75em 1em; font-size: .93rem;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.ranklist li:hover { transform: translateX(3px); border-color: var(--accent); }
.ranklist__num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-content: center;
  font-family: var(--font-heading); font-size: .8rem; font-weight: 600;
}
.ranklist__num::before { content: counter(rank); }
.ranklist--alt .ranklist__num { background: var(--accent-dark); }
.ranklist__name { font-weight: 500; }

/* --- Gallery + lightbox ------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery__item {
  display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--bg-alt); box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(16, 10, 28, .95);
  display: grid; place-items: center; padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-content: center; transition: background-color .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: calc(18px + env(safe-area-inset-top, 0px)); right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: .88rem; }

/* --- Media cards (news/press) ------------------------------------------- */
.media-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%;
}
.media-card__thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: rgba(255,255,255,.85);
}
.media-card__badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .25em .7em; border-radius: 999px;
}
.media-card--audio { flex-direction: row; align-items: flex-start; }
.media-card__icon { flex: none; margin: 22px 0 22px 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-content: center; }
.media-card audio { width: 100%; margin-top: .6rem; }

/* --- Logos -------------------------------------------------------------- */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 768px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logos__item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  display: grid; place-items: center; padding: 20px; aspect-ratio: 2 / 1;
}
.logos__item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s var(--ease), opacity .2s var(--ease); }
.logos__item:hover img { filter: none; opacity: 1; }

/* --- Payments ----------------------------------------------------------- */
.payments .card { text-align: center; }

/* --- Job ---------------------------------------------------------------- */
.job__meta { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 14px; }
@media (min-width: 576px) { .job__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.job__meta li { background: var(--bg-alt); border-radius: var(--radius); padding: 14px 18px; font-size: .94rem; }

/* --- CTA band ----------------------------------------------------------- */
.cta {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 48px 0;
}
.cta__inner { display: grid; gap: 22px; align-items: center; }
@media (min-width: 992px) { .cta__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }
.cta__title { color: #fff; margin-bottom: .35rem; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.cta__text { color: rgba(255,255,255,.85); margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta__actions .btn + .btn { margin-left: 0; }

/* --- Forms -------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-heading); font-weight: 500; font-size: .9rem; color: var(--primary); margin-bottom: .4rem; }
.req { color: #c0392b; }
.input {
  width: 100%; padding: .78em 1em; font-family: var(--font-body); font-size: .96rem;
  color: var(--text); background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--radius); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 60, 110, .12); }
.input[aria-invalid="true"] { border-color: #c0392b; }
textarea.input { resize: vertical; min-height: 130px; }
.field__error { color: #c0392b; font-size: .84rem; margin: .35rem 0 0; min-height: 0; }
.field__error:empty { display: none; }

.field--check { margin-top: 1.4rem; }
.check { display: flex; gap: .7em; align-items: flex-start; font-family: var(--font-body) !important; font-weight: 400 !important; font-size: .87rem !important; color: var(--text-light) !important; line-height: 1.5; cursor: pointer; }
.check input { margin-top: .25em; flex: none; width: 17px; height: 17px; accent-color: var(--primary); }

.form__status { margin: 1rem 0 0; font-size: .92rem; font-weight: 500; }
.form__status.is-success { color: #1e7a45; }
.form__status.is-error { color: #c0392b; }

/* --- Contact ------------------------------------------------------------ */
.contact { display: grid; gap: 40px; }
@media (min-width: 992px) { .contact { grid-template-columns: 5fr 7fr; gap: 56px; } }
.contact__list { list-style: none; padding: 0; margin: 0; }
.contact__list li { display: flex; gap: .9em; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.contact__list li:last-child { border-bottom: 0; }
.contact__list .icon { color: var(--accent-dark); margin-top: .25em; }
.contact__form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
@media (min-width: 768px) { .contact__form-wrap { padding: 36px; } }
.map { line-height: 0; }
.map iframe { display: block; width: 100%; border: 0; }

/* --- Newsletter --------------------------------------------------------- */
.newsletter__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 992px) { .newsletter__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter__form .input { flex: 1 1 240px; }
.newsletter__form .form__status { flex-basis: 100%; margin-top: 0; color: rgba(255,255,255,.9); }
.newsletter__form .form__status.is-success { color: #8ce8b0; }
.newsletter__form .form__status.is-error { color: #ffb4a8; }

/* --- 404 ---------------------------------------------------------------- */
.notfound { text-align: center; padding-block: 72px 96px; }
.notfound__code { font-family: var(--font-heading); font-size: clamp(4.5rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--accent); opacity: .25; margin: 0 0 .2rem; }
.notfound .section__lead { max-width: 560px; margin-inline: auto; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 2rem 0; }
.notfound__actions .btn + .btn { margin-left: 0; }
.notfound__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; font-size: .92rem; }

/* --- Footer ------------------------------------------------------------- */
.footer { position: relative; background: var(--footer-bg); color: rgba(255,255,255,.72); padding-top: 72px; font-size: .93rem; }
@media (min-width: 768px) { .footer { padding-top: 104px; } }
.footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; } }

.footer__logo { height: 48px; width: auto; margin-bottom: 1.2rem; }
.footer__about { margin-bottom: 1rem; line-height: 1.7; }
.footer__since { color: rgba(255,255,255,.5); font-size: .87rem; margin: 0; }
.footer__heading { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer__heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 2px; background: var(--gold); }

.footer__links, .footer__contact { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: .55em; }
.footer__links a { color: rgba(255,255,255,.72); }
.footer__links a:hover { color: var(--gold); padding-left: 4px; }
.footer__links a { transition: color .2s var(--ease), padding-left .2s var(--ease); display: inline-block; }

.footer__contact li { display: flex; gap: .7em; align-items: flex-start; margin-bottom: .85em; line-height: 1.55; }
.footer__contact .icon { color: var(--gold); margin-top: .2em; }
.footer__contact a { color: rgba(255,255,255,.82); }
.footer__contact a:hover { color: var(--gold); }

.social { display: flex; gap: 10px; margin: 1.3rem 0; }
.social__link {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-content: center;
  background: rgba(255,255,255,.1); color: #fff;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.social__link:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

.qr { display: flex; gap: 16px; flex-wrap: wrap; }
.qr__item { text-align: center; }
.qr__item img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 5px; }
.qr__item figcaption { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: .4rem; }

.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer__bar-inner { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; }
.footer__bar p { margin: 0; }
.footer__bar-links { display: flex; gap: 1.2rem; }
.footer__bar a { color: rgba(255,255,255,.65); }
.footer__bar a:hover { color: var(--gold); }

/* --- Print -------------------------------------------------------------- */
@media print {
  .header, .footer, .cta, .newsletter, .slider__arrow, .slider__dots, .skip-link { display: none !important; }
  body { color: #000; }
  .section { padding: 12px 0; }
}

/* --- Added for real-content components --------------------------------- */

/* YouTube embeds on News/Press keep a 16:9 box before the iframe loads. */
.media-card__frame { position: relative; aspect-ratio: 16 / 9; background: var(--primary-dark); }
.media-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Captioned gallery (Friends of the Academy). */
.gallery--captioned { align-items: start; }
.gallery__fig { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.gallery__fig .gallery__item { aspect-ratio: 4 / 3; }
.gallery__fig figcaption { font-size: .82rem; color: var(--text-light); line-height: 1.45; }

/* Carrier-compliance text under the SMS consent checkbox. */
.check__note { font-size: .78rem; color: var(--text-light); line-height: 1.55; margin: .6rem 0 0; padding-left: 1.9em; }
.check__note a { text-decoration: underline; }

/* University logos on the success-stories cards. */
.quote__logo { height: 34px; width: auto; max-width: 150px; object-fit: contain; margin-bottom: .9rem; }
