/* Base styles */

:root {
  --red: #e8382d;
  --red2: #c11f1f;
  --blue: #2452d9;
  --navy: #0b2a66;
  --ink: #172033;
  --muted: #667085;
  --line: #e7eaf0;
  --soft: #f4f6fa;
  --white: #fff;
  --shadow: 0 16px 50px rgba(17, 32, 62, .12);
  --radius: 16px;
  --pad: clamp(22px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eef1f6;
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overflow: clip preserves sticky descendants */
.site {
  width: 100%;
  max-width: 1440px;
  margin: auto;
  background: #fff;
  overflow-x: clip;
  min-height: 100vh;
}

.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1000;
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

.skip:focus {
  top: 16px;
}

/* ---- Nav ---- */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 22px var(--pad);
  color: #fff;
}

.brand {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 3.5px;
  font-weight: 600;
  opacity: .8;
}

.brand img {
  display: block;
  width: auto;
  height: 34px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 27px);
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  padding: 8px 0;
}

.nav-links a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transition: .2s;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  right: 0;
}

.nav-links a.active {
  color: #ff746d;
}

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

.lang {
  border: 1px solid rgba(255, 255, 255, .6);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s, background .18s;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f24d43, var(--red2));
  box-shadow: 0 7px 20px rgba(193, 31, 31, .33);
}

.btn-outline {
  color: var(--red);
  background: #fff;
  border: 1.5px solid var(--red);
  border-radius: 7px;
}

.btn-outline:hover {
  background: var(--red);
  color: #fff;
}

.menu-btn {
  display: none;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(0, 0, 0, .15);
  color: #fff;
  font-size: 22px;
}

/* ---- Hero ---- */
/* Clip the slide track, not the hero, to keep the fixed menu visible in WebKit */
.hero {
  height: 600px;
  position: relative;
  color: #fff;
  background: #17223e;
}

.hero-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.subhero {
  height: 420px;
}

.hero-media,
.hero-slide {
  background-position: center;
  background-size: cover;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform .85s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .hero-track {
    transition: none;
  }
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 28, .58), rgba(7, 13, 28, .24) 45%, rgba(7, 13, 28, .7));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 190px var(--pad) 0;
  max-width: 850px;
}

.subhero .hero-content {
  padding-top: 190px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ff8d87;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.2;
  margin: 14px 0 16px;
  font-weight: 900;
  letter-spacing: -.025em;
}

.subhero h1 {
  font-size: clamp(32px, 3.5vw, 46px);
}

.hero p {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  margin: 0;
  color: #e7eaf4;
  max-width: 720px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  border: 0;
  width: 8px;
  height: 5px;
  padding: 0;
  border-radius: 3px;
  background: #ffffff80;
}

.hero-dot.active {
  width: 26px;
  background: #fff;
}

.section {
  padding: 72px var(--pad);
}

.section.soft {
  background: var(--soft);
}

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

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

.kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
  margin: 8px 0 12px;
}

.section-head p,
.lede {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 22px;
  margin-top: 34px;
}

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
}

.feature h3 {
  font-size: 15px;
  margin: 0 0 5px;
}

.feature p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.form-card {
  background: linear-gradient(145deg, #2f61e8, #163da8);
  border-radius: 20px;
  padding: 38px;
  color: #fff;
  box-shadow: 0 18px 55px rgba(36, 82, 217, .25);
}

.form-card h2 {
  margin: 0 0 6px;
  font-size: 25px;
}

.form-card > p {
  color: #d9e2ff;
  margin: 0 0 24px;
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.tab {
  flex: 1;
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: #ffffff1b;
  color: #dce4ff;
}

.tab.active {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}

.field {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 14px 15px;
  margin-bottom: 13px;
  outline: none;
}

.field:focus {
  border-color: #aabdf9;
  box-shadow: 0 0 0 3px #ffffff45;
}

.field.invalid {
  border-color: #ff817a;
}

.status {
  font-size: 13px;
  min-height: 22px;
  color: #ffd1cd;
  margin: 0 0 6px;
}

.status.ok {
  color: #d5ffe3;
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.btn[disabled] {
  opacity: .65;
  cursor: default;
}

.btn-block {
  width: 100%;
  border-radius: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 24px rgba(18, 35, 73, .07);
  overflow: hidden;
  transition: .2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-img {
  height: 190px;
}

.card-body {
  padding: 24px;
}

.card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 18px;
}

.teacher-strip {
  background: #101c38;
  border-radius: 18px;
  padding: 40px;
  color: #fff;
  margin-top: 50px;
}

.teacher-strip h2 {
  margin-top: 0;
}

.teachers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.teacher {
  text-align: center;
}

.teacher img {
  aspect-ratio: 4/5;
  border: 3px solid var(--red);
  border-radius: 10px;
  object-position: top;
  background: #fff;
}

.teacher strong {
  display: block;
  font-size: 13px;
  margin-top: 10px;
}

.teacher span {
  font-size: 10px;
  color: #b8c3df;
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 45px;
  align-items: start;
}

.side-tabs {
  display: grid;
  gap: 7px;
  position: sticky;
  top: 18px;
}

.side-tab {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 13px 16px;
  border-radius: 9px;
}

.side-tab.active {
  background: #edf2ff;
  color: var(--blue);
  font-weight: 700;
  border-left: 3px solid var(--blue);
}

.side-tab em {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: #98a0b0;
  margin-left: 6px;
}

.overview-grid,
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.overview-photo,
.detail-photo {
  height: 270px;
  border-radius: 15px;
  overflow: hidden;
}

.subject-bar {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 14px;
  align-items: center;
  padding: 25px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 30px #15234a12;
  margin: 45px 0;
}

.subject {
  padding: 13px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 13px;
}

.subject b {
  color: var(--blue);
  font-size: 18px;
  margin-right: 8px;
}

.stack {
  display: grid;
  gap: 13px;
}

.stack-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 20px;
  background: #fafbfc;
  border-radius: 13px;
}

.stack-item h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.stack-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
  margin: 35px 0;
}

.stat {
  padding: 25px 16px;
  background: var(--soft);
  border-radius: 14px;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 30px;
}

.stat span {
  font-size: 12px;
  color: var(--muted);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.course {
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 22px #15234a12;
}

.course h3 {
  font-size: 16px;
  border-left: 3px solid var(--blue);
  padding-left: 12px;
  margin: 0 0 16px;
}

.course b {
  display: block;
  color: var(--red);
  font-size: 12px;
  margin-top: 12px;
}

.course p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 5px 0;
}

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

.offer {
  text-align: center;
}

.offer .icon {
  margin: 0 auto 13px;
}

.offer p {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.6;
}

.split-banner {
  position: relative;
  padding: 65px var(--pad);
  color: #fff;
  background: linear-gradient(100deg, #111f49, #233e78 55%, #bd2c2b);
}

.split-banner h2 {
  font-size: 31px;
  max-width: 650px;
  margin: 0 0 15px;
}

.split-banner p {
  max-width: 650px;
  color: #e4e8f4;
  line-height: 1.8;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  gap: 1px;
  border-radius: 12px;
  overflow: hidden;
}

.tag {
  background: #fff;
  padding: 17px;
  text-align: center;
  font-size: 14px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.faq {
  max-width: 900px;
  margin: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  border: 0;
  background: none;
  display: flex;
  justify-content: space-between;
  text-align: left;
  padding: 20px 4px;
  color: var(--ink);
}

.faq-q.active {
  color: var(--blue);
  font-weight: 700;
}

.faq-a {
  display: none;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  padding: 0 36px 20px 4px;
}

.faq-a.open {
  display: block;
}

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

.admit {
  padding: 22px;
  background: var(--soft);
  border-radius: 13px;
}

.admit .school {
  font-weight: 800;
  margin-bottom: 13px;
}

.admit p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.core {
  background: #fff;
  text-align: center;
  padding: 20px 12px;
  font-size: 14px;
  font-weight: 600;
}

.red-banner {
  background: linear-gradient(120deg, #731f24, var(--red));
  color: #fff;
  padding: 50px var(--pad);
  display: grid;
  grid-template-columns: 1fr 170px;
  align-items: center;
  gap: 35px;
}

.red-banner img {
  height: 185px;
  border-radius: 12px;
  object-position: top;
}

.red-banner h2 {
  margin: 0 0 12px;
}

.red-banner p {
  line-height: 1.8;
  margin: 0;
  color: #ffe5e3;
}

.quote {
  text-align: center;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.detail-list {
  display: grid;
  gap: 55px;
}

.detail-row:nth-child(even) .detail-copy {
  order: 2;
}

.detail-row h3 {
  font-size: 21px;
  margin: 0 0 6px;
}

.detail-row h4 {
  color: var(--blue);
  margin: 0 0 14px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.checks li:before {
  content: "✓";
  color: var(--blue);
  font-weight: 900;
  margin-right: 9px;
}

.banner-cta {
  padding: 58px var(--pad);
  text-align: center;
  color: #fff;
  background: repeating-linear-gradient(135deg, #431b21 0 22px, #54232a 22px 44px);
}

.banner-cta h2 {
  margin: 0 0 10px;
}

.banner-cta p {
  color: #f0d6dc;
  margin: 0 0 24px;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 50px var(--pad) 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.35fr;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid #ffffff1c;
}

.footer h3 {
  font-size: 14px;
  margin: 0 0 15px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li,
.footer a {
  font-size: 12.5px;
  color: #aebada;
  margin: 0 0 10px;
}

.contact-line {
  padding: 23px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff1c;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #aebada;
  font-size: 12.5px;
}

.copyright {
  text-align: center;
  color: #7384aa;
  font-size: 12px;
  padding: 20px;
}

.portal-link {
  border: 1px solid #ffffff55;
  border-radius: 7px;
  padding: 9px 15px;
  color: #fff !important;
}

.login-page {
  min-height: 100vh;
  max-width: 1440px;
  margin: auto;
  position: relative;
  background: url("../assets/campus.jpg") center/cover;
}

.login-page:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 13, 28, .83), rgba(7, 13, 28, .28));
}

.login-lang {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  top: 24px;
}

.login-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 70px var(--pad);
  display: grid;
  grid-template-columns: 1fr minmax(360px, 460px);
  gap: 60px;
  align-items: center;
  color: #fff;
}

.login-copy h1 {
  font-size: clamp(36px, 4vw, 54px);
  margin: 0 0 20px;
}

.login-copy p {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.login-card {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 38px;
  box-shadow: var(--shadow);
}

.login-choose h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.login-choose > p {
  margin: 0 0 22px;
  color: #69717f;
  font-size: 14px;
  line-height: 1.6;
}

.portal-btn {
  display: block;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}

.portal-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.portal-btn span {
  display: block;
  margin-top: 3px;
  color: #8b93a3;
  font-size: 12.5px;
}

a.portal-btn:hover {
  border-color: var(--blue);
  background: var(--soft);
  transform: translateY(-1px);
}

.portal-btn.is-pending {
  border-style: dashed;
  opacity: .6;
  cursor: not-allowed;
}

.portal-note {
  margin: 18px 0 0;
  color: #8b93a3;
  font-size: 12.5px;
  line-height: 1.6;
}

.login-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.login-tab {
  border: 0;
  background: none;
  padding: 0 2px 14px;
  color: #8b93a3;
}

.login-tab.active {
  color: var(--blue);
  font-weight: 700;
  border-bottom: 2px solid var(--blue);
}

.login-card .field {
  background: var(--soft);
}

.login-help {
  text-align: right;
  margin: -2px 0 18px;
}

.login-help a {
  font-size: 13px;
  color: var(--blue);
}

.back {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #8b93a3;
}

.login-status {
  color: var(--red);
  font-size: 13px;
  min-height: 22px;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #13203e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: .25s;
  pointer-events: none;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- Responsive ---- */
@media (max-width: 1050px) {
  .nav {
    grid-template-columns: auto auto;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #0b234f;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    /* safe center keeps overflowing menu links reachable */
    justify-content: safe center;
    padding: 80px var(--pad);
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 22px;
  }

  .nav-actions {
    justify-self: end;
  }

  .nav-actions > .btn {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    max-width: 620px;
  }

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

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

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

@media (max-width: 760px) {
  .hero {
    height: 560px;
  }

  .subhero {
    height: 400px;
  }

  .hero-content,
  .subhero .hero-content {
    padding-top: 175px;
  }

  .nav {
    padding-top: 16px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .feature-list,
  .overview-grid,
  .detail-row,
  .course-grid,
  .login-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar-layout {
    grid-template-columns: 1fr;
  }

  .side-tabs {
    position: static;
    display: flex;
    overflow: auto;
    padding-bottom: 7px;
    scrollbar-width: none;
  }

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

  .side-tab {
    white-space: nowrap;
  }

  .subject-bar {
    grid-template-columns: 1fr;
  }

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

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

  .cards {
    grid-template-columns: 1fr;
  }

  .detail-row:nth-child(even) .detail-copy {
    order: initial;
  }

  .red-banner {
    grid-template-columns: 1fr;
  }

  .red-banner img {
    display: none;
  }

  .login-wrap {
    padding-top: 115px;
    gap: 20px;
  }

  .login-copy {
    text-align: center;
  }

  .login-copy p {
    font-size: 17px;
  }

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

  .footer-grid > div:last-child {
    grid-column: 1/-1;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 6px;
  }

  .lang {
    padding: 6px 9px;
  }

  .feature-list,
  .stats,
  .admit-grid,
  .core-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-top {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }

  .form-card,
  .login-card {
    padding: 28px 22px;
  }

  .login-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ---- Re-skin ---- */

/* --bleed-* sets the offset to the page edge */
:root {
  --sec-pad: max(6vw, 70px);
  --section-join: 56px;
  --bleed-l: 0px;
  --bleed-r: 0px;
}

#academicPanel {
  --bleed-l: calc(225px + var(--sec-pad));
  --bleed-r: var(--sec-pad);
}

.bleed-host {
  --bleed-l: var(--sec-pad);
  --bleed-r: var(--sec-pad);
}

.section.bleed-host {
  padding-bottom: 0;
}

.proof-left h2 em {
  font-style: normal;
  color: #e11b22;
}

.proof-head {
  color: #bcd0f5;
  font-size: 11px;
  border-bottom-color: rgba(255, 255, 255, .3) !important;
}

.proof-head b {
  background: #ad3f43 !important;
  color: #fff;
}

body {
  background: #f5f5f5;
  color: #20242c;
}

.site {
  background: #fff;
  box-shadow: 0 0 50px rgba(15, 35, 75, .08);
}

.nav {
  height: 72px;
  padding: 0 max(42px, 5vw);
  background: rgba(18, 25, 35, .38);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  gap: 38px;
}

@media (min-width: 1240px) {
  .nav {
    padding-right: calc(max(42px, 5vw) - 32px);
  }
}

.brand {
  line-height: 1;
  color: #fff !important;
}

.brand span {
  font-size: 16px;
  font-weight: 500;
  margin-left: 7px;
}

.brand small {
  margin-top: 3px;
}

.nav-links {
  gap: clamp(18px, 2.2vw, 36px);
}

.nav-links a {
  font-size: 14px;
  padding: 25px 0 22px;
}

.nav-links a:after {
  height: 3px;
  bottom: 13px;
  border-radius: 2px;
}

.nav-links a.active {
  color: #ff312f;
}

.nav-actions .btn {
  border-radius: 9px;
  padding: 11px 21px;
  background: #ff2828;
  box-shadow: none;
  font-size: 13px;
}

.hero,
.subhero {
  height: 545px;
  border-radius: 0 0 22px 22px;
}

.hero:after {
  background: linear-gradient(180deg, rgba(12, 18, 25, .58), rgba(12, 18, 25, .46));
}

.hero:after,
.hero-media {
  border-radius: inherit;
}

.hero:before,
.teacher-stage:after,
.contact-vision:after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: clamp(38px, 4vw, 48px);
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .42));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%);
  mask-image: linear-gradient(to bottom, transparent, #000 60%);
}

.hero-media,
.hero-slide {
  background-position: center 56%;
}

.hero-content,
.subhero .hero-content {
  padding: 205px var(--pad) 0;
  margin: auto;
  max-width: 1000px;
  text-align: center;
}

.hero-content .eyebrow {
  display: none;
}

.hero h1,
.subhero h1 {
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: .01em;
  margin: 0 0 17px;
}

.hero p {
  margin: auto;
  font-size: clamp(18px, 1.8vw, 25px);
  color: #fff;
}

.section {
  padding: 76px max(6vw, 70px);
}

.section:not(.soft):has(+ .section:not(.soft)) {
  padding-bottom: var(--section-join);
}

.section:not(.soft) + .section:not(.soft) {
  padding-top: var(--section-join);
}

.section-head {
  margin-bottom: 46px;
}

.section-head h2 {
  font-size: 34px;
}

.section-head p {
  font-size: 15px;
}

.section.soft {
  background: #f7f7f8;
  border-radius: 22px;
}

.kicker {
  display: none;
}

.btn-primary {
  background: #ff2828;
  box-shadow: none;
}

.contact-grid {
  gap: 90px;
}

.contact-grid > div > h2 {
  color: var(--ink);
  font-size: 33px;
  line-height: 1.35;
}

.contact-grid > div > h2 em {
  font-style: normal;
  color: #1a5fd0;
}

.contact-grid .lede {
  max-width: 620px;
}

.feature .icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-card {
  background: #194d85;
  border-radius: 20px;
  padding: 36px;
  box-shadow: none;
}

.form-card .form-sub {
  margin-bottom: 22px;
}

/* Match the specificity of .form-card > p */
.form-card .form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 18px 0 0;
  font-size: 12px;
  color: #a9c0e6;
}

.form-privacy .ci {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #a9c0e6;
}

.form-card .tab {
  background: #fff;
  color: #657187;
  border: 1px solid #dbe3f2;
}

.form-card .tab.active {
  color: #194d85;
  box-shadow: inset 0 -3px #194d85;
}

.form-card .field {
  border-radius: 8px;
  padding: 16px 17px;
  margin-bottom: 12px;
}

.form-card .status {
  min-height: 0;
  margin: 0;
}

.form-card .status:not(:empty) {
  margin: 4px 0 12px;
}

.form-card .btn-block {
  margin-top: 6px;
}

.cards {
  gap: 30px;
}

.card {
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(30, 50, 80, .07);
}

.card-img {
  height: 205px;
}

.card-body {
  padding: 23px 24px 28px;
}

.card h3 {
  font-size: 19px;
}

.card p {
  min-height: 72px;
}

.card .btn {
  border-radius: 8px;
  min-width: 130px;
  padding: 9px 20px;
}

.sidebar-layout {
  grid-template-columns: 175px 1fr;
  gap: 50px;
}

.side-tabs {
  top: 25px;
  border-right: 1px solid #d9dce3;
  padding-right: 18px;
}

.side-tab {
  border-radius: 0;
  padding: 16px 12px;
  font-size: 16px;
}

.side-tab.active {
  background: transparent;
  color: #ff2f2f;
  border-left: 0;
}

.side-tab.active:after {
  content: "›";
  float: right;
}

.overview-grid {
  gap: 0;
  background: #fff;
}

.overview-grid > div:first-child {
  padding: 52px 58px;
  background: linear-gradient(120deg, #fff 0, #fff 72%, rgba(255, 255, 255, 0) 100%);
  position: relative;
  z-index: 2;
}

.overview-grid h2 {
  color: #0d4bb4;
  font-size: 29px;
}

.overview-photo {
  height: 340px;
  border-radius: 0;
}

.subject-bar {
  grid-template-columns: 170px repeat(3, 1fr);
  padding: 30px 32px;
  margin: 0 0 36px;
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}

.subject-bar > strong {
  color: #0d4bb4;
  font-size: 25px;
}

.subject {
  background: #fff;
  border-left: 1px solid #dfe5ef;
  border-radius: 0;
  padding: 8px 18px;
}

.subject b {
  display: block;
  margin: 0 0 6px;
  color: #1763f5;
}

.stack {
  padding: 38px 58px;
  background: #fafafa;
  border-radius: 0 0 20px 20px;
}

.stack-item {
  background: transparent;
  border-bottom: 1px solid #e4e6eb;
  border-radius: 0;
  padding: 23px 8px;
}

.stack-item:last-child {
  border: 0;
}

.stack-item .icon {
  background: transparent;
  border: 0;
  color: #6290e5;
  font-size: 29px;
}

/* ---- Faculty stage ---- */
.teacher-stage {
  position: relative;
  container-type: inline-size;
  margin: 0 calc(var(--bleed-r) * -1) 0 calc(var(--bleed-l) * -1);
  padding: 0;
  aspect-ratio: 1920/1056;
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  background: #0d1620;
}

/* --parallax is set by the scroll handler */
.teacher-stage:before {
  content: "";
  position: absolute;
  inset: -13% 0;
  z-index: 0;
  background: linear-gradient(rgba(8, 14, 22, .2), rgba(8, 14, 22, .34)), url("../assets/library.jpg") center/cover;
  transform: translate3d(0, var(--parallax, 0), 0);
  will-change: transform;
}

.teacher-stage-copy {
  position: absolute;
  left: 50%;
  top: 17%;
  transform: translateX(-50%);
  width: min(72cqw, 900px);
  text-align: center;
  z-index: 3;
}

.teacher-stage-copy p {
  margin: 0;
  font-size: clamp(13px, 1.56cqw, 26px);
  line-height: 1.72;
  font-weight: 500;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.teacher-stage-copy h2 {
  margin: 5.9cqw 0 0;
  font-size: clamp(28px, 3.75cqw, 62px);
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .55);
}

.teacher-more {
  display: inline-flex;
  margin-top: 2.7cqw;
  padding: .72cqw 1.7cqw;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  color: #fff !important;
  font-size: clamp(12px, 1.15cqw, 20px);
  line-height: 1.5;
  transition: background .2s, border-color .2s;
}

.teacher-more:hover {
  background: rgba(255, 255, 255, .18);
  border-color: #fff;
}

/* ---- Faculty animation ---- */
.teacher-rain {
  --fade: 9%;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}

.rain-card {
  --travel: 78cqw;
  left: var(--x);
  top: -19cqw;
  animation: rain-drop var(--dur, 120s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

/* Reset at the animation boundary to avoid an interpolated return */
@keyframes rain-drop {
  0% { transform: translate3d(0, 0, 0); }
  13% { transform: translate3d(0, var(--travel), 0); }
  100% { transform: translate3d(0, var(--travel), 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rain-card {
    animation: none;
    top: auto;
  }

  .rain-card:nth-child(n + 5) {
    display: none;
  }

  .rain-card:nth-child(1) { top: 12%; }
  .rain-card:nth-child(2) { top: 34%; }
  .rain-card:nth-child(3) { top: 56%; }
  .rain-card:nth-child(4) { top: 24%; }
}

.featured-teacher {
  position: absolute;
  width: 13.65cqw;
  aspect-ratio: 262/330;
  border-radius: clamp(9px, 1.05cqw, 20px);
  background: linear-gradient(152deg, #d8232c 0%, #c11c25 46%, #8b1120 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  color: #fff;
}

.featured-teacher .teacher-photo {
  position: absolute;
  left: 0;
  right: 0;
  top: -10.9%;
  bottom: 31.5%;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  overflow: hidden;
}

.featured-teacher .teacher-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.featured-teacher .teacher-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 46%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 13% 2.5% 6%;
  border-radius: 0 0 clamp(9px, 1.05cqw, 20px) clamp(9px, 1.05cqw, 20px);
  background: linear-gradient(180deg, rgba(9, 22, 50, 0), rgba(9, 22, 50, .68) 40%, rgba(11, 27, 60, .95) 72%, rgba(12, 29, 64, .99));
}

.featured-teacher strong {
  display: block;
  padding-left: 5%;
  font-size: clamp(14px, 1.77cqw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
}

.featured-teacher span {
  display: block;
  margin-top: .45cqw;
  text-align: center;
  font-size: clamp(9px, .94cqw, 16px);
  line-height: 1.35;
  color: #eef2fb;
}


.results-showcase {
  padding: 70px 0 20px;
}

.result-tabs {
  display: flex;
  justify-content: center;
  margin: 25px 0 20px;
}

.result-tabs button {
  border: 0;
  background: #f6f6f6;
  padding: 13px 35px;
  color: #888;
}

.result-tabs button.active {
  color: #ff2f2f;
  background: #fff;
  outline: 1px solid #f3a5a5;
  outline-offset: -1px;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 28px;
}

.score-row div {
  text-align: center;
  border-right: 1px solid #dfe3ea;
}

.score-row div:last-child {
  border: 0;
}

.score-row strong {
  display: block;
  color: #1763f5;
  font-size: 29px;
}

.score-row span {
  font-size: 12px;
}

.award-board {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 7px 25px rgba(20, 42, 80, .08);
}

.award-board > div:first-child {
  background: linear-gradient(135deg, #0b43bd, #0b2c79);
  color: #fff;
  padding: 36px;
}

.award-board h3 {
  font-size: 21px;
}

.award-board p {
  font-size: 13px;
  line-height: 1.7;
  color: #dce8ff;
}

.award-board .btn {
  font-size: 11px;
  padding: 8px 14px;
}

.mini-certs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 25px;
}

.mini-certs span {
  min-height: 72px;
  border: 3px solid #ff3838;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #8993a6;
  font-size: 8px;
}

.proof-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  margin: 52px calc(var(--bleed-r) * -1) 0 calc(var(--bleed-l) * -1);
}

.proof-left {
  padding: 55px max(6vw, 70px);
  background: #fff;
}

.proof-left h2 {
  font-size: 29px;
}

.proof-left > p {
  font-size: 12px;
  color: #777;
  margin-bottom: 30px;
}

.proof-stat {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e7e8eb;
}

.proof-stat strong {
  font-size: 31px;
  color: #e63333;
}

.proof-stat span {
  font-size: 12px;
  color: #606873;
}

.proof-table {
  padding: 36px 48px;
  background: #063ea8;
  color: #fff;
  border-radius: 20px;
}

.proof-table h3 {
  text-align: center;
  margin: 0 0 20px;
  font-size: 26px;
}

.proof-table > div {
  display: grid;
  grid-template-columns: 1fr 116px 152px;
  align-items: center;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .17);
}

.proof-table > div > * {
  padding: 11px 12px;
}

.proof-table .proof-head {
  font-size: 13.5px;
}

.proof-table b {
  background: #bf4a4c;
  text-align: center;
  border-radius: 9px;
  margin: 4px 0;
}

.school-logo {
  display: inline-block;
  height: 32px;
  width: auto;
  max-width: 66px;
  object-fit: contain;
  vertical-align: -10px;
  margin-right: 10px;
  padding: 3px 4px;
  border-radius: 4px;
  background: #fff;
}

.consult-section {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 50px;
  margin: 0 calc(var(--bleed-r) * -1) 0 calc(var(--bleed-l) * -1);
  padding: 55px var(--sec-pad);
  background: #fff;
}

.consult-copy h2 {
  color: var(--ink);
  font-size: 29px;
  line-height: 1.35;
}

.consult-copy h2 em {
  font-style: normal;
  color: #1a5fd0;
}

.consult-copy > p {
  font-size: 13px;
  color: #777;
  max-width: 650px;
  line-height: 1.8;
}

.consult-points,
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 26px;
  max-width: 780px;
}

.consult-point,
.feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 20px 0;
}

.consult-point:nth-child(odd),
.feature:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.consult-point:nth-child(even),
.feature:nth-child(even) {
  padding-left: 28px;
}

.consult-point:nth-child(-n + 2),
.feature:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.consult-point-icon,
.feature .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #e9f0fd;
  color: #1a5fd0;
}

.consult-point-icon svg {
  width: 21px;
  height: 21px;
}

.consult-point b,
.feature b {
  display: block;
  font-size: 19px;
  line-height: 1.1;
  color: #1a5fd0;
}

.consult-point h3,
.feature h3 {
  margin: 5px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.consult-point p,
.feature p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #5b6470;
}

.consult-card {
  background: #194d85;
  color: #fff;
  border-radius: 18px;
  padding: 32px;
}

.consult-card h3 {
  font-size: 22px;
  margin: 0 0 6px;
}

.consult-card > p {
  font-size: 12px;
  color: #c5d8ef;
}

.consult-card .field {
  border-radius: 6px;
  padding: 12px;
}

.consult-card .btn,
.form-card .btn {
  border-radius: 6px;
  padding: 12px;
}

.consult-card .btn:after,
.form-card .btn:after {
  content: "→";
  font-size: 15px;
}

.split-banner {
  background: linear-gradient(105deg, #fff 0, #fff 45%, rgba(255, 255, 255, .2) 70%), url("../assets/hero-3.jpg") right/cover;
  color: #0b469f;
  border-bottom: 12px solid #103a7e;
}

.split-banner p {
  color: #525b67;
}

.split-banner h2 {
  font-size: 36px;
}

.tag-grid {
  border-radius: 0;
}

.cert-grid {
  grid-template-columns: repeat(7, 1fr);
}

.red-banner {
  background: linear-gradient(95deg, #f12027, #b01821);
  border-radius: 0 0 18px 18px;
}

.detail-list {
  gap: 85px;
}

.detail-row {
  gap: 70px;
}

.detail-photo {
  height: 280px;
  border-radius: 15px;
}

.detail-row h3 {
  font-size: 28px;
}

.detail-row h4 {
  font-size: 13px;
}

.checks li {
  line-height: 2.2;
}

.footer {
  background: #073b9e;
  padding-top: 48px;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding-bottom: 32px;
}

.footer-grid {
  gap: 50px;
}

.footer h3 {
  font-size: 16px;
}

.footer li,
.footer a {
  font-size: 12px;
  color: #cad8f7;
}

.contact-details {
  max-width: 950px;
  line-height: 1.7;
}

.login-page {
  background-image: url("../assets/login-campus.jpg");
}

.login-page:before {
  background: rgba(9, 14, 22, .62);
}

.login-wrap {
  grid-template-columns: 1fr 620px;
}

.login-copy h1 {
  font-size: 58px;
}

.login-card {
  padding: 58px 52px;
}

.login-tabs {
  gap: 60px;
}

.login-tab {
  font-size: 21px;
  padding-bottom: 22px;
}

.login-card .field {
  padding: 18px;
  background: #fafafa;
  border-radius: 0;
}

.login-card .btn {
  border-radius: 8px;
  padding: 17px;
  font-size: 18px;
}

.teacher-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #063ea8;
  color: #fff;
  padding: 42px max(6vw, 70px);
}

.teacher-values div {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .25);
}

.teacher-values div:last-child {
  border: 0;
}

.teacher-values strong {
  display: block;
  font-size: 37px;
}

.teacher-values span {
  font-size: 12px;
  color: #bfd0f3;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px 28px;
}

.resource-card {
  background: #fff;
}

.resource-image {
  height: 205px;
  border-radius: 12px;
  overflow: hidden;
}

.resource-card h3 {
  font-size: 18px;
  margin: 16px 0 6px;
}

.resource-card p {
  font-size: 12px;
  color: #777;
  line-height: 1.7;
  min-height: 42px;
}

.resource-card button {
  border: 0;
  background: none;
  color: #ff2f2f;
  padding: 0;
  font-size: 13px;
}

.contact-page {
  padding-left: 10vw;
  padding-right: 10vw;
}

.campus-block {
  margin-bottom: 72px;
}

.campus-block:last-child {
  margin-bottom: 0;
}

.campus-block > h2 {
  font-size: 29px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d8dbe2;
}

.campus-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 70px;
  align-items: center;
  padding: 34px 70px;
}

.campus-details p {
  color: #687181;
  line-height: 1.6;
}

.campus-details .campus-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.campus-contact-row .ci {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.qr-row,
.qr-labels {
  display: grid;
  grid-template-columns: repeat(2, 104px);
  gap: 26px;
}

.qr-row {
  margin-top: 35px;
}

.fake-qr {
  width: 104px;
  height: 104px;
  background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0/12px 12px;
  border: 8px solid #fff;
  outline: 1px solid #ddd;
}

.qr-code {
  width: 104px;
  height: 104px;
  padding: 8px;
  background: #fff;
  outline: 1px solid #ddd;
  object-fit: contain;
}

.qr-labels {
  margin-top: 8px;
  color: #777;
  font-size: 12px;
  text-align: center;
}

.map-card {
  height: 260px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background-color: #eef3f6;
  background-image: linear-gradient(25deg, transparent 45%, #c8d5dd 46% 48%, transparent 49%), linear-gradient(155deg, transparent 45%, #c8d5dd 46% 48%, transparent 49%), linear-gradient(90deg, transparent 49%, #d7e2e7 50% 52%, transparent 53%);
  background-size: 80px 80px, 100px 100px, 55px 55px;
}

.map-card iframe {
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card.has-google-map iframe {
  display: block;
}

.map-card.map-live .map-fallback {
  display: none;
}

.map-canvas {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #eef3f6;
}

.map-card.map-osm .map-canvas {
  display: block;
}

.map-canvas .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

.map-card .map-open {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px rgba(20, 40, 80, .18);
  color: #1763f5;
  font-size: 12px;
  white-space: nowrap;
}

.map-card .map-open:hover {
  background: #fff;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(238, 243, 246, .78);
  backdrop-filter: blur(2px);
}

.map-fallback .map-pin {
  position: relative;
  left: auto;
  top: auto;
  margin: 0 0 20px;
}

.map-fallback strong {
  font-size: 18px;
}

.map-fallback small {
  position: static;
  margin: 8px 20px 0;
  background: #fff;
  padding: 7px 11px;
  border-radius: 6px;
  color: #69717f;
}

.map-pin {
  position: absolute;
  left: 54%;
  top: 42%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #ff2b2b;
  color: #fff;
  font-size: 14px;
}

.map-pin::first-letter {
  transform: rotate(45deg);
}

.contact-vision {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(4, 30, 52, .67), rgba(4, 30, 52, .67)), url("../assets/campus-hero.jpg") center/cover;
  border-radius: 0 0 22px 22px;
}

.contact-vision p,
.contact-vision h2 {
  font-size: 27px;
  margin: 7px;
}

.contact-vision .btn {
  margin-top: 20px;
}

/* ---- Faculty roster ---- */
.roster {
  position: relative;
  --dots-gap: 30px;
  --dots-size: 9px;
  --arrow-gap: clamp(10px, 1.2vw, 18px);
}

.roster-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 26px;
}

/* Override display for hidden roster pages */
.roster-page[hidden] {
  display: none;
}

.roster-card {
  --poke: 30px;
  padding: calc(var(--poke) + 10px) 16px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 40, 80, .10);
}

/* Clip sides and bottom without clipping the portrait above the card */
.roster-photo {
  position: relative;
  aspect-ratio: 262/330;
  border-radius: 14px;
  background: linear-gradient(152deg, #d8232c 0%, #c11c25 46%, #8b1120 100%);
  clip-path: inset(calc(-1 * var(--poke) - 4px) 0 0 0 round 14px);
}

.roster-photo img {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% + var(--poke));
  object-fit: cover;
  object-position: center top;
}

.roster-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 20px 18px;
  background: linear-gradient(180deg, rgba(9, 22, 50, 0), rgba(9, 22, 50, .68) 42%, rgba(11, 27, 60, .95) 74%, rgba(12, 29, 64, .99));
  color: #fff;
}

.roster-name strong {
  display: block;
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}

.roster-name span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #eef2fb;
}


.roster-points {
  margin: 16px 0 0;
  color: #69717f;
  font-size: 12.5px;
  line-height: 1.85;

  list-style: disc;
  padding-left: 18px;

}




.roster-arrow {
  position: absolute;
  z-index: 3;
  top: calc(50% - (var(--dots-gap) + var(--dots-size)) / 2);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #e3e6ec;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(20, 40, 80, .14);
  color: #12377f;
  font-size: 24px;
  line-height: 1;
  transition: opacity .2s, background .2s;
}

.roster-arrow:hover {
  background: #f3f6fb;
}

.roster-arrow[disabled] {
  opacity: .35;
  pointer-events: none;
}

.roster-prev {
  right: calc(100% + var(--arrow-gap));
}

.roster-next {
  left: calc(100% + var(--arrow-gap));
}

.roster-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: var(--dots-gap);
}

.roster-dot {
  width: var(--dots-size);
  height: var(--dots-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d3d8e2;
  transition: background .2s, width .2s;
}

.roster-dot.active {
  width: 26px;
  border-radius: 5px;
  background: #e11b22;
}

/* ---- Teachers growth path ---- */
.growth-lede {
  margin: -22px 0 8px;
  color: #e11b22;
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 600;
  text-align: center;
}

/* --p: rail progress (0-1); --lift: active stop index */
.growth-path {
  --p: 1;
  --lift: 2;
  display: grid;
  grid-template-columns: minmax(170px, 27%) 46px minmax(0, 1fr);
  align-items: start;
  max-width: 780px;
  margin: 0 auto;
}

.growth-stage {
  position: sticky;
  top: 32vh;
  align-self: start;
  display: grid;
  justify-items: center;
  color: #12377f;
}

.growth-orb {
  position: relative;
  width: clamp(120px, 13vw, 176px);
  aspect-ratio: 25 / 21;
  margin-bottom: -4px;
}

.growth-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(.82) translateY(9px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.22, .9, .3, 1);
}

.growth-icon.on {
  opacity: 1;
  transform: none;
}

.growth-plinth {
  position: relative;
  width: clamp(104px, 11vw, 152px);
  height: calc(20px + var(--lift) * 11px);
  border-radius: 50% / 26% 26% 30% 30%;
  border-bottom: 3px solid #1a4bb8;
  background: linear-gradient(170deg, #f6f8fc, #e3e9f4);
  box-shadow: inset 0 4px 0 -2px #eef2f9;
  transition: height .45s cubic-bezier(.22, .9, .3, 1);
}

.growth-plinth:after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e11b22;
}

.growth-rail {
  position: relative;
  align-self: stretch;
  justify-self: center;
  width: 3px;
  background: #dde4f1;
  border-radius: 2px;
}

.growth-line {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--p) * 100%);
  border-radius: 2px;
  background: #e11b22;
}

.growth-line:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #e11b22;
}

.growth-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.growth-step {
  display: flex;
  align-items: center;
  gap: .6em;
  min-height: 27vh;
  color: #12377f;
  font-size: clamp(15px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 1.35;
}

.growth-armed .growth-step {
  opacity: .32;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, .9, .3, 1);
}

.growth-armed .growth-step.lit {
  opacity: 1;
  transform: none;
}

.growth-step-icon {
  display: none;
}

.growth-step b {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border: 1.5px solid #c8d4ec;
  border-bottom-color: #e11b22;
  border-radius: 50%;
  font-weight: 600;
  transition: border-color .4s ease, background .4s ease;
}

.growth-step.lit b {
  border-color: #1a4bb8;
  border-bottom-color: #e11b22;
  background: #fff;
}

.growth-step b:after {
  content: "";
  position: absolute;
  top: .12em;
  right: .14em;
  width: .32em;
  height: .32em;
  border-radius: 50%;
  background: #e11b22;
}

@media (max-width: 860px) {
  .growth-path {
    grid-template-columns: minmax(0, 1fr) 26px;
    column-gap: 10px;
  }

  .growth-stage {
    display: none;
  }

  /* Keep the rail and steps on the same grid row */
  .growth-steps {
    grid-column: 1;
    grid-row: 1;
  }

  .growth-rail {
    grid-column: 2;
    grid-row: 1;
  }

  .growth-step-icon {
    display: block;
    flex: none;
    width: 54px;
    height: auto;
    color: #12377f;
  }

  .growth-step {
    min-height: 128px;
    font-size: 16px;
  }

  .growth-step b {
    width: 2.1em;
    height: 2.1em;
  }

  .growth-armed .growth-step {
    opacity: 1;
    transform: none;
    filter: grayscale(1) opacity(.5);
    transition: filter .45s ease;
  }

  .growth-armed .growth-step.now {
    filter: none;
  }
}

.growth-path:not(.growth-armed) .growth-stage {
  position: static;
  align-self: stretch;
}

.growth-path:not(.growth-armed) .growth-orb {
  position: static;
  display: grid;
  gap: 6vh;
  width: 100%;
  aspect-ratio: auto;
}

.growth-path:not(.growth-armed) .growth-icon {
  position: static;
  justify-self: center;
  width: clamp(92px, 11vw, 146px);
  height: auto;
  opacity: 1;
  transform: none;
}

.growth-path:not(.growth-armed) .growth-plinth {
  display: none;
}

/* ---- University advisor ---- */
.red-banner {
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-top: 72px;
  padding: 52px max(6vw, 70px);
  border-radius: 0;
  grid-template-columns: 1fr clamp(190px, 20vw, 280px);
  align-items: end;
  background: linear-gradient(100deg, #bd5359 0%, #a7474e 46%, #76363e 100%);
}

.red-banner-copy {
  padding-bottom: 8px;
}

.red-banner-copy h2 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.red-banner-copy p {
  max-width: 640px;
  font-size: 14px;
}

.banner-figure {
  position: relative;
  align-self: stretch;
  min-height: 196px;
}

.red-banner img {
  position: absolute;
  right: 0;
  bottom: -52px;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 0;
  object-fit: contain;
  z-index: 2;
}

.banner-tag {
  position: absolute;
  z-index: 1;
  right: 100%;
  margin-right: -16px;
  bottom: 24px;
  writing-mode: horizontal-tb;
  background: linear-gradient(90deg, #2d5ad0, #12245e);
  color: #fff;
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.admit-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  margin: 0 calc(max(6vw, 70px) * -1);
  padding: 8px max(6vw, 70px) 22px;
  scrollbar-width: none;
}

.admit-grid::-webkit-scrollbar {
  display: none;
}

.admit {
  flex: 0 0 clamp(240px, 22vw, 300px);
  scroll-snap-align: center;
  padding: 28px 26px 20px;
  border: 1px solid #ecedf1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 40, 80, .07);
  text-align: center;
}

.admit .crest {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(150deg, #153f8c, #0a2354);
  color: #fff;
}

.admit .crest span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 0 5px;
  line-height: 1.3;
  text-align: center;
}

.admit .crest-logo {
  display: block;
  width: 100%;
  max-width: 176px;
  height: 84px;
  background: none;
  border: 0;
  border-radius: 0;
}

.admit .crest-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admit-label {
  font-size: 12px;
  color: #1763f5;
}

.admit .school {
  margin: 6px 0 20px;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 800;
  color: #e11b22;
}

.admit-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #eef0f4;
  text-align: center;
}

.admit-row span {
  flex: 0 0 auto;
  font-size: 11px;
  color: #9aa1af;
}

.admit-row b {
  font-size: 13px;
  font-weight: 500;
  color: #3d454f;
}

/* ---- Horizontal scroll rail ---- */
.hscroll {
  position: relative;
}

.hscroll-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--sec-pad);
  margin: 0 calc(var(--sec-pad) * -1);
  padding: 8px var(--sec-pad) 24px;
  scrollbar-width: none;
}

.hscroll-track::-webkit-scrollbar {
  display: none;
}

.hscroll-track > * {
  scroll-snap-align: start;
}

.hscroll-arrow {
  position: absolute;
  z-index: 3;
  top: calc(50% - 35px);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #e3e6ec;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(20, 40, 80, .14);
  color: #12377f;
  font-size: 24px;
  line-height: 1;
  transition: opacity .2s, background .2s;
}

.hscroll-arrow:hover {
  background: #f3f6fb;
}

.hscroll-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

.hscroll-prev {
  left: -23px;
}

.hscroll-next {
  right: -23px;
}

.rail-more {
  margin-top: 6px;
  text-align: center;
}

.result-panel[hidden] {
  display: none;
}

.score-rail .hscroll-track {
  justify-content: center;
  gap: clamp(10px, 1.35vw, 20px);
  margin-inline: 0;
  padding-inline: 0;
}

.score {
  flex: 1 1 0;
  min-width: 0;
  max-width: 210px;
  padding-inline: clamp(4px, .5vw, 8px);
  text-align: center;
  border-right: 1px solid #dfe3ea;
}

.score:last-child {
  border-right: 0;
}

.score strong {
  display: block;
  color: #1763f5;
  font-size: 29px;
  line-height: 1.2;
}

.score span {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(10.5px, .82vw, 11.5px);
  line-height: 1.4;
  color: #5a6270;
}

@media (max-width: 900px) {
  .score-rail .hscroll-track {
    justify-content: flex-start;
    margin: 0 calc(var(--sec-pad) * -1);
    padding-inline: var(--sec-pad);
  }

  .score-rail .score {
    flex: 0 0 172px;
    min-width: 172px;
  }
}

.mini-certs.portrait {
  grid-template-columns: repeat(8, 1fr);
}

.mini-certs.portrait span {
  aspect-ratio: 3/4;
  min-height: 0;
}

.mini-certs.landscape {
  grid-template-columns: repeat(5, 1fr);
}

.mini-certs.landscape span {
  aspect-ratio: 4/3;
  min-height: 0;
}

/* ---- Private school banner ---- */
.split-banner {
  position: relative;
  overflow: hidden;
  padding: 80px max(6vw, 70px) 104px;
  border-bottom: 0;
  background: linear-gradient(100deg, #fcfdfe 0%, #fcfdfe 40%, rgba(252, 253, 254, .72) 62%, rgba(252, 253, 254, 0) 92%), url("../assets/hero-3.jpg") right center/cover;
}

.split-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.split-banner h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: #12377f;
  letter-spacing: .01em;
}

.split-banner h2 em {
  font-style: normal;
  color: #e11b22;
}

.split-rule {
  display: block;
  position: relative;
  width: min(430px, 80%);
  height: 1px;
  margin: 26px 0 22px;
  background: linear-gradient(90deg, #b9c6de, rgba(185, 198, 222, 0));
}

.split-rule:before {
  content: "";
  position: absolute;
  left: -4px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12377f;
}

.split-banner p {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.9;
  color: #4b5462;
}

.split-banner:before,
.split-banner:after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.split-banner:before {
  left: -6%;
  right: -6%;
  bottom: -38px;
  height: 78px;
  border-radius: 50% 50% 0 0/100% 100% 0 0;
  background: #12377f;
}

.split-banner:after {
  right: -5%;
  bottom: -34px;
  width: 26%;
  height: 88px;
  transform: rotate(-5deg);
  border-radius: 70px 0 0 0;
  background: linear-gradient(100deg, #c8161f, #8f0f16);
}

@media (max-width: 1050px) {
  .nav {
    height: 64px;
    padding: 0 24px;
  }

  .nav-links a {
    padding: 14px 0;
  }

  .nav-links a:after {
    bottom: 4px;
  }

  .hero,
  .subhero {
    height: 470px;
  }

  .proof-section {
    grid-template-columns: 1fr;
  }

  .campus-content {
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
    padding: 24px 0;
    gap: 32px;
  }

  .consult-section {
    grid-template-columns: 1fr;
  }

  .roster-page {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-wrap {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin-inline: auto;
  }

  .login-copy {
    text-align: center;
  }
}

@media (max-width: 760px) {
  :root {
    --sec-pad: 24px;
    --section-space: 52px;
    --section-join: 40px;
    --block-space: 56px;
  }

  #academicPanel {
    --bleed-l: var(--sec-pad);
  }

  .section {
    padding: var(--section-space) 24px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-head h2 {
    font-size: 25px;
    margin-top: 0;
  }

  .hero,
  .subhero {
    height: 430px;
  }

  .hero-content,
  .subhero .hero-content {
    padding-top: 175px;
  }

  .hero:not(.subhero) {
    height: auto;
    min-height: 430px;
  }

  .hero:not(.subhero) .hero-content {
    padding-bottom: 62px;
  }

  .hero h1,
  .subhero h1 {
    font-size: 31px;
  }

  .hero p {
    font-size: 17px;
  }

  .sidebar-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .side-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-right: 0;
    padding: 0;
    overflow: visible;
  }

  .side-tab {
    white-space: normal;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.5;
  }

  .side-tab.active {
    border: 1px solid currentColor;
    background: #fff3f3;
    font-weight: 400;
  }

  .side-tab.active:after {
    content: none;
  }

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

  .course {
    overflow-wrap: anywhere;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid > div:first-child {
    padding: 34px 24px;
  }

  .overview-photo {
    height: 240px;
  }

  .subject-bar {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .stack {
    padding: 24px;
  }

  .teacher-stage {
    aspect-ratio: auto;
    padding: 46px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 38px;
  }

  .teacher-stage-copy {
    position: static;
    transform: none;
    width: 100%;
  }

  .teacher-stage-copy p {
    font-size: 14px;
  }

  .teacher-stage-copy h2 {
    margin-top: 22px;
    font-size: 30px;
  }

  .teacher-more {
    margin-top: 18px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .teacher-rain {
    position: relative;
    inset: auto;
    width: 100%;
    height: 380px;
    margin-top: 26px;
  }

  .rain-card {
    --travel: 700px;
    width: 40%;
    top: -240px;
    left: min(var(--x), calc(52% + (var(--x) - 73.5%) * .35));
  }

  .featured-teacher {
    border-radius: 10px;
  }

  .featured-teacher strong {
    font-size: 16px;
  }

  .featured-teacher span {
    font-size: 12px;
    margin-top: 3px;
  }

  .red-banner {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .banner-figure {
    display: none;
  }

  .admit-grid {
    margin-inline: calc(var(--sec-pad) * -1);
    padding-left: var(--sec-pad);
    padding-right: var(--sec-pad);
  }

  .stats {
    display: flex;
    gap: 14px;
    margin: 30px calc(var(--sec-pad) * -1);
    padding: 0 var(--sec-pad);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--sec-pad);
    scrollbar-width: none;
  }

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

  .stat strong {
    font-size: 26px;
  }

  .stat span {
    font-size: 13.5px;
  }

  .stat {
    flex: 0 0 min(58%, 210px);
    scroll-snap-align: start;
  }

  .admit-row {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .hscroll-arrow {
    display: none;
  }

  .split-banner {
    padding: 52px 24px;
  }

  .split-rule {
    width: 100%;
  }

  .award-board {
    grid-template-columns: 1fr;
  }

  .mini-certs.portrait {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .proof-left {
    padding: 40px 24px;
  }

  .proof-table {
    padding: 24px;
  }

  .consult-section {
    padding: var(--section-space) 24px;
  }

  .consult-points,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .consult-point:nth-child(odd),
  .consult-point:nth-child(even),
  .feature:nth-child(odd),
  .feature:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  .consult-point:not(:last-child),
  .feature:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  /* Use 1fr to prevent card collapse */
  .roster {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "pages pages pages" "prev dots next";
    align-items: center;
    row-gap: 26px;
    column-gap: 16px;
  }

  .roster-pages {
    grid-area: pages;
  }

  .roster-prev {
    grid-area: prev;
    left: auto;
  }

  .roster-next {
    grid-area: next;
    right: auto;
  }

  .roster-arrow {
    position: static;
    top: auto;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .roster-dots {
    grid-area: dots;
    margin: 0;
  }

  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }

  .campus-content {
    grid-template-columns: 1fr;
    padding: 24px 0;
    gap: 30px;
  }

  .contact-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .login-wrap {
    grid-template-columns: 1fr;
  }

  .login-copy h1 {
    font-size: 39px;
  }

  .login-card {
    padding: 34px 24px;
  }

  .login-tabs {
    gap: 20px;
  }

  .login-tab {
    font-size: 16px;
  }

  .teacher-values {
    padding: 35px 24px;
  }
}

@media (max-width: 500px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .roster-page {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .roster-card .roster-photo {
    aspect-ratio: 5/4;
    max-width: 236px;
    margin-inline: auto;
  }

  .roster-card .roster-name {
    padding: 40px 16px 14px;
  }

  .roster-points {
    line-height: 1.7;
  }

  .teacher-values {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .teacher-values div {
    border-right: 0;
  }

  .campus-block > h2 {
    font-size: 23px;
  }

  .contact-vision p,
  .contact-vision h2 {
    font-size: 20px;
  }

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

  .mini-certs.landscape {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-table {
    padding: 40px 24px;
  }

  .proof-table h3 {
    font-size: 21px;
  }

  .proof-table > div {
    grid-template-columns: 1fr 64px 78px;
    font-size: 14px;
  }

  .proof-table .proof-head {
    font-size: 13px;
  }

  .proof-table > div > * {
    padding: 12px 8px;
  }

  .school-logo {
    height: 24px;
    max-width: 48px;
    vertical-align: -7px;
    margin-right: 7px;
  }
}

/* ---- Motion and scrolling ---- */

.stage-armed .teacher-rain {
  opacity: 0;
  transition: opacity .9s ease;
}

.stage-armed .teacher-stage-copy {
  opacity: 0;
  transition: opacity .8s ease;
}

.stage-in .teacher-rain {
  opacity: 1;
}

.stage-in .teacher-stage-copy {
  opacity: 1;
}

[data-countup] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* min-width: 0 allows the grid track to shrink */
.hscroll.inset {
  min-width: 0;
}

.hscroll.inset .hscroll-track {
  margin: 0;
  padding: 4px 0 16px;
  scroll-padding-inline: 0;
}

.hscroll.inset .hscroll-prev {
  left: -14px;
}

.hscroll.inset .hscroll-next {
  right: -14px;
}

.cert-rail {
  padding: 25px;
}

.cert-rail .cert-chip {
  /* Override the image's intrinsic minimum width */
  min-width: 0;
  height: auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 30, 55, .12);
  object-fit: cover;
}

.cert-rail.landscape .cert-chip {
  flex: 0 0 clamp(150px, 15vw, 190px);
  aspect-ratio: 480/367;
}

.cert-rail.portrait .cert-chip {
  flex: 0 0 clamp(112px, 11vw, 140px);
  aspect-ratio: 340/481;
}

.tag-link {
  transition: background .2s, color .2s;
}

.tag-link:hover,
.tag-link:focus-visible {
  background: #f5f8ff;
  color: #1763f5;
}

.tag-link:after {
  content: " ›";
  color: #9aa8c4;
}

.course-focus {
  animation: course-focus 2.4s ease;
}

@keyframes course-focus {
  0%, 55% {
    box-shadow: 0 0 0 3px #1763f5, 0 5px 22px #15234a12;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 99, 245, 0), 0 5px 22px #15234a12;
  }
}

.detail-list {
  gap: 96px;
}

.detail-row,
.detail-row:nth-child(even) {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 64px;
}

.detail-row:nth-child(even) .detail-copy {
  order: initial;
}

.detail-copy {
  position: sticky;
  top: 96px;
}

.detail-photo {
  height: clamp(400px, 72vh, 660px);
}

@media (max-width: 760px) {
  .detail-list {
    gap: 52px;
  }

  .detail-row,
  .detail-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .detail-copy {
    position: static;
  }

  .detail-photo {
    height: 240px;
  }

  .cert-rail {
    padding: 20px;
  }
}

/* ---- Private school page ---- */

.offer-icon {
  display: grid;
  place-items: center;
  width: clamp(96px, 9vw, 128px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 55%, #f1f5fc 100%);
}

.offer-icon img {
  width: 56%;
  height: auto;
  object-fit: contain;
}

.offer-grid {
  row-gap: 52px;
}

.offer p {
  font-size: 15px;
  line-height: 1.65;
  color: #2b3340;
}

.core-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 58px;
}

.core-result {
  padding: 34px 32px 38px;
  border: 1px solid #f1f1f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8f9fd);
}

.core-result strong {
  display: block;
  margin-bottom: 18px;
  color: #1763f5;
  font-size: clamp(30px, 2.9vw, 40px);
  line-height: 1;
}

.core-result h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1b2330;
}

.core-result p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #6b7280;
}

.tag-grid {
  background: none;
  gap: 0;
  border-radius: 0;
  border-top: 1px solid #e9ebf0;
}

.tag {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 21px 12px;
  background: none;
  border-bottom: 1px solid #e4e6ec;
  color: #5b636f;
  font-size: 15px;
}

.tag + .tag:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 22px;
  transform: translateY(-50%);
  background: #dfe2e8;
}

.tag:nth-child(4n + 1):before {
  content: none;
}

.tag-icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.tag-link:hover,
.tag-link:focus-visible {
  background: none;
  color: #1763f5;
}

.tag-link:after {
  content: none;
}

.faq-q {
  align-items: center;
  gap: 16px;
  padding: 24px 4px;
  font-size: 16px;
}

.faq-q > span:first-child:before {
  content: "•";
  margin-right: 11px;
  color: #1763f5;
}

.faq-chevron {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-right: 1.6px solid #9aa3b2;
  border-bottom: 1.6px solid #9aa3b2;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s, border-color .2s;
}

.faq-q.active .faq-chevron {
  border-color: #1763f5;
  transform: translateY(2px) rotate(-135deg);
}

.faq-a {
  padding: 0 44px 24px 22px;
  font-size: 14px;
}

@media (max-width: 760px) {
  .core-results {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 38px;
  }

  .tag-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tag:nth-child(4n + 1):before {
    content: "";
  }

  .tag:nth-child(odd):before {
    content: none;
  }

  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 14px;
    row-gap: 34px;
  }

  .offer-icon {
    width: 84px;
    margin-bottom: 16px;
  }

  .offer p {
    font-size: 15px;
  }
}

@media (max-width: 400px) {
  .offer-icon {
    width: 72px;
  }

  .offer p {
    font-size: 14px;
  }
}

/* ---- Footer and CTA ---- */

.footer-follow {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 26px;
}

.qr-pair {
  display: flex;
  gap: 26px;
}

.qr-pair figure {
  margin: 0;
  text-align: center;
}

.qr-pair figcaption {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.qr-pair img {
  width: 88px;
  height: 88px;
  padding: 6px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

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

.contact-details p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 46px;
  margin: 0;
  align-items: center;
}

@supports (grid-template-columns: subgrid) {
  .contact-details {
    grid-template-columns: 18px max-content max-content;
    column-gap: 46px;
  }

  .contact-details p {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }
}

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

.contact-details .ci {
  flex: 0 0 18px;
  align-self: center;
  color: #8ea6dd;
}

.cta-bar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px max(6vw, 70px);
  background: #fff;
  border-top: 1px solid #e7eaf0;
}

.cta-bar-brand img {
  width: auto;
  height: 38px;
}

.cta-bar p {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #12377f;
}

.cta-bar .btn {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 12px 26px;
}

@media (max-width: 1050px) {
  .footer-follow {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .footer-top .btn {
    display: none;
  }

  .cta-bar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
  }

  .cta-bar p {
    flex: 1 0 100%;
    order: 2;
    font-size: 14px;
  }

  .cta-bar .btn {
    order: 3;
    width: 100%;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-details p {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 6px 12px;
    align-items: start;
  }

  .contact-details p > :not(.ci) {
    grid-column: 2;
  }

  .contact-details .ci {
    align-self: start;
    margin-top: 2px;
  }
}

.contact-line {
  align-items: center;
}

.footer-offices {
  padding: 20px 0 4px;
  border-bottom: 1px solid #ffffff1c;
}

.footer-offices h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #cad8f7;
}

.footer-offices ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 1180px;
  gap: 14px 34px;
}

.footer-offices li {
  display: grid;
  gap: 2px;
  align-content: start;
}

.footer-offices b {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.footer-offices span {
  font-size: 12px;
  line-height: 1.55;
  color: #aebada;
}

.portal-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

svg.ci {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #8ea6dd;
}

/* ---- Compact mobile content ---- */
@media (max-width: 760px) {
  .side-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    text-align: center;
  }

  .overview-photo {
    order: -1;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .overview-grid > div:first-child {
    padding: 24px 0;
  }

  .subject-bar {
    padding: 30px 0;
    margin: 0 0 24px;
    gap: 0;
    align-items: stretch;
  }

  .subject-bar > strong {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .subject {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    border-left: 0;
    padding: 10px 0;
  }

  .subject + .subject {
    border-top: 1px solid #edf0f5;
  }

  .subject b {
    margin: 0;
  }

  .teacher-stage {
    padding: 32px 24px;
    gap: 20px;
  }

  .teacher-stage-copy {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .teacher-stage-copy h2 {
    order: -1;
    margin: 0 0 16px;
  }

  .teacher-rain {
    margin-top: 0;
  }

  .results-showcase {
    padding: var(--section-space) 0 0;
  }

  .result-tabs button {
    flex: 1;
    padding: 12px;
  }

  .proof-section {
    margin-top: var(--section-space);
    row-gap: 48px;
  }

  .proof-left {
    padding: 0 24px;
  }

  .footer {
    padding-top: 28px;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    padding-bottom: 24px;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer h3 {
    margin-bottom: 10px;
  }

  .footer li {
    margin-bottom: 6px;
  }

  .contact-line {
    padding: 18px 0;
    gap: 14px;
  }

  .copyright {
    padding: 16px 0;
    margin: 0;
  }
}

.award-board {
  background: linear-gradient(135deg, #0b43bd, #0b2c79);
}

.award-board > div:first-child {
  background: transparent;
  text-align: center;
}

.award-board h3 {
  margin: 0 0 10px;
}

.award-board p {
  margin: 0 0 14px;
}

.teacher-stage-copy h2 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, .65), 0 4px 16px rgba(0, 0, 0, .35);
}

.footer-top .btn-primary {
  background: #c95b60;
  color: #fff7f7;
}

.footer-top .btn-primary:hover {
  background: #b74d53;
}

.quote {
  padding: 20px 24px;
  border-left: 3px solid #8fa9d5;
  border-radius: 0 12px 12px 0;
  background: #f5f7fb;
  text-align: left;
  color: #40516c;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .award-board {
    margin-inline: -12px;
  }

  .award-board > div:first-child {
    padding: 20px 24px 12px;
  }

  .cert-rail {
    padding: 12px;
  }

  .admit {
    padding: 18px 20px 14px;
  }

  .admit .crest-logo {
    height: 64px;
    margin-bottom: 10px;
  }

  .admit .school {
    margin: 4px 0 10px;
  }

  .admit-row {
    padding: 8px 0 0;
    gap: 2px;
  }

  .red-banner {
    margin-top: 0;
  }

  .quote {
    padding: 16px 18px;
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  .stack {
    margin-inline: calc(var(--sec-pad) * -1);
    padding: 30px var(--sec-pad);
    border-radius: 0;
    gap: 0;
  }

  .stack-item {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    padding: 18px 0;
  }

  .stack-item > div:last-child {
    display: contents;
  }

  .stack-item .icon {
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .stack-item h3 {
    margin: 0;
    font-size: 15px;
  }

  .stack-item p {
    grid-column: 1 / -1;
    line-height: 1.6;
  }

  .subject-bar > strong {
    text-align: center;
    margin-bottom: 16px;
  }

  .subject {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    font-size: 14px;
  }

  .subject b {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef3fd;
    font-size: 15px;
  }

  .consult-section {
    gap: 28px;
  }

  .consult-copy h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .consult-copy > p {
    line-height: 1.65;
  }

  .consult-points,
  .feature-list {
    margin-top: 16px;
  }

  .consult-point,
  .feature {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .consult-point-icon,
  .feature .icon {
    width: 32px;
    height: 32px;
  }

  .consult-point-icon svg {
    width: 18px;
    height: 18px;
  }

  .consult-point b,
  .feature b {
    display: inline;
    font-size: 15px;
    margin-right: 8px;
  }

  .consult-point h3,
  .feature h3 {
    display: inline;
    font-size: 16px;
    margin: 0;
  }

  .consult-point p,
  .feature p {
    margin-top: 7px;
    font-size: 15px;
    line-height: 1.75;
  }

  .campus-block {
    margin-bottom: var(--block-space);
  }

  .contact-page > .section-head {
    margin-bottom: var(--block-space);
  }

  .campus-block:last-child {
    margin-bottom: 0;
  }

  .campus-block > h2 {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 12px;
  }

  .campus-content {
    padding-top: 14px;
    padding-bottom: 0;
    gap: 24px;
  }

  .campus-details > p:first-child {
    margin-top: 0;
  }

  .campus-details .qr-row {
    margin-top: 22px;
  }

  .campus-content .map-card {
    height: clamp(320px, 85vw, 380px);
    margin-inline: -12px;
  }
}

/* ---- Phone reading scale ---- */
@media (max-width: 760px) {
  /* Body copy */
  .card p,
  .course p,
  .faq-a,
  .checks li,
  .stack-item p,
  .award-board p,
  .consult-copy > p,
  .consult-card > p,
  .proof-left > p,
  .core-result p,
  .roster-points,
  .admit p,
  .resource-card p,
  .teacher-values span,
  .portal-note,
  .contact-details,
  .footer-offices b,
  .footer-offices span,
  .detail-row h4 {
    font-size: 15px;
    line-height: 1.75;
  }

  /* Labels, captions and table cells */
  .footer li,
  .footer a,
  .copyright,
  .admit-label,
  .admit-row span,
  .side-tab em,
  .course b,
  .qr-pair figcaption,
  .qr-labels,
  .footer-offices h3,
  .form-privacy,
  .roster-name span,
  .teacher span,
  .proof-stat span,
  .map-card .map-open,
  .login-status {
    font-size: 13.5px;
  }

  .admit-row b {
    font-size: 14.5px;
  }

  .btn,
  .footer .btn,
  .award-board .btn,
  .resource-card button,
  .portal-btn span,
  .back {
    font-size: 14px;
  }

  .lang {
    font-size: 13px;
  }

  .score span {
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* Headings */
  .overview-grid h2,
  .proof-left h2 {
    font-size: 25px;
  }

  .consult-copy h2 {
    font-size: 24px;
  }

  .teacher-stage-copy h2 {
    font-size: 27px;
  }

  .award-board h3,
  .proof-table h3 {
    font-size: 19px;
  }

  .stack-item h3 {
    font-size: 17px;
  }
}
