/* ==========================================================================
   A.P.S PUBLIC INTER COLLEGE — Main Stylesheet
   Mobile-first. Desktop refinements live in css/responsive.css
   Palette sampled directly from the official logo + mockup.
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand */
  --navy:        #041a49;   /* hero / footer / CTA band */
  --navy-deep:   #03153a;
  --navy-soft:   #0b2f6b;
  --shield:      #24324d;   /* logo shield */
  --royal:       #1d4ed8;   /* royal blue buttons */
  --royal-dark:  #1e40af;
  --red:         #c5030e;   /* logo "A.P.S PUBLIC" */
  --ink:         #100774;   /* logo "INTER COLLEGE" */

  /* Gold accent */
  --gold:        #e3b637;
  --gold-light:  #f5d576;
  --gold-dark:   #c9a227;

  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #fafafa;
  --gray-100:    #f5f6f8;
  --gray-200:    #eceff3;
  --gray-300:    #dde2e9;
  --text:        #1e293b;
  --text-mute:   #64748b;

  /* Effects */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --shadow-sm:   0 1px 3px rgba(4, 26, 73, .06);
  --shadow:      0 4px 16px rgba(4, 26, 73, .08);
  --shadow-md:   0 8px 28px rgba(4, 26, 73, .10);
  --shadow-lg:   0 16px 44px rgba(4, 26, 73, .14);
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --t-fast:      .22s var(--ease);
  --t:           .35s var(--ease);

  /* Layout */
  --topbar-h:    38px;
  --nav-h:       74px;
}

/* ---------- 2. BASE ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* offset sticky nav on anchor jumps */
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a   { text-decoration: none; transition: color var(--t-fast); }
ul  { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}

/* Accessibility: visible focus + skip link */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Section rhythm */
.section { padding: 48px 0; }

.sec-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.sec-text {
  color: var(--text-mute);
  font-size: .9rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

/* ---------- 3. BUTTONS ---------- */
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  border-radius: var(--radius-sm);
  padding: 11px 26px;
  border: 0;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.btn:active { transform: translateY(1px) scale(.99); }

/* Gold gradient CTA */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(201, 162, 39, .35);
  text-transform: uppercase;
}
.btn-gold:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, .5);
}

/* Outline (on hero) */
.btn-outline-light-2 {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .75);
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.btn-outline-light-2:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}

/* Royal blue (message cards) */
.btn-royal {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-dark) 100%);
  color: #fff;
  text-transform: uppercase;
  font-size: .68rem;
  padding: 8px 18px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, .3);
}
.btn-royal:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 78, 216, .45);
}

/* Navy (view gallery) */
.btn-navy {
  background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(4, 26, 73, .3);
}
.btn-navy:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(4, 26, 73, .45);
}

/* Ripple effect (JS injects .ripple span) */
.btn-ripple { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .55);
  animation: ripple .6s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- 4. TOP BAR ---------- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  font-size: .7rem;
  color: var(--text);
  padding: 7px 0;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  text-align: center;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.topbar-item i { color: var(--navy); font-size: .78rem; }
a.topbar-item:hover { color: var(--red); }

/* ---------- 5. NAVBAR ---------- */
.site-nav {
  background: var(--white);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
/* Scrolled state (JS toggles .nav-scrolled) */
.site-nav.nav-scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(4, 26, 73, .1);
  padding: 4px 0;
}

.brand-logo    { height: 46px; width: auto; transition: height var(--t); }
.brand-logo-sm { height: 36px; width: auto; }
.site-nav.nav-scrolled .brand-logo { height: 40px; }

.navbar-toggler {
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  padding: 2px 8px;
}
.navbar-toggler:focus { box-shadow: none; }

.site-nav .nav-link {
  color: var(--navy);
  font-weight: 500;
  font-size: .78rem;
  padding: 8px 11px !important;
  position: relative;
}
/* Animated underline */
.site-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--red); }

/* Dropdown */
.site-nav .dropdown-menu {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  margin-top: 10px;
  min-width: 210px;
  animation: dropIn .22s var(--ease);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
  font-size: .78rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--red);
  padding-left: 16px;
}

/* ---------- 6. MOBILE OFFCANVAS ---------- */
.mobile-menu { width: 290px; border-left: 0; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--gray-200); }
.mobile-menu .nav-link {
  color: var(--navy);
  font-weight: 500;
  font-size: .88rem;
  padding: 12px 4px;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu .nav-link.active,
.mobile-menu .nav-link:hover { color: var(--red); }
.mobile-menu .dropdown-menu {
  border: 0;
  box-shadow: none;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}
.offcanvas-cta { margin-top: 22px; }
.offcanvas-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  font-size: .78rem;
}
.offcanvas-contact a { color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.offcanvas-contact a:hover { color: var(--red); }

/* ---------- 7. NEWS TICKER ---------- */
.news-ticker {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-soft) 100%);
  overflow: hidden;
}
.ticker-wrap { display: flex; align-items: stretch; }

.ticker-label {
  background: var(--shield);
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  padding: 9px 26px 9px 18px;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}
/* Arrow notch */
.ticker-label::after {
  content: '';
  position: absolute;
  top: 0;
  right: -12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 19px 0 19px 12px;
  border-color: transparent transparent transparent var(--shield);
}

.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-move {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  animation: tickerScroll 26s linear infinite;
  padding-left: 24px;
}
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a {
  color: #fff;
  font-size: .72rem;
  font-weight: 500;
  opacity: .92;
}
.ticker-move a:hover { color: var(--gold-light); opacity: 1; }
.ticker-move .sep { color: rgba(255, 255, 255, .35); }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Mask so items never bleed under the "Latest News" label */
.ticker-track { position: relative; mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 100%); }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
/* Navy wash — deep on the left so the headline stays readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 26, 73, .96) 0%, rgba(4, 26, 73, .88) 38%, rgba(4, 26, 73, .45) 70%, rgba(4, 26, 73, .3) 100%);
}

.hero-container { position: relative; z-index: 3; }
.hero-content { max-width: 620px; padding: 40px 0; }

.hero-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.hero-year {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 8vw, 3.6rem);
  letter-spacing: .01em;
}
.hero-sub {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(.95rem, 2.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 26px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Floating decorative icons */
.hero-icons { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.float-ico {
  position: absolute;
  color: rgba(255, 255, 255, .16);
  font-size: 2rem;
  animation: floatY 6s ease-in-out infinite;
}
.float-ico.i1 { top: 22%; right: 42%; font-size: 1.6rem; animation-delay: 0s; }
.float-ico.i2 { top: 14%; right: 30%; font-size: 1.9rem; animation-delay: .8s; }
.float-ico.i3 { top: 30%; right: 18%; font-size: 2.2rem; animation-delay: 1.6s; }
.float-ico.i4 { top: 18%; right: 6%;  font-size: 2.4rem; animation-delay: 2.4s; }
.float-ico.i5 { top: 62%; right: 46%; font-size: 1.5rem; animation-delay: 3.2s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(5deg); }
}

/* ---------- 9. ABOUT ---------- */
.about-sec { background: var(--white); }
.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.about-img-wrap:hover .about-img { transform: scale(1.06); }

.about-pills { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.about-pill { display: flex; align-items: center; gap: 9px; }
.pill-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: .8rem;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.about-pill:hover .pill-ico {
  background: var(--gold);
  color: #fff;
  transform: rotate(360deg) scale(1.1);
}
.pill-txt { font-size: .72rem; font-weight: 600; color: var(--navy); }

/* ---------- 10. MESSAGE CARDS ---------- */
.msg-sec { background: var(--gray-100); }
.msg-card {
  background: linear-gradient(145deg, #fdfcfa 0%, #f8f6f2 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  gap: 16px;
  height: 100%;
  transition: transform var(--t), box-shadow var(--t);
}
.msg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.msg-photo {
  flex-shrink: 0;
  width: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}
.msg-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.msg-card:hover .msg-photo img { transform: scale(1.07); }

.msg-body { flex: 1; min-width: 0; }
.msg-title { font-size: 1rem; margin-bottom: 8px; }
.msg-text {
  font-size: .78rem;
  color: var(--text-mute);
  line-height: 1.75;
  margin-bottom: 6px;
}
.msg-sign { height: 34px; width: auto; opacity: .8; display: block; margin-bottom: 10px; }

/* ---------- 11. WHY CHOOSE US ---------- */
.why-sec { background: var(--white); }
.why-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 10px 14px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.why-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--navy);
  font-size: 1.15rem;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.why-card:hover .why-ico {
  background: var(--navy);
  color: var(--gold);
  transform: scale(1.12);
}
.why-name {
  font-size: .7rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.45;
}

/* ---------- 12. EVENTS ---------- */
.events-sec { background: var(--white); }
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.event-img { overflow: hidden; }
.event-img img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.event-card:hover .event-img img { transform: scale(1.09); }

.event-body { padding: 14px 16px 16px; }
.event-title { font-size: .95rem; margin-bottom: 8px; }
.event-meta {
  font-size: .7rem;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.event-link {
  font-size: .68rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .04em;
}
.event-link:hover { color: var(--red); gap: 10px; }

/* ---------- 13. GALLERY STRIP ---------- */
.gal-strip-sec { background: var(--white); }
.gal-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gal-thumb {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gal-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease), filter var(--t);
}
.gal-thumb::after {
  content: '\F52A'; /* bi-zoom-in */
  font-family: 'bootstrap-icons';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.3rem;
  background: rgba(4, 26, 73, .55);
  opacity: 0;
  transition: opacity var(--t);
}
.gal-thumb:hover img { transform: scale(1.12); }
.gal-thumb:hover::after { opacity: 1; }

/* ---------- 14. CTA BAND ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-soft) 60%, var(--navy) 100%);
  padding: 26px 0;
  position: relative;
  overflow: hidden;
}
/* Subtle moving sheen */
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen {
  0%   { left: -60%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.cta-title {
  color: #fff;
  font-size: clamp(1.05rem, 3.6vw, 1.65rem);
  font-weight: 800;
  margin: 0 0 3px;
  letter-spacing: -.01em;
}
.cta-sub {
  color: rgba(255, 255, 255, .8);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- 15. TESTIMONIALS ---------- */
.testi-sec { background: var(--white); }
.testi-card {
  background: linear-gradient(145deg, #fdfcfa 0%, #faf8f4 100%);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  margin: 0;
  transition: transform var(--t), box-shadow var(--t);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
/* Big watermark quote */
.testi-card::after {
  content: '\F6B0'; /* bi-quote */
  font-family: 'bootstrap-icons';
  position: absolute;
  right: -6px;
  top: -14px;
  font-size: 4.5rem;
  color: var(--gold);
  opacity: .1;
  line-height: 1;
}
.testi-quote { color: var(--navy); font-size: 1.5rem; line-height: 1; }
.testi-text {
  font-size: .8rem;
  color: var(--text-mute);
  line-height: 1.8;
  margin: 6px 0 12px;
}
.testi-by { font-size: .72rem; font-weight: 600; color: var(--navy); }

/* ---------- 16. FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  padding-top: 42px;
  font-size: .78rem;
}
.footer-top { padding-bottom: 28px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 14px; }
.footer-about { font-size: .74rem; line-height: 1.8; color: rgba(255, 255, 255, .62); margin-bottom: 16px; }

.footer-social { display: flex; gap: 9px; }
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .8rem;
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

.footer-head {
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, .68); font-size: .74rem; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 11px;
  font-size: .74rem;
  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
}
.footer-contact i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255, 255, 255, .68); }
.footer-contact a:hover { color: var(--gold); }

.footer-map {
  min-height: 120px;
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .85);
  line-height: 0;
  margin-top: 12px;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 14px 0;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .58); }

/* ---------- 17. INNER PAGE BANNER ---------- */
.page-banner {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 34px 0;
}
.page-banner-bg { position: absolute; inset: 0; z-index: 0; }
.page-banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(4, 26, 73, .92) 42%, rgba(4, 26, 73, .55) 100%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-title { color: #fff; font-size: clamp(1.4rem, 5vw, 2.1rem); font-weight: 800; margin-bottom: 4px; }
.breadcrumb-nav { font-size: .74rem; }
.breadcrumb-nav a { color: rgba(255, 255, 255, .78); }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav .sep { color: rgba(255, 255, 255, .45); margin: 0 7px; }
.breadcrumb-nav .current { color: #fff; }

/* ---------- 18. BACK TO TOP ---------- */
.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--royal), var(--navy));
  color: #fff;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--t);
  z-index: 1040;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px) scale(1.06); }

/* ---------- 19. SCROLL ANIMATIONS ---------- */
[data-anim] {
  opacity: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-anim="fade-up"]    { transform: translateY(34px); }
[data-anim="fade-left"]  { transform: translateX(38px); }
[data-anim="fade-right"] { transform: translateX(-38px); }
[data-anim="zoom"]       { transform: scale(.86); }

[data-anim].in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1; transform: none; }
}

/* ---------- 20. GALLERY PAGE — FILTER + GRID ---------- */
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.gal-filter-btn {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--navy);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.gal-filter-btn:hover { border-color: var(--navy); transform: translateY(-2px); }
.gal-filter-btn.active {
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(4, 26, 73, .3);
}

.gal-item {
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.gal-item.fade-out { opacity: 0; transform: scale(.9); }
.gal-item.hide { display: none; }

.gal-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
}
.gal-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gal-card::after {
  content: '\F52A';
  font-family: 'bootstrap-icons';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  background: rgba(4, 26, 73, .55);
  opacity: 0;
  transition: opacity var(--t);
}
.gal-card:hover img { transform: scale(1.1); }
.gal-card:hover::after { opacity: 1; }

/* ---------- 21. LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 21, 58, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; animation: lbIn .25s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  animation: lbZoom .3s var(--ease);
}
@keyframes lbZoom { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); color: var(--navy); transform: scale(1.1); }
.lb-close { top: 18px; right: 18px; }
.lb-prev  { left: 14px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.1); }
.lb-next:hover { transform: translateY(-50%) scale(1.1); }

/* ---------- 22. ABOUT PAGE BLOCKS ---------- */
/* Mission / Vision / Values cards */
.mvv-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  height: 100%;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.mvv-ico {
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 10px;
  display: block;
  transition: transform var(--t-fast), color var(--t-fast);
}
.mvv-card:hover .mvv-ico { color: var(--gold-dark); transform: scale(1.15); }
.mvv-title { font-size: .88rem; margin-bottom: 8px; }
.mvv-text  { font-size: .74rem; color: var(--text-mute); line-height: 1.75; margin: 0; }

/* Journey timeline */
.journey-row { position: relative; }
.journey-item { position: relative; padding-top: 30px; }
.journey-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold-dark));
  box-shadow: 0 0 0 4px rgba(227, 182, 55, .22);
  z-index: 2;
}
/* Connector line */
.journey-item::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 20px;
  right: -12px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gray-300) 100%);
  z-index: 1;
}
.journey-row > [class*="col-"]:last-child .journey-item::before { display: none; }
.journey-title { font-size: .82rem; margin-bottom: 6px; }
.journey-text  { font-size: .72rem; color: var(--text-mute); line-height: 1.7; margin: 0; }

/* Achievement counters */
.ach-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.ach-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.ach-num {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  display: block;
  margin-bottom: 4px;
}
.ach-label { font-size: .68rem; color: var(--text-mute); margin: 0; }

/* Management team */
.team-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  height: 100%;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); background: var(--white); }
.team-photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 auto 10px;
  box-shadow: var(--shadow-sm);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.1); }
.team-role { font-size: .74rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.team-name { font-size: .7rem; color: var(--text-mute); margin: 0; }

/* Infrastructure grid */
.infra-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
}
.infra-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.infra-card:hover img { transform: scale(1.09); }

/* ============================================================
   NEW FEATURES — Slider, QR code, Exam tabs, Alumni
   ============================================================ */

/* ---------- HOMEPAGE SLIDER (Bootstrap carousel reusing hero styles) ---------- */
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}
.hero-slider .carousel-item {
  min-height: 78vh;
  position: relative;
}
.hero-slider .carousel-item .hero-bg { position: absolute; inset: 0; z-index: 0; }
/* Sharper scaling for uploaded slide photos — avoids the soft/blurred look
   that comes from stretching small or low-res images across a full banner. */
.hero-slider .hero-img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-slider .carousel-indicators { z-index: 5; margin-bottom: 1.5rem; }
.hero-slider .carousel-indicators button {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background-color: rgba(255,255,255,.55); opacity: 1; margin: 0 5px;
}
.hero-slider .carousel-indicators button.active { background-color: var(--gold); }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 5%; z-index: 5; opacity: 0; transition: opacity .25s ease; }
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next { opacity: .85; }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon { width: 2rem; height: 2rem; }

/* ---------- QR CODE (Contact page "Find Us") ---------- */
.qr-card {
  height: 100%;
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.qr-card-icon { font-size: 1.6rem; color: var(--navy); margin-bottom: 6px; }
.qr-card-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.qr-card-text { font-size: .8rem; color: var(--text-mute); margin-bottom: 14px; }
.qr-card-img {
  width: 160px; height: 160px; border-radius: var(--radius-sm);
  background: #fff; padding: 8px; box-shadow: var(--shadow-sm);
}

/* ---------- FOOTER QR badge (all pages) ---------- */
.footer-map-row { display: flex; align-items: stretch; gap: 10px; }
.footer-map { flex: 1 1 auto; min-width: 0; }
.footer-qr {
  flex: 0 0 auto;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.footer-qr img { width: 72px; height: 72px; border-radius: 6px; background: #fff; padding: 4px; }
.footer-qr span {
  font-size: .62rem; line-height: 1.15; color: rgba(255,255,255,.72); text-align: center;
}
.footer-qr:hover span { color: var(--gold); }

/* ---------- Outline navy button (used on Contact / Exams pages) ---------- */
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- EXAMINATIONS PAGE ---------- */
.exam-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; border: 0; }
.exam-tab-btn {
  font-family: inherit; font-weight: 600; font-size: .82rem; letter-spacing: .02em;
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--gray-100);
  background: var(--gray-100); color: var(--navy); transition: all var(--t-fast);
}
.exam-tab-btn:hover { border-color: var(--navy); }
.exam-tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.exam-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--gray-100); border-radius: var(--radius); padding: 18px;
  height: 100%; transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.exam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: var(--white); }
.exam-card-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--navy); color: var(--gold); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}
.exam-card-title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.exam-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .74rem; color: var(--text-mute); margin-bottom: 8px; }
.exam-card-meta i { margin-right: 3px; }
.exam-card-text { font-size: .82rem; color: var(--text-mute); margin-bottom: 12px; }

@media (max-width: 767px) {
  .footer-map-row { flex-direction: column; align-items: center; }
  .footer-qr { width: 100%; flex-direction: row; justify-content: center; }
}
