:root {
  --black: #0d0d0d;
  --red: #e31e24;
  --white: #ffffff;
  --grey: #4a4a4a;
  --soft: #f6f6f6;
  --line: rgba(13, 13, 13, 0.16);
  --line-strong: rgba(13, 13, 13, 0.32);
  --radius: 8px;
  --shadow: 0 24px 70px rgba(13, 13, 13, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  font-family: "DM Sans", Arial, sans-serif;
  background: var(--white);
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.nav-active {
  box-shadow: 0 14px 34px rgba(13, 13, 13, 0.12);
}

.nav {
  width: min(100% - 32px, 1180px);
  min-height: 76px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: auto;
  height: 48px;
  max-width: 34vw;
  object-fit: contain;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-drawer {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links {
  display: grid;
  gap: 6px;
}

.nav-links a,
.nav-cta {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--grey);
  font-weight: 800;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--black);
  border-color: var(--red);
}

.nav-cta {
  justify-content: center;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--red);
  font-weight: 900;
}

/* Book Mock Test — brand-red CTA that pops (hard offset shadow + hover lift) */
.nav-links a.nav-mock {
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.nav-links a.nav-mock:hover {
  color: var(--white);
  border-color: var(--black);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}

/* === Top contact bar (neo-brutalist) === */
.top-bar {
  background: var(--red);
  color: var(--white);
  border-bottom: 2px solid var(--black);
  font-weight: 700;
  font-size: 0.8rem;
}

.top-bar-inner {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  padding: 7px 0;
}

.top-bar-left {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

.top-bar a,
.top-bar .tb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
}

.top-bar svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* === Nav dropdowns (About Us / Resources) — mobile/base === */
.nav-drawer {
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}

.nav-dd {
  display: grid;
  gap: 6px;
}

.nav-dd-btn {
  font: inherit;
  min-height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 12px;
  color: var(--grey);
  font-weight: 800;
  text-align: left;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-dd-btn:hover {
  color: var(--black);
  border-color: var(--red);
}

.nav-dd-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms ease;
}

.nav-dd.is-open > .nav-dd-btn svg {
  transform: rotate(180deg);
}

.nav-dd-menu {
  display: none;
  gap: 4px;
  padding-left: 10px;
}

.nav-dd.is-open > .nav-dd-menu {
  display: grid;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 60px;
  background: repeating-linear-gradient(
      135deg,
      rgba(13, 13, 13, 0.045) 0,
      rgba(13, 13, 13, 0.045) 1px,
      transparent 1px,
      transparent 22px
    ),
    var(--white);
  border-bottom: 2px solid var(--black);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

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

.hero-slash {
  position: absolute;
  top: 18%;
  right: -110px;
  width: 170px;
  height: 78%;
  background: var(--red);
  transform: skewX(-18deg) rotate(8deg);
  transform-origin: center;
  z-index: 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 30px;
  height: 0;
  border-top: 2px solid var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin: 18px 0 22px;
  font-size: clamp(3.4rem, 14vw, 4.5rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 11vw, 5.8rem);
  line-height: 0.9;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.contact-section p {
  max-width: 650px;
  color: var(--grey);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

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

.credential-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.credential-row span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover {
  border-color: var(--red);
  box-shadow: 6px 6px 0 var(--red);
  transform: translate(-2px, -2px);
}

.btn-primary {
  color: var(--white);
  background: var(--black);
  border-color: var(--red);
}

.hero .btn-primary {
  background: var(--red);
  border-color: var(--red);
}

.btn-secondary {
  color: var(--black);
  background: var(--white);
}

.hero-founder-showcase {
  position: relative;
  width: min(100%, 480px);
  justify-self: center;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-image-wrapper {
  position: relative;
  width: 100%;
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.founder-image-wrapper .main-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 15px 15px 0 rgba(225, 29, 72, 0.1);
}

.founder-quote {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  width: calc(100% - 20px);
  z-index: 10;
}

@media (max-width: 768px) {
  .founder-quote {
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    bottom: -40px;
  }
}

.founder-quote .quote-icon {
  width: 24px;
  height: 24px;
  color: var(--red);
  margin-bottom: 8px;
}

.founder-quote blockquote {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.founder-quote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 800;
  color: var(--grey);
}

.founder-quote cite span {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--red);
}

@keyframes floatSub {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .hero-founder-showcase {
    width: 100%;
  }
}

.stats-bar {
  width: 100%;
  color: var(--white);
  background: var(--black);
}

.stats-grid {
  display: grid;
}

.stat-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 24px 0;
  text-align: center;
}

.stat-item:not(:last-child) {
  border-bottom: 2px solid var(--red);
}

.stat-item strong,
.stat-item span {
  display: block;
}

.stat-item strong {
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 10vw, 3.4rem);
  font-weight: 900;
  line-height: 0.95;
}

.stat-item > span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  scroll-margin-top: 96px;
  padding: 78px 0;
  background: var(--white);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.courses-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 20px;
  background: var(--red);
}

.course-switcher {
  display: grid;
  gap: 24px;
}

.course-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.course-tabs::-webkit-scrollbar {
  display: none;
}

.course-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0;
  color: var(--grey);
  background: transparent;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.course-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity 180ms ease;
}

.course-tab.is-active {
  color: var(--red);
}

.course-tab.is-active::after {
  opacity: 1;
}

.course-panels {
  min-height: 1px;
}

.course-panel {
  display: none;
  gap: 18px;
}

.course-panel.is-active {
  display: grid;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--radius);
}

.course-card-head {
  display: grid;
  gap: 12px;
}

.course-card h3 {
  margin-bottom: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.seat-badge {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--black);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seat-badge.is-low {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.course-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.course-details div {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.course-details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.course-details dt,
.course-details dd {
  margin: 0;
}

.course-details dt {
  color: var(--grey);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-details dd {
  color: var(--black);
  font-weight: 800;
}

.btn-course {
  min-height: 48px;
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
  margin-top: auto;
}

.skills-section {
  scroll-margin-top: 96px;
  background: var(--black);
}

.skill-panels {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.skill-panel {
  min-height: 260px;
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  padding: 30px 24px;
  color: var(--white);
  overflow: hidden;
  transition: flex-grow 320ms ease, min-height 320ms ease;
}

.skill-panel-black {
  background: var(--black);
}

.skill-panel-red {
  background: var(--red);
}

.skill-panel svg {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-panel > div {
  min-width: 0;
  max-width: 100%;
}

.skill-panel h3 {
  max-width: 100%;
  margin-bottom: 0;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 12vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.skill-panel ul {
  max-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 320ms ease, margin-top 320ms ease, opacity 220ms ease, transform 320ms ease;
}

.skill-panel li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.skill-panel li + li {
  margin-top: 7px;
}

.skill-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 2px;
  background: var(--white);
}

.skill-panel:hover {
  flex-grow: 1.25;
  min-height: 340px;
}

.skill-panel:hover ul {
  max-height: 150px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.mock-banner {
  position: relative;
  width: 100%;
  scroll-margin-top: 96px;
  overflow: hidden;
  padding: 72px 0;
  color: var(--white);
  background: var(--red);
}

.mock-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px),
    radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px);
  background-size: 13px 13px, 19px 19px;
  mix-blend-mode: screen;
}

.mock-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.mock-banner h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(2.2rem, 9vw, 5.2rem);
  font-weight: 900;
}

.btn-banner {
  width: 100%;
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.btn-banner:hover {
  box-shadow: 6px 6px 0 var(--white);
}

.results-carousel-section {
  display: grid;
  gap: 28px;
}

.carousel-shell {
  display: grid;
  gap: 16px;
}

.carousel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.carousel-btn:hover {
  background: var(--black);
  transform: translateY(-2px);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 86%);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.student-carousel::-webkit-scrollbar {
  display: none;
}

.student-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--radius);
}

.student-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--soft);
  border: 2px solid var(--black);
  border-radius: 50%;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.student-card h3 {
  margin-bottom: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.destination {
  margin-bottom: 0;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.band-grid span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--grey);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.band-grid strong {
  display: block;
  color: var(--black);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}

.band-grid .overall {
  grid-column: 1 / -1;
  min-height: 62px;
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.band-grid .overall strong {
  color: var(--white);
}

.student-card blockquote {
  margin: 2px 0 0;
  color: var(--grey);
  font-style: italic;
  font-weight: 700;
}

.trainers-section {
  background: var(--soft);
  border-top: 2px solid var(--black);
}

.trainer-grid {
  display: grid;
  gap: 18px;
}

.trainer-card {
  background: var(--white);
  border: 1px solid var(--black);
  border-bottom: 3px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
}

.trainer-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: var(--black);
  background:
    linear-gradient(135deg, rgba(13, 13, 13, 0.06) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--white);
  border-bottom: 1px solid var(--black);
  overflow: hidden;
}

.trainer-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(227, 30, 36, 0.72);
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 2;
}

.trainer-photo span {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 900;
  line-height: 1;
}

.trainer-photo svg {
  position: absolute;
  width: 48px;
  height: 48px;
  color: var(--white);
  fill: currentColor;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 3;
}

.trainer-card:hover .trainer-photo::before,
.trainer-card:hover .trainer-photo svg {
  opacity: 1;
}

.trainer-card:hover .trainer-photo svg {
  transform: translateY(0);
}

.trainer-body {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.trainer-body h3 {
  margin-bottom: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.trainer-body p {
  margin-bottom: 0;
  color: var(--grey);
  font-weight: 800;
}

.years-tag {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-section {
  background: var(--white);
  border-top: 2px solid var(--black);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  color: var(--white);
  background: var(--black);
  border: 0;
  text-align: left;
  cursor: pointer;
}

.faq-question span {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-question svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease;
}

.faq-answer p {
  min-height: 0;
  margin: 0;
  padding: 0 18px;
  color: var(--grey);
  font-weight: 700;
  overflow: hidden;
  transition: padding 240ms ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer p {
  padding: 18px;
}

.contact-section {
  scroll-margin-top: 96px;
  padding: 78px 0;
  background: var(--white);
  border-top: 2px solid var(--black);
}

.contact-grid {
  display: grid;
  gap: 28px;
}

.contact-info {
  display: grid;
  gap: 22px;
}

.contact-info h2 {
  margin-bottom: 0;
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-details p {
  margin-bottom: 0;
}

.contact-details strong {
  display: block;
  color: var(--black);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.map-frame {
  width: 100%;
  min-height: 300px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--red);
}

.contact-form .honeypot-field {
  display: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--black);
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
}

.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.14);
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.14);
}

.schedule-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.schedule-field legend {
  padding: 0 6px;
  color: var(--black);
  font-size: 0.86rem;
  font-weight: 900;
}

.schedule-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.schedule-field input {
  width: auto;
  min-height: auto;
  accent-color: var(--red);
}

.contact-form .enquiry-submit {
  background: var(--red);
  border-color: var(--red);
}

.form-message {
  min-height: 24px;
  margin: 15px 0 0 0;
  color: var(--white);
  background: var(--red);
  padding: 15px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
}

.form-message.is-success {
  background: #10b981; /* Emerald Green */
  color: var(--white);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.site-footer {
  padding: 46px 0 0;
  color: var(--white);
  background: var(--black);
  border-top: 3px solid var(--red);
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.site-footer .brand img {
  width: 116px;
  background: var(--white);
  border-radius: var(--radius);
}

.footer-brand,
.footer-links,
.footer-social {
  display: grid;
  align-content: start;
  gap: 14px;
}

.site-footer p,
.site-footer h2 {
  margin: 0;
}

.site-footer h2 {
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-brand p,
.footer-links a,
.footer-bottom p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

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

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-row a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-row a:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.social-row svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  margin-top: 38px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 768px) {
  .container,
  .nav {
    width: min(100% - 48px, 1180px);
  }

  /* Horizontal nav activates at >=1024px (see large-screen block) so the
     full menu + dropdowns don't crowd on tablets. */

  .hero-grid {
    grid-template-columns: minmax(0, 3fr) minmax(290px, 2fr);
    align-items: center;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero-actions .btn {
    flex: 1;
    white-space: nowrap;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item {
    padding: 30px 18px;
    border-bottom: 0;
  }

  .stat-item:not(:last-child) {
    border-right: 2px solid var(--red);
    border-bottom: 0;
  }

  .course-panel.is-active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-card-head {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .skill-panels {
    min-height: 470px;
    flex-direction: row;
  }

  .skill-panel {
    min-width: 0;
    min-height: 470px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 36px 28px;
  }

  .skill-panel svg {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .skill-panel h3 {
    font-size: clamp(1.75rem, 3.4vw, 3.45rem);
  }

  .skill-panel:hover {
    flex-grow: 1.65;
    min-height: 470px;
  }

  .mock-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .btn-banner {
    width: auto;
  }

  .student-carousel {
    grid-auto-columns: minmax(360px, calc((100% - 32px) / 3));
  }

  .trainer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nav {
    min-height: 86px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nav-toggle {
    display: none;
  }

  .nav-drawer {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
  }

  .nav-links > a {
    min-height: 42px;
    padding: 0 9px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 0.85rem;
  }

  .nav-cta {
    padding: 0 16px;
    border: 2px solid var(--red);
    border-radius: var(--radius);
  }

  .nav-dd {
    position: relative;
    display: block;
  }

  .nav-dd-btn {
    width: auto;
    min-height: 42px;
    justify-content: center;
    gap: 4px;
    padding: 0 9px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 0.85rem;
  }

  .nav-dd:hover > .nav-dd-btn {
    color: var(--black);
    border-color: var(--red);
  }

  .nav-dd-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 210px;
    padding: 8px;
    gap: 4px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding-left: 8px;
    z-index: 30;
  }

  .nav-dd:hover > .nav-dd-menu,
  .nav-dd.is-open > .nav-dd-menu {
    display: grid;
  }

  .nav-dd-menu a {
    border-left: 3px solid transparent;
  }

  .brand img {
    height: 48px;
  }

  .hero {
    padding-top: 180px;
    padding-bottom: 100px;
  }

  .hero-lede,
  .section-heading p,
  .contact-section p {
    font-size: 1.14rem;
  }

  .section,
  .contact-section {
    padding: 104px 0;
  }

  .course-card {
    padding: 30px;
  }

  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 108px;
    max-width: 42vw;
  }

  .hero-founder-showcase {
    width: 100%;
  }
}

/* ==========================================
   WELCOME POPUP
   ========================================== */
.welcome-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.welcome-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  max-width: 450px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0,0,0,0.05);
}

.welcome-popup.is-visible .popup-box {
  transform: translateY(0) scale(1);
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--dark-gray);
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-popup:hover {
  color: var(--red);
}

.popup-kicker {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.popup-box h2 {
  font-size: 1.8rem;
  color: var(--black);
  margin-bottom: 15px;
  font-weight: 900;
}

.popup-box p {
  color: var(--dark-gray);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.popup-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  background: var(--bg-color);
  padding: 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--black);
}

.popup-cta {
  width: 100%;
}

@media (max-width: 480px) {
  .popup-box {
    padding: 30px 20px;
  }
  .popup-box h2 {
    font-size: 1.5rem;
  }
  .popup-details {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
}
