/* =============================================================================
   HIT Institute — style.css
   Frontend-only stylesheet. No frameworks, no build step, no inline layout.

   01. Design tokens
   02. Reset & base elements
   03. Layout primitives
   04. Buttons, chips, icon buttons
   05. Video preview component
   06. Top information bar
   07. Header & navigation
   08. Hero
   09. Features
   10. Courses
   11. Statistics
   12. About
   13. Jobs
   14. Testimonials
   15. Registration CTA
   16. News
   17. Footer
   18. Overlays: search, modal, toast, back-to-top
   19. Modal content components (built by JS)
   20. Responsive rules
   21. Motion, print, reduced-motion
   ========================================================================== */

/* ---------- 01. Design tokens ------------------------------------------- */
:root {
  -webkit-tap-highlight-color: transparent;
  /* Navy family */
  --navy-900: #0a1730;
  --navy-800: #0d1f3c;
  --navy-700: #12294a;
  --navy-600: #16325a;

  /* Blue family */
  --blue-700: #1456b8;
  --blue-600: #1a6fe0;
  --blue-500: #2f80f2;
  --blue-400: #4d9bff;
  --blue-300: #8cc2ff;
  --blue-50:  #eef5ff;

  /* Accents */
  --green-500:  #14a05a;
  --purple-500: #7c4de0;
  --orange-500: #f97316;
  --red-500:    #e0483d;

  /* Text & surfaces */
  --ink:        #16233a;
  --ink-body:   #4a5b72;
  --muted:      #647890;
  --line:       #e6ecf5;
  --surface:    #ffffff;
  --surface-soft: #f6f9fd;

  /* Effects */
  --shadow-xs: 0 1px 3px rgba(16, 38, 74, .06);
  --shadow-sm: 0 2px 8px rgba(16, 38, 74, .05);
  --shadow-md: 0 10px 26px rgba(16, 38, 74, .09);
  --shadow-lg: 0 18px 40px rgba(12, 32, 66, .16);
  --shadow-xl: 0 26px 60px rgba(6, 18, 40, .32);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Typography */
  --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Caveat', 'Segoe Script', 'Brush Script MT', cursive;

  /* Rhythm */
  --container: 1240px;
  --gutter: 24px;
  --header-h: 68px;
  --topbar-h: 36px;
  --section-y: clamp(48px, 5.2vw, 74px);
  --transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 02. Reset & base -------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--ink-body);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: var(--blue-600);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ---------- 03. Layout primitives -------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

.section-sub {
  margin-top: 10px;
  max-width: 52ch;
  color: var(--ink-body);
}

.section-note {
  margin-top: 22px;
  font-size: .75rem;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow--light { color: var(--blue-300); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 6px 2px;
  background: none;
  border: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: gap var(--transition), color var(--transition);
}
.link-more .icon { width: 15px; height: 15px; }
.link-more:hover { gap: 12px; color: var(--blue-700); }

/* ---------- 04. Buttons, chips, icon buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: none;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 111, 224, .22);
}
.btn--primary:hover { background: var(--blue-700); box-shadow: 0 12px 24px rgba(26, 111, 224, .3); }

.btn--outline {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--outline:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }

.btn--ghost {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: #fff;
}
.btn--ghost:hover { background: var(--blue-50); border-color: var(--blue-500); }

.btn--glass {
  background: rgba(9, 25, 51, .5);
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}
.btn--glass:hover { background: rgba(9, 25, 51, .72); border-color: rgba(255, 255, 255, .45); }

.btn--lg { height: 50px; padding: 0 26px; font-size: .9rem; }

.btn--sm {
  height: 34px;
  padding: 0 14px;
  font-size: .78rem;
  border-radius: 8px;
}

.btn--light-outline {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: #fff;
}
.btn--light-outline:hover { background: var(--blue-50); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-body);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue-600); }
.icon-btn:active { transform: scale(.94); }

.icon-btn--search { border: 1px solid var(--line); }
.icon-btn--search:hover { border-color: var(--blue-500); }

.icon-btn--blue {
  width: 32px;
  height: 32px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.icon-btn--blue .icon { width: 15px; height: 15px; }
.icon-btn--blue:hover { background: var(--blue-600); color: #fff; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.chip--blue   { background: rgba(26, 111, 224, .12); color: var(--blue-600); }
.chip--purple { background: rgba(124, 77, 224, .12); color: var(--purple-500); }
.chip--green  { background: rgba(20, 160, 90, .13); color: var(--green-500); }
.chip--orange { background: rgba(249, 115, 22, .13); color: var(--orange-500); }

/* ---------- 05. Video preview component -------------------------------- */
.video-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy-700);
  box-shadow: var(--shadow-xl);
  text-align: left;
  isolation: isolate;
}

.video-preview__media { display: block; position: relative; }
.video-preview__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 24, 50, .28) 0%, rgba(9, 24, 50, .05) 40%, rgba(6, 17, 36, .78) 100%);
  z-index: 1;
  pointer-events: none;
}
.video-preview__media { z-index: 0; }

.video-preview__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--blue-600);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .35);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.video-preview__play .icon { width: 24px; height: 24px; margin-left: 3px; }

.video-preview::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6);
  animation: video-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

.video-preview:hover .video-preview__play,
.video-preview:focus-visible .video-preview__play {
  transform: scale(1.08);
  background: #fff;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .18);
}
.video-preview:hover::before { animation-play-state: paused; opacity: .4; }

@keyframes video-pulse {
  0%   { transform: scale(1);   opacity: .75; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.video-preview__script {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  color: #fff;
  text-align: right;
  text-shadow: 0 2px 10px rgba(6, 18, 40, .5);
  pointer-events: none;
}

.video-preview__ribbon {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(9, 25, 51, .62);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d8e6fb;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.video-preview__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 16px;
  color: rgba(255, 255, 255, .88);
  pointer-events: none;
}
.video-preview__controls .icon { width: 17px; height: 17px; }
.video-preview__track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .28);
}
.video-preview__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 53%;
  border-radius: inherit;
  background: var(--blue-400);
}
.video-preview__progress::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(77, 155, 255, .45);
}
.video-preview__meta {
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.video-preview--compact { border-radius: var(--r-lg); box-shadow: var(--shadow-md); border-color: var(--line); }
.video-preview--compact .video-preview__play,
.video-preview--compact::before { width: 58px; height: 58px; }
.video-preview--compact .video-preview__play { margin: -29px 0 0 -29px; }
.video-preview--compact::before { margin: -29px 0 0 -29px; }
.video-preview--compact .video-preview__play .icon { width: 21px; height: 21px; }

/* ---------- 06. Top information bar ------------------------------------- */
.topbar {
  position: relative;
  z-index: 60;
  background: var(--navy-800);
  color: rgba(255, 255, 255, .74);
  font-size: .8125rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--topbar-h);
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}
.topbar__contact li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.topbar__contact .icon { width: 15px; height: 15px; color: var(--blue-300); }
.topbar__contact a { transition: color var(--transition); }
.topbar__contact a:hover { color: #fff; }

.topbar__social { display: flex; align-items: center; gap: 16px; }
.topbar__social a {
  display: inline-flex;
  color: rgba(255, 255, 255, .72);
  transition: color var(--transition), transform var(--transition);
}
.topbar__social .icon { width: 16px; height: 16px; }
.topbar__social a:hover { color: var(--blue-300); transform: translateY(-2px); }

/* ---------- 07. Header & navigation ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow var(--transition);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(12, 32, 66, .12); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
  transition: min-height var(--transition);
}
.site-header.is-stuck .site-header__inner { min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--blue-50);
  overflow: hidden;
  transition: transform var(--transition);
}
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand__tagline { font-size: .6875rem; color: var(--muted); letter-spacing: .01em; }

.primary-nav { display: flex; align-items: center; margin-left: auto; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-body);
  transition: color var(--transition);
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.primary-nav__link:hover { color: var(--blue-600); }
.primary-nav__link:hover::after { transform: scaleX(1); }
.primary-nav__link.is-active { color: var(--blue-600); font-weight: 600; }
.primary-nav__link.is-active::after { transform: scaleX(1); }

.primary-nav__close { display: none; }
.primary-nav__actions { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.site-header__actions .btn { height: 40px; padding: 0 18px; font-size: .8125rem; border-radius: 8px; }
/* Single sign-in entry point for phones: opens the tabbed login/register popup.
   Hidden on desktop, where the separate Login and Register buttons stay. */
.site-header__actions .auth-mobile-trigger { display: none; }
.nav-toggle { display: none; }
.nav-backdrop { display: none; }
/* The backdrop must never paint while the drawer is closed. The element ships with
   the `hidden` attribute, but an author `display` rule outranks the UA [hidden] rule,
   so the open state is driven by an explicit class instead. */
.nav-backdrop.is-open { display: block; }

/* ---------- 08. Hero ---------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(44px, 4.6vw, 64px);
  background: linear-gradient(120deg, var(--navy-800) 0%, var(--navy-700) 48%, #0e2544 100%);
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/images/hero-campus.svg");
  background-size: cover;
  background-position: center right;
  opacity: .32;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(90% 120% at 88% 12%, rgba(38, 110, 220, .35), transparent 62%),
    linear-gradient(90deg, var(--navy-800) 4%, rgba(13, 31, 60, .92) 44%, rgba(13, 31, 60, .62) 100%);
}
/* geometric shapes from the reference */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  left: -120px;
  width: 560px;
  height: 560px;
  background: linear-gradient(140deg, rgba(47, 128, 242, .3), rgba(47, 128, 242, 0) 70%);
  clip-path: polygon(0 0, 100% 0, 34% 100%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hero__title {
  font-size: clamp(2.15rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: #fff;
}
.hero__title span { display: block; }
.hero__title-accent { color: var(--blue-400); }

.hero__text {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, .78);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__highlights li { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.hero__highlight-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: var(--blue-300);
}
.hero__highlight-icon .icon { width: 18px; height: 18px; }
.hero__highlights strong {
  display: block;
  font-family: var(--font-head);
  font-size: .875rem;
  color: #fff;
}
.hero__highlights small {
  display: block;
  font-size: .75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .6);
}

/* ---------- 09. Features ----------------------------------------------- */
.features { padding-block: clamp(34px, 4vw, 52px); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: #d3e1f5;
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: var(--r-md);
}
.feature-card__icon .icon { width: 22px; height: 22px; }
.feature-card__icon--blue   { background: rgba(26, 111, 224, .12); color: var(--blue-600); }
.feature-card__icon--green  { background: rgba(20, 160, 90, .13);  color: var(--green-500); }
.feature-card__icon--purple { background: rgba(124, 77, 224, .13); color: var(--purple-500); }
.feature-card__icon--orange { background: rgba(249, 115, 22, .13); color: var(--orange-500); }

.feature-card__title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.feature-card__text { font-size: .8438rem; line-height: 1.6; color: var(--ink-body); }

/* ---------- 10. Courses ------------------------------------------------- */
.courses { background: var(--surface); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.course-grid > li { display: flex; }
.course-grid .course-card { flex: 1; }

.course-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: #d3e1f5;
  box-shadow: var(--shadow-lg);
}

.course-card__media { padding: 12px 12px 0; }
.course-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--surface-soft);
}

.course-card__body { flex: 1; padding: 16px 16px 8px; }

.course-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.course-card__badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
}
.course-card__badge .icon { width: 14px; height: 14px; }
.course-card__badge--blue   { background: rgba(26, 111, 224, .12); color: var(--blue-600); }
.course-card__badge--purple { background: rgba(124, 77, 224, .13); color: var(--purple-500); }
.course-card__badge--green  { background: rgba(20, 160, 90, .13);  color: var(--green-500); }

.course-card__text {
  font-size: .8438rem;
  line-height: 1.6;
  color: var(--ink-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.course-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}
.course-card__meta {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .01em;
}

/* ---------- 11. Statistics ---------------------------------------------- */
.stats {
  padding-block: clamp(22px, 3vw, 34px);
  background: var(--navy-700);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 24px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--blue-300);
}
.stat__icon .icon { width: 19px; height: 19px; }
.stat__value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .8438rem; color: rgba(255, 255, 255, .68); }
.stats__note {
  margin-top: 26px;
  font-size: .75rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- 12. About -------------------------------------------------- */
.about { background: var(--surface); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 32fr) minmax(0, 36fr) minmax(0, 32fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}
.about__media { align-self: stretch; }
.about__media .video-preview__media img { height: 100%; aspect-ratio: 16 / 10; }

.about__copy p:not(.eyebrow) {
  margin-top: 16px;
  margin-bottom: 22px;
  color: var(--ink-body);
}

.about__panel {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-soft);
}
.highlight-list { display: grid; gap: 4px; }
.highlight-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.highlight-list li + li { border-top: 1px solid var(--line); }
.highlight-list__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.highlight-list__icon .icon { width: 18px; height: 18px; }
.highlight-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}
.highlight-list small { display: block; font-size: .8125rem; color: var(--ink-body); }

/* ---------- 13. Jobs ---------------------------------------------------- */
.jobs { background: var(--surface); }

.job-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.job-grid > li { display: flex; }
.job-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.job-card:hover {
  transform: translateY(-4px);
  border-color: #d3e1f5;
  box-shadow: var(--shadow-lg);
}

.job-card__head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.job-card__badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.job-card__badge--blue   { background: rgba(26, 111, 224, .12); color: var(--blue-600); }
.job-card__badge--purple { background: rgba(124, 77, 224, .13); color: var(--purple-500); }
.job-card__badge--green  { background: rgba(20, 160, 90, .13);  color: var(--green-500); }
.job-card__badge--orange { background: rgba(249, 115, 22, .13); color: var(--orange-500); }

.job-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.job-card__company { font-size: .8125rem; color: var(--muted); }

.job-card__meta {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: .8125rem;
  color: var(--ink-body);
}
.job-card__meta li { display: flex; align-items: center; gap: 8px; }
.job-card__meta .icon { width: 14px; height: 14px; color: var(--muted); }

.job-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- 14. Testimonials ------------------------------------------- */
.testimonials { background: var(--surface); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.testimonial-grid > li { display: flex; }
.testimonial-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0 16px;
  width: 100%;
  margin: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: #d3e1f5;
  box-shadow: var(--shadow-lg);
}

.testimonial-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
}
.testimonial-card__quote {
  position: absolute;
  top: 14px;
  right: 18px;
  color: rgba(26, 111, 224, .14);
}
.testimonial-card__quote .icon { width: 34px; height: 34px; }

.testimonial-card__text {
  grid-column: 1 / -1;
  margin: 14px 0 16px;
  font-size: .875rem;
  line-height: 1.75;
  color: var(--ink-body);
}
.testimonial-card__meta { grid-column: 1 / -1; }
.testimonial-card__meta strong {
  display: block;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-600);
}
.testimonial-card__meta span { font-size: .8125rem; color: var(--muted); }

/* ---------- 15. Registration CTA ---------------------------------------- */
.cta-wrap { padding-top: 0; }
.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(32px, 4vw, 52px) clamp(26px, 4vw, 58px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy-700);
  color: #fff;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/images/cta-workspace.svg");
  background-size: cover;
  background-position: center;
  opacity: .55;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(13, 31, 60, .95) 18%, rgba(18, 41, 74, .86) 52%, rgba(13, 31, 60, .7) 100%);
}
.cta__copy { max-width: 56ch; }
.cta__title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.cta__copy p { color: rgba(255, 255, 255, .75); margin-bottom: 22px; }
.cta__script {
  flex: none;
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 12px rgba(6, 18, 40, .45);
  transform: rotate(-4deg);
}

/* ---------- 16. News --------------------------------------------------- */
.news { background: var(--surface); padding-top: clamp(36px, 4vw, 54px); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.news-grid > li { display: flex; }

.news-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: #d3e1f5;
  box-shadow: var(--shadow-lg);
}

.news-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-soft);
}
.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 15px 16px 16px;
}
.news-card__date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .75rem;
  color: var(--muted);
}
.news-card__date .icon { width: 14px; height: 14px; }
.news-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 4px 0;
  background: none;
  border: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: gap var(--transition);
}
.news-card__more .icon { width: 14px; height: 14px; }
.news-card__more:hover { gap: 11px; }

/* ---------- 17. Footer -------------------------------------------------- */
.site-footer {
  margin-top: 0;
  background: var(--navy-800);
  color: rgba(255, 255, 255, .68);
  font-size: .875rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1.1fr 1.25fr 1.5fr;
  gap: 40px;
  padding-block: clamp(46px, 5vw, 66px);
}

.brand--footer .brand__mark { background: rgba(255, 255, 255, .08); }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tagline { color: rgba(255, 255, 255, .55); }
.site-footer__about {
  margin-top: 18px;
  max-width: 34ch;
  line-height: 1.7;
  color: rgba(255, 255, 255, .58);
}

.site-footer__title {
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
}

.footer-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.footer-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition), transform var(--transition);
}
.footer-link-list a::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid currentColor;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  opacity: .45;
  transition: opacity var(--transition);
}
.footer-link-list a:hover { color: #fff; transform: translateX(2px); }
.footer-link-list a:hover::before { opacity: 1; }

.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 11px; }
.footer-contact .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--blue-300); }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: #fff; }

.footer-social { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: rgba(255, 255, 255, .72);
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}
.footer-social .icon { width: 15px; height: 15px; }
.footer-social a:hover {
  color: #fff;
  border-color: var(--blue-400);
  background: rgba(26, 111, 224, .18);
}

/* -- Brand colours for each social icon -- */
/* Facebook: #1877F2 */
.footer-social a[aria-label="Facebook"] { color: #1877F2; border-color: rgba(24, 119, 242, .35); }
.footer-social a[aria-label="Facebook"]:hover { border-color: #1877F2; background: rgba(24, 119, 242, .15); }

/* X / Twitter: #000000 on dark bg looks invisible, use near-white */
.footer-social a[aria-label="X"] { color: #e7e7e7; border-color: rgba(231, 231, 231, .25); }
.footer-social a[aria-label="X"]:hover { border-color: #e7e7e7; background: rgba(231, 231, 231, .12); }

/* YouTube: #FF0000 */
.footer-social a[aria-label="YouTube"] { color: #FF0000; border-color: rgba(255, 0, 0, .35); }
.footer-social a[aria-label="YouTube"]:hover { border-color: #FF0000; background: rgba(255, 0, 0, .15); }

/* LinkedIn: #0A66C2 */
.footer-social a[aria-label="LinkedIn"] { color: #0A66C2; border-color: rgba(10, 102, 194, .35); }
.footer-social a[aria-label="LinkedIn"]:hover { border-color: #0A66C2; background: rgba(10, 102, 194, .15); }

/* Instagram: gradient approximated with a warm pink/purple midpoint */
.footer-social a[aria-label="Instagram"] { color: #E1306C; border-color: rgba(225, 48, 108, .35); }
.footer-social a[aria-label="Instagram"]:hover { border-color: #E1306C; background: rgba(225, 48, 108, .15); }

.newsletter__label {
  display: block;
  margin-bottom: 10px;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .62);
}
.newsletter__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .05);
  transition: border-color var(--transition), background-color var(--transition);
}
.newsletter__row:focus-within { border-color: var(--blue-400); background: rgba(255, 255, 255, .09); }
.newsletter__row.is-invalid { border-color: var(--red-500); }
.newsletter__row.is-valid { border-color: var(--green-500); }

.newsletter__input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: .8438rem;
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, .38); }
.newsletter__input:focus { outline: none; }

.newsletter__submit {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  transition: background-color var(--transition), transform var(--transition);
}
.newsletter__submit .icon { width: 16px; height: 16px; }
.newsletter__submit:hover { background: var(--blue-500); }
.newsletter__submit:active { transform: scale(.94); }

.newsletter__message {
  min-height: 18px;
  margin-top: 8px;
  font-size: .75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .55);
}
.newsletter__message.is-error { color: #ff9b93; }
.newsletter__message.is-success { color: #7fe0ac; }

.site-footer__bottom {
  background: var(--navy-900);
  font-size: .8125rem;
}
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 18px;
  color: rgba(255, 255, 255, .55);
}
.footer-legal { display: flex; align-items: center; gap: 18px; }
.footer-legal button {
  padding: 0;
  border: 0;
  background: none;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition);
}
.footer-legal button:hover { color: #fff; }

/* ---------- 18. Overlays ------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: background-color var(--transition), transform var(--transition), opacity var(--transition);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top .icon { width: 19px; height: 19px; }
.back-to-top:hover { background: var(--blue-700); transform: translateY(-3px); }

/* Search panel */
.search-panel { position: fixed; inset: 0; z-index: 120; }
.search-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 40, .55);
  backdrop-filter: blur(3px);
  animation: fade-in 160ms ease-out;
}
.search-panel__dialog {
  position: relative;
  width: min(680px, calc(100% - 32px));
  max-height: min(78vh, 640px);
  margin: 9vh auto 0;
  padding: 26px 26px 22px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  animation: dialog-in 200ms cubic-bezier(.2, .8, .3, 1);
}
.search-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.search-panel__title { font-size: 1.125rem; font-weight: 700; }
.search-panel__form { display: flex; gap: 10px; }
.search-panel__field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  transition: border-color var(--transition);
}
.search-panel__field:focus-within { border-color: var(--blue-500); background: #fff; }
.search-panel__field .icon { width: 18px; height: 18px; color: var(--muted); }
.search-panel__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: .9375rem;
}
.search-panel__field input:focus { outline: none; }
.search-panel__hint {
  margin-top: 12px;
  font-size: .75rem;
  color: var(--muted);
}
.search-panel__results { margin-top: 18px; }
.search-panel__results:empty { margin-top: 0; }

.result-group + .result-group { margin-top: 20px; }
.result-group__title {
  margin-bottom: 8px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.result-list { display: grid; gap: 6px; }
.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  text-align: left;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}
.result-item:hover { border-color: var(--blue-400); background: var(--blue-50); transform: translateX(2px); }
.result-item__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.result-item__icon .icon { width: 16px; height: 16px; }
.result-item__body { min-width: 0; }
.result-item__title {
  display: block;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-item__meta { font-size: .75rem; color: var(--muted); }
.result-empty {
  padding: 26px 10px;
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 130; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 40, .62);
  backdrop-filter: blur(3px);
  animation: fade-in 160ms ease-out;
}
.modal__dialog {
  position: relative;
  width: min(720px, calc(100% - 32px));
  max-height: min(86vh, 820px);
  margin: 6vh auto;
  padding: 30px 32px 32px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  animation: dialog-in 220ms cubic-bezier(.2, .8, .3, 1);
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-body);
  transition: background-color var(--transition), color var(--transition);
}
.modal__close:hover { background: var(--blue-50); color: var(--blue-600); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Toast */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 160;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: var(--navy-800);
  color: #fff;
  font-size: .8438rem;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  animation: toast-in 220ms cubic-bezier(.2, .8, .3, 1);
}
.toast .icon { width: 18px; height: 18px; margin-top: 1px; }
.toast--info .icon { color: var(--blue-300); }
.toast--success .icon { color: #6ee7a8; }
.toast--warning .icon { color: #fbbf24; }
.toast.is-leaving { animation: toast-out 200ms ease-in forwards; }

@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease-out, transform 520ms cubic-bezier(.2, .8, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 19. Modal content components (built by JS) ------------------ */
.modal__eyebrow {
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.modal__title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  padding-right: 40px;
}
.modal__subtitle { margin-top: 4px; font-size: .9375rem; color: var(--muted); }
.modal__body { margin-top: 18px; font-size: .9375rem; }
.modal__body > * + * { margin-top: 14px; }
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.media-figure {
  margin: 0 0 20px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-soft);
}
.media-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-soft);
  font-size: .8438rem;
}
.meta-list div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.meta-list .icon { width: 16px; height: 16px; color: var(--blue-600); }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; color: var(--ink); font-weight: 500; }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list li {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  font-size: .75rem;
  color: var(--blue-700);
}

.notice {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid #dbe7f8;
  border-left: 3px solid var(--blue-500);
  border-radius: var(--r-md);
  background: var(--blue-50);
  font-size: .8125rem;
  line-height: 1.6;
  color: #23466f;
}
.notice .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--blue-600); }
.notice--warning { border-color: #f6e3b8; border-left-color: var(--orange-500); background: #fff8ec; color: #7a5410; }
.notice--warning .icon { color: var(--orange-500); }

.form-grid { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: .8125rem; font-weight: 500; color: var(--ink); }
.field__control {
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
textarea.field__control { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; }
.field__control:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 128, 242, .16);
}
.field__control[aria-invalid="true"] { border-color: var(--red-500); }
.field__control[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(224, 72, 61, .16); }
.field__error { font-size: .75rem; color: var(--red-500); min-height: 0; }
.field__error:empty { display: none; }
.field__message { font-size: .8125rem; line-height: 1.55; }
.field__message--error { color: var(--red-500); }
.field__message--success { color: var(--green-500); }
.field__hint { font-size: .75rem; color: var(--muted); }

.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; padding: 5px; border-radius: 12px; background: var(--surface-soft); }
.tabs button {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-body);
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.tabs button.is-active { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-xs); }

/* -- Google Sign-In divider & button ------------------------------------ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--muted);
  font-size: .8125rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-signin-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Styled native fallback (shown when GIS lib hasn't loaded yet) */
.btn-google-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
}
.btn-google-fallback:hover {
  background: var(--surface-soft);
  border-color: #c0c0c0;
  box-shadow: var(--shadow-sm);
}

.video-stage { margin-bottom: 4px; }
.video-stage video,
.video-stage iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-md);
  background: #000;
}
.video-placeholder {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 46px 26px;
  border: 1.5px dashed #c8d8ee;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  text-align: center;
}
.video-placeholder__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}
.video-placeholder__icon .icon { width: 24px; height: 24px; margin-left: 3px; }
.video-placeholder h3 { font-size: 1.0625rem; }
.video-placeholder p { font-size: .8438rem; color: var(--muted); max-width: 48ch; }
.video-placeholder code {
  padding: 2px 7px;
  border-radius: 5px;
  background: #eaf1fb;
  font-family: Consolas, Menlo, monospace;
  font-size: .78rem;
  color: var(--blue-700);
  word-break: break-all;
}

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-grid button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  transition: border-color var(--transition), transform var(--transition);
}
.gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-grid button:hover { border-color: var(--blue-400); transform: translateY(-2px); }

/* ---------- 19b. Mobile bottom navigation ------------------------------ */
/*
 * Phone-only quick-access bar. Research guidance (Material Design, iOS HIG,
 * NN/g) is consistent on the key points: no more than five destinations, a
 * minimum 44-48px tap target, bottom-of-screen placement for thumb reach, an
 * unambiguous active state, and an explicit safe-area inset for notched devices.
 * Hidden on tablets and desktop where the full header navigation is already
 * visible, and it never covers footer content.
 */
.tabbar { display: none; }

@media (max-width: 767px) {
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(16, 38, 74, .08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .tabbar__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;              /* comfortable one-thumb tap target */
    padding: 8px 2px 7px;
    font-size: .625rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--muted);
    text-align: center;
    transition: color var(--transition);
  }
  .tabbar__link .icon { width: 21px; height: 21px; }

  .tabbar__link:hover,
  .tabbar__link:focus-visible { color: var(--blue-600); }

  .tabbar__link.is-active,
  .tabbar__link[aria-current="page"] {
    color: var(--blue-600);
    font-weight: 600;
  }

  /* Active indicator sits above the icon, inside the tap target. */
  .tabbar__link::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transform: translateX(-50%);
    transition: background-color var(--transition);
  }
  .tabbar__link.is-active::before,
  .tabbar__link[aria-current="page"]::before { background: var(--blue-600); }

  /* Reserve room so the last footer row is never hidden behind the bar. */
  .site-footer { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .back-to-top { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 20. Responsive rules ---------------------------------------- */
@media (max-width: 1200px) {
  .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 1100px) {
  .primary-nav__list { gap: 18px; }
  .primary-nav__link { font-size: .82rem; }
}

@media (max-width: 1024px) {
  :root { --header-h: 62px; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(300px, 86vw);
    height: 100dvh;
    margin: 0;
    padding: 20px 20px 28px;
    background: #fff;
    box-shadow: var(--shadow-xl);
    transform: translateX(105%);
    transition: transform 260ms cubic-bezier(.3, .8, .3, 1);
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: none; }

  .primary-nav__close {
    display: grid;
    place-items: center;
    align-self: flex-end;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
  }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav__link {
    display: block;
    padding: 12px 12px;
    border-radius: 10px;
    font-size: .9375rem;
  }
  .primary-nav__link::after { display: none; }
  .primary-nav__link.is-active { background: var(--blue-50); }

  .primary-nav__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 22px; }
  .primary-nav__actions .btn { flex: 1; height: 44px; }

  .nav-toggle { display: inline-flex; }
  .site-header__actions .btn { display: none; }
  /* Keep a single auth button in the mobile header; Login and Register collapse
     into it and open the same popup with both tabs. */
  .site-header__actions .auth-mobile-trigger {
    display: inline-flex;
    height: 36px;
    padding: 0 13px;
    font-size: .78rem;
    border-radius: 8px;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(6, 18, 40, .5);
    backdrop-filter: blur(2px);
    animation: fade-in 160ms ease-out;
  }

  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__copy { max-width: 620px; }

  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__panel { grid-column: 1 / -1; }
  .highlight-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
  .highlight-list li:nth-child(2) { border-top: 0; }
}

@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .topbar__contact li.topbar__contact-address { display: none; }
  .hero__highlights { grid-template-columns: 1fr; gap: 14px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cta__script { align-self: flex-end; }
  .about__grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .course-grid, .job-grid, .news-grid, .feature-grid { grid-template-columns: 1fr; }
  .highlight-list { grid-template-columns: 1fr; }
  .highlight-list li + li { border-top: 1px solid var(--line); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topbar__contact { gap: 18px; }

  /*
   * Mobile top bar: keep the social icons on screen next to the phone number.
   * These are targeted by class, not by position, because the contact rows are
   * rendered conditionally - any of them may be missing from settings. The
   * address already drops at 820px; here the email and any secondary line
   * number move to the footer so the phone and the icons share one row.
   */
  .topbar__contact li.topbar__contact-email,
  .topbar__contact li.topbar__contact-secondary { display: none; }
  .topbar__contact { flex: 1 1 auto; min-width: 0; }
  .topbar__contact li { min-width: 0; }
  .topbar__contact li a,
  .topbar__contact li span { overflow: hidden; text-overflow: ellipsis; }
  .topbar__inner { gap: 12px; }
  .topbar__social { flex: none; gap: 11px; }
  .topbar__social .icon { width: 17px; height: 17px; }
  .topbar__social a { padding: 3px 0; }
  .hero__buttons .btn { flex: 1 1 100%; }
  .video-preview__script { top: 14px; right: 16px; }
  .video-preview__ribbon { top: 14px; left: 16px; }
  .video-preview__play, .video-preview::before { width: 56px; height: 56px; }
  .video-preview__play { margin: -28px 0 0 -28px; }
  .video-preview::before { margin: -28px 0 0 -28px; }
  .meta-list, .form-row-2, .gallery-grid { grid-template-columns: 1fr; }
  .modal__dialog { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px 20px 28px; }
  .search-panel__dialog { margin-top: 4vh; padding: 20px 18px 18px; }
  .search-panel__form { flex-direction: column; align-items: stretch; }
  .search-panel__form .btn { height: 46px; }
  .search-panel__field { height: 46px; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 460px) {
  .stat { padding: 6px 12px; gap: 12px; }
  .stat__icon { width: 44px; height: 44px; }
  .stat__value { font-size: 1.5rem; }
  .footer-link-list { grid-template-columns: 1fr; }
  .brand__tagline { display: none; }
  /* Keep all six social icons legible on small phones. */
  .topbar__inner { gap: 10px; }
  .topbar__social { gap: 9px; }
  .topbar__social .icon { width: 16px; height: 16px; }
  .topbar__contact .icon { width: 14px; height: 14px; }
}

@media (max-width: 380px) {
  .topbar__inner { gap: 8px; }
  .topbar__social { gap: 7px; }
  .topbar__social .icon { width: 15px; height: 15px; }
  .topbar__contact li { gap: 6px; }
}

@media (hover: none) {
  .btn--outline,
  .video-preview__ribbon,
  .search-panel__backdrop,
  .modal__backdrop,
  .nav-backdrop {
    backdrop-filter: none;
  }
}

/* ---------- 21. Motion, print, reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header__actions, .nav-toggle, .back-to-top, .search-panel, .modal, .toast-region { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  body { color: #000; }
  .section { padding-block: 18px; }
}
