:root {
  --navy: #0e274c;
  --navy-deep: #08182e;
  --gold: #d4a017;
  --gold-soft: #f6e7b8;
  --school: #e06a2b;
  --school-dark: #c45318;
  --institute: #0f7a6c;
  --institute-dark: #0b5c52;
  --ink: #152033;
  --muted: #5a6576;
  --line: #e7dfd2;
  --paper: #f4efe6;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(8, 24, 46, 0.12);
  --shadow-sm: 0 8px 24px rgba(8, 24, 46, 0.08);
  --radius: 24px;
  --ring: 0 0 0 4px rgba(212, 160, 23, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(224, 106, 43, 0.09), transparent 50%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 122, 108, 0.1), transparent 46%),
    var(--paper);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(212, 160, 23, 0.28);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 99;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.crumbs {
  font-size: 13px;
  font-weight: 700;
  padding: 12px 0 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  color: var(--muted);
}

.crumbs li {
  display: flex;
  align-items: center;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  opacity: 0.45;
}

.crumbs a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs [aria-current="page"] {
  color: var(--muted);
  font-weight: 800;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(212, 160, 23, 0.55);
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-school {
  box-shadow: 0 1px 0 var(--school);
}

.header-institute {
  box-shadow: 0 1px 0 var(--institute);
}

.header-home {
  box-shadow: 0 1px 0 rgba(212, 160, 23, 0.7);
}

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 650;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 38px;
  gap: 12px;
}

.topbar-inner > span:first-child {
  justify-self: start;
}

.topbar-inner .lang-switch {
  justify-self: center;
}

.topbar-inner > a {
  justify-self: end;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  cursor: pointer;
}

.lang-switch button.is-on {
  background: var(--gold);
  color: var(--navy-deep);
}

#google_translate_element,
.gt-hidden {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.goog-te-banner-frame,
.goog-te-gadget-icon,
iframe.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.topbar-inner span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar a {
  color: var(--gold-soft);
  white-space: nowrap;
}

.nav-home {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  min-height: 84px;
  gap: 12px;
  position: relative;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 16px;
  border: 2px solid transparent;
}

.brand-block.institute {
  justify-self: end;
}

.brand-block img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-block strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.2;
}

.brand-block em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

body[data-wing="school"] .brand-block:not(.institute) {
  border-color: var(--school);
  background: #fff7f0;
}

body[data-wing="institute"] .brand-block.institute {
  border-color: var(--institute);
  background: #eef8f6;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-center a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
}

.nav-center a:hover,
.nav-center a.active {
  background: var(--paper);
  color: var(--navy);
}

.nav-center a.btn:hover,
.nav-center a.btn.active {
  background: var(--gold);
  color: var(--navy-deep);
}

.nav-center .btn {
  color: var(--navy-deep);
}

.header-home .menu-btn {
  display: none;
  position: absolute;
  right: 0;
  top: 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 16px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

img[src*="institute-logo"],
img[src*="school-logo"] {
  border-radius: 50%;
  object-fit: cover;
  background: #0b1f3d;
}

.logo-pair {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo .logo-pair,
.footer .logo-pair {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.logo-pair img,
.logo-pair .logo-img {
  width: 48px;
  height: 48px;
  max-width: none;
  flex-shrink: 0;
}

.logo strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo > div span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.emblem-lg {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 12px 24px rgba(11, 31, 61, 0.2));
}

.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--navy), #1d4b8f);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(16, 42, 84, 0.25);
}

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

.nav-links a {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--paper);
  color: var(--navy);
}

.nav-links .btn,
.nav-center .btn {
  padding: 10px 16px;
  font-size: 13px;
}

.nav-links .btn-school,
.nav-links .btn-institute {
  color: #fff;
}

.nav-links .btn-gold {
  color: var(--navy-deep);
}

.nav-links a.btn:hover,
.nav-links a.btn.active {
  filter: brightness(0.96);
}

.nav-links a.btn-school:hover,
.nav-links a.btn-school.active {
  background: var(--school);
  color: #fff;
}

.nav-links a.btn-institute:hover,
.nav-links a.btn-institute.active {
  background: var(--institute);
  color: #fff;
}

.nav-links a.btn-gold:hover,
.nav-links a.btn-gold.active {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
  padding: 14px 24px;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%);
  transform: translateX(-140%);
  animation: btn-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(14, 39, 76, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--navy-deep);
}

.btn-gold {
  background: linear-gradient(180deg, #e6b423, var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 8px 18px rgba(212, 160, 23, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
  border: 1px solid var(--line);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}

/* Hero */
.hero {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--navy-deep);
}

h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-card {
  background: linear-gradient(165deg, var(--navy) 0%, #163a6e 100%);
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  min-height: 340px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.18);
  right: -60px;
  bottom: -70px;
}

.hero-card h3 {
  font-size: 28px;
  margin: 8px 0 10px;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.78);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px;
}

.stat b {
  display: block;
  font-size: 22px;
  font-family: Fraunces, Georgia, serif;
  color: var(--gold-soft);
}

.stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Split cards */
.section {
  padding: 72px 0;
}

.path-card,
.info-card,
.form-card,
.feature,
.subject,
.class-card,
.day-list article,
.reviews blockquote,
.next-read a {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}

.form-card,
.info-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head p {
  color: var(--muted);
  max-width: 46ch;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

@media (max-width: 900px) {
  .split.three {
    grid-template-columns: 1fr;
  }
}

.path-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.path-card:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
}

.path-card.school {
  border-color: #f3d3bf;
}

.path-card.institute {
  border-color: #cde5e1;
}

.tag {
  width: fit-content;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.tag.school {
  background: #fde8d8;
  color: var(--school-dark);
}

.tag.institute {
  background: #d7f0ec;
  color: var(--institute-dark);
}

.path-card h2 {
  font-size: 32px;
  margin: 14px 0 8px;
  color: var(--navy-deep);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.chip {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.path-card .btn {
  margin-top: auto;
  width: fit-content;
}

.btn-school {
  background: linear-gradient(180deg, #ee7d3d, var(--school));
  color: #fff;
  box-shadow: 0 10px 20px rgba(224, 106, 43, 0.28);
}

.btn-institute {
  background: linear-gradient(180deg, #1a9484, var(--institute));
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 122, 108, 0.28);
}

/* Grid features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 20px;
  background: var(--gold-soft);
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 14px;
}

/* Classes */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.class-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.class-card strong {
  display: block;
  font-size: 16px;
}

.class-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.subject {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
}

.subject h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.subject p {
  color: var(--muted);
  font-size: 14px;
}

/* Form */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.info-card, .form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.info-card li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-card li:last-child {
  border-bottom: 0;
}

.info-card b {
  display: block;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin: 12px 0 6px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 15px;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--ring);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.note {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #e8f6ef;
  color: #146c43;
  font-weight: 700;
}

.note.show {
  display: block;
}

/* Footer */
.footer {
  margin-top: 56px;
  background:
    radial-gradient(700px 240px at 12% 0%, rgba(212, 160, 23, 0.18), transparent 55%),
    linear-gradient(180deg, #102a54 0%, #071322 100%);
  color: #d7deea;
  padding: 56px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 28px;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.footer-brand > img {
  margin-bottom: 12px;
}

.footer-brand .logo-pair {
  margin-bottom: 12px;
}

.footer-brand .logo-pair img {
  width: 56px;
  height: 56px;
  margin-bottom: 0;
}

.footer h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer p,
.footer li {
  font-size: 15px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: #d7deea;
}

.footer a:hover {
  color: var(--gold-soft);
}

.footer .btn {
  margin-top: 8px;
}

.footer .btn:hover {
  color: inherit;
}

.footer-phone {
  display: inline-block;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  color: var(--gold-soft);
  margin: 4px 0 14px;
  font-weight: 700;
}

.copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.legal-links a {
  color: var(--gold-soft);
  font-weight: 700;
}

.legal {
  max-width: 72ch;
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2em;
  margin: 8px 0 16px;
}

.legal a {
  color: var(--navy);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: #fff;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  font-size: 0;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  z-index: 40;
  animation: wa-bounce 2.4s ease-in-out infinite;
}

.whatsapp::after {
  content: "Chat";
  position: absolute;
  right: 72px;
  background: #102a54;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(6px);
  transition: 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.whatsapp:hover::after {
  opacity: 1;
  transform: none;
}

.whatsapp img,
.whatsapp svg {
  width: 32px;
  height: 32px;
  display: block;
  max-width: none;
}

.whatsapp:hover {
  transform: scale(1.08);
  animation: none;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.page-hero {
  padding: 48px 0 12px;
}

.page-hero h1 {
  font-size: clamp(34px, 4.4vw, 56px);
}

.banner {
  border-radius: 24px;
  padding: 28px;
  color: #fff;
  margin: 18px 0 8px;
}

.banner.school {
  background: linear-gradient(135deg, #c45e24, #e07a3d);
}

.banner.institute {
  background: linear-gradient(135deg, #146358, #1a7a6d);
}

@media (max-width: 900px) {
  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav-links,
  .nav-center {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    z-index: 30;
    box-shadow: var(--shadow);
  }

  .nav-links a,
  .nav-center a {
    white-space: normal;
  }

  .brand-block em {
    display: none;
  }

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

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

  .header-home .nav-center {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
  }

  .nav-home {
    grid-template-columns: 1fr 1fr;
    min-height: 88px;
    padding-right: 52px;
  }

  .brand-block img {
    width: 58px;
    height: 58px;
  }

  .brand-block strong {
    font-size: 14px;
  }

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

  .hero-grid,
  .split,
  .contact-wrap,
  .features,
  .class-grid,
  .subjects,
  .form-row,
  .home-stage,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .home-stage-photos img:last-child,
  .home-stage-photos figure:last-child {
    margin-top: 0;
  }

  .home-stage-photos img {
    height: 180px;
  }

  .wing-tabs-wrap {
    top: 72px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

/* Home landing */
.home-hero {
  padding: 56px 0 20px;
}

.home-hero-brief {
  text-align: left;
  padding: 48px 0 20px;
}

.home-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.home-stage-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-stage-photos figure {
  margin: 0;
}

.home-stage-photos img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px 24px 8px 8px;
  box-shadow: var(--shadow);
}

.home-stage-photos figcaption {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  padding: 10px 4px 0;
}

.home-stage-photos figure:last-child {
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.trust-row span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--navy);
}

.home-hero-brief h1 {
  max-width: 14ch;
  margin: 0 0 14px;
}

.home-hero-brief .lead {
  margin: 0;
}

.wing-tabs-wrap {
  position: sticky;
  top: 84px;
  z-index: 15;
  padding: 10px 0 18px;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.92), rgba(244, 239, 230, 0.7) 80%, transparent);
  backdrop-filter: blur(8px);
}

.wing-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.wing-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  border-radius: 22px;
  padding: 12px 10px 14px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.wing-tab img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.wing-tab span {
  font-weight: 800;
  font-size: 16px;
}

.wing-tab small {
  color: var(--muted);
  font-weight: 650;
}

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

.wing-tab.is-active {
  box-shadow: var(--shadow);
}

.wing-tab[data-tab="school"].is-active {
  border-color: var(--school);
  background: #fff7f0;
}

.wing-tab[data-tab="institute"].is-active {
  border-color: var(--institute);
  background: #eef8f6;
}

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

.tab-panel.is-active {
  display: block;
  animation: fade-in 0.45s ease both;
}

.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  min-height: 640px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pane {
  padding: 48px 7vw 52px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pane.school {
  background: linear-gradient(180deg, #fff7f0 0%, #f7f3ec 100%);
  border-right: 1px solid #efd4c0;
}

.pane.institute {
  background: linear-gradient(180deg, #eef8f6 0%, #f7f3ec 100%);
}

.pane-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 14px;
}

.pane-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pane.school .pane-tag { color: var(--school-dark); }
.pane.institute .pane-tag { color: var(--institute-dark); }

.pane h2 {
  font-size: clamp(28px, 3vw, 42px);
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.pane p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 36ch;
}

.pane-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  margin: auto 0 18px;
  box-shadow: var(--shadow);
}

.pane-cta {
  font-weight: 800;
  font-size: 16px;
}

.pane.school .pane-cta { color: var(--school-dark); }
.pane.institute .pane-cta { color: var(--institute-dark); }

.pane:hover {
  transform: translateY(-4px);
  filter: brightness(0.99);
}

.pane-divider {
  display: none;
}

@media (min-width: 901px) {
  .pane-divider {
    display: grid;
    place-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gold);
    font-weight: 800;
    color: var(--navy);
    box-shadow: 0 8px 20px rgba(16, 42, 84, 0.12);
  }
}

.home-hero h1 {
  max-width: 22ch;
}

.home-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}

.home-photos figure {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-photos img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.home-photos figcaption {
  padding: 14px 18px 16px;
  font-weight: 750;
  color: var(--navy);
}

.home-stats {
  padding-top: 8px;
}

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

.stats-row div {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}

.stats-row div b {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 30px;
  color: var(--navy-deep);
}

.stats-row div span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.reviews blockquote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.reviews p {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
}

.reviews cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 750;
  color: var(--navy);
}

.home-cta {
  background: linear-gradient(135deg, var(--navy-deep), #163a6e 50%, #0f7a6c);
  color: #fff;
  border-radius: 32px;
  padding: 52px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}

.home-cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.gallery figure {
  transition: transform 0.25s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
}

.home-cta h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
}

.home-cta p {
  color: rgba(255, 255, 255, 0.78);
  margin: 10px 0 22px;
}

.home-cta .hero-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .home-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pane.school {
    border-right: 0;
    border-bottom: 8px solid var(--gold);
  }

  .pane-divider {
    display: grid;
    place-items: center;
    width: 100%;
    height: 44px;
    background: var(--navy-deep);
    color: var(--gold-soft);
    font-weight: 800;
  }

  .pane-photo {
    height: 200px;
  }
}

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

.hero-photo,
.cover-photo,
.card-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-photo img,
.cover-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transform: scale(1.02);
}

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

.path-card .card-photo {
  margin: -28px -28px 20px;
  border-radius: 22px 22px 0 0;
}

.media-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

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

.gallery figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery figcaption {
  padding: 12px 14px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 8px 0 4px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  margin: 0;
  font-size: 15px;
}

.checks input {
  width: 18px;
  height: 18px;
}

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

.page-hero .cover-photo {
  margin-top: 22px;
}

.form-card h2,
.info-card h2 {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .media-split,
  .gallery,
  .checks,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-photo img,
  .cover-photo img {
    height: 240px;
  }
}

.prose {
  max-width: 72ch;
}

.prose p + p,
.prose ul {
  margin-top: 14px;
}

.prose ul {
  padding-left: 1.2em;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.faq details[open] {
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy-deep);
  font-size: 17px;
  line-height: 1.4;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 16px 18px;
  min-height: 56px;
}

.faq summary::-webkit-details-marker,
.faq summary::marker {
  display: none;
  content: "";
}

.faq summary::after {
  content: "";
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  justify-self: end;
  border-radius: 50%;
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--navy-deep), var(--navy-deep)),
    linear-gradient(var(--navy-deep), var(--navy-deep));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 2px, 2px 12px;
}

.faq details[open] summary::after {
  background-image: linear-gradient(var(--navy-deep), var(--navy-deep));
  background-size: 12px 2px;
  background-color: rgba(212, 160, 23, 0.16);
  border-color: rgba(212, 160, 23, 0.45);
}

.faq details > p,
.faq details > ol,
.faq details > ul {
  margin: 0;
  padding: 4px 18px 18px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.65;
  max-width: 62ch;
}

.faq details .plain-box {
  margin: 4px 18px 18px;
}

.header-school ~ main .faq details[open] {
  border-color: rgba(224, 106, 43, 0.45);
}

.header-institute ~ main .faq details[open] {
  border-color: rgba(15, 122, 108, 0.45);
}

.next-read {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 24px;
}

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

.next-read a {
  display: block;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  font-weight: 750;
}

.next-read a span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  margin-top: 4px;
}

.day-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.day-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.day-list h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.day-list p {
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 900px) {
  .next-read,
  .next-read.three,
  .day-list,
  .split {
    grid-template-columns: 1fr;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.js-motion .home-hero-brief,
html.js-motion .hero > .container,
html.js-motion .page-hero > .container {
  animation: none;
}

.home-hero-brief,
.hero > .container,
.page-hero > .container {
  animation: fade-up 0.7s ease both;
}

.pane.school {
  animation: fade-in 0.8s ease 0.08s both;
}

.pane.institute {
  animation: fade-in 0.8s ease 0.2s both;
}

.pane {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.btn {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 42, 84, 0.16);
}

.path-card,
.feature,
.subject,
.reviews blockquote,
.class-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.path-card:hover,
.feature:hover,
.subject:hover,
.reviews blockquote:hover,
.class-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.reveal {
  animation: fade-up 0.7s ease both;
}

.brand-block img,
.logo-img,
.pane-logo {
  transition: transform 0.35s ease;
}

.brand-block:hover img,
.logo:hover .logo-img {
  transform: rotate(-6deg) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .portal-hero,
  .emblem-lg,
  .whatsapp,
  .btn::after,
  .hero-photo img,
  .cover-photo img {
    animation: none !important;
  }
}

/* Mock test apply page */
.mock-hero {
  padding-bottom: 8px;
}

.weekend-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 22px 0 8px;
  padding: 20px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #146358, #1a7a6d 55%, #c9a227);
  color: #fff;
  box-shadow: var(--shadow);
}

.weekend-banner b {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
}

.weekend-banner span {
  font-weight: 650;
  max-width: 42ch;
  opacity: 0.95;
}

.plain-box {
  background: #fff8e8;
  border: 1px solid #ead7a2;
  border-radius: 20px;
  padding: 20px 22px;
  margin-top: 22px;
}

.plain-box h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.plain-box ol {
  margin: 10px 0 0 18px;
}

.plain-box li {
  margin: 8px 0;
  font-size: 17px;
}

.form-help {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: -2px 0 6px;
}

.choice-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-pills label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.choice-pills input {
  width: 18px;
  height: 18px;
}

.choice-pills label:has(input:checked) {
  border-color: var(--institute);
  background: #eef8f6;
}

.mock-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.form-card.mock-priority {
  border: 2px solid rgba(15, 122, 108, 0.45);
  box-shadow: 0 24px 60px rgba(15, 122, 108, 0.16);
  background: #fff;
}

.mock-layout .form-card {
  position: sticky;
  top: 88px;
}

.bring-list li {
  list-style: none;
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.bring-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--institute);
  font-weight: 800;
}

@media (max-width: 900px) {
  .mock-layout,
  .choice-pills {
    grid-template-columns: 1fr;
  }

  .mock-layout .form-card {
    position: static;
  }
}

.section-head h2 {
  position: relative;
  padding-bottom: 10px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--school));
}

body[data-wing="institute"] .section-head h2::after,
.header-institute ~ main .section-head h2::after {
  background: linear-gradient(90deg, var(--gold), var(--institute));
}

.reviews blockquote {
  position: relative;
  padding-top: 36px;
}

.reviews blockquote::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: Fraunces, Georgia, serif;
  font-size: 48px;
  line-height: 1;
  color: var(--gold);
}

.hero-photo img,
.cover-photo img,
.gallery img,
.home-stage-photos img {
  transition: transform 0.5s ease;
}

.hero-photo:hover img,
.cover-photo:hover img,
.gallery figure:hover img,
.home-stage-photos figure:hover img {
  transform: scale(1.05);
}

.day-list {
  counter-reset: day;
}

.day-list article {
  counter-increment: day;
}

.day-list h3::before {
  content: counter(day, decimal-leading-zero) "  ";
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.08em;
}

label {
  letter-spacing: 0.02em;
  text-transform: none;
}

.form-card {
  padding: 28px 26px 30px;
}

.menu-btn {
  font-size: 20px;
  cursor: pointer;
}

.chooser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.chooser-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px 24px;
  border-radius: 28px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.chooser-card img {
  width: 72px;
  height: 72px;
}

.chooser-card h3 {
  font-size: 28px;
}

.chooser-card p,
.chooser-card li {
  color: var(--muted);
  font-size: 16px;
}

.chooser-card ul {
  margin: 4px 0 8px 18px;
}

.chooser-cta {
  margin-top: auto;
  font-weight: 800;
  color: var(--navy-deep);
}

.chooser-card.school {
  border-color: #f0c4a8;
  background: linear-gradient(180deg, #fff7f0, #fff);
}

.chooser-card.institute {
  border-color: #bfe4de;
  background: linear-gradient(180deg, #eef8f6, #fff);
}

.chooser-card.school .chooser-cta { color: var(--school-dark); }
.chooser-card.institute .chooser-cta { color: var(--institute-dark); }

.compare {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.compare-row.head {
  border-top: 0;
  background: var(--navy-deep);
  color: #fff;
  font-weight: 800;
}

.compare-row > span:first-child {
  font-weight: 800;
  color: var(--navy);
}

.compare-row.head > span:first-child {
  color: transparent;
}

.context-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
}

.context-bar.school {
  background: #fff7f0;
  border-bottom: 1px solid #f0c4a8;
  color: var(--school-dark);
}

.context-bar.institute {
  background: #eef8f6;
  border-bottom: 1px solid #bfe4de;
  color: var(--institute-dark);
}

.context-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: min(1220px, calc(100% - 40px));
}

.context-bar a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .chooser,
  .compare-row {
    grid-template-columns: 1fr;
  }
}

.page-hub .header-home {
  box-shadow: none;
  border-bottom: 0;
}

.portal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 72px 0 80px;
  background:
    linear-gradient(105deg, rgba(8, 24, 46, 0.88) 0%, rgba(8, 24, 46, 0.55) 48%, rgba(14, 39, 76, 0.35) 100%),
    url("../images/school-campus.jpg") center/cover no-repeat,
    var(--navy-deep);
  background-size: auto, 120% auto, auto;
  background-position: 0 0, 50% 46%, 0 0;
  animation: hero-pan 16s ease-in-out infinite alternate;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(246, 231, 184, 0.45) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 22%, rgba(212, 160, 23, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 78%, rgba(255, 255, 255, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 68%, rgba(246, 231, 184, 0.3) 0 3px, transparent 4px);
  animation: sparkle-drift 14s linear infinite;
}

.portal-hero-inner,
.portal-hero > .container {
  position: relative;
  z-index: 1;
}

.portal-hero .kicker-light,
.kicker-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--gold-soft);
}

.portal-hero h1 {
  color: #fff;
  max-width: 14ch;
  animation: title-reveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portal-hero .kicker {
  animation: fade-in 0.5s ease both, bob 5s 0.5s ease-in-out infinite;
}

.portal-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  animation: rise 0.9s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portal-hero .hero-actions {
  animation: rise 0.9s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portal-quote {
  margin: 0;
  padding: 36px 32px;
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.portal-quote p {
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  line-height: 1.35;
  color: var(--navy-deep);
}

.portal-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}

.portal-visit {
  padding: 12px 8px;
}

.portal-visit .footer-phone {
  color: var(--navy-deep);
  display: block;
  margin: 8px 0 18px;
}

.page-hub .section-head h2::after {
  background: linear-gradient(90deg, var(--gold), var(--institute));
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}

.stat-pills span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

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

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--muted);
  font-size: 16px;
}

.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.do-dont article {
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.do-dont .yes {
  border-top: 4px solid var(--institute);
}

.do-dont .no {
  border-top: 4px solid var(--school);
}

.do-dont h3 {
  margin-bottom: 10px;
}

.do-dont ul {
  padding-left: 18px;
  color: var(--muted);
}

.do-dont li {
  margin: 6px 0;
}

.stage-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 16px;
}

.stage-block h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.stage-block p {
  color: var(--muted);
  margin-bottom: 14px;
}

.map-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: #dfe6ef;
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .value-grid,
  .do-dont,
  .album-cards {
    grid-template-columns: 1fr;
  }
}

.album-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.album-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.album-card img,
.album-ph {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.album-ph {
  display: grid;
  place-items: center;
  background: var(--paper);
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}

.album-card.school { border-top: 4px solid var(--school); }
.album-card.institute { border-top: 4px solid var(--institute); }

.album-card strong {
  display: block;
  padding: 12px 14px 0;
  font-size: 16px;
}

.album-card span {
  display: block;
  padding: 4px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.gallery-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  color: var(--muted);
}

.gallery-tabs button.is-on {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.gallery-tabs button[data-id="in-school"].is-on,
.gallery-tabs button[data-id="school-trip"].is-on {
  background: var(--school);
  border-color: var(--school);
}

.gallery-tabs button[data-id="in-institute"].is-on,
.gallery-tabs button[data-id="institute-trip"].is-on {
  background: var(--institute);
  border-color: var(--institute);
}

.showcase {
  margin-top: 8px;
}

.gallery.mosaic,
.showcase.mosaic {
  display: block;
  column-count: 4;
  column-gap: 12px;
}

.mosaic-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: #12243e;
  box-shadow: var(--shadow-sm);
}

.mosaic-item[hidden] {
  display: none !important;
}

.gallery.mosaic .mosaic-item {
  background: #12243e;
  border: 0;
}

.mosaic-item img,
.gallery.mosaic .mosaic-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #12243e;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosaic-item:hover img {
  transform: scale(1.04);
}

.gallery.mosaic .mosaic-item:hover {
  transform: none;
}

.mosaic-item figcaption,
.gallery.mosaic .mosaic-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 24, 46, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.mosaic-more {
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  width: 100%;
  min-height: 160px;
  margin: 0 0 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--navy), #163a6e);
  padding: 16px;
}

.mosaic-more strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
}

.mosaic-more span {
  font-weight: 700;
  color: var(--gold-soft);
}

.showcase-stage {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}

.showcase-hero {
  position: relative;
  margin: 0;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.showcase-hero img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
  animation: hero-ken 14s ease-in-out infinite alternate;
}

.showcase-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 24, 46, 0.78));
  pointer-events: none;
}

.showcase-hero figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px 26px;
  color: #fff;
}

.showcase-hero em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

.showcase-hero strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.showcase-hero span {
  display: block;
  margin-top: 8px;
  opacity: 0.85;
  font-weight: 650;
}

.showcase-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.showcase-rail figure {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
  min-height: 140px;
  box-shadow: var(--shadow-sm);
}

.showcase-rail figure.tall {
  grid-column: 1 / -1;
  min-height: 200px;
}

.showcase-rail img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-rail figure.tall img {
  min-height: 200px;
}

.showcase-rail figure:hover img {
  transform: scale(1.1);
}

.showcase-rail figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 24, 46, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.showcase-peek {
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 20px;
  min-height: 140px;
  background: linear-gradient(145deg, var(--navy), #163a6e);
  color: #fff;
  padding: 16px;
}

.showcase-peek strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
}

.showcase-peek span {
  font-weight: 700;
  color: var(--gold-soft);
}

@media (max-width: 1100px) {
  .gallery.mosaic,
  .showcase.mosaic {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .gallery.mosaic,
  .showcase.mosaic {
    column-count: 2;
  }

  .showcase-stage {
    grid-template-columns: 1fr;
  }

  .showcase-hero,
  .showcase-hero img {
    min-height: 280px;
  }

  .showcase-rail figure.tall {
    grid-column: auto;
    min-height: 140px;
  }
}

.gallery-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 650;
  padding: 12px 0 8px;
}

.gallery figure {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 24, 46, 0.92);
  place-items: center;
  padding: 56px 64px 32px;
}

.lightbox.is-on {
  display: grid;
}

.lightbox figure {
  margin: 0;
  text-align: center;
  max-width: 100%;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(1100px, 88vw);
  max-height: min(76vh, 100%);
  object-fit: contain;
  border-radius: 12px;
}

.lightbox figcaption {
  color: #fff;
  font-weight: 700;
  margin-top: 12px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 16px;
  right: 20px;
  font-size: 36px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 32px;
}

.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

.lightbox-nav[hidden] {
  display: none;
}

@keyframes hero-pan {
  from { background-position: 0 0, 42% 38%, 0 0; }
  to { background-position: 0 0, 58% 64%, 0 0; }
}

@keyframes sparkle-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-40px, -70px, 0); }
}

@keyframes btn-shine {
  0%, 50% { transform: translateX(-140%); }
  72% { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}

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

@keyframes title-reveal {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.header {
  animation: header-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.js-motion .section:not(.is-in) .chooser-card,
html.js-motion .section:not(.is-in) .feature,
html.js-motion .section:not(.is-in) .value-card,
html.js-motion .section:not(.is-in) .class-card,
html.js-motion .section:not(.is-in) .subject,
html.js-motion .section:not(.is-in) .path-card,
html.js-motion .section:not(.is-in) .day-list article,
html.js-motion .section:not(.is-in) .compare-row,
html.js-motion .section:not(.is-in) .next-read a,
html.js-motion .section:not(.is-in) .form-card,
html.js-motion .section:not(.is-in) .info-card,
html.js-motion .section:not(.is-in) .stage-block,
html.js-motion .section:not(.is-in) .portal-quote,
html.js-motion .hero:not(.is-in) .hero-photo,
html.js-motion .hero:not(.is-in) .emblem-lg {
  opacity: 0;
}

html.js-motion .is-in .chooser-card,
html.js-motion .is-in .feature,
html.js-motion .is-in .value-card,
html.js-motion .is-in .class-card,
html.js-motion .is-in .subject,
html.js-motion .is-in .path-card,
html.js-motion .is-in .day-list article,
html.js-motion .is-in .compare-row,
html.js-motion .is-in .next-read a,
html.js-motion .is-in .form-card,
html.js-motion .is-in .info-card,
html.js-motion .is-in .stage-block,
html.js-motion .is-in .portal-quote,
html.js-motion .hero.is-in .hero-photo {
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.js-motion .is-in .chooser-card:nth-child(2),
html.js-motion .is-in .feature:nth-child(2),
html.js-motion .is-in .value-card:nth-child(2),
html.js-motion .is-in .class-card:nth-child(2),
html.js-motion .is-in .subject:nth-child(2),
html.js-motion .is-in .path-card:nth-child(2),
html.js-motion .is-in .compare-row:nth-child(2),
html.js-motion .is-in .day-list article:nth-child(2),
html.js-motion .is-in .next-read a:nth-child(2) {
  animation-delay: 0.14s;
}

html.js-motion .is-in .feature:nth-child(3),
html.js-motion .is-in .value-card:nth-child(3),
html.js-motion .is-in .class-card:nth-child(3),
html.js-motion .is-in .subject:nth-child(3),
html.js-motion .is-in .path-card:nth-child(3),
html.js-motion .is-in .compare-row:nth-child(3),
html.js-motion .is-in .day-list article:nth-child(3),
html.js-motion .is-in .next-read a:nth-child(3) {
  animation-delay: 0.24s;
}

html.js-motion .is-in .feature:nth-child(4),
html.js-motion .is-in .value-card:nth-child(4),
html.js-motion .is-in .class-card:nth-child(4),
html.js-motion .is-in .subject:nth-child(4),
html.js-motion .is-in .compare-row:nth-child(4) {
  animation-delay: 0.34s;
}

html.js-motion .is-in .class-card:nth-child(5),
html.js-motion .is-in .subject:nth-child(5),
html.js-motion .is-in .compare-row:nth-child(5) {
  animation-delay: 0.44s;
}

html.js-motion .is-in .class-card:nth-child(n + 6),
html.js-motion .is-in .subject:nth-child(n + 6) {
  animation-delay: 0.52s;
}

.section-head h2::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-in .section-head h2::after {
  transform: scaleX(1);
}

.nav-links a:not(.btn) {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:not(.btn):hover {
  transform: translateY(-2px);
}

.emblem-lg {
  animation: bob 4.2s ease-in-out infinite;
}

.chooser {
  perspective: 1400px;
}

.chooser-card,
.album-card,
.value-card,
.path-card,
.feature,
.subject,
.class-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.chooser-card:hover,
.album-card:hover,
.value-card:hover,
.path-card:hover,
.feature:hover,
.subject:hover,
.class-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 28px 50px rgba(8, 24, 46, 0.16);
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.hero-photo img,
.cover-photo img {
  animation: hero-ken 12s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-photo:hover img,
.cover-photo:hover img,
.gallery figure:hover img {
  transform: scale(1.08);
  animation: none;
}

.pop-in {
  animation: pop-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gallery .pop-in:nth-child(2) { animation-delay: 0.08s; }
.gallery .pop-in:nth-child(3) { animation-delay: 0.16s; }
.gallery .pop-in:nth-child(4) { animation-delay: 0.24s; }
.gallery .pop-in:nth-child(5) { animation-delay: 0.32s; }
.gallery .pop-in:nth-child(6) { animation-delay: 0.4s; }
.gallery .pop-in:nth-child(7) { animation-delay: 0.48s; }
.gallery .pop-in:nth-child(8) { animation-delay: 0.56s; }

.lightbox.is-on {
  animation: fade-in 0.28s ease;
}

.lightbox.is-on img {
  animation: pop-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .portal-hero::before,
  .hero-photo img,
  .cover-photo img {
    animation: none;
  }
}

/* Mobile */
@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .container,
  .context-bar .container {
    width: calc(100% - 24px);
  }

  .header {
    z-index: 50;
  }

  .nav {
    min-height: 70px;
    gap: 10px;
  }

  .logo {
    min-width: 0;
    max-width: calc(100% - 56px);
    gap: 8px;
  }

  .logo > div {
    min-width: 0;
  }

  .logo strong {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo > div span {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-img {
    width: 44px;
    height: 44px;
  }

  .logo-pair img,
  .logo-pair .logo-img {
    width: 36px;
    height: 36px;
  }

  .nav-links,
  .nav-center {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    top: 100%;
    margin-top: 8px;
  }

  .nav-links a,
  .nav-center a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .menu-btn {
    flex-shrink: 0;
  }

  .topbar {
    font-size: 11px;
  }

  .topbar-inner {
    min-height: 34px;
    gap: 8px;
  }

  .section {
    padding: 48px 0;
  }

  h1 {
    font-size: clamp(28px, 8.5vw, 40px);
    word-break: break-word;
  }

  h2 {
    font-size: clamp(22px, 6.5vw, 32px);
  }

  .lead {
    font-size: 16px;
  }

  .portal-hero {
    padding: 36px 0 44px;
    background-size: auto, cover, auto;
    animation: none;
  }

  .portal-hero h1,
  .portal-hero .lead {
    max-width: none;
  }

  .hero,
  .page-hero {
    padding: 28px 0 16px;
  }

  .emblem-lg {
    width: 110px;
    height: 110px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .faq summary {
    font-size: 16px;
    padding: 14px 12px 14px 16px;
  }

  .chooser-card {
    padding: 20px 18px;
    min-height: 0;
  }

  .chooser-card h3 {
    font-size: 22px;
  }

  .album-cards,
  .gallery:not(.mosaic) {
    grid-template-columns: 1fr 1fr;
  }

  .gallery img {
    height: 160px;
  }

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

  .footer {
    padding: 36px 0 88px;
  }

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

  .footer-phone {
    font-size: 24px;
    word-break: break-word;
  }

  .whatsapp {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .whatsapp::after {
    display: none;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    max-width: 100%;
  }

  .form-card,
  .info-card,
  .path-card {
    padding: 20px;
  }

  .path-card .card-photo {
    margin: -20px -20px 16px;
  }

  .hero-card {
    min-height: 0;
    padding: 22px;
  }

  .kicker {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }

  .compare-row.head {
    grid-template-columns: 1fr 1fr;
  }

  .compare-row.head > span:first-child {
    display: none;
  }

  .compare-row:not(.head) > span:nth-child(2)::before {
    content: "School · ";
    color: var(--school-dark);
  }

  .compare-row:not(.head) > span:nth-child(3)::before {
    content: "Institute · ";
    color: var(--institute-dark);
  }

  .stat-pills span {
    font-size: 12px;
  }

  .map-frame iframe {
    height: 240px;
  }

  .lightbox {
    padding: 48px 12px 16px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 70vh;
  }

  .gallery-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .gallery-tabs button {
    flex-shrink: 0;
  }

  .weekend-banner {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-photo img,
  .cover-photo img {
    height: 220px;
    animation: none;
  }

  .chooser-card:hover,
  .album-card:hover,
  .value-card:hover,
  .path-card:hover,
  .feature:hover,
  .subject:hover,
  .class-card:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    grid-template-columns: auto 1fr;
  }

  .topbar-inner > span:first-child {
    display: none;
  }

  .topbar-inner .lang-switch {
    justify-self: start;
  }

  .logo > div span {
    display: none;
  }

  .album-cards,
  .gallery:not(.mosaic) {
    grid-template-columns: 1fr;
  }

  .album-card img,
  .album-ph {
    height: 180px;
  }

  .copy {
    flex-direction: column;
    gap: 6px;
  }

  .context-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero h1 {
    font-size: clamp(26px, 8vw, 34px);
  }
}
