/* =========================================================
   GRS Global PU College – site styles
   Shree Lakshmi Educational Trust, Bengaluru
   Brand: navy + gold (from the 3D college emblem)
   ========================================================= */

:root {
  --navy: #0f1d4a;
  --navy-2: #1c2f6e;
  --navy-deep: #0a1433;
  --gold: #d9a441;
  --gold-light: #f4cc6a;
  --gold-deep: #b07d26;
  --gold-grad: linear-gradient(135deg, #f4cc6a 0%, #d9a441 48%, #b07d26 100%);
  --navy-grad: linear-gradient(135deg, #1c2f6e 0%, #0f1d4a 55%, #0a1433 100%);
  --ink: #18213d;
  --muted: #5d6884;
  --line: #e6e9f2;
  --soft: #f5f7fc;
  --cream: #fdf8ee;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(15, 29, 74, .06);
  --shadow: 0 14px 40px rgba(15, 29, 74, .10);
  --shadow-lg: 0 24px 60px rgba(15, 29, 74, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
/* overflow-x on html (not body) blocks sideways scroll without breaking the sticky header */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); }
p { color: var(--muted); line-height: 1.7; }
a { color: var(--navy-2); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold-light); color: var(--navy); }

.text-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-soft { background: var(--soft); }

.section { padding: 100px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head-split { margin-bottom: 44px; gap: 24px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.section-tag::before {
  content: ""; width: 10px; height: 10px;
  background: var(--gold); transform: rotate(45deg); border-radius: 2px;
}
.tag-light { color: var(--gold-light); }
.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 600; border-radius: 50px; padding: .65rem 1.5rem; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .35rem 1rem; font-size: .82rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold-grad); color: var(--navy); border: 0; box-shadow: 0 8px 22px rgba(217, 164, 65, .35); }
.btn-gold:hover, .btn-gold:focus { color: var(--navy); box-shadow: 0 12px 28px rgba(217, 164, 65, .5); }
.btn-navy { background: var(--navy); color: #fff; border: 0; box-shadow: 0 8px 22px rgba(15, 29, 74, .25); }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-2); color: #fff; }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* shine sweep */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); z-index: -1;
  transition: transform .7s var(--ease);
}
.btn-shine:hover::after { transform: translateX(120%); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #c9d1ea; font-size: .84rem; padding: 7px 0; }
.topbar a { color: #dfe5f6; }
.topbar a:hover { color: var(--gold-light); }
.topbar-badge {
  background: rgba(244, 204, 106, .14); color: var(--gold-light);
  padding: 4px 12px; border-radius: 50px; font-weight: 600;
  display: inline-flex; gap: 6px; align-items: center;
}
.topbar-note { opacity: .8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  /* no backdrop-filter here: it would trap the fixed offcanvas menu inside the header */
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 29, 74, .08); border-color: var(--line); }
.site-header .navbar { padding: 10px 0; transition: padding .3s; }
.site-header.scrolled .navbar { padding: 4px 0; }
.navbar-brand img { height: 62px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .navbar-brand img { height: 52px; }

.navbar .nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  color: var(--navy); padding: .5rem .7rem !important; position: relative;
  white-space: nowrap;
}
.navbar .btn { white-space: nowrap; }
.navbar .nav-link::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px;
  background: var(--gold-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--gold-deep); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; vertical-align: middle; margin-left: 4px; position: static; transform: none; background: none; height: auto; display: inline; }

.dropdown-menu {
  border: 0; border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow); min-width: 190px;
}
.dropdown-item { border-radius: 10px; padding: .55rem .9rem; font-weight: 500; color: var(--navy); display: flex; gap: 8px; }
.dropdown-item i { color: var(--gold); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--cream); color: var(--gold-deep); }

/* hamburger */
.navbar-toggler { border: 0; padding: 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: width .25s; }
.toggler-bar:nth-child(2) { width: 18px; align-self: flex-end; }
.navbar-toggler:hover .toggler-bar:nth-child(2) { width: 26px; }

.offcanvas-logo { height: 54px; width: auto; }
.offcanvas-contact { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: .92rem; }
.offcanvas-contact i { color: var(--gold); margin-right: 6px; }

@media (min-width: 1200px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; animation: dropIn .25s var(--ease); }
  .navbar .dropdown > .dropdown-menu { margin-top: 0; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar .nav-link { font-size: .86rem; padding: .5rem .5rem !important; }
  .navbar .nav-link::after { left: .5rem; right: .5rem; }
  .navbar .btn { padding: .55rem 1.1rem; font-size: .86rem; }
  .navbar-brand img { height: 56px; }
}
@media (max-width: 1199.98px) {
  .offcanvas { max-width: 320px; }
  .navbar .nav-link { padding: .7rem 0 !important; border-bottom: 1px solid var(--line); }
  .navbar .nav-link:not(.dropdown-toggle)::after { display: none; }
  .navbar .dropdown-menu { box-shadow: none; background: var(--soft); }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 70px 0 150px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(244, 204, 106, .18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.hero-shapes span { position: absolute; pointer-events: none; }
.blob { border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.blob-1 { width: 380px; height: 380px; background: rgba(244, 204, 106, .45); top: -120px; left: -120px; }
.blob-2 { width: 300px; height: 300px; background: rgba(28, 47, 110, .16); bottom: -60px; right: 30%; animation-delay: -6s; }
.hex {
  width: 90px; height: 104px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: floatY 7s ease-in-out infinite;
}
.hex-1 { background: var(--gold-grad); opacity: .2; top: 18%; left: 46%; }
.hex-2 { width: 50px; height: 58px; background: var(--navy); opacity: .1; bottom: 22%; left: 6%; animation-delay: -3s; }
.dots {
  width: 160px; height: 120px; right: 4%; bottom: 14%;
  background-image: radial-gradient(var(--gold) 1.5px, transparent 1.5px);
  background-size: 16px 16px; opacity: .35;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #f0e2c0;
  color: var(--gold-deep); font-weight: 600; font-size: .85rem;
  padding: 7px 16px; border-radius: 50px; box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
  margin-bottom: 20px; text-wrap: balance;
}

/* rotating punch words */
.hero-rotator {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px;
  background: var(--navy); color: #fff;
  border-radius: 14px; padding: 10px 18px 10px 12px;
  margin-bottom: 22px; box-shadow: var(--shadow);
}
.rotator-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .1); color: #c9d1ea;
  padding: 5px 10px; border-radius: 8px;
}
.rotator { display: inline-grid; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; min-width: 14ch; }
.rotator-word {
  grid-area: 1 / 1; color: var(--gold-light);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.rotator-word.is-active { opacity: 1; transform: none; }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-14px); }

.hero-lead { font-size: 1.08rem; max-width: 540px; margin-bottom: 30px; }
.hero-lead strong { color: var(--navy); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 500; font-size: .92rem; }
.hero-points i { color: var(--gold); margin-right: 6px; }

.hero-visual { position: relative; max-width: 520px; margin-left: auto; padding: 20px 10px 30px 30px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 0 30px 50px 0;
  background: var(--gold-grad); border-radius: 40px 40px 40px 140px;
  transform: rotate(-4deg); opacity: .9;
}
.hero-visual::after {
  content: ""; position: absolute; right: -6px; bottom: 6px; width: 60%; height: 55%;
  background: var(--navy); border-radius: 40px; z-index: 0; transform: rotate(3deg);
}
.hero-frame {
  position: relative; z-index: 1;
  border-radius: 36px 36px 36px 130px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
  aspect-ratio: 9 / 10;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  animation: floatY 5s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-1 { top: 70px; left: -20px; }
.fc-2 { bottom: 40px; right: -10px; animation-delay: -2.5s; }
.fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.fc-icon.gold { background: var(--gold-grad); color: var(--navy); }
.fc-icon.navy { background: var(--navy); color: var(--gold-light); }

.spin-badge {
  position: absolute; z-index: 2; top: -6px; right: 6px;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.spin-badge text { font-family: var(--font-head); font-size: 11px; font-weight: 600; fill: var(--gold-light); }
.spin-badge i { font-size: 1.8rem; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Feature strip ---------- */
.feature-strip { margin-top: -90px; position: relative; z-index: 3; }
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 26px 22px; height: 100%;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--cream); color: var(--gold-deep); margin-bottom: 16px;
  transition: background .3s, color .3s, transform .3s;
}
.feature-card:hover .feature-icon { background: var(--navy); color: var(--gold-light); transform: rotate(-6deg); }
.feature-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: .88rem; margin: 0; line-height: 1.55; }

/* ---------- Punch ribbon (marquee) ---------- */
/* the wrapper clips the tilted ribbon's ends so they can't widen the page */
.punch-wrap { overflow: hidden; margin-top: 30px; padding: 40px 0; }
.punch-ribbon {
  width: 104%; margin-left: -2%; background: var(--navy-grad);
  padding: 18px 0; overflow: hidden;
  transform: rotate(-1.5deg);
  box-shadow: 0 14px 40px rgba(15, 29, 74, .25);
  border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
}
.punch-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.punch-ribbon:hover .punch-track { animation-play-state: paused; }
.punch-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.punch-group span {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .03em; color: #fff;
}
.punch-group span:nth-child(4n+1) { color: var(--gold-light); }
.diamond { width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-media { position: relative; padding: 0 70px 70px 0; }
.about-img-main { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 8 / 9; object-fit: cover; }
.about-img-sub {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border-radius: var(--radius-lg); border: 8px solid #fff; box-shadow: var(--shadow-lg);
  aspect-ratio: 1; object-fit: cover;
}
.about-badge {
  position: absolute; left: -16px; bottom: 40px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}
.about-badge img { width: 34px; height: auto; }
.about-badge strong { display: block; font-family: var(--font-head); color: var(--navy); line-height: 1.1; }
.about-badge span { font-size: .78rem; color: var(--gold-deep); font-weight: 600; }

.mini-point { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; transition: background .3s; }
.mini-point:hover { background: var(--soft); }
.mini-point i {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--navy); color: var(--gold-light);
}
.mini-point h4 { font-size: .98rem; font-weight: 600; margin-bottom: 2px; }
.mini-point p { font-size: .86rem; margin: 0; line-height: 1.5; }
@media (max-width: 767.98px) {
  .about-media { padding: 0 40px 50px 0; }
  .about-badge { left: 0; bottom: 20px; }
}

.counter-row {
  margin-top: 70px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--navy-grad); border-radius: var(--radius-lg);
  padding: 34px 20px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.counter-row::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(244, 204, 106, .12);
}
.counter { text-align: center; padding: 6px 10px; position: relative; z-index: 1; }
.counter + .counter { border-left: 1px solid rgba(255, 255, 255, .12); }
.counter .num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; color: var(--gold-light); }
.counter .label { color: #c9d1ea; font-size: .9rem; }

.vm-card {
  height: 100%; padding: 34px; border-radius: var(--radius-lg);
  background: var(--cream); border: 1px solid #f1e3c2;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.vm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vm-card h3 { font-size: 1.35rem; font-weight: 700; margin: 16px 0 10px; }
.vm-card p { margin: 0; }
.vm-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--gold-grad); color: var(--navy); }
.vm-card-navy { background: var(--navy); border-color: var(--navy); }
.vm-card-navy h3 { color: #fff; }
.vm-card-navy p { color: #c9d1ea; }

/* ---------- Motto band (scroll-linked words) ----------
   --p runs from -1 (band entering) to 1 (band leaving); set by main.js.
   Each line's track slides by --p × --dir × --range, so neighbouring lines
   move in opposite directions while the page scrolls. */
.motto-band { --p: 0; --range: clamp(60px, 16vw, 260px); margin-top: 90px; }
.motto-head {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 22px;
}
.motto-head::before, .motto-head::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.motto-head::after { transform: scaleX(-1); }
.motto-head img { width: 26px; height: auto; }

.kin-row {
  --kin-ink: var(--navy);
  overflow: hidden; white-space: nowrap;
  font-size: clamp(2.8rem, 8.5vw, 8rem); line-height: 1.08;
  padding: .06em 0; border-top: 1px solid var(--line);
  color: var(--kin-ink);
}
.kin-italic { --kin-ink: var(--gold-deep); background: var(--cream); }
.kin-light { border-bottom: 1px solid var(--line); }

.kin-track {
  display: inline-flex; align-items: center; gap: .28em;
  position: relative; left: 50%;
  transform: translate3d(calc(-50% + var(--p) * var(--dir, 1) * var(--range)), 0, 0);
  transition: transform .2s ease-out;
  will-change: transform;
}
.kin-word { font-family: var(--font-head); text-transform: uppercase; letter-spacing: -.03em; }
.kin-bold .kin-word { font-weight: 800; }
.kin-italic .kin-word { font-weight: 500; font-style: italic; }
.kin-light .kin-word { font-weight: 300; }
.kin-word.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--kin-ink); opacity: .5; }
.kin-light .kin-word.is-outline { -webkit-text-stroke-width: 1px; }
@supports not (-webkit-text-stroke: 1px) {
  .kin-word.is-outline { color: var(--kin-ink); opacity: .15; }
}

/* photo capsules between the words, with a small counter-parallax inside */
.kin-pill {
  flex-shrink: 0; width: 1.75em; height: .8em;
  border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.kin-pill img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.25) translate3d(calc(var(--p) * var(--dir, 1) * -8%), 0, 0);
  transition: transform .2s ease-out;
}
.kin-badge {
  flex-shrink: 0; width: .8em; height: .8em; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--navy); color: var(--gold-light);
  transform: rotate(calc(var(--p) * 180deg));
  transition: transform .2s ease-out;
}
.kin-badge i { font-size: .4em; line-height: 1; }

.motto-caption { max-width: 640px; margin: 28px auto 0; text-align: center; font-size: 1rem; color: var(--ink); }

@media (max-width: 767.98px) {
  .motto-band { margin-top: 64px; }
  .motto-head::before, .motto-head::after { width: 36px; }
  .motto-caption { font-size: .95rem; }
}

/* ---------- GRS Edge ---------- */
.edge-section { background: var(--navy-deep); overflow: hidden; }
.edge-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(244, 204, 106, .16), transparent 70%),
    radial-gradient(700px 400px at 100% 100%, rgba(28, 47, 110, .7), transparent 70%);
}
.edge-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas: "hero hero a b" "hero hero c d";
}
.edge-grid > :nth-child(1) { grid-area: hero; }
.edge-grid > :nth-child(2) { grid-area: a; }
.edge-grid > :nth-child(3) { grid-area: b; }
.edge-grid > :nth-child(4) { grid-area: c; }
.edge-grid > :nth-child(5) { grid-area: d; }

.edge-tile {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.edge-tile:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); border-color: rgba(244, 204, 106, .5); }
.edge-tile h3 { color: #fff; font-size: 1.25rem; font-weight: 700; margin: 14px 0 8px; }
.edge-tile p { color: #aab4d4; font-size: .92rem; margin: 0; }
.edge-num { position: absolute; top: 20px; right: 24px; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: rgba(255, 255, 255, .07); transition: color .35s; }
.edge-tile:hover .edge-num { color: rgba(244, 204, 106, .35); }
.edge-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-grid; place-items: center; font-size: 1.4rem;
  background: rgba(244, 204, 106, .14); color: var(--gold-light);
  transition: transform .4s var(--ease);
}
.edge-tile:hover .edge-icon { transform: rotate(-10deg) scale(1.08); }

.edge-hero {
  background: var(--gold-grad); border: 0;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 40px;
  min-height: 380px;
  isolation: isolate;
}
.edge-hero:hover { background: var(--gold-grad); }
/* faded exam photo, tinted by the gold gradient underneath */
.edge-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/facilities/library.jpg") center / cover no-repeat;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  opacity: .32;
  transition: transform .8s var(--ease), opacity .4s;
}
/* gold overlay, strongest behind the text */
.edge-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(20deg, rgba(244, 204, 106, .85) 0%, rgba(217, 164, 65, .5) 45%, rgba(176, 125, 38, .1) 100%);
}
.edge-hero:hover::before { transform: scale(1.05); opacity: .4; }
.edge-kicker {
  align-self: flex-start;
  background: var(--navy); color: var(--gold-light);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: auto;
}
.edge-hero h3 { color: var(--navy); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 26px 0 14px; }
.edge-hero p { color: #3a2d0f; font-size: 1rem; max-width: 420px; }
.exam-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; position: relative; z-index: 1; }
.exam-chips span { background: rgba(15, 29, 74, .92); color: #fff; font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 50px; }
.edge-watermark { position: absolute; right: -20px; top: 10px; font-size: 13rem; color: rgba(15, 29, 74, .1); line-height: 1; transition: transform .6s var(--ease); }
.edge-hero:hover .edge-watermark { transform: rotate(-8deg) scale(1.05); }

/* ---------- Courses ---------- */
.stream-tabs {
  justify-content: center; gap: 6px;
  background: #fff; border-radius: 50px; padding: 6px;
  width: fit-content; margin: 0 auto 40px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.stream-tabs .nav-link {
  border-radius: 50px; padding: .7rem 1.6rem;
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  transition: background .3s, color .3s;
}
.stream-tabs .nav-link i { margin-right: 6px; }
.stream-tabs .nav-link.active { background: var(--navy); color: var(--gold-light); box-shadow: 0 8px 20px rgba(15, 29, 74, .25); }

.tab-pane.fade { transition: opacity .35s ease; }
.tab-pane.show .course-card { animation: cardUp .5s var(--ease) both; }
.tab-pane.show .col-lg-4:nth-child(2) .course-card, .tab-pane.show .col-md-6:nth-child(2) .course-card { animation-delay: .08s; }
.tab-pane.show .col-lg-4:nth-child(3) .course-card { animation-delay: .16s; }
@keyframes cardUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.course-card {
  background: #fff; border-radius: var(--radius-lg); padding: 30px; height: 100%;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.course-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 150px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--cream); transition: transform .5s var(--ease); z-index: 0;
}
.course-card > * { position: relative; z-index: 1; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #f0dfb8; }
.course-card:hover::after { transform: scale(1.3) rotate(15deg); }
.course-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.course-code { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy); letter-spacing: .02em; }
.course-pill { font-size: .72rem; font-weight: 600; background: var(--soft); color: var(--navy-2); padding: 5px 10px; border-radius: 50px; text-align: right; }
.course-subjects { font-weight: 600; color: var(--gold-deep); margin-bottom: 10px; font-size: .95rem; }
.course-card p:not(.course-subjects) { font-size: .92rem; }
.course-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.course-tags span { font-size: .75rem; font-weight: 600; border: 1px solid var(--line); padding: 4px 10px; border-radius: 50px; color: var(--navy); }
.course-link { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.course-link i { transition: transform .3s var(--ease); }
.course-link:hover i { transform: translateX(5px); }
.course-note { text-align: center; margin: 36px 0 0; font-weight: 600; color: var(--navy); }
.course-note i { color: var(--gold); margin-right: 6px; }

/* ---------- Facilities ---------- */
.facility-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.facility-img { overflow: hidden; aspect-ratio: 7 / 5; }
.facility-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.facility-card:hover .facility-img img { transform: scale(1.08); }
.facility-body { padding: 0 26px 26px; position: relative; }
.facility-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-top: -28px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--gold-grad); color: var(--navy); box-shadow: 0 10px 22px rgba(217, 164, 65, .4);
  position: relative;
}
.facility-body h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.facility-body p { margin: 0; font-size: .92rem; }
.facility-mini {
  display: flex; align-items: center; gap: 12px;
  background: var(--soft); border-radius: 14px; padding: 16px 18px;
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.facility-mini i { font-size: 1.3rem; color: var(--gold-deep); transition: color .3s; }
.facility-mini:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.facility-mini:hover i { color: var(--gold-light); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px; grid-auto-flow: dense;
}
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.g-item.g-wide { grid-column: span 2; }
.g-item.g-tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 20, 51, .85));
  opacity: .7; transition: opacity .4s;
}
.g-cap {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
}
.g-cap i { color: var(--gold-light); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s; }
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }
.g-item:hover .g-cap i { opacity: 1; transform: none; }

.lightbox .modal-content { background: transparent; border: 0; align-items: center; }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--radius); }
.lightbox p { color: #fff; font-family: var(--font-head); margin-top: 12px; }
.lightbox .btn-close { position: absolute; top: -40px; right: 0; opacity: 1; }

/* ---------- Why choose ---------- */
.why-card {
  position: relative; height: 100%; padding: 32px 28px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.why-card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0;
  background: var(--navy); transition: height .45s var(--ease); z-index: 0;
}
.why-card > * { position: relative; z-index: 1; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.why-card:hover::before { height: 100%; }
.why-card:hover h3 { color: #fff; }
.why-card:hover p { color: #c9d1ea; }
.why-icon {
  width: 60px; height: 60px; border-radius: 18px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.55rem;
  background: var(--cream); color: var(--gold-deep);
  transition: background .35s, color .35s;
}
.why-card:hover .why-icon { background: var(--gold-grad); color: var(--navy); }
.why-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; transition: color .35s; }
.why-card p { margin: 0; font-size: .93rem; transition: color .35s; }

/* ---------- Admission process ---------- */
.process-section { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.process-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  position: relative;
}
.process-steps::before {
  content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s;
}
.process-steps.is-visible::before { transform: scaleX(1); }
.step { text-align: center; position: relative; }
.step-num {
  width: 70px; height: 70px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  background: #fff; color: var(--navy); border: 3px solid var(--gold);
  box-shadow: 0 0 0 8px var(--cream), var(--shadow);
  position: relative; z-index: 1;
  transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s;
}
.process-steps.is-visible .step-num { transform: scale(1); }
.process-steps.is-visible .step:nth-child(2) .step-num { transition-delay: .2s; }
.process-steps.is-visible .step:nth-child(3) .step-num { transition-delay: .4s; }
.process-steps.is-visible .step:nth-child(4) .step-num { transition-delay: .6s; }
.process-steps.is-visible .step:nth-child(5) .step-num { transition-delay: .8s; }
.step:hover .step-num { background: var(--navy); color: var(--gold-light); transition-delay: 0s; }
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: .88rem; margin: 0; }
.process-cta {
  margin-top: 54px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
  background: #fff; border-radius: 50px; padding: 12px 12px 12px 30px;
  width: fit-content; margin-left: auto; margin-right: auto; box-shadow: var(--shadow);
}
.process-cta p { font-family: var(--font-head); font-weight: 600; color: var(--navy); }

/* ---------- Enquiry ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); height: 100%; }
.form-label { font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 6px; }
.form-control, .form-select, .input-group-text {
  border-radius: 12px; border-color: var(--line); padding: .72rem 1rem; font-size: .95rem;
  background-color: var(--soft);
}
.input-group-text { font-weight: 600; color: var(--navy); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, .15); background-color: #fff; }
.form-success { text-align: center; padding: 30px 10px; animation: cardUp .5s var(--ease); }
.form-success i { font-size: 3.4rem; color: #1fa463; }
.form-success h3 { margin: 10px 0 6px; }

.assist-card {
  height: 100%; border-radius: var(--radius-lg); padding: 40px 34px;
  background: var(--navy-grad); color: #fff; position: relative; overflow: hidden;
}
.assist-card::after {
  content: ""; position: absolute; right: -50px; bottom: -60px; width: 200px; height: 230px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(244, 204, 106, .1);
}
.assist-card h3 { color: #fff; font-weight: 700; font-size: 1.5rem; }
.assist-card > p { color: #c9d1ea; margin-bottom: 26px; }
.assist-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px; padding: 16px; margin-bottom: 14px; color: #fff;
  position: relative; z-index: 1;
  transition: background .3s, transform .3s var(--ease), border-color .3s;
}
a.assist-item:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateX(6px); border-color: rgba(244, 204, 106, .5); }
.assist-item strong { display: block; font-family: var(--font-head); }
.assist-item small { color: #c9d1ea; font-size: .84rem; }
.assist-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.assist-icon.wa { background: #25d366; color: #fff; }
.assist-icon.call { background: var(--gold-grad); color: var(--navy); }
.assist-icon.time { background: rgba(255, 255, 255, .14); color: var(--gold-light); }

/* ---------- FAQ ---------- */
.faq-help {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--cream); border: 1px solid #f1e3c2; border-radius: 18px; padding: 18px 20px; margin-top: 26px;
}
.faq-help > i { font-size: 1.8rem; color: var(--gold-deep); }
.faq-help strong { display: block; font-family: var(--font-head); color: var(--navy); }
.faq-help span { font-size: .88rem; color: var(--muted); }

.faq-accordion .accordion-item { border: 1px solid var(--line); border-radius: 16px !important; overflow: hidden; margin-bottom: 14px; transition: box-shadow .3s; }
.faq-accordion .accordion-item:has(.show) { box-shadow: var(--shadow); border-color: #f0dfb8; }
.faq-accordion .accordion-button {
  font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem;
  padding: 20px 22px; background: #fff; box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--gold-deep); background: #fff; }
.faq-accordion .accordion-button::after {
  background-image: none; content: "\F64D"; font-family: "bootstrap-icons";
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--navy); font-size: .9rem;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.faq-accordion .accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: var(--gold-grad); color: var(--navy); }
.faq-accordion .accordion-body { padding: 0 22px 22px; color: var(--muted); line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 16px; height: 100%; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.contact-item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.contact-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.contact-item p { margin: 0; font-size: .93rem; }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: var(--navy); color: var(--gold-light); flex-shrink: 0; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 380px; border: 6px solid #fff; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.9); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 100px; background: var(--soft); }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--navy-grad); border-radius: var(--radius-lg); padding: 48px 52px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-inner::before {
  content: ""; position: absolute; left: -60px; top: -80px; width: 240px; height: 270px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold-grad); opacity: .14;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta-inner p { color: #c9d1ea; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aab4d4; padding-top: 80px; font-size: .93rem; }
.site-footer p { color: #aab4d4; }
.footer-logo { background: #fff; display: inline-block; padding: 12px 18px; border-radius: 16px; margin-bottom: 20px; }
.footer-logo img { height: 64px; width: auto; }
.site-footer h4 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--gold-grad); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #aab4d4; }
.site-footer ul a { display: inline-block; transition: color .25s, transform .25s var(--ease); }
.site-footer ul a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { color: var(--gold); margin-top: 2px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .3s, transform .3s var(--ease), color .3s;
}
.socials a:hover { background: var(--gold-grad); color: var(--navy); transform: translateY(-4px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 60px; padding: 20px 0; font-size: .86rem; }
.footer-bottom a { color: var(--gold-light); }

/* ---------- Floating actions ---------- */
.wa-float {
  position: fixed; left: 20px; bottom: 22px; z-index: 1035;
  display: flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; font-weight: 600; font-family: var(--font-head);
  padding: 12px 18px; border-radius: 50px; box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform .3s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366;
  animation: pulse 2.4s ease-out infinite; z-index: -1;
}
.wa-float i { font-size: 1.3rem; }
.wa-float:hover { color: #fff; transform: translateY(-3px); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }

.to-top {
  position: fixed; right: 20px; bottom: 22px; z-index: 1035;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: #fff; color: var(--navy); box-shadow: var(--shadow);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: var(--gold-light); }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; }
.to-top .ring-bg { stroke: var(--line); }
.to-top .ring-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.to-top i { font-size: 1.1rem; position: relative; }

/* ---------- Enquiry modal ---------- */
.enquiry-modal { border: 0; border-radius: var(--radius-lg); overflow: hidden; }
.enquiry-side {
  background: var(--navy-grad); color: #fff; flex-direction: column; justify-content: center;
  padding: 40px 34px; position: relative; overflow: hidden;
}
.enquiry-side img { width: 54px; height: auto; margin-bottom: 18px; background: #fff; padding: 8px; border-radius: 14px; }
.enquiry-side h3 { color: #fff; font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin-bottom: 20px; }
.enquiry-side h3 span { color: var(--gold-light); }
.enquiry-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.enquiry-side li { font-weight: 500; font-size: .95rem; color: #dfe5f6; }
.enquiry-side li i { color: var(--gold-light); margin-right: 8px; }
.enquiry-form-wrap { padding: 36px 34px; position: relative; }
.enquiry-form-wrap .btn-close { position: absolute; top: 18px; right: 18px; }
.enquiry-form-wrap h3 { font-weight: 700; margin-bottom: 4px; }
.enquiry-form-wrap > p { font-size: .9rem; margin-bottom: 20px; }
.modal.fade .modal-dialog { transform: translateY(30px) scale(.97); transition: transform .35s var(--ease); }
.modal.show .modal-dialog { transform: none; }

/* =========================================================
   Scroll reveal (lightweight, IntersectionObserver driven)
   ========================================================= */
.js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-zoom {
  opacity: 0;
  transition: opacity .75s ease var(--d, 0s), transform .75s var(--ease) var(--d, 0s);
}
.js .reveal { transform: translateY(28px); }
.js .reveal-left { transform: translateX(-36px); }
.js .reveal-right { transform: translateX(36px); }
.js .reveal-zoom { transform: scale(.94); }
.js .reveal.in, .js .reveal-left.in, .js .reveal-right.in, .js .reveal-zoom.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .edge-grid { grid-template-columns: repeat(2, 1fr); grid-template-areas: "hero hero" "a b" "c d"; }
  .edge-hero { min-height: 320px; }
}
@media (max-width: 991.98px) {
  .section { padding: 80px 0; }
  .hero { padding: 50px 0 140px; }
  .hero-visual { margin: 10px auto 0; }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .process-steps::before { display: none; }
  .process-steps .step:last-child { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .counter-row { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .counter:nth-child(3) { border-left: 0; }
  .form-card { padding: 30px; }
  .cta-inner { padding: 38px 30px; }
}
@media (max-width: 767.98px) {
  .navbar-brand img { height: 50px; }
  .site-header.scrolled .navbar-brand img { height: 44px; }
  .hero-title { font-size: 2.1rem; }
  .rotator { font-size: 1.05rem; }
  .fc-1 { left: -6px; top: 40px; }
  .fc-2 { right: -4px; }
  .float-card { padding: 9px 12px; }
  .float-card strong { font-size: .85rem; }
  .spin-badge { width: 90px; height: 90px; }
  .feature-strip { margin-top: -100px; }
  .feature-card { padding: 20px 16px; }
  .punch-wrap { margin-top: 20px; padding: 30px 0; }
  .punch-ribbon { padding: 14px 0; }
  .edge-grid { grid-template-columns: 1fr; grid-template-areas: "hero" "a" "b" "c" "d"; }
  .edge-hero { padding: 30px; min-height: 0; }
  .edge-watermark { font-size: 9rem; }
  .stream-tabs .nav-link { padding: .6rem 1rem; font-size: .9rem; }
  .process-cta { border-radius: var(--radius-lg); padding: 20px; text-align: center; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .enquiry-form-wrap { padding: 30px 22px; }
}
@media (max-width: 575.98px) {
  .counter-row { padding: 26px 10px; }
  .counter .label { font-size: .8rem; }
  .gallery-grid { grid-auto-rows: 150px; gap: 10px; }
  .g-cap { font-size: .82rem; left: 12px; bottom: 10px; }
  .process-steps { grid-template-columns: 1fr; }
  .site-footer .col-6 { width: 50%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-zoom { opacity: 1; transform: none; }
  .punch-track { animation: none; }
}


/* =========================================================
   GRS GLOBAL PU COLLEGE – revision (Nov 2026)
   Brand lock-up, campus hero, programmes, scholarships,
   achievers and inner-page components
   ========================================================= */

/* ---------- Brand lock-up (3D emblem + trust / college name) ---------- */
.brand { display: flex; align-items: center; gap: 12px; margin-right: 1rem; padding: 0; }
.navbar-brand.brand img, .brand img { height: 58px; width: auto; flex-shrink: 0; transition: height .3s var(--ease); }
.site-header.scrolled .navbar-brand.brand img { height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small {
  font-family: var(--font-head); font-size: .66rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 3px; white-space: nowrap;
}
.brand-text strong {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 800;
  color: var(--navy); letter-spacing: .01em; white-space: nowrap;
}
.offcanvas-header .brand img { height: 46px; }
.offcanvas-header .brand-text strong { font-size: 1rem; }
.offcanvas-header .brand-text small { font-size: .58rem; }
.footer-logo.brand { display: inline-flex; }
.footer-logo.brand img { height: 56px; }
.footer-logo .brand-text strong { font-size: 1.05rem; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-brand.brand img { height: 52px; }
  .brand-text strong { font-size: 1.08rem; }
  .brand-text small { font-size: .6rem; }
}
@media (max-width: 767.98px) {
  .navbar-brand.brand img { height: 46px; }
  .site-header.scrolled .navbar-brand.brand img { height: 40px; }
  .brand { gap: 9px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: .56rem; letter-spacing: .06em; }
}
@media (max-width: 374.98px) {
  .brand-text strong { font-size: .9rem; }
  .brand-text small { font-size: .5rem; }
}

/* ---------- Campus hero (original college building photo) ---------- */
.hero-campus { padding: 60px 0 150px; }
.hero-campus .hero-title { font-size: clamp(2.3rem, 4.4vw, 3.7rem); margin-bottom: 10px; }
.hero-tagline { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--gold-deep); margin-bottom: 20px; }
.hero-modes { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-modes li {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: #fff; border: 1px solid #f0e2c0; color: var(--navy);
  padding: 7px 14px; border-radius: 50px; box-shadow: var(--shadow-sm);
}
.hero-modes li i { color: var(--gold); margin-right: 5px; }

.hero-photo-wrap { position: relative; padding: 18px 0 26px 26px; }
.hero-photo-wrap::before {
  content: ""; position: absolute; left: 0; top: 0; width: 62%; height: 78%;
  background: var(--gold-grad); border-radius: 34px 34px 34px 110px; opacity: .9;
  transform: rotate(-3deg);
}
.hero-photo-wrap::after {
  content: ""; position: absolute; right: -10px; bottom: 0; width: 46%; height: 50%;
  background: var(--navy); border-radius: 32px; transform: rotate(2.5deg);
}
.hero-photo {
  position: relative; z-index: 1; margin: 0;
  border-radius: 30px 30px 30px 110px; overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2; background: var(--soft);
}
/* Photo is shown exactly as supplied – no filters or colour treatment */
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-photo figcaption {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(10, 20, 51, .88); color: #fff;
  font-size: .75rem; font-weight: 500; letter-spacing: .02em;
  padding: 7px 12px; border-radius: 10px; border-left: 3px solid var(--gold);
}
.hero-photo-wrap .spin-badge { top: -8px; right: -6px; z-index: 3; }
.hero-photo-wrap .float-card { z-index: 3; }
.hero-photo-wrap .fc-1 { top: auto; bottom: 40px; left: -4px; }

@media (max-width: 991.98px) {
  .hero-campus { padding: 22px 0 140px; }
  .hero-photo-wrap { max-width: 640px; margin: 0 auto 26px; }
}
@media (max-width: 767.98px) {
  .hero-photo-wrap { padding: 12px 0 18px 14px; }
  .hero-photo { border-radius: 22px 22px 22px 70px; border-width: 4px; }
  .hero-photo-wrap .spin-badge { width: 80px; height: 80px; top: -4px; right: -2px; }
  .hero-photo-wrap .spin-badge i { font-size: 1.4rem; }
  .hero-photo-wrap .fc-1 { display: none; }
  .hero-photo figcaption { font-size: .66rem; right: 8px; bottom: 8px; padding: 5px 9px; }
  .hero-campus .hero-title { font-size: 2.2rem; }
  .hero-tagline { font-size: 1rem; }
}

/* ---------- Learning arrangements (residential / semi / day) ---------- */
.mode-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; height: 100%;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.mode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mode-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.mode-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mode-card:hover .mode-img img { transform: scale(1.06); }
.mode-num {
  position: absolute; left: 16px; top: 16px;
  background: var(--navy); color: var(--gold-light);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  padding: 6px 12px; border-radius: 50px;
}
.mode-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.mode-tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.mode-body h3 { font-size: 1.35rem; font-weight: 700; margin: 6px 0 8px; }
.mode-body p { font-size: .93rem; }
.mode-body ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: .9rem; color: var(--ink); }
.mode-body ul i { color: var(--gold); margin-right: 6px; }
.mode-body .course-link { margin-top: auto; }

/* Small print about proposed facility visuals */
.media-note { font-size: .82rem; color: var(--muted); margin: 22px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.media-note i { color: var(--gold-deep); margin-top: 1px; }
.text-center .media-note, .media-note.text-center { justify-content: center; }

/* ---------- Programmes ---------- */
.lang-strip {
  margin: 30px auto 0; max-width: 860px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: 14px 26px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.lang-strip b {
  font-family: var(--font-head); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep);
}
.lang-strip span { font-size: .95rem; color: var(--ink); }
.lang-strip i { color: var(--gold); }
@media (max-width: 767.98px) { .lang-strip { border-radius: var(--radius); flex-direction: column; gap: 4px; } }

/* ---------- Merit scholarships band ---------- */
.scholar-band {
  position: relative; overflow: hidden;
  background: var(--navy-grad); color: #fff;
  border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold);
  padding: 56px 0;
}
.scholar-band::before {
  content: ""; position: absolute; right: -80px; top: -90px; width: 320px; height: 360px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold-grad); opacity: .1;
}
.scholar-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.scholar-emblem {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid rgba(244, 204, 106, .6); background: rgba(255, 255, 255, .06);
}
.scholar-emblem img { width: 50px; height: auto; }
.scholar-band .section-tag { margin-bottom: 6px; }
.scholar-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 6px; }
.scholar-band h2 span { color: var(--gold-light); }
.scholar-band p { color: #c9d1ea; margin: 0; max-width: 560px; }
@media (max-width: 991.98px) {
  .scholar-inner { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .scholar-emblem { width: 76px; height: 76px; }
  .scholar-emblem img { width: 38px; }
}

/* ---------- Infrastructure gallery (homepage) ---------- */
.infra-grid { grid-auto-rows: 200px; }
@media (min-width: 992px) { .infra-grid { grid-template-columns: repeat(4, 1fr); } }
button.g-item { border: 0; padding: 0; width: 100%; text-align: left; cursor: zoom-in; background: var(--soft); }
.g-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* lightbox prev / next */
.lightbox .modal-content { position: relative; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 1.2rem;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.lb-nav:hover { background: var(--gold-light); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lightbox img { max-width: 100%; }

/* ---------- Achievers ---------- */
.ach-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.ach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #f0dfb8; }
.ach-photo { aspect-ratio: 4 / 5; background: var(--cream); overflow: hidden; border-bottom: 3px solid var(--gold); position: relative; }
.ach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ach-rank {
  position: absolute; left: 8px; top: 8px;
  background: var(--navy); color: var(--gold-light);
  font-family: var(--font-head); font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 50px;
}
.ach-body { padding: 14px 14px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ach-body small { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.ach-body h3 { font-size: .98rem; font-weight: 700; margin: 2px 0 0; text-transform: capitalize; }
.ach-body p { font-size: .84rem; margin: 0; line-height: 1.4; }
.ach-score { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.ach-group + .ach-group { margin-top: 64px; }
.ach-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.ach-group-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin: 0; white-space: nowrap; }
.ach-group-head::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.ach-group-head .ach-icon {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--gold-grad); color: var(--navy);
}
@media (max-width: 575.98px) {
  .ach-body { padding: 10px 8px 12px; }
  .ach-body h3 { font-size: .86rem; }
  .ach-body p { font-size: .76rem; }
  .ach-body small { font-size: .58rem; letter-spacing: .06em; }
}

/* Achievers & scholarship popup (Bootstrap modal) */
.ach-modal .modal-content { border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.ach-modal-head { background: var(--navy-grad); padding: 26px 30px 24px; position: relative; border-bottom: 3px solid var(--gold); }
.ach-modal-head .section-tag { margin-bottom: 4px; }
.ach-modal-head h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; margin: 0; }
.ach-modal-head p { color: #c9d1ea; margin: 4px 0 0; font-size: .92rem; }
.ach-modal-head .btn-close { position: absolute; top: 18px; right: 18px; }
.ach-modal-body { padding: 22px 26px 26px; }
.ach-modal .ach-photo { aspect-ratio: 1; }
.ach-modal .ach-body { padding: 10px 8px 12px; }
.ach-modal .ach-body h3 { font-size: .85rem; }
.ach-modal .ach-body p { font-size: .76rem; }
.ach-modal-cta { text-align: center; margin-top: 22px; }
.ach-modal-cta h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.ach-modal-cta p { margin-bottom: 14px; }
.link-quiet { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .88rem; margin-top: 10px; }
@media (max-width: 575.98px) {
  .ach-modal .modal-dialog { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; }
  .ach-modal .modal-content { border-radius: 22px 22px 0 0; max-height: 88dvh; overflow-y: auto; }
  .ach-modal-head { padding: 20px 20px 18px; }
  .ach-modal-body { padding: 16px; }
  .ach-modal-cta .btn { width: 100%; }
}

/* ---------- Inner page banner ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy-grad); color: #fff;
  padding: 78px 0 84px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px 260px at 8% 0%, rgba(244, 204, 106, .22), transparent 70%),
    radial-gradient(600px 300px at 100% 120%, rgba(244, 204, 106, .12), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; right: 4%; bottom: -60px; width: 260px; height: 300px;
  background: url("../images/grs-emblem-lg.png") center / contain no-repeat; opacity: .08;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; margin: 8px 0 12px; letter-spacing: -.01em; }
.page-hero p { color: #c9d1ea; max-width: 640px; font-size: 1.05rem; margin: 0; }
.crumbs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.crumbs li { color: var(--gold-light); }
.crumbs li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .7rem; margin-right: 8px; color: #8b97bf; }
.crumbs a { color: #c9d1ea; }
.crumbs a:hover { color: var(--gold-light); }
@media (max-width: 767.98px) { .page-hero { padding: 54px 0 58px; } .page-hero::after { width: 160px; height: 190px; } }

/* ---------- Inner page content blocks ---------- */
.lead-text { font-size: 1.08rem; color: var(--ink); }
.img-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 11; }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.img-pair img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }
.split-row + .split-row { margin-top: 90px; }
@media (max-width: 991.98px) { .split-row + .split-row { margin-top: 60px; } }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; color: var(--ink); }
.check-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; color: var(--gold); flex-shrink: 0; }
.check-list.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 575.98px) { .check-list.two-col { grid-template-columns: 1fr; } }

.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.2rem; font-weight: 700; margin: 16px 0 8px; }
.info-card p { font-size: .93rem; margin: 0; }
.info-card .vm-icon { width: 52px; height: 52px; font-size: 1.35rem; }
.info-card.navy { background: var(--navy); border-color: var(--navy); }
.info-card.navy h3 { color: #fff; }
.info-card.navy p { color: #c9d1ea; }

/* Course detail (courses page) */
.course-detail {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; height: 100%; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.course-detail-head { background: var(--navy-grad); padding: 26px 30px; position: relative; overflow: hidden; }
.course-detail-head::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 140px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold-grad); opacity: .18;
}
.course-detail-head .course-code { color: #fff; font-size: 2.3rem; line-height: 1; }
.course-detail-head .course-subjects { color: var(--gold-light); margin: 8px 0 0; }
.course-detail-body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.course-detail-body h4 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin: 18px 0 10px; }
.course-detail-body h4:first-child { margin-top: 0; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.subject-chips span { background: var(--soft); color: var(--navy); font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 50px; }
.subject-chips.gold span { background: var(--cream); color: var(--gold-deep); border: 1px solid #f0e2c0; }
.course-detail-body .btn { margin-top: 24px; align-self: flex-start; }

.exam-tile {
  background: #fff; border-radius: var(--radius); padding: 22px; height: 100%;
  border: 1px solid var(--line); border-top: 4px solid var(--gold);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.exam-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.exam-tile .exam-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.exam-tile .exam-for { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin: 2px 0 8px; }
.exam-tile p { font-size: .88rem; margin: 0; }

/* Department cards (faculty page) */
.dept-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; transition: border-color .3s, box-shadow .3s; }
.dept-card:hover { border-color: #f0dfb8; box-shadow: var(--shadow); }
.dept-card i { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--navy); color: var(--gold-light); }
.dept-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.dept-card p { font-size: .88rem; margin: 0; }

/* Documents / steps lists */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: doc; }
.doc-list li { counter-increment: doc; display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); }
.doc-list li::before {
  content: counter(doc, decimal-leading-zero); flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  background: var(--cream); color: var(--gold-deep);
}

/* Gallery filters */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.filter-bar button {
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: .55rem 1.2rem; border-radius: 50px; transition: background .25s, color .25s, border-color .25s;
}
.filter-bar button:hover { border-color: var(--gold); }
.filter-bar button.active { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
.g-item.is-hidden { display: none; }

/* Prospectus download card */
.download-card { display: flex; align-items: center; gap: 18px; background: var(--cream); border: 1px solid #f1e3c2; border-radius: var(--radius-lg); padding: 22px 24px; }
.download-card > i { font-size: 2.2rem; color: var(--gold-deep); }
.download-card strong { display: block; font-family: var(--font-head); color: var(--navy); }
.download-card span { font-size: .86rem; color: var(--muted); }
@media (max-width: 575.98px) { .download-card { flex-wrap: wrap; } .download-card .btn { width: 100%; } }

/* Notes for management review – set to display:none (or delete) before going live */
.review-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fff7e3; border: 1px dashed #e3c27a; color: #6f5837;
  border-radius: 12px; padding: 10px 14px; font-size: .82rem; margin-top: 18px;
}
.review-note i { color: var(--gold-deep); }
.dropdown-item.active, .dropdown-item:active { background: var(--cream); color: var(--gold-deep); }
@media (min-width: 1200px) { .row-cols-xl-7 > * { flex: 0 0 auto; width: 14.285714%; } }
.scholar-band + .site-footer, .scholar-band:last-child { margin-bottom: 0; }

/* ---------- Leadership (About page) ---------- */
.leader-card {
  height: 100%; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px 12px 22px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.leader-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.leader-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px); background: var(--navy-grad);
}
.leader-card .leader-photo { margin-bottom: 18px; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.leader-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--gold-light);
}
.leader-initials::before {
  content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(244, 204, 106, .45);
}
.leader-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.leader-role {
  display: block; font-family: var(--font-head); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep);
}
.leader-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 12px; font-size: .86rem; font-weight: 600; }

.message-row { scroll-margin-top: 110px; }
.message-row + .message-row { margin-top: 90px; }
.message-photo { position: relative; isolation: isolate; max-width: 340px; margin: 0 auto; }
.message-photo::before {
  content: ""; position: absolute; z-index: -1; inset: 24px -16px -16px 24px;
  border: 2px solid var(--gold); border-radius: var(--radius-lg);
}
.message-row.flip .message-photo::before { inset: 24px 24px -16px -16px; }
.message-photo .leader-photo { border: 6px solid #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.message-body { position: relative; }
.message-quote {
  position: absolute; top: -34px; right: 0; font-size: 6rem; line-height: 1;
  color: var(--gold); opacity: .18; pointer-events: none;
}
.message-salutation { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.message-body p { margin-bottom: 14px; }
.message-sign { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.message-sign::before { content: ""; flex: 0 0 38px; height: 3px; border-radius: 3px; background: var(--gold-grad); }
.message-sign strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.08rem; }
.message-sign span { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
@media (max-width: 991.98px) {
  .message-row + .message-row { margin-top: 70px; }
  .message-photo { max-width: 260px; }
  .message-quote { font-size: 4.5rem; top: -20px; }
}
@media (max-width: 575.98px) {
  .leader-card { padding: 8px 8px 16px; }
  .leader-card h3 { font-size: .92rem; }
  .leader-role { font-size: .66rem; letter-spacing: .08em; }
  .message-photo { max-width: 220px; }
}
