:root {
  --primary: #082D5B;
  --primary-dark: #061F40;
  --sky-950: #082F49;
  --blue-700: #1D4ED8;
  --blue-200: #BFDBFE;
  --secondry: #15396B;
  --secondry-hover: #0E2850;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dark200: #111827;
  --text-main: #111B27;
  --text-sec: #71747A;
  --zinc-600: #52525B;
  --slate-50: #F8FAFC;
  --slate-900: #0F172A;
  --line: #E4E4E7;
  --paper: #FFFFFF;

  /* Bento Grid signature colors */
  --bento-mint: #5FD0C6;
  --bento-orange: #FB9446;
  --bento-sky-top: #38BDF8;
  --bento-sky-bot: #47B5E1;
  --bento-purple: #7057F6;
  --bento-amber: #F5AB23;

  --ok: #12805C;
  --err: #DC2626;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 12px 32px -12px rgba(8, 45, 91, 0.16);
  --shadow-lg: 0 24px 50px -16px rgba(8, 45, 91, 0.28);
  --font: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-main);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.45;
  margin: 0 0 0.5em;
  color: var(--text-main);
}
h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--secondry); outline-offset: 2px; border-radius: 6px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: #fff;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 200;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 100% - 2.4rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 7vw, 6.5rem); }
.muted { color: var(--text-sec); }

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.55rem 1.8rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: 600 0.98rem var(--font);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(8, 45, 91, 0.35); }
.btn:active { transform: none; box-shadow: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-gold { background: var(--secondry); color: #fff; }
.btn-outline-light {
  background: #fff;
  color: var(--dark200);
  border-color: #D4D4D8;
  font-size: 0.9rem;
  min-height: 40px;
  padding: 0.35rem 1.15rem;
  border-radius: 8px;
}
.btn-outline-light:hover { background: var(--slate-50); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-teal { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--dark200); }
.btn-sm { min-height: 38px; padding: 0.25rem 1rem; font-size: 0.88rem; }
.btn-danger { background: var(--err); color: #fff; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ===== Header (Transparent gradient -> crisp white solid on scroll, just like reference) ===== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 70;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}
.site-header.solid {
  background: rgba(255, 255, 255, 0.97);
  color: var(--dark200);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px -8px rgba(8, 45, 91, 0.14);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand-sub {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  opacity: 0.78;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: inherit;
  font: 500 0.94rem var(--font);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item.open > .nav-link {
  color: var(--secondry);
}
.site-header.solid .nav-link:hover,
.site-header.solid .nav-link[aria-current="page"] {
  color: var(--primary);
}
.header-cta {
  background: #fff;
  color: var(--dark200);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  border-radius: 99px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.site-header.solid .header-cta {
  background: var(--primary);
  color: #fff;
}
.header-cta:hover {
  background: var(--secondry);
  color: #fff;
  transform: translateY(-2px);
}

/* Prominent, fixed "Moodle" learning-platform button in the header */
.header-moodle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--secondry);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  box-shadow: 0 6px 16px -8px rgba(21, 57, 107, 0.55);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.header-moodle-btn svg {
  transition: transform 0.4s var(--ease);
}
.header-moodle-btn:hover {
  background: var(--secondry-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(21, 57, 107, 0.65);
}
.header-moodle-btn:hover svg {
  transform: rotate(-12deg) scale(1.12);
}
.drawer-moodle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--secondry);
  color: #fff !important;
  font-weight: 800;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.drawer-moodle-btn:active { transform: scale(0.97); }

/* Mega Dropdown (exact 520px white card with 1/3 illustration + 2/3 items) */
.mega-panel {
  display: flex;
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  width: 520px;
  background: #fff;
  color: var(--dark200);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav-item:hover > .mega-panel,
.nav-item:focus-within > .mega-panel,
.nav-item.open > .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.mega-illust {
  width: 34%;
  background: var(--slate-50);
  display: flex;
  align-items: stretch;
}
.mega-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-list {
  width: 66%;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  color: var(--dark200);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.mega-item:hover { background: var(--slate-50); transform: translateX(4px); }
.mega-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EFF6FF;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1.15rem;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.mega-item:hover .mega-icon {
  transform: scale(1.12) rotate(-6deg);
  background: var(--primary);
  color: #fff;
}
.mega-item b { display: block; font-size: 0.92rem; color: var(--primary); }
.mega-item small { color: var(--text-sec); font-size: 0.78rem; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.menu-btn {
  display: none;
  background: transparent;
  color: inherit;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

/* Mobile Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 45, 91, 0);
  display: block;
  visibility: hidden;
  pointer-events: none;
  transition: background 0.4s var(--ease), visibility 0.4s;
}
.drawer.open {
  background: rgba(8, 45, 91, 0.55);
  visibility: visible;
  pointer-events: auto;
}
.drawer nav {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(330px, 86vw);
  background: var(--sky-950);
  color: #fff;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.drawer.open nav { transform: translateX(0); }
.drawer nav a {
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  color: #E2E8F0;
  font-weight: 500;
}
.drawer nav a:hover,
.drawer nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--secondry);
}
.drawer .group-label {
  font-size: 0.76rem;
  color: #94A3B8;
  padding: 0.6rem 0.95rem 0.2rem;
  font-weight: 700;
}

/* ===== [1] Hero Slider (704px, centered bottom stacked amber + white pills!) ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 704px;
  background: var(--primary);
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 6.5rem;
  text-align: center;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
}
.hero-slide.active .bg-img { transform: scale(1); }
.hero-slide .overlay-glow {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 55%;
  background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(0, 121, 255, 0.45) 0%, rgba(11, 32, 53, 0) 100%);
  pointer-events: none;
}
.hero-slide .overlay-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}
.hero-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  padding-inline: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.7s ease 0.15s, opacity 0.7s ease 0.15s;
}
.hero-slide.active .hero-stack {
  transform: translateY(0);
  opacity: 1;
}
.hero-pill-title {
  background: var(--secondry);
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  padding: 0.7rem 1.75rem;
  border-radius: 10px;
  margin: 0;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35);
}
.hero-pill-sub {
  margin: 1rem 0 0;
  background: #ffffff;
  color: #000000;
  font-size: clamp(0.92rem, 1.5vw, 1.12rem);
  font-weight: 500;
  padding: 0.55rem 1.45rem;
  border-radius: 8px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.28);
}
.hero-controls {
  position: absolute;
  bottom: 24px;
  inset-inline: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.hero-dot.active {
  width: 30px;
  background: var(--secondry);
}
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(8, 45, 91, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-nav-btn:hover { background: var(--secondry); color: #fff; transform: translateY(-50%) scale(1.08); }
.hero-nav-btn.prev { inset-inline-start: 22px; }
.hero-nav-btn.next { inset-inline-end: 22px; }

/* ===== [2] About Section (Clean white 2-col split) ===== */
.about-sec {
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.sec-title-primary {
  color: var(--primary);
  font-size: clamp(1.65rem, 2.8vw, 2.05rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.about-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-media img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

/* ===== [3] School Numbers — VIBRANT BENTO GRID on sky-950 ===== */
.stats-band {
  background: var(--sky-950);
  color: #fff;
  padding-block: 0 5.5rem;
  position: relative;
}
.stats-emblem {
  width: 84px;
  height: 84px;
  margin-inline: auto;
  transform: translateY(-42px);
  border-radius: 22px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.45);
}
.stats-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stats-heading {
  text-align: center;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: -12px 0 2.6rem;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  max-width: 1220px;
  margin-inline: auto;
}
.bento-card {
  border-radius: 18px;
  padding: 1.4rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease;
}
.bento-card:hover { transform: translateY(-4px); }
.bento-card.c0 { background: var(--bento-mint); }
.bento-card.c1 { background: var(--bento-orange); grid-column: span 2; }
.bento-card.c2 {
  background: linear-gradient(180deg, var(--bento-sky-top) 0%, var(--bento-sky-bot) 100%);
  grid-row: span 2;
}
.bento-card.c3 { background: var(--bento-purple); grid-column: span 2; }
.bento-card.c4 { background: var(--bento-amber); }

.bento-label {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
}
.bento-num {
  color: var(--text-main);
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0.25rem;
}
.bento-card.c3 .bento-num { color: #ffffff; }
.bento-art {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  opacity: 0.9;
}
.bento-art svg {
  width: 128px;
  height: 105px;
}

/* ===== [4] Study Fees (White + Golden Radial Halo + Arched Wave + Visual) ===== */
.fees-sec {
  position: relative;
  background: #fff;
  padding-top: 5.5rem;
  overflow: hidden;
  text-align: center;
}
.fees-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 780px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.fees-lead {
  color: var(--sky-950);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  margin: 0;
}
.fees-note {
  color: var(--sky-950);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  margin: 0;
}
.fees-stage {
  position: relative;
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 3rem;
}
.fees-halo {
  position: absolute;
  width: 720px;
  height: 720px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 57, 107, 0.28) 0%, rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
  z-index: 0;
}
.fees-tiers {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  text-align: start;
}
.fee-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #E4E4E7;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.fee-badge {
  display: inline-block;
  background: #DCE7F5;
  color: var(--secondry);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 0.65rem;
}

/* ===== [5] Events Carousel (from-primary to-blue-700, 471px tall cards + morphing white circle CTA) ===== */
.events-sec {
  background: linear-gradient(180deg, var(--primary) 0%, var(--blue-700) 100%);
  color: #fff;
  padding-block: 4rem 5rem;
}
.sec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.events-sec h2 { color: #fff; margin: 0; font-size: 1.45rem; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.6rem) / 3);
  gap: 1.3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.event-card {
  position: relative;
  height: 455px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--primary-dark);
}
.event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.event-card:hover img { transform: scale(1.08); }
.event-card .grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.82) 100%);
  z-index: 1;
}
.event-card .content {
  position: absolute;
  bottom: 1.2rem;
  inset-inline: 1.2rem;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.event-card h3 {
  color: #fff;
  font-size: 1.06rem;
  line-height: 1.55;
  margin: 0;
}
.event-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-date {
  font-size: 0.85rem;
  color: #E2E8F0;
}
/* Morphing white circular arrow button (exact signature interaction from reference!) */
.morph-btn {
  width: 52px;
  height: 52px;
  border-radius: 99px;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  transition: width 0.3s ease, padding 0.3s ease, gap 0.3s ease;
}
.morph-btn .lbl {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.3s ease, opacity 0.25s ease;
}
.morph-btn .arr {
  display: inline-block;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  font-size: 1.15rem;
}
.event-card:hover .morph-btn {
  width: 126px;
  padding-inline: 1rem;
  gap: 0.45rem;
}
.event-card:hover .morph-btn .lbl {
  max-width: 70px;
  opacity: 1;
}
.event-card:hover .morph-btn .arr {
  transform: rotate(0deg);
}

/* ===== [6] Latest News (bg-slate-50, 1 big card + 3 sleek horizontal cards) ===== */
.news-sec {
  background: var(--slate-50);
  padding-block: 5.5rem;
}
.news-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.8rem;
  align-items: start;
}
.news-featured {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.news-featured img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}
.news-featured .body { padding: 1.5rem; }
.news-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.news-row {
  display: grid;
  grid-template-columns: 192px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.news-row img {
  width: 192px;
  height: 128px;
  border-radius: 12px;
  object-fit: cover;
}
.news-tag {
  display: inline-block;
  background: #EFF6FF;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: 99px;
}

/* ===== [7] Educational Objectives (Tall portrait image + vertical animated bar accordion!) ===== */
.obj-sec {
  background: #fff;
  padding-block: 5.5rem;
}
.obj-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.obj-portrait {
  border-radius: 18px;
  overflow: hidden;
  height: 540px;
  box-shadow: var(--shadow-lg);
}
.obj-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.obj-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.obj-row {
  padding: 0.85rem 0.6rem;
  cursor: pointer;
}
.obj-row-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.obj-bar {
  width: 5px;
  height: 22px;
  border-radius: 99px;
  background: #D4D4D8;
  flex: none;
  transition: height 0.35s ease, background 0.35s ease;
}
.obj-row.active .obj-bar {
  height: 54px;
  background: var(--primary);
}
.obj-row h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--zinc-600);
  transition: color 0.25s, font-size 0.25s;
}
.obj-row.active h3 {
  color: #000;
  font-size: 1.32rem;
}
.obj-row-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-inline-start: 1.35rem;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.3s ease;
}
.obj-row.active .obj-row-body {
  max-height: 220px;
  opacity: 1;
  margin-top: 0.55rem;
}
.obj-row-body p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--zinc-600);
}

/* ===== [8] Scientific Journal (Soft bg-blue-200 rounded-[31px] banner + deep book shadow!) ===== */
.journal-sec {
  background: #fff;
  padding-block: 3rem 5.5rem;
}
.journal-card {
  background: var(--blue-200);
  border-radius: 31px;
  padding: clamp(2rem, 4.5vw, 3.2rem);
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.journal-book {
  width: 240px;
  height: 320px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 34px 36px -18px rgba(0, 0, 0, 0.32);
  background: var(--primary);
}
.journal-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-info h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.25rem; color: #000; }
.journal-info .issue { font-size: 1.65rem; font-weight: 700; color: #000; display: block; margin-bottom: 0.8rem; }
.journal-info p { color: var(--zinc-600); max-width: 58ch; }

/* ===== [9] Curriculum (3D Floating Book Collage + Frosted Glass Tiles!) ===== */
.curr-sec {
  background: #fff;
  padding-block: 4rem 5.5rem;
  overflow: hidden;
}
.curr-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}
.curr-collage {
  position: relative;
  height: 560px;
}
.curr-blur-1 {
  position: absolute;
  width: 280px;
  height: 280px;
  inset-inline-start: 24%;
  top: 160px;
  background: rgba(8, 45, 91, 0.28);
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
}
.curr-book-1 {
  position: absolute;
  width: 224px;
  height: 288px;
  inset-inline-start: 10%;
  top: 195px;
  border-radius: 18px;
  overflow: hidden;
  outline: 4px solid #fff;
  box-shadow: 0 24px 44px -14px rgba(0, 0, 0, 0.28);
  z-index: 2;
}
.curr-book-2 {
  position: absolute;
  width: 224px;
  height: 288px;
  inset-inline-start: 47%;
  top: 85px;
  border-radius: 18px;
  overflow: hidden;
  outline: 4px solid #fff;
  box-shadow: 0 24px 44px -14px rgba(0, 0, 0, 0.28);
  z-index: 2;
}
.curr-book-1 img, .curr-book-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.glass-tile {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.14);
  z-index: 3;
}
.glass-tile.g1 { width: 82px; height: 112px; inset-inline-start: 33%; top: 55px; }
.glass-tile.g2 { width: 62px; height: 84px; inset-inline-start: 44%; top: 415px; }
.glass-tile.g3 { width: 78px; height: 106px; inset-inline-start: 78%; top: 210px; }

.pillars-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.pillar-item {
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--primary);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
}
.pillar-item h3 { font-size: 0.98rem; margin-bottom: 0.25rem; color: var(--primary); }
.pillar-item p { margin: 0; font-size: 0.86rem; color: var(--zinc-600); }

/* ===== [10] FAQ (sky-950 -> slate-900 -> black + 2 Cyan Glowing Orbs!) ===== */
.faq-sec {
  position: relative;
  background: linear-gradient(180deg, var(--sky-950) 0%, var(--slate-900) 55%, #000000 100%);
  color: #fff;
  padding-block: 6rem;
  overflow: hidden;
}
.faq-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(103, 232, 249, 0.36);
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  top: 20%;
}
.faq-orb.left { left: -340px; }
.faq-orb.right { right: -340px; }
.faq-sec h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}
details.faq-item {
  border-radius: 10px;
  overflow: hidden;
}
details.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}
details.faq-item[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  transition: transform 0.25s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .ans {
  background: #fff;
  color: var(--dark200);
  padding: 1rem 1.25rem;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 0.95rem;
}

/* ===== [11] Footer (Pure Black like reference) ===== */
.site-footer {
  background: #000000;
  color: var(--text-sec);
  padding-block: 5.5rem 2.8rem;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.site-footer a {
  color: var(--text-sec);
  font-size: 0.95rem;
  transition: color 0.15s;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}
.social-row { display: flex; gap: 0.55rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.social-btn:hover {
  background: var(--secondry);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 20px -8px rgba(21, 57, 107, 0.6);
}

/* ===== Inner Page Banner & Cards ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--sky-950) 100%);
  color: #fff;
  padding-block: 7.5rem 3.5rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero p { color: #CBD5E1; max-width: 65ch; margin: 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.content-card img { width: 100%; height: 210px; object-fit: cover; }
.content-card .body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Forms */
input, select, textarea {
  font: inherit;
  color: var(--dark200);
  background: #fff;
  border: 1.5px solid #D4D4D8;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  min-height: 46px;
  width: 100%;
  transition: border-color 0.3s var(--ease), outline-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: 3px solid transparent;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline-color: rgba(8, 45, 91, 0.16);
}
textarea { min-height: 110px; resize: vertical; }
label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--dark200);
}
.field { margin-bottom: 1rem; }

/* Toasts */
#toasts {
  position: fixed;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(92vw, 420px);
}
.toast {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.45s var(--ease) both;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--err); }

/* ===== Admin Dashboard (Text & Image Editor ONLY) ===== */
.adm-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  background: #F1F5F9;
}
.adm-side {
  background: var(--primary);
  color: #CBD5E1;
  padding: 1.2rem 0.9rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.adm-side .brand { color: #fff; margin-bottom: 1rem; padding-inline: 0.4rem; }
.adm-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  color: #CBD5E1;
  background: transparent;
  border: 0;
  font: 500 0.92rem var(--font);
  cursor: pointer;
  text-align: start;
  width: 100%;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.adm-tab:hover { background: rgba(255, 255, 255, 0.09); color: #fff; transform: translateX(3px); }
.adm-tab.active {
  background: #fff;
  color: var(--secondry);
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
  transform: none;
}
.adm-main { padding: 1.6rem clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; }
.adm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.adm-header h1 { font-size: 1.35rem; margin: 0; }
.adm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  animation: adm-card-in 0.45s var(--ease) both;
}
.adm-card:nth-of-type(2) { animation-delay: 0.05s; }
.adm-card:nth-of-type(3) { animation-delay: 0.1s; }
@keyframes adm-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.adm-grid .full { grid-column: 1 / -1; }
.repeater-item {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 1rem;
  background: var(--slate-50);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.repeater-item:hover {
  border-color: var(--secondry);
  box-shadow: 0 4px 14px -8px rgba(21, 57, 107, 0.25);
}
.repeater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.img-picker {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: center;
  background: #F8FAFC;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1.5px dashed var(--primary);
}
.img-picker img {
  width: 150px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--primary);
}
.login-box {
  max-width: 430px;
  margin: 10vh auto;
  background: #fff;
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  animation: login-in 0.55s var(--ease) both;
  border: 1px solid var(--line);
}
@keyframes login-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.adm-menu-btn, .adm-close, .adm-scrim { display: none; }

/* Responsive */
/* The header carries 6 nav links + 2 dropdowns + 2 buttons, which wraps and
   overlaps if it switches to the hamburger menu too late — so that switch
   happens well before the main 1024px breakpoint used by the rest of the page. */
@media (max-width: 1300px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
}
@media (max-width: 1024px) {
  .about-grid, .news-layout, .obj-layout, .curr-layout { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.c0, .bento-card.c1, .bento-card.c3 { grid-column: span 2; }
  .bento-card.c2 { grid-row: span 1; }
  .fees-tiers { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: calc((100% - 1.2rem) / 1.25); }
  .journal-card { flex-direction: column; text-align: center; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .adm-layout { grid-template-columns: 1fr; }
  .adm-menu-btn, .adm-close { display: inline-flex; }
  .adm-side {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: 270px;
    z-index: 140;
    transform: translateX(105%);
    transition: transform 0.35s var(--ease);
  }
  .adm-side.open { transform: none; }
  .adm-layout:has(#adm-side.open) .adm-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 135;
  }
  .adm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-sub { display: none; }
  .header-cta { white-space: nowrap; padding: 0.4rem 0.9rem; font-size: 0.8rem; }
  .header-moodle-btn { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
  .header-moodle-btn span { display: none; }
  .header-moodle-btn { padding: 0.55rem; border-radius: 50%; }
  .hero-slider { height: 600px; }
  .pillars-list, .foot-top, .img-picker { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .news-row img { width: 100%; height: 165px; }
  .curr-collage { height: 420px; }
  .curr-book-1, .curr-book-2 { width: 160px; height: 215px; }
  .obj-portrait { height: 360px; }
}
/* ===== Rich CSS Animations, Scroll Reveals & Micro-Interactions ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--secondry), #38BDF8, var(--primary));
  z-index: 250;
  transition: width 0.08s linear;
  pointer-events: none;
}

@keyframes slow-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(16px, -22px, 0) scale(1.06); }
}
@keyframes slow-drift-reverse {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 20px, 0) scale(0.95); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes emblem-bob {
  0%, 100% { transform: translateY(-42px); }
  50% { transform: translateY(-50px); }
}
@keyframes mega-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-halo {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Scroll-triggered entrance animations */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up { transform: translateY(38px); }
.reveal-left { transform: translateX(46px); }
.reveal-right { transform: translateX(-46px); }
.reveal-scale { transform: scale(0.9); }
.reveal.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* Hero staggered pill pop-in */
.hero-pill-title {
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, opacity 0.65s ease 0.12s;
}
.hero-pill-sub {
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.28s, opacity 0.65s ease 0.28s;
}
.hero-slide.active .hero-pill-title,
.hero-slide.active .hero-pill-sub {
  transform: translateY(0);
  opacity: 1;
}

/* Mega menu pop animation */
.nav-item:hover > .mega-panel,
.nav-item:focus-within > .mega-panel,
.nav-item.open > .mega-panel {
  animation: mega-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Floating ambient elements */
.stats-emblem { animation: emblem-bob 4.5s ease-in-out infinite; }
.fees-halo { animation: pulse-halo 6s ease-in-out infinite; }
.faq-orb.left { animation: slow-drift 9s ease-in-out infinite; }
.faq-orb.right { animation: slow-drift-reverse 11s ease-in-out infinite; }
.glass-tile.g1 { animation: slow-drift 7s ease-in-out infinite; }
.glass-tile.g2 { animation: slow-drift-reverse 8.5s ease-in-out infinite; }
.glass-tile.g3 { animation: float-y 6s ease-in-out infinite; }
.curr-book-1 { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease; }
.curr-book-2 { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease; }
.curr-collage:hover .curr-book-1 { transform: translateY(-8px) rotate(-2deg); }
.curr-collage:hover .curr-book-2 { transform: translateY(-12px) rotate(2deg); }

/* Glossy hover sweep on Bento cards */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.bento-card:hover::before { transform: translateX(-120%); }
.bento-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 22px 42px -14px rgba(0, 0, 0, 0.4);
}
.bento-art svg { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.bento-card:hover .bento-art svg { transform: scale(1.1) translateY(-4px); }

/* Smooth image zoom & card elevation across sections */
.about-media img,
.news-featured img,
.news-row img,
.obj-portrait img,
.content-card img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-media:hover img,
.news-featured:hover img,
.news-row:hover img,
.obj-portrait:hover img,
.content-card:hover img {
  transform: scale(1.05);
}
.fee-card,
.pillar-item,
.content-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.fee-card:hover,
.pillar-item:hover,
.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* 3D book lift on Scientific Journal */
.journal-book {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.journal-card:hover .journal-book {
  transform: perspective(900px) rotateY(-6deg) translateY(-8px) scale(1.03);
  box-shadow: 0 42px 50px -18px rgba(8, 45, 91, 0.42);
}

/* Button sheen micro-interaction */
.btn-primary,
.btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-primary::after,
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.25) 50%, transparent 75%);
  transform: translateX(130%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::after,
.btn-gold:hover::after { transform: translateX(-130%); }

/* FAQ smooth answer reveal */
details.faq-item[open] .ans {
  animation: faq-open 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ===== Creative Smooth Page & Micro Transitions ===== */
@keyframes page-in {
  from { opacity: 0; transform: translateY(16px) scale(0.992); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes page-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}
@keyframes dot-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

::view-transition-old(root) {
  animation: 0.28s cubic-bezier(0.4, 0, 0.2, 1) both page-out;
}
::view-transition-new(root) {
  animation: 0.45s cubic-bezier(0.22, 1, 0.36, 1) both page-in;
}

main#main {
  animation: page-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Route transition light beam */
.route-bar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--secondry), #38BDF8);
  z-index: 260;
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  pointer-events: none;
}
.route-bar.loading { width: 72%; opacity: 1; }
.route-bar.done { width: 100%; opacity: 0; }

/* Elastic sliding underline on header nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  inset-inline: 0.85rem;
  height: 2px;
  border-radius: 99px;
  background: var(--secondry);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.solid .nav-link::after { background: var(--primary); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-item.open > .nav-link::after {
  transform: scaleX(1);
}

/* Cinematic Hero blur-to-sharp zoom & active dot progress bar */
.hero-slide {
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slide .bg-img {
  transform: scale(1.09);
  filter: blur(5px);
  transition: transform 6.8s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s ease;
}
.hero-slide.active .bg-img {
  transform: scale(1) translateY(var(--hero-py, 0px));
  filter: blur(0);
}
.hero-dot {
  position: relative;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.hero-dot.active {
  width: 42px;
  background: rgba(255, 255, 255, 0.32);
}
.hero-dot.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--secondry);
  transform-origin: right center;
  animation: dot-progress 6s linear forwards;
}

/* Interactive Cursor-Following Spotlight & Soft 3D Tilt on Bento & Journal cards */
.bento-card::after,
.journal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.journal-card { position: relative; overflow: hidden; }
.bento-card:hover::after,
.journal-card:hover::after {
  opacity: 1;
}

/* Smooth elastic transitions on Event cards & Carousel */
.event-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px -18px rgba(0, 0, 0, 0.48);
}
.event-card .content {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-card:hover .content {
  transform: translateY(-4px);
}

/* Smooth Objectives accordion transition */
.obj-row {
  border-radius: 14px;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.obj-row:hover {
  background: var(--slate-50);
  transform: translateX(-4px);
}
.obj-row.active {
  background: #F8FAFC;
}

/* Subtle scroll-parallax offset on Curriculum glass tiles */
.curr-book-1 { transform: translateY(calc(var(--curr-py, 0px) * -0.6)); }
.curr-book-2 { transform: translateY(calc(var(--curr-py, 0px) * 0.6)); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Hero: title pill above subtitle pill, placed at the right side of the hero (RTL start) */
@media (min-width: 900px) {
  .hero-slide { align-items: flex-start; padding-bottom: 11rem; padding-inline-start: clamp(2rem, 4vw, 4rem); }
  .hero-stack { align-items: flex-start; max-width: min(30vw, 520px); padding-inline: 0; }
  .hero-stack .hero-pill-title, .hero-stack .hero-pill-sub { text-align: start; }
}

/* mega menu: no emoji tiles — a quiet amber accent bar instead */
.mega-item { position: relative; padding-inline-start: 1.1rem; }
.mega-item::before { content: ''; position: absolute; inset-block: 0.8rem; inset-inline-start: 0.35rem; width: 3px; border-radius: 3px; background: var(--bento-amber); opacity: 0.35; transition: opacity 0.25s, inset-block 0.25s var(--ease); }
.mega-item:hover::before { opacity: 1; inset-block: 0.55rem; }
.hero-nav-btn svg, .btn svg { display: block; }

/* Hero slide transition: the new image wipes in from the right while the old one dims and the new one's overlays fade up */
.hero-slide {
  opacity: 1;
  clip-path: inset(0 0 0 100%);
  visibility: hidden;
  z-index: 1;
  transition: clip-path 0s linear 1.8s, visibility 0s linear 1.8s;
}
.hero-slide.active {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  z-index: 2;
  transition: clip-path 1.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s;
}
.hero-slide .bg-img { transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1), filter 1.6s ease; }
/* old slide darkens smoothly while it is being covered */
.hero-slide::after { content: ''; position: absolute; inset: 0; z-index: 4; background: #020b1a; opacity: 0.6; pointer-events: none; transition: opacity 1.7s ease; }
.hero-slide.active::after { opacity: 0; transition: opacity 0s; }
/* the new slide's tint/overlays fade in instead of popping with the wipe */
.hero-slide .overlay-glow, .hero-slide .overlay-dim { opacity: 0; transition: opacity 0s linear 1.8s; }
.hero-slide.active .overlay-glow, .hero-slide.active .overlay-dim { opacity: 1; transition: opacity 1.4s ease 0.35s; }
.hero-controls, .hero-nav-btn { z-index: 6; }
/* the hero wipe is a slide change, not decoration: keep it even when the OS asks for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: clip-path 0s linear 1.8s, visibility 0s linear 1.8s !important; }
  .hero-slide.active { transition: clip-path 1.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s !important; }
  .hero-slide::after { transition: opacity 1.7s ease !important; }
  .hero-slide.active::after { transition: opacity 0s !important; }
  .hero-slide .overlay-glow, .hero-slide .overlay-dim { transition: opacity 0s linear 1.8s !important; }
  .hero-slide.active .overlay-glow, .hero-slide.active .overlay-dim { transition: opacity 1.4s ease 0.35s !important; }
}
