/* ==========================================================================
   AERO MENTOR 66 — FULLY RESPONSIVE & DEVICE-WORKABLE STYLESHEET
   ========================================================================== */

/* --- ROOT VARIABLES & DESIGN TOKENS --- */
:root {
  --navy-950: #041126;
  --navy-900: #06152d;
  --navy-850: #071a36;
  --navy-800: #092449;
  --navy-750: #0d2e57;
  --navy-700: #102e51;
  --navy-card: #10284a;
  --navy-card-feat: #15345c;
  
  --gold-300: #f7d98b;
  --gold-400: #e8bd55;
  --gold-500: #d8b04a;
  --gold-600: #c08e23;
  --gold-700: #9b741c;
  
  --text-main: #0b1e3b;
  --text-muted: #657187;
  --text-light: #d2deed;
  --text-muted-light: #aebdd0;
  --border-light: rgba(255, 255, 255, 0.14);
  --border-subtle: #e1e5eb;
  --bg-light: #f8f9fb;
  --white: #ffffff;
  
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --header-height: 82px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* --- RESET & ACCESSIBILITY --- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--white);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

/* Fix iOS Auto-Zoom on form input focus: 16px font minimum */
input, select, textarea, button {
  font-family: inherit;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

address {
  font-style: normal;
}

/* --- LAYOUT CONTAINER --- */
.container {
  width: min(1160px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* --- TOP ANNOUNCEMENT LINE --- */
.topline {
  background: var(--navy-900);
  color: #dce6f5;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 12px;
}

/* --- STICKY SITE HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--white);
  box-shadow: 0 4px 22px rgba(8, 27, 53, 0.06);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 26px rgba(8, 27, 53, 0.12);
}

.nav-wrap {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo & Name */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 101;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--navy-800);
  line-height: 1.2;
}

.brand small {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #68758a;
  font-weight: 700;
  line-height: 1.2;
}

/* Desktop Navigation */
nav#mainNav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav#mainNav a:not(.nav-cta) {
  color: var(--text-main);
  padding: 8px 4px;
  position: relative;
}

nav#mainNav a:not(.nav-cta):hover,
nav#mainNav a:not(.nav-cta):focus-visible {
  color: var(--gold-600);
}

.nav-cta {
  background: var(--navy-800);
  color: var(--white) !important;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
  min-height: 44px;
}

.nav-cta span {
  color: var(--gold-400);
  transition: transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--navy-750);
  transform: translateY(-2px);
}

.nav-cta:hover span {
  transform: translate(2px, -2px);
}

.nav-cta-desktop {
  display: none;
}

@media (min-width: 921px) {
  nav#mainNav {
    flex: 1;
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-cta-mobile {
    display: none;
  }

  .nav-cta-desktop {
    display: inline-flex;
  }

  nav#mainNav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 2px;
    height: 2px;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }

  nav#mainNav a:not(.nav-cta):hover::after,
  nav#mainNav a:not(.nav-cta):focus-visible::after {
    transform: scaleX(1);
  }
}

@media (min-width: 1120px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  nav#mainNav {
    flex: none;
    justify-self: center;
    width: auto;
  }

  .nav-cta-desktop {
    justify-self: end;
  }
}

/* Mobile Nav Drawer extras hidden on desktop */
.mobile-nav-header,
.mobile-nav-footer,
.nav-backdrop {
  display: none;
}

/* Accessible Hamburger Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 101;
  border-radius: 6px;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2.5px;
  background-color: var(--navy-800);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -8px;
}

.hamburger-inner::after {
  content: "";
  top: 8px;
}

/* Hamburger active transform */
.menu-toggle[aria-expanded="true"] .hamburger-inner {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 580px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, var(--navy-900) 0%, var(--navy-800) 58%, var(--navy-700) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  right: -5%;
  top: -40%;
  width: 65%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(78, 145, 196, 0.45) 0%, rgba(35, 100, 155, 0.2) 40%, transparent 70%);
  transform: rotate(-15deg);
  pointer-events: none;
}

.hero-sky {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  opacity: 0.18;
  background:
    linear-gradient(135deg, transparent 20%, #b9d7f5 20.2%, transparent 20.8%),
    linear-gradient(155deg, transparent 35%, #b9d7f5 35.2%, transparent 35.8%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-copy {
  max-width: 640px;
  position: relative;
  z-index: 3;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.eyebrow.dark {
  color: var(--gold-700);
}

.hero h1,
.section h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 18px 0;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
}

.hero .eyebrow {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.hero .eyebrow span {
  width: 34px;
}

.hero h1 {
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
}

.hero h1 em,
.section h2 em {
  font-style: normal;
  color: var(--gold-400);
}

.hero-copy > p {
  max-width: 520px;
  color: var(--text-light);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  margin: 16px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--gold-400);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(232, 189, 85, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 6px 18px rgba(232, 189, 85, 0.45);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero-note {
  margin-top: 48px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #c8d5e6;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-note b {
  color: var(--gold-400);
  margin: 0 4px;
}

.note-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-400);
  margin-right: 6px;
}

/* Hero Plane Graphic */
.hero-plane {
  position: absolute;
  right: 2%;
  top: 15%;
  width: 40%;
  height: 70%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.plane-symbol {
  font-size: clamp(100px, 16vw, 210px);
  color: #f0c75d;
  transform: rotate(-12deg);
  text-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(216, 176, 74, 0.35);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.orbit-one {
  width: 95%;
  height: 55%;
}

.orbit-two {
  width: 78%;
  height: 82%;
  transform: rotate(45deg);
}

.flight-tag {
  position: absolute;
  right: 0;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--navy-800);
  padding: 12px 18px;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

.flight-tag > span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: var(--gold-600);
}

.flight-tag small {
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 800;
  line-height: 1.3;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gold-500);
}

/* --- TRUST STRIP --- */
.trust-strip {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-right: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.45;
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-600);
  font-size: 20px;
  flex-shrink: 0;
  background: var(--white);
}

/* --- GENERIC SECTION --- */
.section {
  padding: 90px 0;
}

.section h2 {
  font-size: clamp(30px, 4vw, 50px);
  color: var(--navy-800);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.section-heading > p {
  max-width: 340px;
  color: #7a889b;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 6px;
}

/* --- ABOUT SECTION --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.section-copy > p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
  margin: 14px 0;
}

.section-copy .lead {
  font-size: 18px;
  color: #213550;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-700);
  font-size: 13px;
  font-weight: 800;
  margin-top: 14px;
  min-height: 44px;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.about-visual {
  position: relative;
  padding: 0 16px 16px 0;
}

.visual-frame {
  height: 350px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #b6d5ee 0%, #e7f1f8 43%, #4a7195 44%, #102e51 100%);
  box-shadow: 16px 16px 0 #f2e8d1;
  border-radius: 4px;
}

.visual-sun {
  position: absolute;
  top: 32px;
  right: 65px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gold-300);
  filter: blur(1px);
}

.visual-runway {
  position: absolute;
  bottom: -100px;
  left: 20%;
  width: 65%;
  height: 280px;
  background: var(--navy-900);
  transform: perspective(200px) rotateX(35deg);
  border-top: 4px solid var(--gold-500);
}

.visual-plane {
  position: absolute;
  top: 75px;
  left: 20%;
  font-size: 125px;
  color: var(--white);
  text-shadow: 0 10px 20px rgba(16, 43, 75, 0.35);
  transform: rotate(-13deg);
}

.visual-caption {
  position: absolute;
  bottom: 18px;
  left: 22px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.visual-caption b {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 38px;
  color: var(--gold-400);
}

.visual-caption span {
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.gold-stamp {
  position: absolute;
  right: 0px;
  top: 20px;
  border: 1px solid var(--gold-500);
  background: var(--white);
  color: var(--gold-700);
  padding: 12px 16px;
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

/* --- COURSES SECTION --- */
.courses-section {
  background: var(--navy-850);
  color: var(--white);
}

.courses-section .section-heading h2,
.services-section h2,
.contact-section h2 {
  color: var(--white);
}

.courses-section .section-heading > p {
  color: var(--text-muted-light);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.course-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--border-light);
  padding: 28px 24px 22px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.course-card.featured {
  background: var(--navy-card-feat);
  border-color: rgba(216, 176, 74, 0.35);
}

.card-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-400);
  font-size: 20px;
  margin-bottom: 20px;
}

.card-number {
  position: absolute;
  right: 22px;
  top: 26px;
  color: #71839a;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.course-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--white);
  line-height: 1.35;
}

.course-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted-light);
  margin: 0 0 16px;
  flex-grow: 1;
}

.course-card a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 800;
  margin-top: auto;
  min-height: 44px;
}

.course-card a span {
  transition: transform 0.2s ease;
}

.course-card a:hover span {
  transform: translate(2px, -2px);
}

.wide-card {
  grid-column: span 3;
}

.wide-card p {
  max-width: 720px;
}

/* --- SERVICES SECTION --- */
.services-section {
  background: linear-gradient(115deg, #0b2a50 0%, #06172f 100%);
  color: var(--white);
}

.service-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.muted-light {
  color: var(--text-muted-light);
  line-height: 1.8;
  font-size: 15px;
  max-width: 400px;
  margin: 16px 0 32px;
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  align-items: start;
}

.service-item:first-child {
  padding-top: 0;
}

.service-item > span {
  color: var(--gold-400);
  font-size: 13px;
  font-weight: 800;
  padding-top: 2px;
}

.service-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--white);
}

.service-item p {
  margin: 0;
  color: var(--text-muted-light);
  font-size: 13px;
  line-height: 1.6;
}

.service-item > b {
  color: var(--gold-400);
  padding-top: 2px;
}

/* --- TEAM SECTION --- */
.team-section {
  background: var(--bg-light);
}

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

.person-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(10, 33, 67, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.person-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 33, 67, 0.08);
}

.person-card:active {
  transform: translateY(0);
}

.person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--gold-400);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  flex-shrink: 0;
}

.person-info small,
.contact-detail small {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold-700);
  font-weight: 800;
  display: block;
}

.person-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  margin: 2px 0;
  color: var(--navy-800);
}

.person-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.person-link-icon {
  margin-left: auto;
  color: var(--gold-600);
  font-size: 16px;
}

/* --- CONTACT SECTION & ENQUIRY FORM --- */
.contact-section {
  background: var(--navy-800);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.contact-copy > p {
  color: var(--text-muted-light);
  line-height: 1.8;
  font-size: 15px;
  max-width: 400px;
  margin: 14px 0 28px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-top: 26px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-400);
  font-size: 20px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.contact-detail address,
.contact-detail p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
  margin: 6px 0 0;
}

.contact-detail a {
  color: var(--text-light);
  display: inline-block;
  padding: 2px 0;
  min-height: 32px;
}

.contact-detail a:hover {
  color: var(--gold-400);
}

/* Enquiry Form Styling */
.enquiry-form {
  background: var(--white);
  color: var(--navy-800);
  padding: 36px;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.form-heading small {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold-700);
  font-weight: 800;
}

.form-heading h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  margin: 6px 0 8px;
}

.form-heading p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 22px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
}

.enquiry-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #31435b;
  margin-bottom: 6px;
}

.enquiry-form label .required {
  color: #d9383a;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #dfe4eb;
  border-radius: 4px;
  padding: 12px 14px;
  /* Crucial 16px on inputs prevents iOS mobile auto-zooming */
  font-size: 16px;
  color: #132947;
  background: #fbfcfd;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.enquiry-form textarea {
  min-height: 100px;
  resize: vertical;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(216, 176, 74, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
  font-size: 14px;
}

.form-foot {
  font-size: 11px;
  color: #8a95a5;
  line-height: 1.5;
  margin: 12px 0 0;
  text-align: center;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy-950);
  color: #c0cada;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
}

.footer-brand strong {
  color: var(--white);
  font-size: 14px;
}

.footer-brand small {
  color: #9eabc0;
}

.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #9eabc0;
  margin: 0;
}

.footer-tagline b {
  color: var(--gold-400);
}

.back-top {
  font-size: 12px;
  color: var(--gold-400);
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.back-top:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 calc(18px + var(--safe-bottom));
  font-size: 11px;
  color: #8290a5;
  gap: 12px;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
  position: fixed;
  right: calc(20px + var(--safe-right));
  bottom: calc(20px + var(--safe-bottom));
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 3px solid #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
  transform: scale(0.96);
}

.whatsapp-float svg {
  display: block;
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS (DEVICE-SPECIFIC STYLES)
   ========================================================================== */

/* --- TABLET LANDSCAPE & LAPTOPS (<= 1024px) --- */
@media (max-width: 1024px) {
  .hero-content {
    min-height: 520px;
  }
  
  .hero-plane {
    width: 44%;
    right: -2%;
  }
  
  .two-col,
  .service-layout,
  .contact-layout {
    gap: 48px;
  }
  
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wide-card {
    grid-column: span 2;
  }
}

/* --- TABLET PORTRAIT & MOBILE MENU BREAKPOINT (<= 920px) --- */
@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  /* Hamburger visible */
  .menu-toggle {
    display: inline-flex;
  }

  /* Backdrop Overlay */
  .nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 17, 38, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Slide-in Drawer */
  nav#mainNav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: var(--white);
    z-index: 999;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: calc(16px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav#mainNav.open {
    transform: translateX(0);
  }

  /* Drawer Header */
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .mobile-nav-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--navy-800);
    letter-spacing: 0.05em;
  }

  .mobile-nav-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--navy-800);
    padding: 6px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 4px;
  }

  /* Drawer Navigation Links */
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  nav#mainNav a:not(.nav-cta) {
    padding: 16px 8px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
  }

  nav#mainNav a:not(.nav-cta)::after {
    content: "→";
    font-size: 14px;
    color: var(--gold-600);
    opacity: 0.6;
    transition: transform 0.2s ease;
  }

  nav#mainNav a:not(.nav-cta):active::after {
    transform: translateX(4px);
  }

  .nav-cta {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px;
  }

  /* Drawer Footer */
  .mobile-nav-footer {
    display: block;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-nav-contact small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--gold-700);
    font-weight: 800;
    margin-bottom: 6px;
  }

  .mobile-phone-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--navy-800);
  }

  /* Trust Strip: 2x2 grid */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

  .trust-item {
    border-right: none;
    padding: 6px 0;
  }

  /* Layout conversions: 2-col to 1-col */
  .two-col,
  .service-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero plane scaling for tablet */
  .hero-plane {
    width: 50%;
    right: -10%;
    opacity: 0.35;
  }
}

/* --- PHABLET & LARGE MOBILE (<= 700px) --- */
@media (max-width: 700px) {
  .section {
    padding: 70px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading > p {
    margin-top: 12px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 36px 1fr 20px;
    gap: 12px;
    padding: 18px 0;
  }

  .enquiry-form {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* --- STANDARD MOBILE (<= 520px) --- */
@media (max-width: 520px) {
  .container {
    width: calc(100% - 32px);
  }

  .topline-inner {
    font-size: 10px;
  }

  .top-contact {
    display: none;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 7px;
  }

  .hero {
    min-height: 480px;
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .hero-content {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(20px, 5.6vw, 26px);
    margin: 14px 0;
  }

  .hero .eyebrow {
    font-size: clamp(22px, 6.6vw, 28px);
  }

  .hero-copy > p {
    font-size: 15px;
    line-height: 1.65;
  }

  /* Full width action buttons on small mobile */
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-plane {
    width: 220px;
    height: 220px;
    right: -40px;
    top: 5%;
    opacity: 0.15;
    pointer-events: none;
  }

  .flight-tag {
    display: none;
  }

  .hero-note {
    font-size: 9px;
    margin-top: 32px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-item {
    font-size: 13px;
  }

  /* About Visual Card Mobile Optimization */
  .about-visual {
    padding: 0;
  }

  .visual-frame {
    height: 260px;
    box-shadow: 10px 10px 0 #f2e8d1;
  }

  .visual-sun {
    width: 65px;
    height: 65px;
    right: 25px;
    top: 20px;
  }

  .visual-plane {
    font-size: 85px;
    top: 60px;
    left: 15%;
  }

  .visual-caption b {
    font-size: 32px;
  }

  .gold-stamp {
    position: static;
    margin-top: 14px;
    display: inline-block;
    box-shadow: none;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* --- EXTRA-SMALL MOBILE & FOLDABLES (<= 360px) --- */
@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }

  .brand strong {
    font-size: 12.5px;
  }

  .brand small {
    font-size: 6.5px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero .eyebrow {
    font-size: 20px;
  }

  .section h2 {
    font-size: 26px;
  }

  .enquiry-form {
    padding: 22px 14px;
  }

  .person-card {
    padding: 16px 12px;
  }
}

/* --- TOUCH DEVICE OPTIMIZATIONS --- */
@media (hover: none) and (pointer: coarse) {
  /* Provide clear touch-down state instead of hover */
  .btn:active,
  .nav-cta:active {
    transform: scale(0.98);
  }
  
  .person-card:active {
    background: #f1f4f8;
  }
  
  .course-card:active {
    border-color: var(--gold-500);
  }
}

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

/* ==========================================================================
   AERO MENTOR 66 — V2: GALLERY HERO, IMAGE CARDS, FAQ & DETAIL PAGES
   ========================================================================== */

/* --- TOPLINE FLAG --- */
.topline-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #dce6f5;
}

.flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* --- RANDOM HERO GALLERY --- */
.hero-home {
  min-height: clamp(620px, 80vh, 800px);
  background: var(--navy-950);
  align-items: center;
}

.hero-home::before {
  content: none;
}

.hero-gallery,
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gallery {
  overflow: hidden;
  z-index: 0;
  transition: transform 1.1s ease;
}

.hero-home:hover .hero-gallery {
  transform: scale(1.035);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.3s ease, transform 9s ease-out;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.1);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 17, 38, 0.92) 0%, rgba(4, 17, 38, 0.78) 38%, rgba(4, 17, 38, 0.34) 72%, rgba(4, 17, 38, 0.5) 100%),
    linear-gradient(0deg, rgba(4, 17, 38, 0.72) 0%, rgba(4, 17, 38, 0) 48%);
}

.hero-home .hero-content {
  position: relative;
  z-index: 2;
  padding-top: 86px;
  padding-bottom: 96px;
}

.hero-home .hero-copy {
  max-width: 760px;
}

.hero-side {
  position: absolute;
  right: 0;
  bottom: 74px;
  z-index: 3;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-800);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.hero-badge > span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--gold-600);
}

.hero-badge small {
  font-size: 9px;
  letter-spacing: 0.13em;
  font-weight: 800;
  line-height: 1.4;
}

.hero-gallery-nav {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.hero-dot {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot[aria-current="true"] {
  width: 40px;
  background: var(--gold-400);
}

/* --- ABOUT PHOTO --- */
.about-photo {
  height: 380px;
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 17, 38, 0.8) 0%, rgba(4, 17, 38, 0) 58%);
}

.about-photo .visual-caption {
  z-index: 2;
}

/* --- IMAGE-BACKED COURSE CARDS --- */
.course-card.has-bg {
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  background: var(--navy-900);
  border-color: rgba(255, 255, 255, 0.12);
}

.course-card.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 17, 38, 0.18) 0%, rgba(4, 17, 38, 0.52) 38%, rgba(4, 17, 38, 0.96) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}

.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  z-index: 0;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.course-card.has-bg:hover .card-bg {
  transform: scale(1.06);
  opacity: 0.9;
}

.course-card.has-bg.featured {
  border-color: rgba(216, 176, 74, 0.55);
}

.card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 340px;
  padding: 26px 24px 22px;
}

.course-card.has-bg .card-number {
  z-index: 3;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--gold-300);
  border: 1px solid rgba(232, 189, 85, 0.55);
  background: rgba(4, 17, 38, 0.35);
  border-radius: 2px;
  padding: 4px 8px;
  margin: 34px 0 12px;
}

.course-card.has-bg h3 {
  font-size: 20px;
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.course-card.has-bg p {
  color: #d7e2f0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.course-card.has-bg a {
  color: var(--gold-300);
}

/* --- TRAINING PATHWAYS --- */
.training-section {
  background: #f4f6f9;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pathway-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 30px 26px;
  box-shadow: 0 6px 18px rgba(10, 33, 67, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  min-height: 240px;
}

.pathway-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.pathway-card:hover,
.pathway-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(216, 176, 74, 0.7);
  box-shadow: 0 14px 34px rgba(10, 33, 67, 0.1);
}

.pathway-card:hover::before,
.pathway-card:focus-visible::before {
  transform: scaleX(1);
}

.pathway-num {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold-700);
  font-weight: 800;
}

.pathway-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 21px;
  color: var(--navy-800);
  margin: 12px 0 8px;
}

.pathway-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.pathway-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-700);
}

.pathway-link span {
  transition: transform 0.2s ease;
}

.pathway-card:hover .pathway-link span {
  transform: translateX(4px);
}

/* --- FAQ --- */
.faq-section {
  background: var(--white);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 60px;
  align-items: start;
}

.faq-intro p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 380px;
  margin: 16px 0 28px;
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-750);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  background: var(--white);
  border-color: rgba(216, 176, 74, 0.75);
  box-shadow: 0 10px 28px rgba(10, 33, 67, 0.07);
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  color: var(--navy-800);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-600);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.faq-answer p {
  margin: 0;
}

.faq-answer ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.faq-answer li {
  margin: 4px 0;
}

/* --- SUBPAGE HERO --- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding: 84px 0 66px;
  color: var(--white);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(100deg, rgba(4, 17, 38, 0.97) 0%, rgba(4, 17, 38, 0.88) 46%, rgba(4, 17, 38, 0.38) 100%),
    var(--page-img, linear-gradient(120deg, var(--navy-800), var(--navy-700)));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: var(--gold-500);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #aebdd0;
  margin-bottom: 26px;
}

.breadcrumb a {
  color: #d2deed;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--gold-400);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-size: clamp(32px, 4.6vw, 56px);
  margin: 16px 0 0;
  max-width: 820px;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--gold-400);
  white-space: nowrap;
}

.page-hero > .container > p {
  max-width: 620px;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.75;
  margin: 18px 0 0;
}

.page-hero .hero-actions {
  margin-top: 30px;
}

.page-hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
}

/* --- DETAIL PAGE CONTENT --- */
.detail-section {
  background: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

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

.detail-layout.detail-solo {
  display: block;
  max-width: 860px;
}

.detail-layout.detail-solo .prose {
  max-width: none;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold-500);
  border-radius: 4px;
  padding: 24px;
}

.detail-aside h2 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-800);
  margin: 0 0 14px;
}

.fact-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.fact-list li:last-child {
  border-bottom: none;
}

.fact-list b {
  color: var(--navy-800);
  text-align: right;
}

.detail-aside .btn {
  width: 100%;
  font-size: 12px;
}

.prose {
  width: 100%;
  min-width: 0;
  max-width: 760px;
}

.prose h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-size: clamp(24px, 2.8vw, 34px);
  color: var(--navy-800);
  margin: 0 0 14px;
}

.prose h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy-800);
  margin: 30px 0 10px;
}

.prose p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.prose .lead {
  font-size: 18px;
  color: #213550;
  line-height: 1.7;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.prose li {
  margin: 6px 0;
}

.prose section + section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 8px;
}

.category-card {
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 20px;
}

.category-card b {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.category-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  margin: 18px 0 10px;
  -webkit-overflow-scrolling: touch;
}

.module-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.module-table th {
  background: var(--navy-800);
  color: var(--white);
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 14px;
  white-space: nowrap;
}

.module-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  vertical-align: top;
}

.module-table tbody tr:nth-child(even) {
  background: var(--bg-light);
}

.module-table tbody tr:last-child td {
  border-bottom: none;
}

.module-table td:first-child {
  color: var(--navy-800);
  font-weight: 800;
  white-space: nowrap;
}

.module-table td:nth-child(3),
.module-table td:nth-child(5) {
  white-space: nowrap;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 8px;
}

.split-card {
  background: var(--navy-850);
  color: var(--white);
  border-radius: 4px;
  padding: 22px 20px;
}

.split-card b {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 8px;
}

.split-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.split-card p {
  color: var(--text-muted-light);
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-600);
  font-weight: 800;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 8px;
}

.type-card {
  min-width: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 22px;
  background: var(--white);
}

.type-card span {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--gold-700);
  border: 1px solid rgba(216, 176, 74, 0.6);
  padding: 3px 7px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.type-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.type-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
}

.note-box {
  background: #fdf8ec;
  border: 1px solid #f0dfb4;
  border-left: 4px solid var(--gold-500);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b5a33;
}

.cta-band {
  background: linear-gradient(110deg, var(--navy-850) 0%, var(--navy-750) 100%);
  color: var(--white);
  padding: 54px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-inner h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.cta-inner h2 em {
  font-style: normal;
  color: var(--gold-400);
}

.cta-inner p {
  margin: 0;
  color: var(--text-muted-light);
  font-size: 14px;
}

/* --- FOOTER LINKS --- */
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
}

.footer-links a {
  color: #b8c4d4;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-motto {
  color: var(--gold-300);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-bottom b {
  color: var(--gold-400);
}

/* --- V2 RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-home {
    min-height: 590px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: 36px;
  }

  .faq-layout {
    gap: 40px;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    flex-wrap: wrap;
  }
}

@media (max-width: 920px) {
  .hero-home {
    min-height: 560px;
  }

  .hero-home .hero-content {
    padding-top: 62px;
    padding-bottom: 82px;
  }

  .hero-side {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 17, 38, 0.96) 0%, rgba(4, 17, 38, 0.82) 60%, rgba(4, 17, 38, 0.55) 100%),
      linear-gradient(0deg, rgba(4, 17, 38, 0.8) 0%, rgba(4, 17, 38, 0) 52%);
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .pathway-card {
    min-height: 0;
  }

  .faq-layout,
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .detail-aside {
    position: static;
    order: -1;
    width: 100%;
  }

  .prose {
    max-width: none;
  }

  .page-hero {
    min-height: 400px;
    padding: 64px 0 54px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .about-photo {
    height: 290px;
  }

  .course-card.has-bg,
  .card-body {
    min-height: 300px;
  }

  .category-grid,
  .split-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .topline-inner {
    justify-content: flex-start;
  }

  .topline-flag {
    font-size: 10px;
  }

  .hero-home {
    min-height: 600px;
  }

  .hero-home .hero-content {
    padding-top: 46px;
    padding-bottom: 74px;
  }

  .hero-gallery-nav {
    bottom: 16px;
  }

  .hero-dot {
    width: 20px;
  }

  .hero-dot[aria-current="true"] {
    width: 30px;
  }

  .card-tag {
    margin-top: 30px;
  }

  .faq-item summary {
    padding: 16px 46px 16px 16px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .detail-aside {
    padding: 20px;
  }

  .type-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    gap: 28px;
  }

  .page-hero {
    min-height: 0;
    padding: 48px 0 44px;
  }

  .breadcrumb {
    margin-bottom: 18px;
  }

  .page-hero .hero-actions {
    margin-top: 22px;
  }
}

/* --- HERO MAIN TITLE + FOOTER FLAG (V3) --- */
.MainT {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 14px;
  max-width: 780px;
  text-wrap: balance;
}

.MainT span {
  display: none;
}

.footer-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-flag .flag {
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 2px;
}

@media (max-width: 700px) {
  .MainT {
    font-size: clamp(24px, 7vw, 34px);
  }
}

@media (max-width: 360px) {
  .MainT {
    font-size: 22px;
  }
}

/* ==========================================================================
   V4 — TRANSPARENT HEADER OVER HERO + LETTER FLIGHT
   ========================================================================== */

/* --- Header floats on top of the hero image --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 17, 38, 0.62) 0%, rgba(4, 17, 38, 0.22) 62%, rgba(4, 17, 38, 0) 100%);
  transition: opacity 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(8, 27, 53, 0.08);
  box-shadow: 0 6px 26px rgba(8, 27, 53, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header.scrolled::after {
  opacity: 0;
}

.site-header .brand strong {
  color: var(--white);
}

.site-header .brand small {
  color: rgba(255, 255, 255, 0.72);
}

.site-header .hamburger-inner,
.site-header .hamburger-inner::before,
.site-header .hamburger-inner::after {
  background-color: var(--white);
}

.site-header .nav-cta-desktop {
  background: var(--gold-500);
  color: var(--navy-900) !important;
}

.site-header .nav-cta-desktop span {
  color: var(--navy-900);
}

.site-header .nav-cta-desktop:hover {
  background: var(--gold-400);
}

@media (min-width: 921px) {
  .site-header nav#mainNav a:not(.nav-cta) {
    color: rgba(255, 255, 255, 0.92);
  }

  .site-header nav#mainNav a:not(.nav-cta):hover,
  .site-header nav#mainNav a:not(.nav-cta):focus-visible {
    color: var(--gold-300);
  }
}

.site-header.scrolled .brand strong {
  color: var(--navy-800);
}

.site-header.scrolled .brand small {
  color: #68758a;
}

.site-header.scrolled .hamburger-inner,
.site-header.scrolled .hamburger-inner::before,
.site-header.scrolled .hamburger-inner::after {
  background-color: var(--navy-800);
}

.site-header.scrolled .nav-cta-desktop {
  background: var(--navy-800);
  color: var(--white) !important;
}

.site-header.scrolled .nav-cta-desktop span {
  color: var(--gold-400);
}

.site-header.scrolled .nav-cta-desktop:hover {
  background: var(--navy-750);
}

@media (min-width: 921px) {
  .site-header.scrolled nav#mainNav a:not(.nav-cta) {
    color: var(--text-main);
  }

  .site-header.scrolled nav#mainNav a:not(.nav-cta):hover,
  .site-header.scrolled nav#mainNav a:not(.nav-cta):focus-visible {
    color: var(--gold-600);
  }
}

/* --- Keep hero copy clear of the floating header --- */
.hero-home .hero-content {
  padding-top: calc(var(--header-height) + 54px);
}

.page-hero {
  padding-top: calc(var(--header-height) + 84px);
}

@media (max-width: 1024px) {
  .hero-home .hero-content {
    padding-top: calc(var(--header-height) + 44px);
  }
}

@media (max-width: 920px) {
  .hero-home .hero-content {
    padding-top: calc(var(--header-height) + 34px);
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 54px);
  }
}

@media (max-width: 520px) {
  .hero-home .hero-content {
    padding-top: calc(var(--header-height) + 26px);
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 34px);
  }
}

/* --- Hero copy flies in from the left corner, left to right --- */
.MainT {
  color: var(--white);
  text-shadow:
    0 1px 0 #f2d17c,
    0 3px 0 #c79a3a,
    0 5px 0 #0e315c,
    0 7px 0 #0c2a4f,
    0 9px 0 #0a2343,
    0 11px 0 #081c36,
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 30px 70px rgba(0, 0, 0, 0.4);
}

.MainT .fly-word {
  display: inline-block;
  white-space: nowrap;
}

.MainT .fly-letter {
  display: inline-block;
  will-change: transform, opacity, filter;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-copy:hover .fly-letter {
    animation: letterFly 0.85s cubic-bezier(0.16, 0.84, 0.28, 1) both;
    animation-delay: calc(var(--i, 0) * 13ms);
  }

  .hero-copy:hover h1 {
    animation: copyFly 0.7s cubic-bezier(0.16, 0.84, 0.28, 1) both;
    animation-delay: 320ms;
  }

  .hero-copy:hover > p {
    animation: copyFly 0.7s cubic-bezier(0.16, 0.84, 0.28, 1) both;
    animation-delay: 430ms;
  }
}

@keyframes letterFly {
  from {
    opacity: 0;
    transform: translate3d(-60vw, 24px, 0) rotate(-7deg) skewX(-12deg) scale(0.94);
    filter: blur(7px);
  }

  55% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) skewX(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes copyFly {
  from {
    opacity: 0;
    transform: translate3d(-90px, 14px, 0);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (max-width: 700px) {
  .MainT {
    text-shadow:
      0 1px 0 #f2d17c,
      0 2px 0 #c79a3a,
      0 4px 0 #0e315c,
      0 6px 0 #0a2343,
      0 8px 0 #081c36,
      0 12px 26px rgba(0, 0, 0, 0.55);
  }
}

/* ==========================================================================
   V5 — FOOTER CONTACT + SOCIAL
   ========================================================================== */

.footer-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d7e1ee;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  transition: color 0.2s ease;
}

.footer-mail svg {
  width: 18px;
  height: 18px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.footer-mail:hover,
.footer-mail:focus-visible {
  color: var(--gold-300);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e8eef7;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link svg {
  width: 17px;
  height: 17px;
  display: block;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
  transform: translateY(-2px);
}

@media (max-width: 520px) {
  .footer-mail {
    font-size: 12px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }
}
