/* =========================================================
   R.V. MATRICULATION HIGHER SECONDARY SCHOOL — HOME PAGE
   Design system anchored on the logo palette:
   Primary deep blue (navy) · Gold accent · Academic green · soft white
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Navy scale (primary deep blue from logo #000080) */
  --navy-900: #060f2e;
  --navy-800: #0a1c4f;
  --navy-700: #0d2a6b;
  --navy-600: #16409a;
  --navy-500: #2050c9;
  --blue-tint: #eef3fd;
  --blue-tint-2: #e3ecfd;

  /* Gold accent (from logo #FFD700) */
  --gold-600: #d98a06;
  --gold-500: #f4a518;
  --gold-400: #fbbf3a;
  --gold-300: #ffd36a;
  --gold-tint: #fff6e2;

  /* Academic green (complementary) */
  --green-700: #0c7a52;
  --green-600: #11a06b;
  --green-500: #1cc187;
  --green-tint: #e7f8f0;

  /* Red logo accent (used sparingly) */
  --red: #d63b2e;

  /* Neutrals */
  --cream: #fbfaf6;
  --paper: #ffffff;
  --ink: #0a1733;
  --ink-soft: #36456b;
  --muted: #6c7896;
  --line: #e7ecf7;

  /* Effects */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --shadow-sm: 0 4px 14px rgba(10, 28, 79, 0.06);
  --shadow: 0 14px 40px rgba(10, 28, 79, 0.1);
  --shadow-lg: 0 30px 70px rgba(10, 28, 79, 0.16);
  --ring: 0 0 0 4px rgba(32, 80, 201, 0.14);
  --container: 1200px;
  --aurora-1: rgba(32, 80, 201, 0.16);
  --aurora-2: rgba(244, 165, 24, 0.18);
  --aurora-3: rgba(28, 193, 135, 0.16);
  --aurora-4: rgba(214, 59, 46, 0.08);

  /* Fonts */
  --ff-head:
    "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto,
    sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

/* ---------- 2. RESET / BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background:
    radial-gradient(
      circle at 12% 14%,
      rgba(251, 191, 58, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 10%,
      rgba(32, 80, 201, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, #fffdf5 0%, #f7fbff 45%, #f3fff9 100%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
address {
  font-style: normal;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 3. UTILITIES ---------- */
.sec {
  padding: 30px 0;
  position: relative;
}
.sec::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, var(--aurora-2), transparent 24%),
    radial-gradient(circle at 92% 8%, var(--aurora-1), transparent 28%),
    radial-gradient(circle at 72% 86%, var(--aurora-3), transparent 26%);
  opacity: 0.72;
  transform: translateZ(0);
  animation: auroraShift 18s ease-in-out infinite alternate;
}
.grad-text {
  background: linear-gradient(
    100deg,
    var(--navy-600),
    var(--green-600) 60%,
    var(--gold-500)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-gold {
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  padding: 11px 22px 12px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(
    120deg,
    var(--navy-700),
    var(--navy-500) 48%,
    var(--green-600)
  );
  box-shadow:
    0 12px 26px rgba(13, 42, 107, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  line-height: 1.2;
  overflow: hidden;
}
.eyebrow.center {
  margin-inline: auto;
}
.eyebrow::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.eyebrow::after {
  content: "";
  position: absolute;
  inset: -70% auto -70% -36%;
  width: 30%;
  transform: rotate(18deg) translateX(-150%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.46),
    transparent
  );
  transition: transform 0.65s ease;
}
.eyebrow:hover::after {
  transform: rotate(18deg) translateX(520%);
}
.eyebrow.light {
  color: var(--navy-900);
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(
    120deg,
    var(--gold-300),
    #fff2bd 48%,
    var(--gold-500)
  );
}
.eyebrow-dot {
  display: none;
}

.sec-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.sec-head .center {
  display: inline-flex;
}
.sec-title {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  margin: 18px 0 14px;
  font-weight: 800;
}
.sec-title.light {
  color: #fff;
}
.sec-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.sec-head .sec-lead {
  margin-inline: auto;
}
.sec-lead.light {
  color: rgba(255, 255, 255, 0.86);
}
.sec-text {
  color: var(--muted);
  margin-top: 8px;
}

/* dotted background layer */
.sec-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sec-bg.dots-blue {
  background:
    radial-gradient(
        1.5px 1.5px at 50% 50%,
        rgba(32, 80, 201, 0.18) 60%,
        transparent 62%
      )
      0 0 / 26px 26px,
    linear-gradient(125deg, #fff7e5 0%, #eef3fd 34%, #eafaf3 70%, #f7f9fe 100%);
  background-size:
    26px 26px,
    220% 220%;
  animation: gradientDrift 16s ease infinite;
}
.sec-bg.dots-green {
  background:
    radial-gradient(
        1.5px 1.5px at 50% 50%,
        rgba(17, 160, 107, 0.18) 60%,
        transparent 62%
      )
      0 0 / 26px 26px,
    linear-gradient(125deg, #eafaf3 0%, #fff6e2 38%, #eef3fd 72%, #f4fbf8 100%);
  background-size:
    26px 26px,
    220% 220%;
  animation: gradientDrift 18s ease infinite reverse;
}
.sec > .container {
  position: relative;
  z-index: 1;
}

@keyframes auroraShift {
  0% {
    transform: translate3d(-1%, -1%, 0) scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: translate3d(1.5%, 0.8%, 0) scale(1.02);
    filter: hue-rotate(8deg);
  }
  100% {
    transform: translate3d(-0.5%, 1.5%, 0) scale(1.04);
    filter: hue-rotate(-6deg);
  }
}
@keyframes gradientDrift {
  0% {
    background-position:
      0 0,
      0% 50%;
  }
  50% {
    background-position:
      13px 13px,
      100% 50%;
  }
  100% {
    background-position:
      0 0,
      0% 50%;
  }
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 100px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -35%;
  width: 32%;
  transform: rotate(18deg) translateX(-160%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.62),
    transparent
  );
  transition: transform 0.65s ease;
}
.btn:hover::before {
  transform: rotate(18deg) translateX(520%);
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-primary {
  background: linear-gradient(120deg, var(--navy-700), var(--navy-500));
  color: #fff;
  box-shadow: 0 12px 26px rgba(13, 42, 107, 0.32);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(13, 42, 107, 0.4);
}
.btn-ghost {
  background: #fff;
  color: var(--navy-700);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--navy-500);
  color: var(--navy-600);
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 12px 26px rgba(217, 138, 6, 0.4);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(217, 138, 6, 0.5);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--navy-800);
  transform: translateY(-3px);
}
.btn.sm {
  padding: 11px 18px;
  font-size: 0.88rem;
}

/* ---------- 5. TOP BAR ---------- */
.topbar {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #cdd8f2;
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 16px;
  padding-block: 8px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cdd8f2;
  transition: color 0.2s;
}
.topbar-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold-400);
}
.topbar-item:hover {
  color: #fff;
}
.topbar-motto {
  font-family: var(--ff-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-300);
}
.topbar-cta {
  color: #fff;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.12),
    rgba(244, 165, 24, 0.18),
    rgba(32, 80, 201, 0.18)
  );
  background-size: 220% 220%;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
  transition:
    color 0.25s,
    border-color 0.25s,
    transform 0.25s;
  animation: gradientDrift 12s ease infinite;
}
.topbar-cta:hover {
  color: var(--navy-900);
  border-color: var(--gold-500);
  transform: translateY(-1px);
  background: linear-gradient(
    120deg,
    var(--gold-300),
    var(--gold-500),
    #fff1bd
  );
}
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.social-link {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.social-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-link:hover {
  transform: translateY(-2px);
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-color: rgba(244, 165, 24, 0.8);
}
.footer-social {
  margin-top: 18px;
}

/* ---------- 6. HEADER / NAVBAR ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(10, 28, 79, 0.1);
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}
.brand:hover {
  transform: translateY(-2px);
}
.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  transition: transform 0.35s ease;
}
.brand:hover .brand-logo {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: none;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}
.brand-text small {
  font-size: 0.98rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav a {
  position: relative;
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-soft);
  padding: 12px 13px;
  border-radius: 14px;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-600), var(--gold-500));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover {
  color: var(--navy-700);
  background: linear-gradient(
    135deg,
    rgba(32, 80, 201, 0.08),
    rgba(244, 165, 24, 0.12)
  );
  transform: translateY(-1px);
}
.nav a:hover::after {
  transform: scaleX(1);
}

/* Multi-page dropdown navigation. The shared buttons act as a single-open
   accordion on desktop and inside the mobile drawer. */
.nav-panel > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item {
  position: relative;
}
.nav-parent {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-family: var(--ff-head);
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.nav-parent:hover,
.nav-parent.active,
.nav-item.open > .nav-parent,
.nav-item:focus-within > .nav-parent {
  color: var(--navy-700);
  background: linear-gradient(
    135deg,
    rgba(32, 80, 201, 0.08),
    rgba(244, 165, 24, 0.12)
  );
}
.nav-chevron {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}
.nav-item.open > .nav-parent .nav-chevron {
  transform: rotate(180deg);
}
.nav .submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 240;
  display: grid;
  align-items: stretch;
  gap: 3px;
  min-width: 285px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(6, 15, 46, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}
.nav-item.open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav .submenu a {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 650;
}
.nav .submenu a::after {
  display: none;
}
.nav .submenu a:hover {
  transform: none;
}
.nav > .nav-panel > ul > li > a {
  padding-inline: 8px;
  font-size: 0.93rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-cta {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  font-family: var(--ff-head);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(217, 138, 6, 0.38);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  font-size: 0.92rem;
}
.btn-cta svg {
  width: 17px;
  height: 17px;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(217, 138, 6, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 11px;
  border-radius: 12px;
  background: var(--blue-tint);
  border: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--blue-tint-2);
  border-color: var(--navy-500);
}
.nav-toggle:active {
  transform: scale(0.96);
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy-800);
  border-radius: 4px;
  transition: 0.3s;
}
.nav-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 30px;
  line-height: 1;
  color: var(--navy-800);
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #000;
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1.6px 1.6px at 50% 50%,
      rgba(32, 80, 201, 0.16) 60%,
      transparent 62%
    )
    0 0 / 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.9;
}
.blob-a {
  width: 460px;
  height: 460px;
  top: -160px;
  right: -120px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(32, 80, 201, 0.28),
    transparent 70%
  );
  animation: float1 14s ease-in-out infinite;
}
.blob-b {
  width: 340px;
  height: 340px;
  bottom: -120px;
  left: -90px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(244, 165, 24, 0.3),
    transparent 70%
  );
  animation: float2 18s ease-in-out infinite;
}
.blob-c {
  width: 220px;
  height: 220px;
  top: 40%;
  left: 46%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(17, 160, 107, 0.22),
    transparent 70%
  );
  animation: float1 22s ease-in-out infinite;
}

@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-22px, 26px);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(26px, -22px);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow {
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-sub strong {
  color: var(--navy-700);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--ff-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy-700);
  line-height: 1;
}
.hero-stats span {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}
.hero-stats li + li {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

/* hero media collage */
.hero-media {
  position: relative;
}
.hero-card-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  transform: rotate(-1.2deg);
}
.hero-card-main img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}
.hero-card-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 11px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-card-badge svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold-500);
  fill: var(--gold-tint);
}
.hero-card-badge strong {
  display: block;
  font-family: var(--ff-head);
  color: var(--navy-800);
  font-size: 0.92rem;
}
.hero-card-badge small {
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-card-float {
  position: absolute;
  right: -26px;
  top: 70px;
  width: 168px;
  height: 130px;
  border-radius: 18px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
  transform: rotate(4deg);
  animation: float1 9s ease-in-out infinite;
}
.hero-card-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-pill {
  position: absolute;
  left: -28px;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  padding: 11px 17px 11px 11px;
  border-radius: 100px;
  box-shadow: var(--shadow);
  animation: float2 11s ease-in-out infinite;
}
.hero-pill-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-tint);
  color: var(--green-700);
}
.hero-pill-ic svg {
  width: 19px;
  height: 19px;
}
.hero-pill strong {
  display: block;
  font-family: var(--ff-head);
  color: var(--navy-800);
  font-size: 0.86rem;
  line-height: 1.1;
}
.hero-pill small {
  color: var(--muted);
  font-size: 0.72rem;
}

/* ---------- 8. QUICK INFO STRIP ---------- */
.quick {
  margin-top: 0;
  position: relative;
  z-index: 5;
  padding: 30px 0;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.qi-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.qi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(var(--navy-600), var(--gold-500));
  opacity: 0;
  transition: opacity 0.3s;
}
.qi-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.92);
}
.qi-card:hover::before {
  opacity: 1;
}
.qi-ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-tint), var(--blue-tint-2));
  color: var(--navy-600);
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.qi-ic svg {
  width: 24px;
  height: 24px;
}
.qi-card:hover .qi-ic {
  transform: rotate(-8deg) scale(1.06);
}
.qi-card h3 {
  font-size: 1.06rem;
  margin-bottom: 6px;
}
.qi-card p {
  font-size: 0.88rem;
  color: var(--muted);
}
.qi-card:nth-child(2) .qi-ic {
  background: linear-gradient(135deg, var(--gold-tint), #fdeccb);
  color: var(--gold-600);
}
.qi-card:nth-child(3) .qi-ic {
  background: linear-gradient(135deg, var(--green-tint), #d6f3e6);
  color: var(--green-700);
}
.qi-card:nth-child(4) .qi-ic {
  background: linear-gradient(135deg, #fde6e3, #fcd2cd);
  color: var(--red);
}

/* ---------- 9. ABOUT ---------- */
.about {
  background: linear-gradient(180deg, var(--cream), #fff);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.about-media {
  position: relative;
}
.about-img-frame {
  position: relative;
  border-radius: 28px 28px 160px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.about-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about-deco {
  position: absolute;
  border-radius: 28px;
  z-index: -1;
}
.about-deco-1 {
  width: 70%;
  height: 70%;
  inset: -18px -18px auto auto;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  opacity: 0.35;
  filter: blur(2px);
}
.about-deco-2 {
  width: 60%;
  height: 60%;
  left: -16px;
  bottom: -16px;
  border: 3px dashed rgba(32, 80, 201, 0.3);
  border-radius: 24px;
}
.about-badge {
  position: absolute;
  right: -22px;
  bottom: 28px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}
.about-badge strong {
  font-family: var(--ff-head);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold-300);
  display: block;
  line-height: 1;
}
.about-badge strong span {
  color: #fff;
}
.about-badge span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-top: 6px;
  max-width: 110px;
}

.about-copy .eyebrow {
  margin-bottom: 18px;
}
.about-copy .sec-title {
  text-align: left;
}
.about-copy .sec-lead {
  max-width: none;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin: 30px 0 32px;
}
.about-highlights li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.ah-ic {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  color: var(--navy-600);
}
.about-highlights li:nth-child(2) .ah-ic {
  background: var(--green-tint);
  color: var(--green-700);
}
.about-highlights li:nth-child(3) .ah-ic {
  background: var(--gold-tint);
  color: var(--gold-600);
}
.about-highlights li:nth-child(4) .ah-ic {
  background: #eef0ff;
  color: #5b4bd6;
}
.ah-ic svg {
  width: 20px;
  height: 20px;
}
.about-highlights h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.about-highlights p {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- 10. ACADEMIC ---------- */
.academic {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(32, 80, 201, 0.055) 0 2px,
      transparent 2px 24px
    ),
    linear-gradient(135deg, #f8fdff 0%, #edf9f7 52%, #f7fcff 100%);
  color: var(--navy-900);
}
.academic .sec-bg {
  opacity: 0.18;
  mix-blend-mode: multiply;
}
.academic .sec-title {
  color: var(--navy-900);
}
.academic .sec-lead {
  color: var(--navy-700);
}
.ac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ac-card {
  position: relative;
  padding: 30px 24px 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.ac-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--navy-500),
    var(--gold-400),
    var(--green-500)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ac-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.ac-card:hover::after {
  opacity: 1;
}
.ac-corner {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  transform: rotate(45deg);
  opacity: 0.9;
}
.ac-no {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--navy-800);
  background: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.ac-ic {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-tint), var(--blue-tint-2));
  color: var(--navy-600);
  margin-bottom: 18px;
  transition: transform 0.35s;
}
.ac-card:nth-child(2) .ac-ic {
  background: linear-gradient(135deg, var(--gold-tint), #fdeccb);
  color: var(--gold-600);
}
.ac-card:nth-child(3) .ac-ic {
  background: linear-gradient(135deg, var(--green-tint), #d6f3e6);
  color: var(--green-700);
}
.ac-card:nth-child(4) .ac-ic {
  background: linear-gradient(135deg, #eef0ff, #e2e4ff);
  color: #5b4bd6;
}
.ac-ic svg {
  width: 27px;
  height: 27px;
}
.ac-card:hover .ac-ic {
  transform: rotate(-8deg) scale(1.08);
}
.ac-card h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.ac-card p {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.ac-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.ac-list li {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--blue-tint);
  padding: 5px 11px;
  border-radius: 100px;
}

/* ---------- Academic: Learning Journey ---------- */
/* ---------- Academic: expanding image accordion ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.jexp {
  display: flex;
  gap: 16px;
  height: clamp(420px, 52vw, 560px);
  margin-top: 16px;
}
.jpanel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 26px 64px rgba(10, 28, 79, 0.2);
  transition:
    flex-grow 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s ease;
}
/* full-bleed photo */
.jpanel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--jimg) var(--jpos, center) / cover no-repeat;
  transform: scale(1.06);
  transition:
    transform 1s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.6s ease;
  filter: saturate(0.85) brightness(0.9);
}
/* readability scrim */
.jpanel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(6, 15, 46, 0.3) 0%,
      rgba(6, 15, 46, 0.05) 35%,
      rgba(6, 15, 46, 0.86) 100%
    ),
    linear-gradient(90deg, rgba(6, 15, 46, 0.42), transparent 62%);
  transition: opacity 0.5s ease;
}
/* the whole panel is clickable / focusable */
.jpanel-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
}
.jpanel-hit:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: -5px;
}
.jpanel-no {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
}
/* vertical rail label — visible only while collapsed */
.jpanel-rail {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  opacity: 1;
  transition: opacity 0.35s ease;
}
/* expanded content — hidden while collapsed */
.jpanel-body {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 32px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.45s ease 0.12s,
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.12s;
  pointer-events: none;
}
.jpanel-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 15px;
  border-radius: 100px;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}
.jpanel-body h3 {
  color: #fff;
  font-size: clamp(1.4rem, 1.9vw, 1.85rem);
  margin-bottom: 10px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}
.jpanel-body p {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.65;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
/* gold accent bar on the expanded panel */
.jpanel-body::before {
  content: "";
  position: absolute;
  left: 32px;
  top: -14px;
  width: 0;
  height: 4px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

/* --- open state: default active panel, hover, and keyboard focus --- */
.jpanel.is-active {
  flex-grow: 3.4;
}
.jexp:hover .jpanel.is-active {
  flex-grow: 1;
}
.jexp:hover .jpanel:hover,
.jexp .jpanel:focus-within {
  flex-grow: 3.4;
}

.jpanel.is-active::before,
.jexp:hover .jpanel:hover::before,
.jpanel:focus-within::before {
  transform: scale(1);
  filter: saturate(1.05) brightness(1);
}
.jexp:hover .jpanel.is-active::before {
  transform: scale(1.06);
  filter: saturate(0.85) brightness(0.9);
}
.jexp:hover .jpanel:hover::before {
  transform: scale(1);
  filter: saturate(1.05) brightness(1);
}

.jpanel.is-active .jpanel-rail,
.jexp:hover .jpanel:hover .jpanel-rail,
.jpanel:focus-within .jpanel-rail {
  opacity: 0;
}
.jexp:hover .jpanel.is-active .jpanel-rail {
  opacity: 1;
}
.jexp:hover .jpanel:hover .jpanel-rail {
  opacity: 0;
}

.jpanel.is-active .jpanel-body,
.jexp:hover .jpanel:hover .jpanel-body,
.jpanel:focus-within .jpanel-body {
  opacity: 1;
  transform: translateY(0);
}
.jexp:hover .jpanel.is-active .jpanel-body {
  opacity: 0;
  transform: translateY(18px);
}
.jexp:hover .jpanel:hover .jpanel-body {
  opacity: 1;
  transform: translateY(0);
}

.jpanel.is-active .jpanel-body::before,
.jexp:hover .jpanel:hover .jpanel-body::before,
.jpanel:focus-within .jpanel-body::before {
  width: 64px;
}
.jexp:hover .jpanel.is-active .jpanel-body::before {
  width: 0;
}
.jexp:hover .jpanel:hover .jpanel-body::before {
  width: 64px;
}

#management .ac-card {
  padding-top: 34px;
}
#management {
  background:
    radial-gradient(circle at 5% 0%, rgba(244, 165, 24, 0.22), transparent 30%),
    radial-gradient(circle at 94% 4%, rgba(32, 80, 201, 0.16), transparent 34%),
    radial-gradient(
      circle at 72% 94%,
      rgba(28, 193, 135, 0.18),
      transparent 32%
    ),
    linear-gradient(135deg, #fffdf6 0%, #f7fbff 48%, #f1fff8 100%);
  color: var(--navy-900);
}
#management .sec-title {
  color: var(--navy-900);
}
#management .sec-lead {
  color: var(--navy-700);
}
#management .ac-no {
  position: static;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  color: var(--navy-700);
  background:
    linear-gradient(#fff, #f7faff) padding-box,
    linear-gradient(120deg, var(--navy-500), var(--gold-500), var(--green-500))
      border-box;
  border: 2px solid transparent;
  box-shadow: 0 8px 18px rgba(10, 28, 79, 0.08);
}
#management .ac-card h3 {
  clear: both;
  font-size: 1.1rem;
  line-height: 1.22;
}

/* ---------- 11. FACILITIES ---------- */
.facility {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.facility .sec-title {
  color: #fff;
}
.facility .sec-lead {
  color: rgba(255, 255, 255, 0.78);
}

/* navy glass cards with arch-topped imagery */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.fac-card {
  /* accent cycles across the brand palette */
  --fac-accent: var(--gold-400);
  position: relative;
  padding: 30px 30px 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease;
}
.fac-card:hover {
  transform: translateY(-9px);
  background: rgba(255, 255, 255, 0.09);
  border-color: color-mix(in srgb, var(--fac-accent) 55%, transparent);
  box-shadow: var(--shadow-lg);
}
.fac-no {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-300);
}
/* accent rule under the index number */
.fac-no::after {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-top: 12px;
  border-radius: 100px;
  background: var(--fac-accent);
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fac-card:hover .fac-no::after {
  width: 64px;
}
.fac-media {
  height: 300px;
  margin: 22px 0 26px;
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
}
.fac-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.fac-card:hover .fac-media img {
  transform: scale(1.06);
}
.fac-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.fac-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  text-align: justify;
  hyphens: auto;
}
/* brand accent cycle: gold · green · blue */
.fac-card:nth-child(3n + 1) {
  --fac-accent: var(--gold-400);
}
.fac-card:nth-child(3n + 2) {
  --fac-accent: var(--green-500);
}
.fac-card:nth-child(3n + 3) {
  --fac-accent: #4f86f7;
}

/* ---------- 12. CURRICULUM ---------- */
.curriculum {
  background: transparent;
}
.cu-timeline {
  position: relative;
  display: grid;
  gap: 22px;
  counter-reset: step;
  max-width: 980px;
  margin-inline: auto;
}
.cu-timeline::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(
    var(--navy-500),
    var(--green-500),
    var(--gold-500)
  );
  border-radius: 3px;
}
.cu-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
}
.cu-dot {
  position: absolute;
  left: 30px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--navy-600);
  box-shadow: 0 0 0 5px rgba(32, 80, 201, 0.12);
  z-index: 2;
}
.cu-step:nth-child(2) .cu-dot {
  border-color: var(--green-600);
  box-shadow: 0 0 0 5px rgba(17, 160, 107, 0.14);
}
.cu-step:nth-child(3) .cu-dot {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 5px rgba(244, 165, 24, 0.16);
}
.cu-step:nth-child(4) .cu-dot {
  border-color: #5b4bd6;
  box-shadow: 0 0 0 5px rgba(91, 75, 214, 0.14);
}
.cu-step:nth-child(5) .cu-dot {
  border-color: var(--red);
  box-shadow: 0 0 0 5px rgba(214, 59, 46, 0.12);
}
.cu-ic {
  margin-left: 78px;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy-600);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.cu-step:nth-child(2) .cu-ic {
  color: var(--green-700);
}
.cu-step:nth-child(3) .cu-ic {
  color: var(--gold-600);
}
.cu-step:nth-child(4) .cu-ic {
  color: #5b4bd6;
}
.cu-step:nth-child(5) .cu-ic {
  color: var(--red);
}
.cu-ic svg {
  width: 27px;
  height: 27px;
}
.cu-content {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.cu-content:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
}
.cu-no {
  font-family: var(--ff-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cu-content h3 {
  font-size: 1.16rem;
  margin: 2px 0 4px;
}
.cu-content p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- 13. CO-CURRICULAR BENTO ---------- */
.cocur {
  background: linear-gradient(180deg, var(--cream), #fff);
}
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.bento-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.bento-card:hover img {
  transform: scale(1.1);
}
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 15, 46, 0.05) 30%,
    rgba(6, 15, 46, 0.78)
  );
  transition: background 0.4s;
}
.bento-card:hover::after {
  background: linear-gradient(
    180deg,
    rgba(6, 15, 46, 0.15) 20%,
    rgba(6, 15, 46, 0.86)
  );
}
.bento-lg {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-wide {
  grid-column: span 2;
}
.bento-overlay {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  transform: translateY(0);
  transition: transform 0.4s;
}
.bento-card:hover .bento-overlay {
  transform: translateY(-4px);
}
.bento-tag {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold-400);
  padding: 4px 11px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.bento-overlay h3 {
  color: #fff;
  font-size: 1.3rem;
}
.bento-lg .bento-overlay h3 {
  font-size: 1.7rem;
}

/* ---------- 14. ADMISSION CTA ---------- */
.adm {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(
    120% 120% at 80% 0%,
    #163b9c 0%,
    #0b1f55 45%,
    #060f2e 100%
  );
}
.adm-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.adm-dots {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1.6px 1.6px at 50% 50%,
      rgba(255, 255, 255, 0.16) 60%,
      transparent 62%
    )
    0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(
    120% 100% at 50% 40%,
    #000,
    transparent 75%
  );
  mask-image: radial-gradient(120% 100% at 50% 40%, #000, transparent 75%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.glow-a {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(32, 80, 201, 0.55), transparent 70%);
}
.glow-b {
  width: 320px;
  height: 320px;
  bottom: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(244, 165, 24, 0.4), transparent 70%);
  animation: float2 16s ease-in-out infinite;
}
.glow-c {
  width: 240px;
  height: 240px;
  top: 30%;
  right: 22%;
  background: radial-gradient(
    circle,
    rgba(17, 160, 107, 0.32),
    transparent 70%
  );
  animation: float1 20s ease-in-out infinite;
}
.adm-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  fill: var(--cream);
}
.adm-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.adm-inner .eyebrow {
  margin-bottom: 18px;
}
.adm-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.adm-mail {
  display: inline-block;
  margin-top: 22px;
  color: var(--gold-300);
  font-family: var(--ff-head);
  font-weight: 600;
  border-bottom: 1px solid rgba(244, 165, 24, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.adm-mail:hover {
  color: #fff;
}

/* ---------- 15. GALLERY ---------- */
.gallery {
  background: linear-gradient(180deg, var(--cream), #fff);
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.gal-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 15, 46, 0.5));
  opacity: 0;
  transition: opacity 0.35s;
}
.gal-item:hover img {
  transform: scale(1.1);
}
.gal-item:hover::after {
  opacity: 1;
}
.gal-tall {
  grid-row: span 2;
}
.gal-wide {
  grid-column: span 2;
}
.gal-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- 16. WHY CHOOSE US ---------- */
.why {
  background: transparent;
}
#why {
  overflow: hidden;
  background:
    linear-gradient(
      120deg,
      rgba(6, 15, 46, 0.58),
      rgba(13, 42, 107, 0.42),
      rgba(12, 122, 82, 0.34)
    ),
    url("assets/school.webp") center / cover no-repeat;
  background-attachment: fixed;
}
#why .sec-bg {
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(251, 191, 58, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(28, 193, 135, 0.14),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(6, 15, 46, 0.1), rgba(6, 15, 46, 0.26));
}
#why .eyebrow {
  background: linear-gradient(
    120deg,
    var(--gold-300),
    #fff3bd 48%,
    var(--gold-500)
  );
  color: var(--navy-900);
}
#why .sec-title,
#why .sec-title .grad-text {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
#why .sec-lead {
  color: rgba(255, 255, 255, 0.86);
}
#why .why-card {
  max-height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px 32px 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74))
      padding-box,
    linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7),
        rgba(251, 191, 58, 0.5),
        rgba(28, 193, 135, 0.45)
      )
      border-box;
  border: 1.5px solid transparent;
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow: 0 24px 54px rgba(6, 15, 46, 0.18);
}
#why .why-card:nth-child(1) {
  background:
    linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92),
        rgba(238, 243, 253, 0.82)
      )
      padding-box,
    linear-gradient(135deg, #2050c9, #7fa4ff, #fbbf3a) border-box;
}
#why .why-card:nth-child(2) {
  background:
    linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92),
        rgba(231, 248, 240, 0.82)
      )
      padding-box,
    linear-gradient(135deg, #11a06b, #74e5bd, #ffd36a) border-box;
}
#why .why-card:nth-child(3) {
  background:
    linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92),
        rgba(255, 246, 226, 0.84)
      )
      padding-box,
    linear-gradient(135deg, #f4a518, #ffd36a, #2050c9) border-box;
}
#why .why-card:nth-child(4) {
  background:
    linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92),
        rgba(254, 236, 235, 0.82)
      )
      padding-box,
    linear-gradient(135deg, #d63b2e, #ff9c8f, #fbbf3a) border-box;
}
#why .why-card:nth-child(5) {
  background:
    linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92),
        rgba(238, 240, 255, 0.82)
      )
      padding-box,
    linear-gradient(135deg, #5b4bd6, #a9a2ff, #11a06b) border-box;
}
#why .why-card:nth-child(6) {
  background:
    linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92),
        rgba(238, 243, 253, 0.82)
      )
      padding-box,
    linear-gradient(135deg, #16409a, #73a3ff, #1cc187) border-box;
}
#why .why-card::after {
  inset: -42% -24% auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95),
    rgba(244, 165, 24, 0.18) 42%,
    transparent 70%
  );
  opacity: 0.7;
}
#why .why-card:hover {
  transform: translateY(-14px) scale(1.018);
  box-shadow: 0 34px 76px rgba(6, 15, 46, 0.28);
}
#why .why-ic {
  width: 58px;
  height: 58px;
  min-width: 58px;
  padding: 14px;
  display: inline-grid;
  place-items: center;
  align-self: flex-start;
  box-sizing: border-box;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow:
    0 16px 32px rgba(10, 28, 79, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
#why .why-ic svg {
  display: block;
  width: 100%;
  height: 100%;
}
#why .why-card h3 {
  font-size: 1.08rem;
  margin-bottom: 9px;
  color: var(--navy-900);
}
#why .why-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #53627f;
  max-width: 32ch;
}
#why .why-glow {
  opacity: 0.25;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  position: relative;
  padding: 32px 28px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    140deg,
    var(--navy-500),
    var(--green-500) 55%,
    var(--gold-400)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.why-card:hover::before {
  opacity: 1;
}
.why-glow {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 165, 24, 0.5), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.why-card:hover .why-glow {
  opacity: 1;
}
.why-ic {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-tint), var(--blue-tint-2));
  color: var(--navy-600);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s;
}
.why-card:nth-child(2) .why-ic {
  background: linear-gradient(135deg, var(--green-tint), #d6f3e6);
  color: var(--green-700);
}
.why-card:nth-child(3) .why-ic {
  background: linear-gradient(135deg, var(--gold-tint), #fdeccb);
  color: var(--gold-600);
}
.why-card:nth-child(4) .why-ic {
  background: linear-gradient(135deg, #feeceb, #fcd2cd);
  color: var(--red);
}
.why-card:nth-child(5) .why-ic {
  background: linear-gradient(135deg, #eef0ff, #e2e4ff);
  color: #5b4bd6;
}
.why-card:nth-child(6) .why-ic {
  background: linear-gradient(135deg, var(--blue-tint), var(--blue-tint-2));
  color: var(--navy-600);
}
.why-ic svg {
  width: 27px;
  height: 27px;
}
.why-card:hover .why-ic {
  transform: rotate(-8deg) scale(1.08);
}
.why-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.why-card p {
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

#trust {
  background:
    radial-gradient(
      circle at 10% 12%,
      rgba(244, 165, 24, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 18%,
      rgba(32, 80, 201, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, #f8fcff 0%, #f3fff9 100%);
}
/* Feature banner: image with overlapping frosted panel */
#trust .trust2-banner {
  position: relative;
  margin-top: clamp(38px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr;
}
#trust .trust2-media {
  position: relative;
  width: 100%;
  height: clamp(320px, 42vw, 500px);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(10, 28, 79, 0.2);
}
#trust .trust2-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    255deg,
    rgba(9, 20, 55, 0.72) 0%,
    rgba(9, 20, 55, 0.35) 42%,
    transparent 70%
  );
}
#trust .trust2-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(1.06);
  transition: transform 0.8s ease;
}
#trust .trust2-banner:hover .trust2-media img {
  transform: scale(1.05);
}
#trust .trust2-panel {
  position: absolute;
  right: clamp(20px, 4vw, 54px);
  top: 50%;
  transform: translateY(-50%);
  width: min(460px, 60%);
  padding: clamp(24px, 3vw, 38px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(10, 28, 79, 0.22);
}
#trust .trust2-panel h3 {
  font-family: var(--ff-head);
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  line-height: 1.2;
  color: var(--navy-900);
  margin-bottom: 12px;
}
#trust .trust2-panel p {
  color: #56637d;
  font-size: 0.95rem;
  line-height: 1.65;
}
#trust .trust2-facts {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
#trust .trust2-facts div {
  flex: 1;
  padding: 14px 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blue-tint), var(--green-tint));
  border: 1px solid rgba(10, 28, 79, 0.06);
}
#trust .trust2-facts strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--navy-700), var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#trust .trust2-facts span {
  display: block;
  margin-top: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6a7690;
}

/* Three guiding pillars */
#trust .trust2-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}
#trust .pillar {
  position: relative;
  overflow: hidden;
  padding: 30px 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s;
}
#trust .pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(180deg, var(--navy-500), var(--green-500));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
#trust .pillar:nth-child(2)::before {
  background: linear-gradient(180deg, var(--green-500), var(--gold-400));
}
#trust .pillar:nth-child(3)::before {
  background: linear-gradient(180deg, var(--gold-500), var(--navy-500));
}
#trust .pillar:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
#trust .pillar:hover::before {
  transform: scaleY(1);
}
#trust .pillar-no {
  position: absolute;
  right: 20px;
  top: 14px;
  font-family: var(--ff-head);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(10, 28, 79, 0.06);
}
#trust .pillar-ic {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-tint), var(--blue-tint-2));
  color: var(--navy-600);
  transition: transform 0.35s;
}
#trust .pillar:nth-child(2) .pillar-ic {
  background: linear-gradient(135deg, var(--green-tint), #d6f3e6);
  color: var(--green-700);
}
#trust .pillar:nth-child(3) .pillar-ic {
  background: linear-gradient(135deg, var(--gold-tint), #fdeccb);
  color: var(--gold-600);
}
#trust .pillar:hover .pillar-ic {
  transform: rotate(-8deg) scale(1.08);
}
#trust .pillar-ic svg {
  width: 28px;
  height: 28px;
}
#trust .pillar h4 {
  font-size: 1.24rem;
  margin-bottom: 8px;
  color: var(--navy-900);
}
#trust .pillar p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Vision & Mission */
#trust .trust2-mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
#trust .mv-card {
  position: relative;
  overflow: hidden;
  padding: 30px 32px;
  border-radius: 22px;
  color: #fff;
}
#trust .mv-vision {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}
#trust .mv-mission {
  background: linear-gradient(135deg, #164d43, var(--green-600));
}
#trust .mv-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 165, 24, 0.35),
    transparent 70%
  );
}
#trust .mv-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--ff-head);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold-300);
}
#trust .mv-card p {
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- 17. CONTACT ---------- */
.contact {
  background: linear-gradient(180deg, #fff, var(--cream));
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: stretch;
}
.contact-cards {
  display: grid;
  gap: 16px;
}
.ctc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.ctc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--navy-500);
}
.ctc-ic {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #fff;
}
.ctc-card:nth-child(2) .ctc-ic {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
}
.ctc-card:nth-child(3) .ctc-ic {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
}
.ctc-ic svg {
  width: 24px;
  height: 24px;
}
.ctc-label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ctc-card strong {
  font-family: var(--ff-head);
  font-size: 1.02rem;
  color: var(--navy-800);
  font-weight: 700;
}

.contact-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  background: linear-gradient(135deg, #dfe7f5, #cfd9ef);
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 80, 201, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 80, 201, 0.16) 1px, transparent 1px),
    radial-gradient(
      circle at 30% 40%,
      rgba(17, 160, 107, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(244, 165, 24, 0.22),
      transparent 24%
    );
  background-size:
    40px 40px,
    40px 40px,
    100% 100%,
    100% 100%;
}
.map-pin {
  position: absolute;
  left: 52%;
  top: 46%;
  transform: translate(-50%, -100%);
  color: var(--red);
  filter: drop-shadow(0 8px 14px rgba(214, 59, 46, 0.4));
  animation: bounce 2.6s ease-in-out infinite;
}
.map-pin svg {
  width: 46px;
  height: 46px;
  fill: var(--red);
  stroke: #fff;
  stroke-width: 1.2;
}
@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, -100%);
  }
  50% {
    transform: translate(-50%, -112%);
  }
}
.map-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 16px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.map-card strong {
  font-family: var(--ff-head);
  color: var(--navy-800);
  font-size: 0.98rem;
}
.map-card span {
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-mails {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.contact-mails a {
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--navy-700);
  transition: color 0.2s;
}
.contact-mails a:hover {
  color: var(--gold-600);
}
.cm-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

/* ---------- 18. FOOTER ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #aab6d6;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--navy-500),
    var(--gold-400),
    var(--green-500),
    var(--gold-400)
  );
}
.footer-top {
  padding: 70px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.footer-brand .brand-text strong {
  color: #fff;
}
.footer-brand .brand-text small {
  color: rgba(255, 255, 255, 0.6);
}
.footer-brand .brand-logo {
  padding: 8px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #aab6d6;
  max-width: 38ch;
}
.footer-brand .footer-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #93a1c6;
}
.footer-motto {
  font-family: var(--ff-head) !important;
  font-weight: 700;
  color: var(--gold-300) !important;
  letter-spacing: 0.08em;
  margin-top: 14px !important;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold-400);
}
.footer-col ul {
  display: grid;
  gap: 11px;
}
.footer-col a {
  color: #aab6d6;
  font-size: 0.9rem;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.footer-col a:hover {
  color: var(--gold-300);
  padding-left: 5px;
}
.footer-contact address {
  color: #aab6d6;
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.7;
}
.footer-contact p {
  margin-bottom: 8px;
}
.footer-contact a {
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.84rem;
  color: #8895b8;
}
.footer-credit {
  color: var(--gold-300) !important;
}

/* ---------- 19. BACK TO TOP ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: 0.3s;
}
.to-top:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
}
.to-top svg {
  width: 20px;
  height: 20px;
}
body.scrolled-foot .to-top,
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- 20. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.quick .qi-card.reveal {
  transition-delay: calc(var(--i, 0) * 70ms);
}
.ac-card.reveal,
.fac-card.reveal,
.why-card.reveal,
.cu-step.reveal {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------- 20A. ADVANCED COLOR + HOVER EFFECTS ---------- */
.about,
.cocur,
.gallery,
.contact {
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(244, 165, 24, 0.18),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(32, 80, 201, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 68% 90%,
      rgba(28, 193, 135, 0.14),
      transparent 28%
    ),
    linear-gradient(135deg, #fffdf6 0%, #f7fbff 46%, #f2fff8 100%);
}

.qi-card,
.ac-card,
.why-card,
.ctc-card,
.cu-content {
  isolation: isolate;
}

.qi-card::after,
.ac-card::before,
.why-card::after,
.ctc-card::before,
.cu-content::before {
  content: "";
  position: absolute;
  inset: auto -34% -54% 38%;
  height: 132px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(244, 165, 24, 0.38),
    rgba(32, 80, 201, 0.13) 40%,
    transparent 70%
  );
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.qi-card > *,
.ac-card > *,
.ctc-card > *,
.cu-content > * {
  position: relative;
  z-index: 1;
}

.qi-card:hover::after,
.ac-card:hover::before,
.why-card:hover::after,
.ctc-card:hover::before,
.cu-content:hover::before {
  opacity: 1;
  transform: translateY(-12px) scale(1.08);
}

.qi-card {
  border-color: rgba(255, 255, 255, 0.72);
  transition:
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.38s ease,
    background 0.38s ease,
    border-color 0.38s ease;
}
.qi-card::before {
  background: linear-gradient(
    var(--navy-600),
    var(--gold-500),
    var(--green-500)
  );
}
.qi-card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow: 0 28px 68px rgba(10, 28, 79, 0.18);
  border-color: rgba(244, 165, 24, 0.46);
}

.about-img-frame,
.contact-map {
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s ease;
}
.about-img-frame img,
.contact-map .map-grid {
  transition:
    transform 0.65s ease,
    filter 0.65s ease;
}
.about-img-frame:hover,
.contact-map:hover {
  transform: translateY(-9px) rotate(-0.45deg);
  box-shadow: 0 38px 88px rgba(10, 28, 79, 0.22);
}
.about-img-frame:hover img,
.contact-map:hover .map-grid {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.03);
}
.about-badge {
  animation: badgePulse 3.4s ease-in-out infinite;
}
.about-highlights li {
  transition: transform 0.28s ease;
}
.about-highlights li:hover {
  transform: translateX(7px);
}
.about-highlights li:hover .ah-ic {
  animation: iconPop 0.45s ease;
}

.ac-card {
  transition:
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.38s ease,
    background 0.38s ease;
}
.ac-card:hover {
  transform: translateY(-13px) scale(1.018);
  box-shadow: 0 30px 72px rgba(10, 28, 79, 0.18);
  background: linear-gradient(145deg, #fff 0%, #f7fbff 52%, #fff7df 100%);
}
.ac-corner {
  transition:
    transform 0.45s ease,
    opacity 0.35s ease;
}
.ac-card:hover .ac-corner {
  transform: rotate(45deg) scale(1.18);
  opacity: 1;
}
.ac-card:hover .ac-ic,
.why-card:hover .why-ic,
.qi-card:hover .qi-ic {
  animation: iconPop 0.45s ease;
}

.bento-card,
.gal-item {
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}

.cu-step {
  transition: transform 0.35s ease;
}
.cu-step:hover {
  transform: translateX(4px);
}
.cu-step:hover .cu-dot {
  animation: dotPulse 1s ease infinite;
}
.cu-content {
  position: relative;
  overflow: hidden;
}
.cu-content:hover {
  transform: translateX(12px) scale(1.01);
  box-shadow: 0 22px 50px rgba(10, 28, 79, 0.16);
}

.bento-card:hover,
.gal-item:hover {
  transform: translateY(-9px) scale(1.012);
  box-shadow: 0 30px 72px rgba(10, 28, 79, 0.22);
}
.bento-card:hover img,
.gal-item:hover img {
  transform: scale(1.14);
  filter: saturate(1.18) contrast(1.04);
}
.bento-tag {
  background: linear-gradient(
    120deg,
    var(--gold-300),
    var(--gold-500),
    #fff0b8
  );
  box-shadow: 0 10px 24px rgba(244, 165, 24, 0.28);
}

.adm {
  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(244, 165, 24, 0.38),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 16%,
      rgba(28, 193, 135, 0.28),
      transparent 30%
    ),
    linear-gradient(125deg, #060f2e 0%, #12389a 36%, #0c7a52 68%, #060f2e 100%);
  background-size: 160% 160%;
  animation: admissionFlow 14s ease infinite;
}

.why-card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow: 0 30px 72px rgba(10, 28, 79, 0.18);
  background: rgba(255, 255, 255, 0.94);
}
.why-card::after {
  z-index: 0;
}
.why-card h3,
.why-card p,
.why-card .why-ic,
.why-card .why-glow {
  position: relative;
  z-index: 1;
}

.ctc-card {
  position: relative;
}
.ctc-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 52px rgba(10, 28, 79, 0.15);
}
.ctc-card > * {
  position: relative;
  z-index: 1;
}

.site-footer {
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(244, 165, 24, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 8%,
      rgba(28, 193, 135, 0.14),
      transparent 30%
    ),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}

@keyframes badgePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: var(--shadow-lg);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 32px 72px rgba(10, 28, 79, 0.24);
  }
}
@keyframes iconPop {
  0%,
  100% {
    transform: rotate(-8deg) scale(1.08);
  }
  45% {
    transform: rotate(6deg) scale(1.18);
  }
}
@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(32, 80, 201, 0.12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(244, 165, 24, 0.18);
  }
}
@keyframes admissionFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ---------- 20b. JUSTIFIED DESCRIPTIONS ---------- */
.sec-lead,
.sec-text,
.qi-card p,
.ac-card p,
.fac-card p,
.why-card p,
.cu-content p,
.about-highlights p,
.jpanel-body p,
#trust .trust2-panel p,
#trust .pillar p,
#trust .mv-card p,
.footer-brand p {
  text-align: justify;
  hyphens: auto;
}
/* centred section intros stay centred: justify the body, centre the last line */
.sec-head .sec-lead {
  text-align: justify;
  text-align-last: center;
}

/* ---------- 21. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .header-inner {
    min-height: 86px;
  }
  .brand-logo {
    width: 62px;
    height: 62px;
  }
  .brand-text strong {
    font-size: 1.18rem;
  }
  .brand-text small {
    font-size: 0.78rem;
  }
  .nav ul {
    gap: 4px;
  }
  .nav a {
    font-size: 0.92rem;
    padding: 10px 11px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-stats {
    justify-content: flex-start;
  }
  .ac-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* accordion becomes a stack of full-width photo panels */
  .jexp {
    flex-direction: column;
    height: auto;
    gap: 18px;
  }
  .jpanel,
  .jpanel.is-active,
  .jexp:hover .jpanel.is-active,
  .jexp:hover .jpanel:hover,
  .jexp .jpanel:focus-within {
    flex: 0 0 auto;
    height: 280px;
  }
  .jpanel-rail {
    display: none;
  }
  .jpanel::before,
  .jexp:hover .jpanel.is-active::before {
    transform: scale(1);
    filter: saturate(1.02) brightness(0.98);
  }
  .jpanel-body,
  .jexp:hover .jpanel.is-active .jpanel-body {
    opacity: 1;
    transform: none;
  }
  .jpanel-body::before,
  .jexp:hover .jpanel.is-active .jpanel-body::before {
    width: 64px;
  }
  .fac-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #trust .trust2-pillars {
    grid-template-columns: 1fr;
  }
  #trust .trust2-panel {
    position: static;
    transform: none;
    width: auto;
    margin: -40px 16px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .about-copy .sec-title {
    text-align: center;
  }
  .about-copy .sec-lead {
    text-align: center;
    margin-inline: auto;
  }
  .about-copy .eyebrow {
    margin-inline: auto;
  }
}

@media (max-width: 1180px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 390px);
    background: #fff;
    box-shadow: -20px 0 60px rgba(6, 15, 46, 0.2);
    padding: 76px 22px 30px;
    visibility: hidden;
    z-index: 300;
    overflow-y: auto;
  }
  .nav.open {
    visibility: visible;
  }
  .nav-panel > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .nav a::after {
    display: none;
  }
  .nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: 13px 14px;
    font-size: 1rem;
  }
  .nav .submenu {
    position: static;
    display: none;
    min-width: 0;
    max-height: none;
    overflow: visible;
    margin: 5px 0 7px;
    padding: 7px 7px 7px 15px;
    border: 0;
    border-left: 3px solid var(--gold-400);
    border-radius: 0 10px 10px 0;
    background: var(--blue-tint);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-item:hover > .submenu,
  .nav-item:focus-within > .submenu {
    display: none;
  }
  .nav-item.open > .submenu {
    display: grid;
  }
  .nav .submenu a {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
  .nav-toggle {
    display: flex;
    z-index: 210;
  }
  .nav-close {
    display: block;
    z-index: 220;
  }
}

@media (max-width: 900px) {
  .topbar-right {
    display: none;
  }
  .header-inner {
    min-height: 82px;
  }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    background: #fff;
    box-shadow: -20px 0 60px rgba(6, 15, 46, 0.2);
    padding: 80px 26px 30px;
    visibility: hidden;
    z-index: 300;
    overflow-y: auto;
  }
  .nav.open {
    visibility: visible;
  }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 1.02rem;
  }
  .nav a:hover {
    background: var(--blue-tint);
  }
  .nav a::after {
    display: none;
  }
  .nav-toggle {
    display: flex;
    z-index: 210;
  }
  .nav-close {
    display: block;
    z-index: 220;
  }
  .btn-cta {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sec {
    padding: 24px 0;
  }
  .topbar-left .topbar-item:nth-child(2) {
    display: none;
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .bento-lg {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento-wide {
    grid-column: span 2;
  }
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gal-wide {
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .hero-card-main img {
    height: 340px;
  }
  .hero-card-float {
    width: 130px;
    height: 104px;
    right: -8px;
  }
  .hero-pill {
    left: -6px;
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 18px;
  }
  .brand-logo {
    width: 56px;
    height: 56px;
  }
  .brand {
    gap: 12px;
  }
  .brand-text strong {
    font-size: 1rem;
  }
  .brand-text small {
    font-size: 0.68rem;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .ac-grid,
  .fac-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .fac-card {
    padding: 24px 24px 28px;
  }
  .fac-media {
    height: 260px;
  }
  #trust .trust2-media {
    height: 260px;
  }
  #trust .trust2-panel {
    padding: 22px;
    margin-top: -30px;
  }
  #trust .trust2-facts {
    flex-direction: column;
  }
  #trust .trust2-mv {
    grid-template-columns: 1fr;
  }
  .jpanel,
  .jpanel.is-active,
  .jexp:hover .jpanel.is-active,
  .jexp:hover .jpanel:hover {
    height: 320px;
  }
  .jpanel-body {
    padding: 24px;
  }
  .jpanel-body::before {
    left: 24px;
  }
  .bento,
  .gal-grid {
    grid-template-columns: 1fr;
  }
  .bento-lg,
  .bento-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gal-tall {
    grid-row: span 1;
  }
  .gal-wide {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 18px;
  }
  .hero-stats li + li {
    padding-left: 18px;
  }
  .hero-stats strong {
    font-size: 1.4rem;
  }
  .hero-actions,
  .adm-actions {
    width: 100%;
  }
  .hero-actions .btn,
  .adm-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .about-img-frame img {
    height: 340px;
  }
  .about-img-frame {
    border-radius: 22px 22px 90px 22px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .sec-title {
    font-size: 1.7rem;
  }
  .map-pin svg {
    width: 38px;
    height: 38px;
  }
  .cu-timeline::before {
    left: 22px;
  }
  .cu-dot {
    left: 14px;
  }
  .cu-ic {
    margin-left: 56px;
    width: 48px;
    height: 48px;
  }
  .cu-ic svg {
    width: 22px;
    height: 22px;
  }
  .cu-step {
    gap: 14px;
  }
  .cu-content {
    padding: 14px 16px;
  }
  #why .why-card {
    min-height: auto;
    padding: 24px;
  }
}

/* ---------- 22. A11Y / MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
:focus-visible {
  outline: 3px solid var(--navy-500);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Footer design credit with EduWeb branding. */
.footer-designer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 600;
  white-space: nowrap;
}
.footer-designer img {
  display: block;
  width: 126px;
  height: auto;
  padding: 6px 9px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-designer:hover img {
  transform: translateY(-2px);
  box-shadow: 0 11px 26px rgba(0, 0, 0, 0.27);
}
@media (max-width: 720px) {
  .footer-designer {
    justify-content: center;
  }
  .footer-designer img {
    width: 116px;
  }
}
