:root {
  --ink: #101827;
  --muted: #5d6b82;
  --line: #dfe6f2;
  --paper: #ffffff;
  --soft: #f7f9ff;
  --navy: #0b348f;
  --teal: #0b348f;
  --gold: #d20a1e;
  --coral: #fff8e7;
  --cream: #fff8e7;
  --brand-red: #d20a1e;
  --shadow: 0 24px 60px rgba(19, 32, 51, 0.12);
  --shadow-strong: 0 32px 80px rgba(19, 32, 51, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 58, 94, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 58, 94, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 68px 0;
  position: relative;
}

.hero.section-pad {
  padding: 52px 0 44px;
}

#about.section-pad {
  padding: 64px 0;
}

.compact {
  padding: 56px 0;
}

.muted {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 251, 0.95)),
    url("assets/premium-learning-pattern.svg") center / cover;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  box-shadow: 0 0 18px rgba(0, 167, 165, 0.38);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(221, 229, 239, 0.78);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(19, 32, 51, 0.04);
}

.nav {
  width: min(1220px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  color: var(--navy);
}

.brand img {
  width: 148px;
  height: 72px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.site-header .brand span,
.footer-brand span {
  display: none;
}

.brand:hover img {
  transform: translateY(-1px) scale(1.03);
  box-shadow: none;
}

.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #33445b;
}

.nav-menu a {
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: transform 0.22s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-menu a[aria-current="page"] {
  color: var(--navy);
}

.nav-cta {
  padding: 0.82rem 1.18rem;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-red);
  font-weight: 800;
  transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #ad0718;
  box-shadow: 0 14px 32px rgba(210, 10, 30, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/premium-learning-pattern.svg") center bottom / cover no-repeat,
    linear-gradient(135deg, #f7f9ff 0%, #ffffff 50%, #fff8e7 100%);
  z-index: -2;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(23, 58, 94, 0.1);
  transform: rotate(-10deg);
  animation: floatShape 8s ease-in-out infinite;
}

.hero-bg::before {
  width: 220px;
  height: 220px;
  right: 12%;
  top: 20%;
  border-radius: 42px;
}

.hero-bg::after {
  width: 140px;
  height: 140px;
  left: 8%;
  bottom: 16%;
  border-radius: 34px;
  animation-delay: -2s;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.06;
  color: #0f2439;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 4.45vw, 4.55rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.25;
}

.hero-copy,
.hero-visual,
.section-copy,
.card-body,
.feature-card,
.testimonial,
.contact-form {
  min-width: 0;
}

.hero-text,
.lead,
.section-head p,
.section-copy p {
  color: var(--muted);
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  font-size: 1.18rem;
}

.hero-actions,
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.88rem 1.18rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: transform 0.55s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%) skewX(-20deg);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--brand-red));
  box-shadow: 0 16px 34px rgba(23, 58, 94, 0.24);
}

.btn-secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}

.btn-light {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 18px 40px rgba(5, 26, 44, 0.18);
}

.trust-strip {
  margin-top: 26px;
}

.trust-strip span {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(23, 58, 94, 0.1);
  border-radius: 999px;
  color: #40536b;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  isolation: isolate;
}

.photo-hero {
  max-width: 420px;
}

.photo-hero::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(11, 52, 143, 0.16), rgba(210, 10, 30, 0.14));
}

.photo-hero img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(221, 229, 239, 0.95);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.hero-art {
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(223, 230, 242, 0.86);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 12%, rgba(210, 10, 30, 0.11), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(11, 52, 143, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.dashboard-card {
  padding: 22px;
  border: 1px solid rgba(223, 230, 242, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(19, 32, 51, 0.1);
  transition: transform 0.3s ease;
}

.hero-art:hover .dashboard-card {
  transform: translateY(-4px);
}

.dashboard-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.2;
}

.dashboard-main {
  color: #fff;
  background: linear-gradient(135deg, #111827, var(--navy));
}

.dashboard-main span,
.dashboard-main strong {
  color: #fff;
}

.play-mark {
  width: 72px;
  height: 72px;
  margin-top: 22px;
  border-radius: 50%;
  background: var(--brand-red);
  position: relative;
}

.play-mark::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 22px;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.dashboard-progress {
  margin-left: 54px;
}

.bar-row {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 62px;
  margin-top: 14px;
}

.bar-row i {
  display: block;
  width: 34px;
  border-radius: 10px 10px 4px 4px;
  background: var(--brand-red);
}

.bar-row i:nth-child(1) { height: 28px; }
.bar-row i:nth-child(2) { height: 50px; background: var(--navy); }
.bar-row i:nth-child(3) { height: 38px; background: #f2c45a; }

.dashboard-note {
  margin-right: 34px;
}

.image-shell {
  position: relative;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-strong);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-visual:hover .image-shell {
  transform: translateY(-6px) rotate(0.35deg);
  box-shadow: 0 38px 92px rgba(19, 32, 51, 0.19);
}

.image-shell img {
  width: 100%;
  height: min(520px, calc(100vh - 220px));
  min-height: 420px;
  object-fit: cover;
  border-radius: 22px;
}

.hero-proof-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  z-index: 2;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(14, 33, 51, 0.88), rgba(0, 120, 124, 0.78));
  box-shadow: 0 18px 45px rgba(19, 32, 51, 0.18);
  backdrop-filter: blur(14px);
}

.hero-proof-card span {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof-card strong {
  display: block;
  line-height: 1.3;
}

.metric-card {
  position: absolute;
  max-width: 185px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(19, 32, 51, 0.14);
  transition: transform 0.35s ease;
}

.hero-visual:hover .metric-card-top {
  transform: translate(-4px, -6px);
}

.hero-visual:hover .metric-card-bottom {
  transform: translate(4px, 6px);
}

.metric-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.48rem;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.metric-card-top {
  left: -24px;
  top: 14%;
}

.metric-card-bottom {
  right: -18px;
  bottom: 22%;
}

.split,
.contact-grid,
.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 58px;
  align-items: center;
}

.media-stack {
  position: relative;
  max-width: 380px;
}

.portrait {
  width: min(360px, 100%);
  height: 430px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.experience-card {
  position: absolute;
  right: 0;
  bottom: 26px;
  width: min(235px, 72%);
  padding: 16px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: 0 18px 40px rgba(23, 58, 94, 0.2);
}

.experience-card span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.experience-card strong {
  display: block;
  line-height: 1.25;
}

.section-copy .lead {
  font-size: 1.12rem;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--navy);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.program-grid,
.feature-grid,
.testimonial-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

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

.program-card,
.feature-card,
.testimonial,
.contact-form {
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(19, 32, 51, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.program-card:hover,
.feature-card:hover,
.testimonial:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 10, 30, 0.26);
  box-shadow: var(--shadow);
}

.program-card {
  overflow: hidden;
}

.program-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.program-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.program-card li {
  position: relative;
  margin-top: 10px;
  padding-left: 22px;
  color: #465870;
  font-weight: 600;
}

.program-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

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

.feature-card {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 255, 0.86));
}

.feature-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(243, 185, 78, 0.2);
  font-weight: 800;
}

.feature-card p,
.testimonial blockquote {
  color: var(--muted);
}

.stats-band {
  padding: 58px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 52, 143, 0.95), rgba(117, 18, 45, 0.9)),
    url("assets/training-group.jpg") center / cover;
}

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

.stats-grid div {
  padding: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.stats-grid strong {
  display: block;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.stats-grid span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.category-row span {
  padding: 0.78rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(19, 32, 51, 0.06);
}

.gallery-showcase {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  grid-auto-rows: 278px;
  gap: 20px;
}

.gallery-card {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 252, 0.92));
  box-shadow: 0 18px 42px rgba(19, 32, 51, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(23, 58, 94, 0.08);
  border-radius: 12px;
  pointer-events: none;
}

.gallery-card-large {
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.gallery-card figcaption {
  position: absolute;
  left: 26px;
  bottom: 24px;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 33, 51, 0.72);
  box-shadow: 0 12px 30px rgba(19, 32, 51, 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 800;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 167, 165, 0.34);
  box-shadow: var(--shadow-strong);
}

.gallery-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.02);
}

.reviews-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 34px;
  align-items: end;
  margin-bottom: 42px;
}

.reviews-head h2 {
  margin-bottom: 0;
}

.reviews-head > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.05rem;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.testimonial {
  position: relative;
  min-height: 100%;
  margin: 0;
  padding: 28px;
  scroll-snap-align: none;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(251, 254, 255, 0.92));
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  right: 22px;
  top: 4px;
  color: rgba(210, 10, 30, 0.08);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 6rem;
  line-height: 1;
}

.featured-review {
  border-color: rgba(0, 167, 165, 0.4);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(237, 248, 247, 0.72));
}

.testimonial blockquote {
  position: relative;
  margin: 12px 0 24px;
  font-size: 1.02rem;
  flex: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.review-more {
  position: relative;
  width: max-content;
  margin: 0 0 20px;
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 2px solid rgba(210, 10, 30, 0.34);
  color: var(--navy);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.review-more:hover,
.review-more:focus-visible {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.review-dialog {
  width: min(790px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.review-dialog::backdrop {
  background: rgba(9, 19, 36, 0.58);
  backdrop-filter: blur(4px);
}

.review-dialog-content {
  position: relative;
  padding: 34px;
}

.review-dialog .stars {
  margin-bottom: 20px;
}

.review-dialog blockquote {
  display: block;
  margin: 0 0 26px;
  overflow: visible;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.review-dialog-author {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.review-dialog-author span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
}

.review-dialog-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.testimonial figcaption {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.testimonial figcaption span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: 0 12px 24px rgba(23, 58, 94, 0.18);
  flex: 0 0 auto;
}

.rating {
  position: relative;
  color: var(--gold);
  width: max-content;
  padding: 0.32rem 0.54rem;
  border-radius: 999px;
  background: rgba(243, 185, 78, 0.14);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stars {
  position: relative;
  margin-bottom: 14px;
  color: var(--brand-red);
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.faq-layout {
  align-items: start;
}

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

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(19, 32, 51, 0.06);
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--navy);
  font-weight: 800;
}

details[open] {
  border-color: rgba(0, 167, 165, 0.36);
  box-shadow: 0 18px 42px rgba(19, 32, 51, 0.09);
}

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.cta-band {
  padding: 70px 0;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 248, 231, 0.26), transparent 26%),
    linear-gradient(135deg, #0b348f, #28478f 56%, #d20a1e);
}

.cta-inner {
  max-width: 780px;
  text-align: center;
}

.cta-inner h2,
.cta-inner .eyebrow,
.cta-inner p {
  color: #fff;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-grid {
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-cards a {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 32, 51, 0.06);
}

.contact-cards span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-cards strong {
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 28px;
}

.enquiry-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.enquiry-panel > p:not(.eyebrow) {
  color: var(--muted);
}

.enquiry-steps {
  display: grid;
  gap: 14px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.enquiry-steps li {
  position: relative;
  padding-left: 32px;
  color: #40536b;
  font-weight: 700;
}

.enquiry-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38rem;
  width: 17px;
  height: 17px;
  border: 5px solid rgba(210, 10, 30, 0.18);
  border-radius: 50%;
  background: var(--brand-red);
}

.enquiry-help {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  color: #35465d;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.88rem 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 167, 165, 0.12);
}

.form-row small {
  min-height: 18px;
  color: #b6332b;
}

.form-row.invalid input,
.form-row.invalid textarea {
  border-color: #c7473f;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0 20px;
  color: var(--muted);
  font-weight: 600;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.footer {
  color: rgba(255, 255, 255, 0.82);
  background: #0e2133;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding: 64px 0 38px;
}

.footer h2 {
  margin-bottom: 16px;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 1rem;
}

.footer a {
  display: block;
  margin-bottom: 10px;
}

.footer-brand {
  margin-bottom: 18px;
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

.page-hero {
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(11, 52, 143, 0.08), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(210, 10, 30, 0.08), transparent 32%),
    linear-gradient(135deg, #f7f9ff 0%, #fff 56%, #fff8e7 100%);
}

.page-hero .section-head {
  margin-bottom: 0;
}

.page-hero h1 {
  margin-inline: auto;
}

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

.mini-proof-grid div,
.contact-note,
.map-card {
  border: 1px solid rgba(223, 230, 242, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(19, 32, 51, 0.07);
}

.mini-proof-grid div {
  padding: 24px;
}

.mini-proof-grid strong {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.1;
}

.mini-proof-grid span,
.contact-note span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.section-action {
  margin-top: 30px;
  text-align: center;
}

.service-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid-five {
  width: min(100%, 960px);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-grid-five .testimonial:last-child {
  grid-column: 1 / -1;
  width: min(100%, 468px);
  margin-inline: auto;
}

.program-card h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.contact-note {
  padding: 16px 18px;
}

.contact-note strong {
  display: block;
  color: var(--navy);
}

.map-card {
  margin-top: 18px;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(11, 52, 143, 0.08), rgba(210, 10, 30, 0.08)),
    url("assets/premium-learning-pattern.svg") center / cover;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
}

.floating-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 14px 34px rgba(19, 32, 51, 0.22);
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.floating-actions a:hover,
.floating-actions a:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.floating-actions a:last-child {
  background: #128c7e;
}

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .reveal {
  opacity: 1;
  transform: translateY(12px);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(16px) rotate(-6deg);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    width: calc(100vw - 40px);
    max-width: 1220px;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 18px 20px 24px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(19, 32, 51, 0.1);
    transform: translateY(-130%);
    transition: transform 0.24s ease;
  }

  .nav-menu a {
    padding: 0.9rem 0;
  }

  .nav-menu.is-open {
    transform: translateY(0);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-grid,
  .split,
  .contact-grid,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .service-preview,
  .testimonial-grid-five,
  .mini-proof-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 460px;
    justify-self: start;
  }

  .photo-hero {
    justify-self: center;
  }

  .photo-hero img {
    height: 380px;
  }

  .hero-art {
    justify-self: center;
  }

  .image-shell img {
    height: 480px;
    min-height: 0;
  }

  .hero-proof-card {
    position: static;
    margin-top: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
  }

  .hero-proof-card span {
    color: var(--teal);
  }

  .feature-grid,
  .stats-grid,
  .gallery-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-showcase {
    grid-auto-rows: 250px;
  }

  .gallery-card-large {
    grid-row: span 1;
  }

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

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

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

@media (max-width: 640px) {
  .container,
  .nav {
    width: min(calc(100% - 28px), 1160px);
    max-width: 1160px;
  }

  .container {
    width: min(calc(100vw - 28px), 1160px);
  }

  .nav {
    width: calc(100vw - 28px);
    grid-template-columns: minmax(0, auto) 44px;
  }

  .nav-toggle {
    margin-left: 0;
    justify-self: end;
  }

  .section-pad {
    padding: 46px 0;
  }

  .hero.section-pad {
    padding: 34px 0 32px;
  }

  .compact,
  #about.section-pad {
    padding: 42px 0;
  }

  .brand span {
    font-size: 0.94rem;
  }

  .brand img {
    width: 92px;
    height: 48px;
  }

  h1 {
    max-width: 340px;
    font-size: 1.48rem;
    line-height: 1.14;
    overflow-wrap: break-word;
  }

  .page-hero h1 {
    max-width: 320px;
    font-size: 1.58rem;
    line-height: 1.18;
    margin-inline: auto;
  }

  .page-hero .section-head {
    max-width: 100%;
  }

  .page-hero p,
  .section-copy p {
    max-width: 290px;
    margin-inline: auto;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 1.9rem;
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .section-copy h2,
  .contact-grid h2 {
    max-width: 300px;
    margin-inline: auto;
    text-align: center;
  }

  .contact-cards a,
  .contact-note,
  .map-card,
  .contact-form {
    max-width: 320px;
    margin-inline: auto;
  }

  .enquiry-panel {
    order: -1;
    justify-self: center;
    width: min(100%, 320px);
    padding: 24px 18px;
  }

  .enquiry-panel .form-submit {
    padding-inline: 0.7rem;
    font-size: 0.92rem;
  }

  .hero-text {
    max-width: 330px;
    margin-bottom: 24px;
    font-size: 0.96rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
    padding-inline: 0.95rem;
    text-align: center;
  }

  .hero-actions {
    width: 100%;
    max-width: 330px;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero-art {
    min-height: auto;
    padding: 18px;
  }

  .dashboard-progress,
  .dashboard-note {
    margin: 0;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 220px;
    margin-top: 18px;
    gap: 10px;
  }

  .trust-strip span {
    text-align: center;
    padding: 0.48rem 0.68rem;
    font-size: 0.82rem;
  }

  .trust-strip span:nth-child(3) {
    grid-column: auto;
    justify-self: stretch;
  }

  .metric-card {
    position: static;
    margin-top: 12px;
    max-width: none;
  }

  .image-shell img {
    height: 340px;
  }

  .photo-hero {
    max-width: 310px;
  }

  .photo-hero::before {
    inset: 12px -10px -10px 12px;
    border-radius: 24px;
  }

  .photo-hero img {
    height: 300px;
    border-radius: 24px;
  }

  .hero-proof-card {
    padding: 14px;
  }

  .experience-card {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .portrait {
    height: 360px;
  }

  .feature-grid,
  .stats-grid,
  .gallery-showcase,
  .testimonial-grid,
  .service-preview,
  .testimonial-grid-five,
  .mini-proof-grid {
    grid-template-columns: 1fr;
  }

  .gallery-showcase {
    grid-auto-rows: auto;
  }

  .gallery-card {
    min-height: 260px;
  }

  .gallery-card-large {
    min-height: 360px;
  }

  .gallery-card figcaption {
    left: 18px;
    bottom: 18px;
  }

  .stats-grid div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .testimonial {
    min-height: auto;
    padding: 24px;
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
  }

  .floating-actions {
    display: none;
  }

  .testimonial blockquote {
    max-width: 100%;
    font-size: 0.94rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .review-dialog-content {
    padding: 30px 22px 24px;
  }

  .review-dialog blockquote {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .footer-bottom {
    display: grid;
  }
}
