:root {
  --indigo: #16213e;
  --indigo-deep: #0c1426;
  --indigo-soft: #2a3760;
  --marigold: #f2a33d;
  --marigold-deep: #d9862a;
  --terracotta: #d9603b;
  --terracotta-deep: #bd4b29;
  --parchment: #fbf3e6;
  --parchment-deep: #f2e3c9;
  --rule-blue: #7e9ac2;
  --banyan: #3c6e47;
  --ink: #272b3b;
  --ink-soft: #5a5e72;
  --white: #ffffff;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.16, 0.84, 0.44, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.55s;
  --dur-slow: 0.9s;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --section-pad: clamp(64px, 9vw, 124px);
  --container: 1180px;
  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;
  --shadow-card: 0 24px 48px -28px rgba(12, 20, 38, 0.45);
  --shadow-soft: 0 14px 30px -16px rgba(12, 20, 38, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  caret-color: transparent;
}
input, textarea, select, [contenteditable="true"] {
  caret-color: auto;
}
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--indigo);
}

/* subtle grain overlay for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== ACCESSIBILITY ===================== */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--marigold);
  color: var(--indigo);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus {
  top: 12px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================== UTILITIES ===================== */
.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--alt {
  background: var(--parchment-deep);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}
.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow::before {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--marigold);
  color: var(--indigo-deep);
  box-shadow: var(--shadow-soft);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(20deg);
  transition: left 0.65s var(--ease);
}
.btn-primary:hover::after {
  left: 130%;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -14px rgba(217, 134, 42, 0.55);
  background: var(--marigold-deep);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(251, 243, 230, 0.55);
  color: var(--parchment);
}
.btn-outline:hover {
  background: rgba(251, 243, 230, 0.12);
  border-color: var(--parchment);
  transform: translateY(-3px);
}
.btn-dark {
  background: var(--indigo);
  color: var(--parchment);
}
.btn-dark:hover {
  background: var(--indigo-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s var(--ease-soft),
    transform 0.8s var(--ease-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-soft),
    transform 0.7s var(--ease-soft);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0.04s;
}
.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.12s;
}
.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.28s;
}
.reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.36s;
}
.reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.44s;
}

/* ruled notebook paper texture */
.ruled-paper {
  position: relative;
  background-color: var(--white);
  background-image: repeating-linear-gradient(
    180deg,
    rgba(126, 154, 194, 0.32) 0px,
    rgba(126, 154, 194, 0.32) 1px,
    transparent 1px,
    transparent 30px
  );
  background-position: 0 14px;
}
.ruled-paper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46px;
  width: 2px;
  background: rgba(217, 96, 59, 0.4);
}

/* ===================== PRELOADER ===================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  transition:
    opacity 0.55s var(--ease),
    visibility 0.55s var(--ease);
}
.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--marigold);
  box-shadow: 0 0 30px rgba(242, 163, 61, 0.5);
  background-color: var(--white);
  z-index: 10000;
}
.preloader__text {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.18;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================== ANNOUNCEMENT BAR ===================== */
.announce-bar {
  background: var(--terracotta);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 300;
}
.announce-track {
  display: inline-flex;
  align-items: center;
  animation: marquee 26s linear infinite;
}
.announce-bar:hover .announce-track {
  animation-play-state: paused;
}
.announce-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 36px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.announce-track span i {
  color: var(--parchment);
  font-size: 0.8rem;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--indigo);
  border-bottom: 1px solid rgba(251, 243, 230, 0.08);
  transition:
    padding var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 12px 30px -18px rgba(12, 20, 38, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  transition: padding var(--dur-fast) var(--ease);
}
.site-header.scrolled .header-inner {
  padding: 11px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(
    circle at 32% 28%,
    var(--indigo-soft),
    var(--indigo-deep)
  );
  border: 2px solid var(--marigold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--marigold);
  font-size: 1.25rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}
.brand-text .en {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--parchment);
  font-size: 1.04rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(251, 243, 230, 0.85);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--marigold);
  transition: width var(--dur-fast) var(--ease);
}
.main-nav a:hover {
  color: var(--parchment);
}
.main-nav a:hover::after {
  width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn-call {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--parchment);
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid rgba(251, 243, 230, 0.3);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast);
}
.icon-btn-call:hover {
  background: rgba(251, 243, 230, 0.08);
  border-color: rgba(251, 243, 230, 0.6);
}
.icon-btn-call i {
  color: var(--marigold);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition:
    transform var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

/* mobile nav drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 38, 0.55);
  backdrop-filter: blur(2px);
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-fast) var(--ease),
    visibility var(--dur-fast) var(--ease);
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 84vw);
  background: var(--indigo);
  z-index: 700;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
  padding: 26px 26px 32px;
}
.mobile-nav.active {
  transform: translateX(0);
}
.mobile-nav__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.mobile-nav__close {
  font-size: 1.4rem;
  color: var(--parchment);
}
.mobile-nav a {
  display: block;
  padding: 13px 4px;
  color: var(--parchment);
  font-weight: 700;
  font-size: 1.04rem;
  border-bottom: 1px solid rgba(251, 243, 230, 0.08);
}
.mobile-nav__cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    140% 100% at 20% 0%,
    var(--indigo-soft),
    var(--indigo) 45%,
    var(--indigo-deep) 100%
  );
  padding: clamp(56px, 8vw, 100px) 0 clamp(70px, 9vw, 110px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(242, 163, 61, 0.16) 1.5px,
    transparent 1.5px
  );
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marigold);
  background: rgba(242, 163, 61, 0.12);
  border: 1px solid rgba(242, 163, 61, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  color: var(--parchment);
  margin-bottom: 22px;
  font-weight: 700;
}
.hero h1 em {
  font-style: italic;
  color: var(--marigold);
  font-weight: 600;
}
.hero p.lead {
  color: rgba(251, 243, 230, 0.78);
  font-size: 1.12rem;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 54px;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(251, 243, 230, 0.14);
  padding-top: 32px;
}
.stat-strip .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--marigold);
  font-weight: 700;
  line-height: 1;
}
.stat-strip .stat-label {
  font-size: 0.78rem;
  color: rgba(251, 243, 230, 0.66);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* seal badge */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal-badge {
  position: relative;
  width: clamp(220px, 26vw, 300px);
  height: clamp(220px, 26vw, 300px);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}
.seal-badge__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.seal-ring-outer {
  fill: none;
  stroke: rgba(242, 163, 61, 0.45);
  stroke-width: 1.5;
}
.seal-ring-rotate {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: sealSpin 38s linear infinite;
}
@keyframes sealSpin {
  to {
    transform: rotate(360deg);
  }
}
.seal-ring-dotted {
  fill: none;
  stroke: rgba(251, 243, 230, 0.55);
  stroke-width: 2;
  stroke-dasharray: 1 7;
  stroke-linecap: round;
}
.ring-text {
  fill: var(--marigold);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}
.seal-inner-circle {
  fill: var(--indigo-deep);
  stroke: var(--marigold);
  stroke-width: 2;
}
.seal-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  color: var(--marigold);
}
.seal-orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(217, 96, 59, 0.2);
}
.seal-orbit-dot.d1 {
  top: 6%;
  left: 14%;
}
.seal-orbit-dot.d2 {
  bottom: 10%;
  right: 8%;
  background: var(--banyan);
  box-shadow: 0 0 0 5px rgba(60, 110, 71, 0.2);
}
.hero-card-float {
  position: absolute;
  bottom: -6%;
  left: -8%;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatY 6s ease-in-out infinite;
  animation-delay: 0.4s;
}
.hero-card-float i {
  color: var(--banyan);
  font-size: 1.3rem;
}
.hero-card-float strong {
  display: block;
  font-size: 0.92rem;
  color: var(--indigo);
}
.hero-card-float span {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.principal-quote {
  position: relative;
  background: var(--parchment-deep);
  border-left: 4px solid var(--terracotta);
  padding: 24px 26px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 26px;
}
.principal-quote i.fa-quote-left {
  color: var(--terracotta);
  opacity: 0.4;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.principal-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--indigo);
  margin: 0 0 12px;
}
.principal-quote footer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.vm-card .ruled-paper {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0.55;
}
.vm-card-inner {
  position: relative;
  z-index: 1;
}
.vm-block {
  margin-bottom: 26px;
}
.vm-block:last-child {
  margin-bottom: 0;
}
.vm-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--terracotta);
}
.vm-block h3 i {
  font-size: 1rem;
}
.vm-block p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.vm-block ul li {
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 8px;
  align-items: flex-start;
}
.vm-block ul li i {
  color: var(--banyan);
  margin-top: 4px;
  font-size: 0.85rem;
}

/* ===================== WHY US ===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
  border-top: 3px solid transparent;
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-top-color: var(--marigold);
}
.why-card .ic {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(217, 96, 59, 0.1);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  transition: transform var(--dur-fast) var(--ease-soft);
}
.why-card:hover .ic {
  transform: rotate(-8deg) scale(1.08);
}
.why-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.why-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ===================== ACADEMICS ladder ===================== */
.ladder {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ladder::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--rule-blue) 0 10px,
    transparent 10px 18px
  );
  z-index: 0;
}
.rung {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-soft);
  z-index: 1;
}
.rung-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--marigold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.rung h3 {
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.rung .stage-range {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.rung p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.academics-note {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.academics-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.academics-note i {
  color: var(--banyan);
}

/* ===================== FACILITIES ===================== */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fac-card {
  background: var(--indigo);
  color: var(--parchment);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-soft);
}
.fac-card:hover {
  transform: translateY(-6px);
}
.fac-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(242, 163, 61, 0.08);
  top: -50px;
  right: -50px;
}
.fac-card i.fa-display-icon {
  position: relative;
  font-size: 1.5rem;
  color: var(--marigold);
  margin-bottom: 16px;
  display: block;
}
.fac-card h3 {
  color: var(--parchment);
  font-size: 1.08rem;
  margin-bottom: 8px;
  position: relative;
}
.fac-card p {
  color: rgba(251, 243, 230, 0.68);
  font-size: 0.92rem;
  position: relative;
}

/* ===================== NOTICE BOARD ===================== */
.notice-section {
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 0, 0, 0.06) 0, transparent 2.4%),
    radial-gradient(circle at 64% 70%, rgba(0, 0, 0, 0.05) 0, transparent 2.2%),
    radial-gradient(circle at 84% 18%, rgba(0, 0, 0, 0.05) 0, transparent 2%),
    radial-gradient(circle at 38% 84%, rgba(0, 0, 0, 0.05) 0, transparent 2%),
    linear-gradient(160deg, #c9a06a, #b8895a);
}
.notice-section .section-head h2,
.notice-section .section-head p {
  color: var(--parchment);
}
.notice-section .eyebrow {
  color: #ffe3b0;
}
.notice-section .eyebrow::before {
  background: #ffe3b0;
}
.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}
.note {
  position: relative;
  padding: 30px 22px 24px;
  border-radius: 4px;
  box-shadow: 0 16px 26px -12px rgba(0, 0, 0, 0.35);
  transition:
    transform var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
  font-family: var(--font-body);
}
.note:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: 0 22px 34px -14px rgba(0, 0, 0, 0.4);
}
.note:nth-child(6n + 1) {
  background: #fce9b8;
  transform: rotate(-3deg);
}
.note:nth-child(6n + 2) {
  background: #fbd7c3;
  transform: rotate(2deg);
}
.note:nth-child(6n + 3) {
  background: #d9ecd0;
  transform: rotate(-1.5deg);
}
.note:nth-child(6n + 4) {
  background: #fce9b8;
  transform: rotate(1.5deg);
}
.note:nth-child(6n + 5) {
  background: #d7e3f2;
  transform: rotate(-2deg);
}
.note:nth-child(6n + 6) {
  background: #fbd7c3;
  transform: rotate(2.5deg);
}
.note::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8c7a, #b8392a 70%);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}
.note h3 {
  font-size: 1.02rem;
  color: var(--indigo);
  margin-bottom: 8px;
}
.note p {
  font-size: 0.88rem;
  color: #4a4434;
}

/* ===================== GALLERY ===================== */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gal-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: linear-gradient(
    150deg,
    var(--g1, var(--indigo)),
    var(--g2, var(--indigo-soft))
  );
  display: flex;
  align-items: flex-end;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.gal-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
}
.gal-tile i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 2.6rem;
  color: rgba(251, 243, 230, 0.5);
  transition: transform var(--dur-med) var(--ease-soft);
}
.gal-tile span {
  position: relative;
  color: var(--parchment);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 1;
}
.gal-tile:hover i {
  transform: translate(-50%, -70%) scale(1.12) rotate(-6deg);
}
.gal-tile:hover {
  box-shadow: var(--shadow-card);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(12, 20, 38, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease);
  padding: 24px;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-box {
  background: linear-gradient(
    150deg,
    var(--g1, var(--indigo)),
    var(--g2, var(--indigo-soft))
  );
  width: min(560px, 92vw);
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transform: scale(0.92);
  transition: transform var(--dur-fast) var(--ease-soft);
  position: relative;
}
.lightbox.active .lightbox-box {
  transform: scale(1);
}
.lightbox-box i {
  font-size: 3.4rem;
  color: rgba(251, 243, 230, 0.55);
}
.lightbox-box h4 {
  color: var(--parchment);
  font-size: 1.3rem;
}
.lightbox-box p {
  color: rgba(251, 243, 230, 0.7);
  font-size: 0.9rem;
  max-width: 80%;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  color: var(--parchment);
  font-size: 1.6rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--parchment);
  font-size: 1.4rem;
  background: rgba(251, 243, 230, 0.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}
.lightbox-nav:hover {
  background: rgba(251, 243, 230, 0.25);
}
.lightbox-prev {
  left: -22px;
}
.lightbox-next {
  right: -22px;
}
@media (max-width: 600px) {
  .lightbox-prev {
    left: 0;
  }
  .lightbox-next {
    right: 0;
  }
}

/* ===================== TESTIMONIALS ===================== */
.testi-wrap {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.testi-track {
  position: relative;
  min-height: 240px;
}
.testi-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.6s var(--ease-soft),
    transform 0.6s var(--ease-soft);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 42px 40px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.testi-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}
.testi-slide i.fa-quote-left {
  font-size: 1.8rem;
  color: var(--marigold);
  margin-bottom: 18px;
}
.testi-slide p {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--indigo);
  font-style: italic;
  margin-bottom: 22px;
}
.testi-author strong {
  display: block;
  color: var(--indigo);
  font-size: 0.95rem;
}
.testi-author span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.testi-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(22, 33, 62, 0.18);
  transition:
    background var(--dur-fast),
    width var(--dur-fast);
}
.testi-dots button.active {
  background: var(--terracotta);
  width: 26px;
  border-radius: 6px;
}
.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
  transition: transform var(--dur-fast);
}
.testi-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}
.testi-arrow.prev {
  left: -58px;
}
.testi-arrow.next {
  right: -58px;
}
@media (max-width: 880px) {
  .testi-arrow {
    display: none;
  }
}

/* ===================== ADMISSIONS ===================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  position: relative;
  text-align: left;
  padding-top: 8px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: rgba(22, 33, 62, 0.13);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.step-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.step-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: -12px;
  color: var(--marigold-deep);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f178";
  font-size: 1rem;
  display: none;
}
@media (min-width: 860px) {
  .step-card:not(:last-child)::after {
    display: block;
  }
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.info-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}
.info-card .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(22, 33, 62, 0.06);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: none;
}
.info-card h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
  color: var(--indigo);
}
.info-card p,
.info-card a {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.info-card a:hover {
  color: var(--terracotta);
}
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-top: 24px;
}
.map-wrap iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}
.whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 8px;
  transition: transform var(--dur-fast);
}
.whatsapp-inline:hover {
  transform: translateY(-3px);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  position: relative;
  border-top: 6px solid var(--marigold);
}
.form-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.form-card-head .seal-mini {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--marigold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: none;
}
.form-card-head h3 {
  font-size: 1.3rem;
}
.form-card-head span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.field {
  position: relative;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid rgba(22, 33, 62, 0.16);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: var(--parchment);
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
  font-size: 0.95rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--terracotta);
  outline: none;
  box-shadow: 0 0 0 4px rgba(217, 96, 59, 0.12);
}
.field textarea {
  resize: vertical;
  min-height: 104px;
}
.field .err-msg {
  display: none;
  color: var(--terracotta-deep);
  font-size: 0.78rem;
  margin-top: 6px;
  font-weight: 600;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--terracotta-deep);
  animation: shake 0.4s;
}
.field.invalid .err-msg {
  display: block;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form-foot p {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.btn-submit {
  min-width: 190px;
}
.btn-submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(22, 33, 62, 0.3);
  border-top-color: var(--indigo-deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-label {
  display: none;
}
.btn-submit.loading .spinner {
  display: inline-block;
}
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.active {
  display: block;
}
.form-success i {
  font-size: 3rem;
  color: var(--banyan);
  margin-bottom: 16px;
  animation: popIn 0.5s var(--ease-soft);
}
@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.form-success h3 {
  margin-bottom: 10px;
}
.form-success p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.enquiry-form.hidden {
  display: none;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--indigo-deep);
  color: rgba(251, 243, 230, 0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(251, 243, 230, 0.08);
}
.footer-brand .brand-mark {
  border-color: var(--marigold);
}
.footer-brand .brand {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(251, 243, 230, 0.55);
  max-width: 280px;
  margin-bottom: 18px;
}
.social-row {
  display: flex;
  gap: 10px;
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(251, 243, 230, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--dur-fast),
    transform var(--dur-fast);
}
.social-row a:hover {
  background: var(--marigold);
  color: var(--indigo-deep);
  transform: translateY(-3px);
}
.footer-col h4 {
  color: var(--parchment);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li {
  margin-bottom: 11px;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(251, 243, 230, 0.62);
  transition: color var(--dur-fast);
}
.footer-col a:hover {
  color: var(--marigold);
}
.footer-col p.addr {
  font-size: 0.9rem;
  color: rgba(251, 243, 230, 0.62);
  margin-bottom: 14px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(251, 243, 230, 0.45);
}
.footer-bottom a {
  color: rgba(251, 243, 230, 0.6);
}
.footer-bottom a:hover {
  color: var(--marigold);
}

/* ===================== FLOATING BUTTONS ===================== */
.fab {
  position: fixed;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px -10px rgba(12, 20, 38, 0.5);
  z-index: 400;
  font-size: 1.4rem;
  transition:
    transform var(--dur-fast),
    opacity var(--dur-fast),
    visibility var(--dur-fast);
}
.fab-whatsapp {
  right: 24px;
  background: #25d366;
  color: #fff;
  animation: pulse 2.6s ease-in-out infinite;
}
.fab-whatsapp:hover {
  transform: scale(1.08);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 14px 28px -10px rgba(12, 20, 38, 0.5),
      0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow:
      0 14px 28px -10px rgba(12, 20, 38, 0.5),
      0 0 0 10px rgba(37, 211, 102, 0);
  }
}
.fab-top {
  right: 92px;
  background: var(--indigo);
  color: var(--marigold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.fab-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fab-top:hover {
  transform: translateY(-4px);
}
@media (max-width: 560px) {
  .fab {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 16px;
  }
  .fab-whatsapp {
    right: 16px;
  }
  .fab-top {
    right: 74px;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 10px;
  }
  .hero-card-float {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .why-grid,
  .fac-grid,
  .notice-grid,
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ladder {
    grid-template-columns: 1fr;
  }
  .ladder::before {
    display: none;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  
  /* Hides the ENTIRE call button on mobile */
  .icon-btn-call {
    display: none;
  }
  
  /* Hides the 'Enquire Now' button on mobile */
  .header-actions .btn-primary {
    display: none;
  }
  
  .hamburger {
    display: flex;
    margin-left: auto; /* Pushes the menu to the far right */
  }
  
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }
  
  /* NEW FIXES FOR MOBILE HEADER */
  .brand-mark {
    width: 48px; 
    height: 48px;
  }
  .brand-text .en {
    font-size: 0.85rem; 
    line-height: 1.1;
  }
  .brand-text {
    max-width: 180px; /* Prevents text from overlapping the menu on very small phones */
  }
  .header-inner {
    gap: 8px; 
  }
}
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }
  
  /* NEW FIXES FOR MOBILE HEADER */
  .brand-mark {
    width: 48px; /* Shrinks the logo image down on mobile */
    height: 48px;
  }
  .brand-text .en {
    font-size: 0.85rem; /* Shrinks the school name text so it fits */
    line-height: 1.1;
  }
  .header-inner {
    gap: 8px; /* Reduces space between elements in the header */
  }

@media (max-width: 640px) {
  .why-grid,
  .fac-grid,
  .notice-grid,
  .gal-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}

/* ===================== LEADERSHIP / TEAM SECTION ===================== */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.team-row {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.team-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* This line makes the layout alternate (zig-zag). 
   If you want EVERY row to be Text Left / Photo Right, just delete the block below. */
.team-row:nth-child(even) {
  flex-direction: row-reverse;
}

.team-text {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-text h3 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.team-role {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.team-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.team-img-wrap {
  flex: 0 0 40%; /* The photo takes up 40% of the card width */
  position: relative;
  min-height: 280px;
}
.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--parchment-deep);
}

/* Mobile Responsive */
@media (max-width: 860px) {
  .team-row, 
  .team-row:nth-child(even) {
    flex-direction: column-reverse; /* Text on bottom, Photo on top for mobile */
  }
  .team-img-wrap {
    width: 100%;
    flex: auto;
    aspect-ratio: 16 / 10;
  }
  .team-photo {
    position: relative;
  }
  .team-text {
    padding: 32px 24px;
  }
}
.team-img-wrap {
  flex: 0 0 40%; 
  position: relative;
  min-height: 360px; /* Increased from 280px to give the portrait more vertical room */
}

.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Pushes the focus to the top of the image so heads aren't cut off */
  background-color: var(--parchment-deep);
}