:root {
  --navy: #0b3769;
  --navy-deep: #07111f;
  --blue: #164f89;
  --ice: #f4f8fc;
  --line: #d9e2ec;
  --text: #596473;
  --muted: #7b8794;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(8, 35, 68, 0.1);
  --soft-shadow: 0 10px 32px rgba(8, 35, 68, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--ice) 0%, #ffffff 46%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 18px clamp(24px, 6vw, 78px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 248, 252, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: max-content;
}

.brand::before {
  content: none;
}

.brand-main,
.brand-sub {
  display: block;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-main {
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 800;
  line-height: 0.95;
}

.brand-sub {
  margin-top: 4px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  color: #4e5b6a;
  font-size: 16px;
  font-weight: 700;
}

.nav-links a,
.header-cta {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.header-cta:hover {
  color: var(--navy);
}

.header-cta {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.section-pad {
  padding: clamp(70px, 9vw, 118px) clamp(24px, 6vw, 78px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: end;
  min-height: calc(100vh - 92px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--blue);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--navy-deep);
  font-size: clamp(44px, 5.4vw, 74px);
  font-weight: 800;
  line-height: 1;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.08;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.12;
}

p {
  color: var(--text);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
}

.hero-sub {
  max-width: 630px;
  margin-bottom: 38px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 34px;
  border: 2px solid var(--navy);
  border-radius: 0;
  font-size: 17px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.btn-primary {
  color: #ffffff;
  background: var(--navy);
}

.btn-secondary {
  color: var(--navy);
  background: transparent;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof span,
.credential-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: #425164;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.hero-media {
  align-self: center;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.14;
  object-fit: cover;
}

.section-heading {
  max-width: 840px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.card-grid {
  display: grid;
  gap: 38px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.programme-card {
  min-height: 300px;
  padding: clamp(36px, 5vw, 66px);
}

.programme-card.featured {
  border-color: rgba(22, 79, 137, 0.32);
}

.programme-meta,
.price-label {
  color: var(--blue);
  font-weight: 900;
}

.location-section,
.fees-section,
.testimonials-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-layout {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 36px;
  align-items: stretch;
}

.location-card {
  padding: 44px;
}

.address {
  color: var(--navy-deep);
  font-weight: 850;
}

.map-image-card {
  position: relative;
  display: block;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.map-image-card img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
}

.map-image-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(11, 55, 105, 0.22);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(8, 35, 68, 0.12);
  font-size: 14px;
  font-weight: 850;
}

.tutor-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.tutor-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tutor-image img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
}

.lead {
  color: var(--navy-deep);
  font-weight: 750;
}

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.price-card {
  min-height: 370px;
  padding: clamp(42px, 5vw, 68px);
}

.price-card h3 {
  margin: 10px 0 26px;
  color: var(--navy);
  font-size: clamp(58px, 6.5vw, 84px);
  font-weight: 800;
  line-height: 0.9;
}

.price-card h3 span {
  color: #5e6978;
  font-size: 24px;
  font-weight: 850;
}

.price-card.highlight {
  border-color: rgba(22, 79, 137, 0.32);
}

.why-section {
  background: var(--ice);
}

.comparison-table {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(110px, 0.5fr) minmax(110px, 0.5fr);
  border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row > div {
  display: grid;
  align-items: center;
  min-height: 74px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  color: var(--navy-deep);
  font-size: 16px;
  font-weight: 700;
}

.comparison-row > div:nth-child(2),
.comparison-row > div:nth-child(3) {
  justify-items: center;
  text-align: center;
}

.comparison-row > div:last-child {
  border-right: 0;
}

.comparison-head {
  background: var(--navy);
}

.comparison-head > div {
  min-height: 62px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}

.mark.check {
  border-color: rgba(11, 55, 105, 0.4);
  color: #ffffff;
  background: var(--navy);
}

.mark.check::before {
  content: "✓";
}

.mark.cross {
  background: #f4f6f8;
}

.mark.cross::before {
  content: "×";
  color: var(--muted);
}

.testimonial-card p,
.faq-list p {
  font-size: 16px;
}

.testimonial-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.testimonial-marquee:active {
  cursor: grabbing;
}

.testimonial-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 0 24px 8px;
  animation: testimonial-scroll 34s linear infinite;
}

.testimonial-marquee:hover .testimonial-track,
.testimonial-marquee:focus-within .testimonial-track,
.testimonial-marquee.is-dragging .testimonial-track {
  animation-play-state: paused;
}

.testimonial-card {
  display: flex;
  width: clamp(300px, 24vw, 420px);
  min-height: 260px;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.testimonial-card span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes testimonial-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.faq-list {
  max-width: 960px;
  margin: 0 auto;
}

details {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 28px 0;
  color: var(--navy-deep);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 750;
}

details p {
  max-width: 800px;
  padding-bottom: 28px;
}

.enquiry-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(42px, 8vw, 96px);
  align-items: start;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 15px 16px;
  color: var(--navy-deep);
  background: #fbfdff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(22, 79, 137, 0.22);
  border-color: var(--blue);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px clamp(24px, 6vw, 78px);
  border-top: 1px solid var(--line);
  background: var(--ice);
}

.footer-contact {
  display: grid;
  gap: 8px;
  text-align: right;
}

.footer-contact p {
  margin: 0;
  font-size: 16px;
}

.footer-contact a {
  color: var(--navy);
  font-weight: 850;
}

.footer-contact span {
  color: var(--muted);
  padding: 0 8px;
}

.footer-brand .brand-main {
  font-size: 22px;
}

.footer-brand .brand-sub {
  font-size: 10px;
}

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

@media (max-width: 1060px) {
  .nav-links {
    display: none;
  }

  .hero,
  .tutor-section,
  .enquiry-section,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    min-height: auto;
  }

}

@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
  }

  .site-header {
    min-height: 76px;
    padding: 12px 20px;
  }

  .brand-main {
    font-size: 19px;
  }

  .header-cta {
    display: none;
  }

  .section-pad {
    padding: 68px 20px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .hero-media img {
    aspect-ratio: 1;
  }

  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .programme-card,
  .price-card,
  .location-card {
    min-height: auto;
    padding: 30px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-row {
    grid-template-columns: minmax(220px, 1.6fr) 86px 86px;
    min-width: 392px;
  }

  .comparison-row > div {
    padding: 16px;
    font-size: 14px;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 30;
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--navy);
    box-shadow: 0 16px 34px rgba(8, 35, 68, 0.24);
    font-size: 17px;
    font-weight: 900;
  }
}
