/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.logo {
  position: relative;
  display: block;
  flex: none;
  width: 112px;
  height: 64px;
  overflow: hidden;
}

.logo img {
  position: absolute;
  left: -39.29%;
  top: -3.33%;
  width: 178.57%;
  height: 111.11%;
  max-width: none;
}

.nav__links {
  display: flex;
  gap: 40px;
  font-size: var(--type-body-sm);
  line-height: 1.7;
  white-space: nowrap;
}

.nav__links a {
  color: var(--text-body);
  transition: color 0.15s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text-link);
}

.nav__links .nav__menu-cta {
  display: none;
}

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-subtle);
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1199px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--page-margin) 16px;
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-page);
    box-shadow: var(--elevation-md);
    font-size: var(--type-body-md);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a:not(.btn) {
    display: block;
    padding-block: 12px;
  }
}

@media (max-width: 767px) {
  .nav__inner {
    padding-block: 12px;
  }

  .logo {
    width: 84px;
    height: 48px;
  }

  .nav__actions > .btn {
    display: none;
  }

  .nav__links .nav__menu-cta {
    display: block;
    padding-top: 12px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding-top: 80px;
  overflow: hidden;
  background: var(--bg-page);
}

.hero .pattern {
  top: -30px;
}

.hero__headline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-heading);
  font-size: var(--type-display);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.hero__line {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero__accent {
  color: var(--text-accent);
}

.hero__pill {
  flex: none;
  width: 168px;
  height: 72px;
  border-radius: var(--radius-pill);
  object-fit: cover;
}

.hero__wave {
  flex: none;
  width: 72px;
  height: 72px;
}

.hero__text {
  position: relative;
  width: min(720px, 100% - 2 * var(--page-margin));
  color: var(--text-secondary);
  font-size: var(--type-body-lg);
  line-height: 1.75;
  text-align: center;
}

.hero__ctas {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hero__strip {
  position: relative;
  width: 100%;
  height: 460px;
  direction: ltr;
}

.hero__track {
  position: absolute;
  top: 0;
  left: calc(50% - 794px);
  display: flex;
  gap: 20px;
}

.hero__photo {
  position: relative;
  flex: none;
  width: 560px;
  height: 460px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0a2a4d;
}

.hero__photo--1 {
  width: 460px;
}

.hero__photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider dots: only shown where the strip is a slider (tablet / mobile). */
.hero__dots {
  display: none;
  position: relative;
  justify-content: center;
  gap: 8px;
  margin-top: -16px;
  padding-bottom: 8px;
  direction: ltr;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border-default);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero__dot[aria-current="true"] {
  width: 24px;
  background: var(--text-link);
}

@media (max-width: 1199px) {
  .hero__dots {
    display: flex;
  }
}

@media (max-width: 767px) {
  .hero__dots {
    margin-top: -8px;
  }
}

@media (min-width: 1200px) {
  /* Desktop: the three videos sit inside the page margins, lined up with every section below. */
  .hero__strip {
    width: min(var(--container), 100% - 2 * var(--page-margin));
  }

  .hero__track {
    position: static;
    width: 100%;
  }

  .hero__photo {
    flex: 560 1 0;
    width: auto;
  }

  .hero__photo--1 {
    flex-grow: 460;
  }
}

@media (max-width: 1199px) {
  .hero {
    padding-top: 64px;
  }

  .hero__pill {
    width: 120px;
    height: 54px;
  }

  .hero__wave {
    width: 56px;
    height: 56px;
  }

  /* Tablet and mobile: the video strip is swiped sideways (main.js centres it on load). */
  .hero__strip {
    height: 320px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero__strip::-webkit-scrollbar {
    display: none;
  }

  .hero__track {
    position: static;
    width: max-content;
    padding-inline: var(--page-margin);
    gap: 16px;
  }

  .hero__photo {
    scroll-snap-align: center;
  }

  .hero__photo {
    width: 300px;
    height: 320px;
  }

  .hero__photo--2 {
    width: 380px;
  }
}

@media (max-width: 767px) {
  .hero {
    gap: 24px;
    padding-top: 48px;
  }

  .hero__headline {
    gap: 0;
  }

  .hero__line {
    gap: 8px;
  }

  .hero__pill {
    display: none;
  }

  .hero__wave {
    width: 38px;
    height: 38px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas .btn {
    width: 217px;
  }

  .hero__strip {
    height: 260px;
  }

  .hero__track {
    gap: 12px;
  }

  .hero__photo {
    width: 260px;
    height: 260px;
    border-radius: var(--radius-md);
  }

  .hero__photo--2 {
    width: 300px;
  }
}

/* ---------- About ---------- */
.about__row {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.about__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.about__photo {
  flex: none;
  width: 568px;
  height: 480px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* Compact stat cards, sitting under the About paragraph. */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .highlights .highlight {
    gap: 2px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
  }

  .highlights .highlight__value {
    font-size: 28px;
  }

  .highlights .highlight__label {
    font-size: var(--type-body-sm);
    line-height: 1.6;
  }

  .highlights .highlight__watermark {
    left: -14px;
    top: 30px;
    width: 76px;
    height: 40px;
    opacity: 0.6;
  }
}

@media (max-width: 1199px) {
  .about__row {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .about__photo {
    width: 100%;
    height: 360px;
  }

  .highlights {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .about__row {
    gap: 24px;
  }

  .about__text {
    gap: 16px;
  }

  .about__photo {
    height: 220px;
    border-radius: var(--radius-md);
  }

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

/* ---------- Courses ---------- */
.courses {
  background: var(--bg-subtle);
  overflow: hidden;
}

.courses .pattern {
  opacity: 0.6;
}

/* Four courses: all side by side on desktop, two per row on tablet, one per row on mobile. */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

@media (min-width: 1200px) {
  .course__media {
    height: 210px;
    padding: 14px 14px 0;
  }

  .course__body {
    padding: 22px;
  }

  .course__code {
    font-size: 13px;
  }

  .course__title,
  .course__price {
    font-size: 22px;
  }

  .course .btn {
    padding: 13px 24px;
  }
}

@media (max-width: 1199px) {
  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .courses .pattern {
    display: none;
  }

  .courses__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Payment ---------- */
.payment__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 12px 16px;
  width: 100%;
  direction: ltr;
}

@media (max-width: 1199px) {
  .payment__logos {
    align-items: center;
  }
}

@media (max-width: 767px) {
  .payment__logos {
    gap: 12px;
  }
}

/* ---------- CTA ---------- */
.cta {
  overflow: hidden;
  background: linear-gradient(to right, #0090cc, #0074b2 45%, #003078);
  color: var(--text-on-brand);
  text-align: center;
}

.cta .pattern {
  top: -140px;
  opacity: 0.22;
}

.cta .section__inner {
  gap: 24px;
}

.cta__title {
  max-width: 860px;
  font-size: var(--type-h1);
  font-weight: 700;
  line-height: 1.3;
}

.cta__text {
  max-width: 680px;
  color: var(--text-on-brand-muted);
  font-size: var(--type-h5);
  font-weight: 600;
  line-height: 1.55;
}

@media (max-width: 1199px) {
  /* Tablet and mobile set this paragraph in Body L instead of H5. */
  .cta__text {
    font-size: var(--type-body-lg);
    font-weight: 400;
    line-height: 1.75;
  }
}

@media (max-width: 767px) {
  .cta .section__inner {
    gap: 20px;
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 40px;
  background: var(--bg-brand-deep);
  color: var(--text-on-brand);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Bottom-aligned so the phone number sits on the same line as the tagline. */
.footer__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer__logo {
  width: 112px;
  height: auto;
}

.footer__tagline {
  color: var(--text-on-brand-muted);
  font-size: var(--type-body-sm);
  line-height: 1.7;
}

.footer__links {
  display: flex;
  gap: 32px;
  font-size: var(--type-body-md);
  font-weight: 500;
  line-height: 1.75;
  white-space: nowrap;
}

.footer__links a:hover {
  color: var(--text-on-brand-muted);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__copy {
  color: var(--text-on-brand-muted);
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.65;
}

.footer__contact {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer__contact-label {
  color: var(--text-on-brand-muted);
  font-size: var(--type-body-sm);
  line-height: 1.7;
}

.footer__phone {
  font-size: var(--type-h5);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.footer__phone:hover {
  color: var(--text-on-brand-muted);
}

@media (max-width: 1199px) {
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__nav {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 48px 0 104px;
  }

  .footer__inner {
    gap: 32px;
  }

  .footer__top {
    gap: 24px;
  }

  .footer__logo {
    width: 96px;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
}
