@import url('https://fonts.googleapis.com/css2?family=Mermaid+Swash+Caps:wght@400&display=swap');

:root {
  --navy: #15224A;
  --navy-soft: #5B6280;
  --accent: #FB5B3B;
  --accent-dark: #E2492E;
  --bg-soft: #F2F3F5;
  --bg-soft-2: #E9EAED;
  --white: #FFFFFF;
  --border: #E6E7EC;
  --font-head: 'Mermaid Swash Caps', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
body { position: relative; }
img, canvas, svg, video, iframe { max-width: 100%; }
section, header, footer { max-width: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(21,34,74,.07);
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #FB5B3B, #E2492E);
  color: var(--white);
  box-shadow: 0 12px 26px -10px rgba(251,91,59,.6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff6a4a, #d63d24);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(251,91,59,.65), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary svg {
  transition: transform .2s ease;
}
.btn-primary:hover svg {
  transform: translate(3px, -3px);
}
.btn-lg {
  padding: 1rem 1.9rem;
  font-size: .9rem;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: #0e1733;
}

/* ===== Top bar ===== */
.topbar {
  background: #F8FAFC;
  border-bottom: 1px solid rgba(21,34,74,.06);
  font-size: .78rem;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .45rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  color: var(--navy);
  font-weight: 500;
}
.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.topbar-contact svg {
  flex-shrink: 0;
  color: var(--navy);
  width: 15px;
  height: 15px;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--navy-soft);
  font-weight: 600;
  letter-spacing: .06em;
  font-size: .72rem;
}
.topbar-social .icons {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.topbar-social .icons a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(21,34,74,.07);
  color: #15224A;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0;
}
.topbar-social .icons a:hover {
  background: #FB5B3B;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 16px -6px rgba(251,91,59,.5);
}
.topbar-social .icons a svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===== Navbar ===== */
.navbar {
  background: transparent;
  position: relative;
  z-index: 30;
  transition: box-shadow .3s ease, background .3s ease;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .8rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  white-space: nowrap;
}
.logo-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.logo .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  margin: 0;
  flex: 1;
  justify-content: center;
  font-weight: 600;
  font-size: .92rem;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--navy);
  padding: .5rem 0;
  transition: color .25s ease, transform .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ff8a5b);
  transition: width .28s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active,
.nav-links .nav-dropdown:hover > .pages-trigger,
.nav-links .nav-dropdown:focus-within > .pages-trigger {
  color: var(--accent);
  transform: translateY(-1px);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after,
.nav-links .nav-dropdown:hover > .pages-trigger::after,
.nav-links .nav-dropdown:focus-within > .pages-trigger::after {
  width: 100%;
}
.nav-links svg {
  opacity: .55;
  transition: transform .25s ease;
}
.nav-links a:hover svg,
.nav-links .nav-dropdown:hover > .pages-trigger svg,
.nav-links .nav-dropdown:focus-within > .pages-trigger svg {
  transform: rotate(180deg);
  opacity: .9;
}
.nav-links a.active svg {
  background: rgba(255,255,255,.18);
  opacity: .9;
}
.nav-links .nav-dropdown {
  position: relative;
  padding-bottom: .8rem;
  margin-bottom: -.8rem;
}
.nav-links .pages-trigger {
  cursor: pointer;
}
.nav-links .dropdown-menu {
  position: absolute;
  top: calc(100% + .6rem);
  left: 50%;
  min-width: 230px;
  padding: .55rem;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(21,34,74,.09);
  border-top: 3px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 24px 50px -12px rgba(21,34,74,.22);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px) scale(.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1), visibility .25s ease;
  z-index: 20;
}
@media (min-width: 993px) {
  .nav-links .nav-dropdown:hover .dropdown-menu,
  .nav-links .nav-dropdown:focus-within .dropdown-menu,
  .nav-links .nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
}
.nav-links .dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .78rem .95rem;
  white-space: nowrap;
  border-radius: 12px;
  border-left: 3px solid transparent;
  font-size: .85rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.nav-links .dropdown-menu a::after,
.nav-links .dropdown-menu a::before {
  display: none;
}
.nav-links .dropdown-menu a:hover,
.nav-links .dropdown-menu a:focus-visible {
  background: linear-gradient(90deg, rgba(251,91,59,.12), rgba(251,91,59,.04));
  border-left-color: var(--accent);
  color: var(--navy);
  transform: translateX(4px);
}
.nav-links .dropdown-menu a.active {
  color: var(--accent-dark);
  background: rgba(251,91,59,.1);
  border-left-color: var(--accent);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* ===== Menu Toggle ===== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(21,34,74,.06);
  border: 1px solid rgba(21,34,74,.08);
  color: var(--navy);
  position: relative;
  z-index: 30;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.menu-toggle:hover {
  background: rgba(251,91,59,.12);
  transform: translateY(-1px);
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ===== Menu Overlay ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 34, 74, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1), visibility .35s cubic-bezier(.4, 0, .2, 1);
  z-index: 20;
  pointer-events: none;
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== Shared elements ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 1.4rem;
}
.tire-mark {
  display: flex;
  gap: 3px;
}
.tire-mark span {
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 1px;
  transform: skewX(-12deg);
}

.underline-accent {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ===== Page Banner ===== */
.page-banner {
  position: relative;
  background: black;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('uploads/Page header 2.jpg') center/cover no-repeat;
  opacity: 50%;
  pointer-events: none;
}
.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}
.page-banner h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
}
.page-breadcrumb a {
  color: rgba(255, 255, 255, .75);
  transition: color .2s ease;
}
.page-breadcrumb a:hover {
  color: var(--white);
}
.page-breadcrumb svg {
  opacity: .7;
}
.page-breadcrumb span {
  color: var(--white);
}

/* ===== Intro split ===== */
.intro-split {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.intro-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  /* FIX: was "center" — with a tall photo and a short text block this left a large
     dead gap under the text before the next section. Aligning to the top keeps both
     columns anchored together and removes the gap. */
  align-items: center;
}
.intro-photo-wrap {
  position: relative;
}
.intro-dots {
  position: absolute;
  left: -26px;
  top: -26px;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(circle, #CBCDD4 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  z-index: 0;
}
/* Layered accent frame behind the photo — reads as a deliberate, designed
   composition instead of a plain drop-in image. */
.intro-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 2px solid var(--accent);
  border-radius: 14px;
  z-index: 0;
}
.intro-photo-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  /* FIX: cap the photo's height with a fixed ratio + object-fit so it can't grow
     taller than the text column and create empty space beneath the text. */
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 30px 60px -24px rgba(21, 34, 74, .35);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  transform-origin: center center;
}
.intro-photo-wrap:hover img {
  transform: scale(1.03);
}

/* Optional floating stat card — see HTML snippet in chat.
   Drop a <div class="intro-floating-stat"> inside .intro-photo-wrap. */
.intro-floating-stat {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  z-index: 2;
  background: var(--white);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  min-width: 168px;
  box-shadow: 0 24px 48px -20px rgba(21, 34, 74, .3);
}
.intro-floating-stat strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1.1;
}
.intro-floating-stat span {
  display: block;
  margin-top: .2rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy-soft);
}

.intro-content {
  position: relative;
}
.intro-content-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: .6rem;
}
.intro-content h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--navy);
}
.intro-spin-badge {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.6rem 0 1.5rem;
}
.intro-feature-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.intro-feature p {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--navy-soft);
}
.intro-feature p strong {
  color: var(--navy);
  font-weight: 700;
}

.intro-content > p {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--navy-soft);
}

/* ===== Stats bar ===== */
.stats-bar {
  position: relative;
  background: linear-gradient(100deg, rgba(13, 19, 42, .92) 0%, rgba(13, 19, 42, .85) 100%),
    linear-gradient(160deg, #3a4565, #1c2440);
  overflow: hidden;
}
.stats-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item-icon {
  margin-bottom: 1.1rem;
  display: flex;
  justify-content: center;
}
.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label {
  font-size: .88rem;
  color: rgba(255, 255, 255, .75);
  font-weight: 500;
}

/* ===== Testimonials ===== */
.testimonials-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.testimonials-ghost {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: .045;
  z-index: 0;
}
.testimonials-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}
.testimonials-header .eyebrow {
  justify-content: center;
  margin: 0 auto 1.1rem;
}
.testimonials-header h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.32;
  color: var(--navy);
}
.testimonials-header h2 .underline-accent {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.testimonials-carousel {
  padding-bottom: 3rem;
}
.testimonials-carousel .swiper-slide {
  display: flex;
}
.testimonials-carousel .swiper-wrapper {
  align-items: stretch;
}
.t-card {
  background: var(--bg-soft);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  width: 100%;
}
.t-card-photo {
  position: relative;
  min-height: 230px;
  overflow: hidden;
}
.t-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  transform-origin: center center;
}
.t-card-photo:hover img {
  transform: scale(1.06);
}
.t-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #dfe1e6, #c9cbd2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  color: #8b8e98;
  text-align: center;
  padding: 1rem;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.4;
}
.t-play-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .4);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.t-play-btn:hover {
  transform: scale(1.08);
}
.t-card-body {
  padding: 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.t-stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
  margin-bottom: .9rem;
}
.t-quote {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--navy-soft);
  margin-bottom: 1.3rem;
  flex: 1;
}
.t-divider {
  border-top: 1px dashed var(--border);
  margin-bottom: 1.1rem;
}
.t-person {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.t-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-soft-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9298a8;
  flex-shrink: 0;
  overflow: hidden;
}
.t-person strong {
  display: block;
  font-size: .86rem;
  color: var(--navy);
}
.t-person span {
  display: block;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
}

/* Swiper Pagination Customization */
.testimonials-carousel .swiper-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}
.testimonials-carousel .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-soft-2) !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}
.testimonials-carousel .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 5px;
  background: var(--accent) !important;
}

/* ===== Instructors ===== */
.instructors-section {
  background: var(--navy);
  color: var(--white);
}
.instructors-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.instructors-header {
  text-align: center;
  margin-bottom: 3.2rem;
}
.instructors-header .eyebrow {
  justify-content: center;
  color: #AEB4CC;
  margin: 0 auto 1.2rem;
}
.instructors-header h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.36;
  color: var(--white);
  max-width: 34ch;
  margin: 0 auto;
}
.instructors-header h2 .underline-accent {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.instructor-card {
  text-align: center;
}
.instructor-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  /* FIX: without a fixed ratio, three photos with different natural aspect ratios
     produced cards of noticeably different heights (see original screenshot).
     Locking every photo to the same ratio keeps the row aligned. */
  aspect-ratio: 4 / 5;
}
.instructor-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.instructor-card:hover .instructor-image-wrap img {
  transform: scale(1.05);
}
.instructor-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  /* FIX: name/role were only visible on hover, so two of the three cards showed no
     caption at all in the default state (and this never works on touch devices).
     The gradient/name are now visible by default, and just intensify on hover. */
  background: linear-gradient(180deg, rgba(21,34,74,0) 45%, rgba(10,15,34,.92) 100%);
  opacity: 1;
  transition: background .25s ease;
}
.instructor-card:hover .instructor-overlay {
  background: linear-gradient(180deg, rgba(21,34,74,.15) 0%, rgba(10,15,34,.95) 100%);
}
.instructor-overlay h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #fff;
}
.instructor-overlay span {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}

/* Social icons — hidden by default, slide in from the right on hover/focus.
   Sits above .instructor-overlay (higher z-index) in the top-right corner. */
.instructor-social {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.instructor-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -8px rgba(10, 15, 34, .45);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .28s ease, transform .28s ease, background .2s ease, color .2s ease;
}
.instructor-social a img {
  width: 12px;
  height: 12px;
  display: block;
  object-fit: contain;
  transition: filter .2s ease;
}
.instructor-card:hover .instructor-social a,
.instructor-card:focus-within .instructor-social a {
  opacity: 1;
  transform: translateX(0);
}
.instructor-social a:nth-child(1) { transition-delay: .02s; }
.instructor-social a:nth-child(2) { transition-delay: .08s; }
.instructor-social a:nth-child(3) { transition-delay: .14s; }
.instructor-social a:hover {
  background: var(--accent);
  color: var(--white);
}
.instructor-social a:hover img {
  filter: brightness(0) invert(1);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-soft);
}

.footer-banner {
  position: relative;
}
.footer-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}
.footer-people {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.footer-people-placeholder {
  width: 100%;
  max-width: none;
  height: 380px;
  background: none;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  position: relative;
}
.footer-people-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer-talk-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  width: 100%;
}
.footer-talk-row h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--navy);
  margin: 0;
  max-width: 28%;
}
.footer-talk-row h2 .underline-accent {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.footer-talk-row .btn-white {
  padding: .95rem 1.7rem;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 18px 30px -20px rgba(21,34,74,.25);
  border: none;
  min-width: 220px;
  text-align: center;
}
.footer-talk-row .btn-white:hover {
  background: var(--bg-soft-2);
}
.footer-stripe {
  height: 14px;
  background-image: repeating-linear-gradient(100deg, var(--accent) 0px, var(--accent) 2px, transparent 2px, transparent 6px);
  opacity: .65;
}

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.4rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 2.5rem;
}

.newsletter-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.9rem;
  box-shadow: 0 18px 36px -22px rgba(21, 34, 74, .18);
}
.newsletter-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: .5rem;
}
.newsletter-card > p {
  font-size: .85rem;
  color: var(--navy-soft);
  margin-bottom: 1.4rem;
}
.newsletter-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .55rem;
}
.newsletter-input-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .7rem .9rem;
  margin-bottom: 1.1rem;
}
.newsletter-input-wrap svg {
  color: var(--navy-soft);
  flex-shrink: 0;
}
.newsletter-input-wrap input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--navy);
  width: 100%;
}
.newsletter-input-wrap input::placeholder {
  color: #A4A8B8;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1.3rem;
}
.footer-col h4 .underline-accent {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem 1.5rem;
}
.footer-links-grid a {
  font-size: .86rem;
  color: var(--navy-soft);
  transition: color .2s ease;
}
.footer-links-grid a:hover {
  color: var(--accent);
}

.footer-office address {
  font-style: normal;
  font-size: .86rem;
  color: var(--navy-soft);
  line-height: 1.9;
  margin-bottom: 1.3rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}
.footer-logo img {
  width: 24px;
  height: 24px;
}
.footer-copyright {
  font-size: .82rem;
  color: var(--navy-soft);
  text-align: center;
}
.footer-social {
  display: flex;
  gap: .7rem;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.footer-social a:hover {
  background: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .navbar-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }
  .logo {
    flex: 1;
  }
  
  .nav-links {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 70px 1.5rem 2rem;
    margin: 0;
    max-width: none;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(21,34,74,.15);
    border-top: none;
    z-index: 25;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), visibility .45s ease;
    visibility: hidden;
    order: 3;
    flex: 1 1 100%;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    width: 100%;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-links .nav-dropdown {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .nav-links .dropdown-menu {
    position: static;
    display: none;
    flex-direction: column;
    gap: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: .5rem 0;
    margin: 0;
    background: var(--white);
    z-index: auto;
    pointer-events: auto;
  }
  .nav-links .dropdown-menu li {
    width: 100%;
    text-align: center;
  }
  .nav-links .dropdown-menu a {
    display: block !important;
    width: 100%;
    color: var(--navy) !important;
    padding: .7rem 0 !important;
    border-radius: 0;
    justify-content: center;
    opacity: 1 !important;
    font-weight: 600;
    white-space: normal;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .dropdown-menu li:last-child a {
    border-bottom: none;
  }
  .nav-links .dropdown-menu[hidden] {
    display: none !important;
  }
  .nav-links .nav-dropdown:not(.open) .dropdown-menu {
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
  }
  .nav-links .nav-dropdown.open .dropdown-menu {
    display: flex !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .nav-links .nav-dropdown:not(.open) > .pages-trigger svg {
    transform: none !important;
  }
  .nav-links .nav-dropdown.open > .pages-trigger svg {
    transform: rotate(180deg);
  }
  
  .menu-toggle {
    display: flex;
  }
  .navbar-cta .btn-primary {
    display: inline-flex;
  }
  
  .topbar-contact {
    gap: 1rem;
  }
  .page-banner h1 {
    font-size: 2.2rem;
  }
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .intro-photo-wrap img {
    aspect-ratio: 16 / 9;
  }
  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-carousel {
    padding-bottom: 2rem;
  }
  .t-card {
    grid-template-columns: 1fr;
  }
  .t-card-photo {
    min-height: 200px;
  }
  .instructors-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* No hover on touch devices — keep the social icons visible rather than
     hidden behind an interaction that can't happen. */
  .instructor-social a {
    opacity: 1;
    transform: translateX(0);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .newsletter-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    padding: .6rem 1.2rem;
  }
  .topbar-contact a span {
    display: none;
  }
  .topbar-social > span {
    display: none;
  }
  .navbar-inner {
    padding: 1rem 1.2rem;
  }
  .logo {
    font-size: 1.3rem;
  }
  .page-banner-inner {
    padding: 3.5rem 1.2rem;
  }
  .page-banner h1 {
    font-size: 1.8rem;
  }
  .intro-inner {
    padding: 3.5rem 1.2rem;
  }
  .intro-content-top {
    flex-direction: column;
  }
  .intro-content h2 {
    font-size: 1.8rem;
  }
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    padding: 3rem 1.2rem;
    gap: 2rem 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .testimonials-inner {
    padding: 3.5rem 1.2rem;
  }
  .testimonials-header h2 {
    font-size: 1.7rem;
  }
  .instructors-inner {
    padding: 3.5rem 1.2rem;
  }
  .instructors-header h2 {
    font-size: 1.7rem;
  }
  .instructors-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
  .footer-banner-inner {
    padding-top: 2.5rem;
  }
  .footer-people-placeholder {
    height: 260px;
  }
  .footer-talk-row {
    bottom: 1.2rem;
    padding: 0 1.2rem;
  }
  .footer-talk-row h2 {
    font-size: 1.25rem;
    max-width: 48%;
  }
  .footer-talk-row .btn-white {
    min-width: 0;
    padding: .75rem 1rem;
    font-size: .75rem;
  }
  .footer-main {
    grid-template-columns: 1fr;
    padding: 2.6rem 1.2rem;
  }
  .newsletter-card {
    grid-column: auto;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.6rem 1.2rem;
  }
}