:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dde5ef;
  --brand: #0b5f95;
  --accent: #f08a24;
  --green: #158f63;
  --soft: #f6f8fb;
  --white: #fff;
  --shadow: 0 22px 70px rgba(15, 38, 64, 0.14);
}

* { 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: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.hidden { display: none !important; }

.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221, 229, 239, 0.85);
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--brand);
}
.landing-brand img { border-radius: 50%; box-shadow: 0 10px 24px rgba(11, 95, 149, 0.14); }
.landing-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #203044;
  font-weight: 800;
  font-size: 0.92rem;
}
.landing-nav a { white-space: nowrap; }
.nav-cta, .main-site-link, .main-action {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
}
.main-site-link, .main-action { background: var(--ink); }

.landing-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: end;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(34px, 5vw, 72px);
  background: linear-gradient(135deg, #f9fbff 0%, #eef6fb 55%, #fff8f1 100%);
}
.hero-media {
  min-height: 72vh;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dbe7f2;
}
.hero-media img { width: 100%; height: 72vh; object-fit: cover; }
.hero-content {
  max-width: 720px;
  padding-bottom: 18px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}
.hero-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  color: var(--brand);
}
.hero-content p, .section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.hero-phone {
  margin: 24px 0;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--brand);
}
.hero-actions, .landing-footer div, .contact-grid, .floating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.primary-action, .secondary-action, .whatsapp-action, .main-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
}
.primary-action { background: var(--brand); color: var(--white); }
.secondary-action { background: var(--white); color: var(--ink); border-color: var(--line); }
.whatsapp-action { background: var(--green); color: var(--white); }

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}
.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}
.intro-section, .enquiry-section, .contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.why-grid, .stats-grid, .team-grid, .campus-grid, .achievement-grid, .tech-grid, .testimonial-grid, .birthday-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.results-section > .achievement-grid {
  display: block;
}
.achievement-group {
  margin-top: 28px;
}
.achievement-group h3 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.achievement-card-body {
  min-width: 0;
}
.achievement-card-body b,
.achievement-card-body small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
.achievement-card-body b {
  color: var(--brand);
}
.achievement-card-body p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.achievement-loading-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
  box-shadow: 0 14px 36px rgba(15, 38, 64, 0.06);
}
.achievement-loading-card strong {
  color: var(--ink);
}
.achievement-loading-card small {
  color: var(--muted);
}
.achievement-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.achievement-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #eaf3fb;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}
.achievement-tabs button.active,
.achievement-tabs button:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.birthday-section {
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.birthday-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.birthday-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(14, 95, 149, 0.16);
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 38, 64, 0.08);
}

.birthday-card img {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  object-fit: cover;
  background: #e8f2fb;
}

.birthday-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.birthday-card span,
.birthday-card p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
}

.birthday-card b {
  display: inline-block;
  margin-top: 8px;
  border-radius: 999px;
  padding: 7px 11px;
  background: #eaf5ff;
  color: var(--brand);
}
.achievement-tab-panel {
  display: grid;
  gap: 18px;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(13, 92, 146, 0.14);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.why-grid article, .stats-grid article, .tech-grid article, .testimonial-grid article, .contact-grid article,
.team-card, .campus-grid article, .achievement-grid article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(15, 38, 64, 0.06);
}
.why-grid strong, .tech-grid strong, .contact-grid strong, .team-card strong, .achievement-grid strong, .campus-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.why-grid span, .tech-grid span, .contact-grid span, .team-card span, .achievement-grid span, .campus-grid span, .testimonial-grid span {
  color: var(--muted);
  line-height: 1.55;
}
.contact-grid a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 900;
}
.numbers-section, .technology-section, .testimonials-section { background: var(--soft); }
.stats-grid article strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--brand);
}
.stats-grid article span {
  display: block;
  margin-top: 2px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}
.stats-grid article small {
  display: block;
  margin-top: 10px;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.58;
}
.stat-live-dot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e92d3a;
  box-shadow: 0 0 0 0 rgba(233, 45, 58, 0.45);
  animation: livePulse 1.1s ease-out infinite;
}
@keyframes livePulse {
  70% {
    box-shadow: 0 0 0 12px rgba(233, 45, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(233, 45, 58, 0);
  }
}
.stats-grid .student-stat-card {
  display: flex;
  flex-direction: column;
}
.stats-grid .student-stat-card .student-growth-chart {
  margin-top: auto;
}
.student-growth-chart {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.student-growth-chart svg {
  width: 100%;
  min-height: 120px;
}
.growth-line {
  fill: none;
  stroke: #0f68a0;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.growth-point {
  fill: #0f68a0;
  stroke: #ffffff;
  stroke-width: 2;
}
.growth-point.is-current {
  fill: #d92332;
  animation: blinkDot 1s infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.growth-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.growth-labels span {
  display: grid;
  gap: 2px;
}
.growth-labels b {
  color: var(--brand);
  font-size: 0.9rem;
}
.growth-labels .is-current b {
  color: #d92332;
}
.growth-labels small {
  font-size: 0.72rem;
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.55); }
}
.team-card img, .achievement-grid img, .campus-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #edf3f8;
}
.team-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas:
    "photo name"
    "photo role"
    "bio bio";
  gap: 8px 16px;
  align-items: center;
  padding: 16px;
}
.team-card img {
  grid-area: photo;
  width: 104px;
  height: 124px;
  aspect-ratio: auto;
  margin: 0;
}
.team-card strong {
  grid-area: name;
  align-self: end;
  margin: 0;
}
.team-card span {
  grid-area: role;
  align-self: start;
  margin: 0;
}
.team-card small {
  grid-area: bio;
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}
.achievement-grid article.achievement-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
}
.achievement-grid article.achievement-card.rank-card {
  padding-top: 42px;
}
.rank-strip {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 14px;
  color: #111827;
  font-weight: 900;
  letter-spacing: 0;
}
.rank-strip.gold { background: linear-gradient(90deg, #ffd76a, #fff1b8); }
.rank-strip.silver { background: linear-gradient(90deg, #cfd6df, #f3f6f9); }
.rank-strip.bronze { background: linear-gradient(90deg, #d79a55, #f1c08a); }
.achievement-grid article.achievement-card img {
  width: 104px;
  height: 124px;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 8px;
}
.achievement-score {
  display: inline-flex;
  width: fit-content;
  margin: 6px 0 4px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #edf7ff;
  color: var(--brand);
}
.testimonial-video {
  display: block;
  width: 100%;
  max-height: 220px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #0b2538;
}
.media-section { background: #101827; color: var(--white); }
.media-section .section-heading p, .media-section .section-heading h2 { color: var(--white); }
.media-section .campus-grid article { background: #172033; border-color: rgba(255, 255, 255, 0.14); }
.results-section { background: #fff; }
.landing-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.landing-form label { display: grid; gap: 7px; font-weight: 800; }
.landing-form input, .landing-form textarea, .landing-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
}
.landing-form .checkbox-group {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.landing-form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.landing-form .checkbox-group input {
  width: auto;
}
.helper-text {
  color: var(--muted);
  line-height: 1.5;
}
.form-status { min-height: 22px; color: var(--brand); font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #101827;
  color: var(--white);
}
.landing-footer p { margin: 8px 0 0; color: #cbd5e1; }
.powered-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 18px;
  padding: 12px 16px;
  color: #536174;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}
.landing-visitor-counter {
  display: inline-grid;
  gap: 2px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}
.landing-visitor-counter span {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0;
}
.landing-visitor-counter small {
  color: #cbd5e1;
  font-weight: 800;
}
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
}
.floating-actions a {
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(15, 38, 64, 0.22);
}

@media (min-width: 981px) {
  .stats-grid {
    grid-template-columns: minmax(340px, 1.08fr) repeat(2, minmax(220px, 1fr));
    grid-auto-rows: minmax(214px, auto);
    align-items: stretch;
  }
  .stats-grid .student-stat-card {
    grid-row: span 2;
    min-height: 100%;
  }
  .stats-grid article:not(.student-stat-card) {
    min-height: 214px;
  }
}

@media (max-width: 980px) {
  .landing-header { align-items: flex-start; flex-direction: column; }
  .landing-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .landing-hero, .intro-section, .enquiry-section, .contact-section { grid-template-columns: 1fr; }
  .hero-media, .hero-media img { min-height: 42vh; height: 42vh; }
  .why-grid, .stats-grid, .team-grid, .campus-grid, .achievement-grid, .tech-grid, .testimonial-grid, .birthday-grid, .contact-grid { grid-template-columns: 1fr; }
  .achievement-grid article.achievement-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }
  .achievement-grid article.achievement-card img {
    width: 86px;
    height: 104px;
  }
  .landing-footer { flex-direction: column; }
  .floating-actions { left: 12px; right: 12px; justify-content: center; }
  .floating-actions a { flex: 1; text-align: center; }
}

@media (max-width: 640px) {
  .landing-header {
    gap: 10px;
    min-height: auto;
    padding: 10px 14px;
  }
  .landing-brand {
    gap: 9px;
    font-size: 1rem;
  }
  .landing-brand img {
    width: 42px;
    height: 42px;
  }
  .landing-nav {
    gap: 8px;
    font-size: 0.82rem;
    scrollbar-width: none;
  }
  .landing-nav::-webkit-scrollbar {
    display: none;
  }
  .landing-nav a,
  .nav-cta,
  .main-site-link {
    padding: 8px 10px;
  }
  .landing-hero {
    min-height: auto;
    padding: 18px 14px 34px;
    gap: 22px;
  }
  .hero-media,
  .hero-media img {
    height: 250px;
    min-height: 250px;
    border-radius: 14px;
  }
  .hero-content {
    padding-bottom: 0;
  }
  h1 {
    font-size: clamp(2.35rem, 15vw, 3.45rem);
    line-height: 0.9;
  }
  .hero-content h2 {
    font-size: 1.18rem;
  }
  .hero-content p,
  .section p {
    font-size: 0.98rem;
    line-height: 1.62;
  }
  .hero-phone {
    margin: 16px 0;
    font-size: 1.55rem;
  }
  .hero-actions a {
    flex: 1 1 calc(50% - 8px);
    min-width: 132px;
    padding: 11px 12px;
  }
  .section {
    padding: 48px 14px;
  }
  .why-grid article,
  .stats-grid article,
  .tech-grid article,
  .testimonial-grid article,
  .contact-grid article,
  .campus-grid article,
  .achievement-grid article {
    padding: 18px;
  }
  .team-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas:
      "photo name"
      "photo role"
      "bio bio";
    gap: 12px 14px;
    align-items: center;
    padding: 14px;
  }
  .team-card img {
    grid-area: photo;
    width: 86px;
    height: 104px;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 8px;
  }
  .team-card strong {
    grid-area: name;
    align-self: end;
    margin: 0;
    font-size: 1rem;
  }
  .team-card span {
    grid-area: role;
    align-self: start;
  }
  .team-card small {
    grid-area: bio;
  }
  .team-card span,
  .team-card small {
    margin-top: 0;
    line-height: 1.42;
  }
  .stats-grid article strong {
    font-size: 2.35rem;
  }
  .student-growth-chart svg {
    min-height: 94px;
  }
  .growth-labels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .growth-labels b {
    font-size: 0.82rem;
  }
  .growth-labels small {
    font-size: 0.66rem;
  }
  .landing-form {
    padding: 18px;
  }
  .floating-actions {
    bottom: 10px;
    gap: 8px;
  }
  .floating-actions a {
    padding: 10px 8px;
    font-size: 0.86rem;
  }
}
