/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --navy: #16264A;
  --navy-2: #223867;
  --navy-3: #2E4B8C;
  --gold: #E3A73E;
  --gold-dark: #C98A22;
  --teal: #1F6F5C;
  --ink: #1A1D29;
  --muted: #656B7A;
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --line: #E7E6E1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(22,38,74,0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.text-gold { color: var(--gold-dark); }
.text-teal { color: var(--teal); }
.bg-navy { background: var(--navy); }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Top bar
   ============================================================ */
.top-bar {
  background: var(--navy);
  color: #D6DCEE;
  font-size: 0.85rem;
}
.top-bar i { color: var(--gold); margin-right: 4px; }
.top-bar-social a {
  color: #D6DCEE;
  margin-left: 14px;
  transition: color .2s;
}
.top-bar-social a:hover { color: var(--gold); }

/* ============================================================
   Navbar
   ============================================================ */
.main-navbar {
  background: #FFFFFFF2;
  backdrop-filter: blur(8px);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, padding .25s, transform .3s ease;
}
.main-navbar.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(22,38,74,0.35);
  padding: 0.4rem 0;
}
/* Slides the sticky navbar off-screen while scrolling down, and back in on scroll up */
.main-navbar.nav-hidden { transform: translateY(-100%); }
.navbar-brand { line-height: 1.1; flex-shrink: 0; white-space: nowrap; }
.navbar-brand img { height: 44px; width: auto; margin-right: 4px; transition: height .25s; display: block; }
.navbar-brand strong { font-family: 'Poppins', sans-serif; font-size: 1.15rem; color: var(--navy); }
.navbar-brand small { color: var(--muted); font-size: 0.72rem; }

.main-navbar .nav-link {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--navy);
  background: rgba(227,167,62,0.16);
}
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-top: 8px;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}
.dropdown-item:hover { background: rgba(227,167,62,0.14); color: var(--navy); }

.btn-apply {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(227,167,62,0.6); }

/* Hamburger button — a quiet rounded square instead of Bootstrap's default */
.custom-toggler {
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(22,38,74,0.06);
  color: var(--navy);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.custom-toggler:hover { background: rgba(227,167,62,0.22); }
.custom-toggler:focus { box-shadow: 0 0 0 3px rgba(227,167,62,0.35); outline: none; }

/* ============================================================
   Mobile off-canvas menu ("the flap")
   ============================================================ */
.mobile-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,15,30,0.55);
  backdrop-filter: blur(2px);
  z-index: 1150;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.mobile-drawer-backdrop.show { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0; right: -340px;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(190deg, var(--navy) 0%, var(--navy-2) 100%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 60px -20px rgba(0,0,0,0.55);
  transition: right .35s cubic-bezier(.25,.9,.3,1.1);
  overflow-y: auto;
}
.mobile-drawer.open { right: 0; }

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.3rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-drawer-brand { color: #fff; }
.mobile-drawer-brand img { height: 32px; width: auto; }
.mobile-drawer-brand span { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; }
.mobile-drawer-close {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.mobile-drawer-close:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.mobile-drawer-nav { flex: 1; padding: 1rem 0.7rem; }
.mobile-nav-link, .mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #E7ECF9;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 2px;
}
.mobile-nav-link:hover, .mobile-nav-link.active,
.mobile-nav-toggle:hover { background: rgba(227,167,62,0.16); color: #fff; }
.mobile-nav-toggle i { transition: transform .25s; font-size: 0.8rem; opacity: 0.7; }
.mobile-nav-group.open .mobile-nav-toggle i { transform: rotate(180deg); }
.mobile-nav-group.open .mobile-nav-toggle { background: rgba(255,255,255,0.06); }

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding-left: 0.6rem;
}
.mobile-nav-group.open .mobile-submenu { max-height: 500px; }
.mobile-submenu a {
  display: block;
  padding: 0.65rem 1rem;
  color: #B9C2DE;
  font-size: 0.92rem;
  border-radius: 8px;
}
.mobile-submenu a:hover, .mobile-submenu a.active { color: var(--gold); background: rgba(255,255,255,0.05); }

.mobile-drawer-footer {
  padding: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-drawer-contact { margin-top: 1rem; }
.mobile-drawer-contact p { color: #B9C2DE; font-size: 0.85rem; margin-bottom: 0.5rem; }
.mobile-drawer-contact i { color: var(--gold); margin-right: 6px; }
.mobile-drawer-social { display: flex; gap: 8px; margin-top: 0.9rem; }
.mobile-drawer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #E7ECF9;
  transition: background .2s, color .2s;
}
.mobile-drawer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

body.drawer-open { overflow: hidden; }

/* ============================================================
   Hero (3-slide banner carousel)
   ============================================================ */
.hero-carousel-section { position: relative; }
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 620px; }

.hero-slide {
  position: relative;
  height: 620px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide-fallback { height: 480px; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,23,46,0.92) 0%, rgba(22,38,74,0.72) 45%, rgba(22,38,74,0.32) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color: #fff;
}
.hero-slide-content h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.15;
}
.hero-slide-content p.lead {
  color: #D3D9EC;
  max-width: 540px;
  font-size: 1.06rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #E8ECF7;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}
.hero-badge i { color: var(--gold); }

.btn-hero-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: transform .2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); color: var(--navy); }
.btn-hero-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: background .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Carousel controls: quiet circular arrows instead of Bootstrap's default icons */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 5%;
  opacity: 1;
}
.hero-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background .2s;
}
.hero-carousel .carousel-control-prev:hover .hero-arrow,
.hero-carousel .carousel-control-next:hover .hero-arrow { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* Indicators: small gold dashes instead of Bootstrap's default bars */
.hero-carousel .carousel-indicators { bottom: 2.4rem; }
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 26px; height: 4px;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.4);
  border: none;
  opacity: 1;
  margin: 0 4px;
}
.hero-carousel .carousel-indicators .active { background-color: var(--gold); }

.hero-stats {
  position: relative;
  margin-top: -3.2rem;
  z-index: 3;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.4rem 1rem;
  text-align: center;
}
.stat-card .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--navy);
}
.stat-card .label { color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   Section utilities
   ============================================================ */
.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.bg-soft { background: #EFF1F8; }

/* ============================================================
   Notice ticker
   ============================================================ */
.notice-strip {
  background: var(--teal);
  color: #fff;
  padding: 0.7rem 0;
}
.notice-strip .tag {
  background: rgba(255,255,255,0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.notice-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}
.notice-marquee ul {
  display: inline-flex;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: marquee 28s linear infinite;
}
.notice-marquee a { color: #fff; font-size: 0.92rem; }
.notice-marquee a:hover { text-decoration: underline; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Cards: academics / programs
   ============================================================ */
.pillar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: border-color .2s, transform .2s;
}
.pillar-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.pillar-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(31,111,92,0.1);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.pillar-card h5 { font-size: 1.08rem; }
.pillar-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

/* ============================================================
   Event cards
   ============================================================ */
.event-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}
.event-date-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.event-date-badge .d { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem; line-height: 1; color: var(--navy); }
.event-date-badge .m { font-size: 0.7rem; color: var(--muted); }
.event-img { height: 190px; overflow: hidden; position: relative; }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-body { padding: 1.3rem; }
.event-body h5 { font-size: 1.05rem; }
.event-meta { color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   Notice list page
   ============================================================ */
.notice-item {
  display: flex; gap: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.notice-date-block {
  min-width: 72px; text-align: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem;
  height: fit-content;
}
.notice-date-block .d { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.notice-date-block .m { font-size: 0.72rem; color: var(--muted); }

/* ============================================================
   Faculty
   ============================================================ */
.faculty-card { text-align: center; }
.faculty-photo {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background: #E1E5F0;
}
.faculty-card h5 { margin-bottom: 0.15rem; font-size: 1.02rem; }
.faculty-card .role { color: var(--teal); font-size: 0.85rem; font-weight: 600; }
.faculty-card .qual { color: var(--muted); font-size: 0.82rem; }

/* ============================================================
   Bus Routes / Transport
   ============================================================ */
.route-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  height: 100%;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.route-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.route-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.route-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.route-vehicle {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.route-name { font-size: 1.05rem; margin-bottom: 0.8rem; }
.route-areas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.route-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(31,111,92,0.1);
  color: var(--teal);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.route-times {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 0.9rem;
  margin-bottom: 0.9rem;
}
.route-times i { color: var(--gold-dark); margin-right: 4px; }
.route-times strong { color: var(--ink); }
.route-driver {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
.route-driver i { color: var(--navy); font-size: 1.2rem; }
.route-driver strong { display: block; font-size: 0.9rem; }
.route-driver a { font-size: 0.85rem; color: var(--teal); }

.transport-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}
.transport-empty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(227,167,62,0.15);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.2rem;
}

/* ============================================================
   Mandatory Disclosure (document library)
   ============================================================ */
.disclosure-category { margin-bottom: 2.6rem; }
.disclosure-category:last-child { margin-bottom: 0; }
.disclosure-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--line);
}
.disclosure-category-title i { color: var(--gold-dark); }

.disclosure-list { display: flex; flex-direction: column; gap: 0.9rem; }
.disclosure-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  transition: border-color .2s, box-shadow .2s;
}
.disclosure-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.disclosure-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(220,60,60,0.1);
  color: #C63A3A;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.disclosure-info { flex: 1; min-width: 0; }
.disclosure-info h5 { font-size: 0.98rem; margin-bottom: 0.15rem; }
.disclosure-info p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.disclosure-meta { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.disclosure-actions { display: flex; gap: 8px; flex-shrink: 0; }
.disclosure-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--navy);
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.disclosure-btn:hover { border-color: var(--navy); background: var(--bg); color: var(--navy); }
.disclosure-btn-solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.disclosure-btn-solid:hover { background: var(--navy-2); color: #fff; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.testimonial-card .quote-mark { font-size: 2.6rem; color: var(--gold); font-family: 'Poppins', sans-serif; line-height: 0.5; }
.testimonial-card p.msg { color: var(--muted); font-size: 0.96rem; }
.testimonial-person { display: flex; align-items: center; gap: 0.8rem; margin-top: 1rem; }
.testimonial-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial-person span { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(120deg, var(--teal), #164F42);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.cta-banner h3 { color: #fff; }
.cta-banner p { color: #CDE6DE; }

/* ============================================================
   Forms
   ============================================================ */
.form-control, .form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227,167,62,0.2);
}
label.form-label { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.btn-submit {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm);
  border: none;
}
.btn-submit:hover { background: var(--navy-2); color: #fff; }

/* ============================================================
   Page banner (interior pages)
   ============================================================ */
.page-banner {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0;
}
.page-banner h1 { color: #fff; font-size: 2rem; margin-bottom: 0.3rem; }
.page-banner .crumb { color: #AEB9D6; font-size: 0.9rem; }
.page-banner .crumb a { color: #D6DCEE; }

/* Rich text authored in Admin -> Pages (headings, lists, and any embedded tables) */
.page-content h3 { font-size: 1.25rem; margin-top: 1.8rem; margin-bottom: 0.7rem; }
.page-content h3:first-child { margin-top: 0; }
.page-content p { margin-bottom: 1rem; color: var(--ink); }
.page-content ul, .page-content ol { margin-bottom: 1rem; padding-left: 1.3rem; }
.page-content li { margin-bottom: 0.4rem; }
.page-content a { color: var(--teal); text-decoration: underline; }
/* Any <table> pasted into page content (e.g. Management Committee) scrolls on
   narrow screens instead of overflowing or breaking the layout. */
.page-content table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #0F1B36; color: #B7C0DC; }
.footer-brand { color: #fff; font-family: 'Poppins', sans-serif; }
.footer-about { font-size: 0.92rem; color: #97A2C4; }
.footer-heading { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { font-size: 0.9rem; color: #97A2C4; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; font-size: 0.9rem; }
.footer-contact li { margin-bottom: 0.6rem; }
.footer-contact i { color: var(--gold); margin-right: 8px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #2A3760;
  border-radius: 50%;
  margin-right: 8px; margin-top: 1rem;
  color: #D6DCEE;
  transition: background .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  background: #0A1329;
  font-size: 0.85rem;
  border-top: 1px solid #1D2A4C;
}
/* Desktop only: pin this bar to the bottom of the viewport, same treatment as
   the navbar — hidden while actively scrolling, revealed the instant it stops. */
@media (min-width: 992px) {
  .footer-bottom {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1100;
    transition: transform .3s ease;
  }
  .footer-bottom.bar-hidden { transform: translateY(100%); }
  /* Reserve the space the bar would otherwise occupy in normal flow, since
     position:fixed removes it — keeps the page's real footer content from
     being covered once you actually scroll to the bottom. */
  .site-footer { padding-bottom: 60px; }
}
.footer-legal { display: flex; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.footer-legal a { color: #97A2C4; transition: color .2s; }
.footer-legal a:hover { color: var(--gold); }

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #97A2C4;
  font-size: 0.85rem;
  white-space: nowrap;
}
/* A light pill behind the partner logo so it reads cleanly against the dark
   footer regardless of the logo's own colors. */
.footer-credit-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .2s, transform .2s;
}
.footer-credit-badge:hover { background: #fff; transform: translateY(-1px); }
.footer-credit-badge img { height: 16px; width: auto; display: block; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .25s;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
/* Clear the fixed footer-bottom bar on desktop so the two never overlap */
@media (min-width: 992px) {
  .back-to-top { bottom: 74px; }
}

/* ============================================================
   Responsive
   ============================================================ */
/* Tighten spacing on smaller laptop widths so a full 9-item navbar
   (Home, About, Academics, Admissions, Transport, Gallery, Notices,
   Events, Contact) plus the logo and Apply Now button never crowd
   or overlap. Widened to 1400px now that a real logo image adds
   extra width the earlier (broken-image) layout didn't have. */
@media (min-width: 992px) and (max-width: 1400px) {
  .main-navbar .nav-link { padding: 0.6rem 0.6rem !important; font-size: 0.87rem; }
  .navbar-brand small { display: none; }
  .btn-apply { padding: 0.5rem 1rem; font-size: 0.88rem; }
}

@media (min-width: 1401px) and (max-width: 1550px) {
  .main-navbar .nav-link { padding: 0.6rem 0.8rem !important; }
}

@media (max-width: 991px) {
  .main-navbar .nav-link { padding: 0.75rem 0.4rem !important; }
  .hero-carousel .carousel-inner, .hero-carousel .carousel-item, .hero-slide { height: 520px; }
  .hero-stats { margin-top: -2rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 767px) {
  .navbar-brand img { height: 38px; }
  .navbar-brand strong { font-size: 1rem; }
  .navbar-brand small { font-size: 0.68rem; }
  .hero-carousel .carousel-inner, .hero-carousel .carousel-item, .hero-slide { height: 440px; }
  .hero-slide-fallback { height: 380px; }
  .hero-carousel .carousel-indicators { bottom: 1.4rem; }
  .hero-stats { margin-top: -1.6rem; }
  .stat-card { padding: 1rem 0.6rem; }
  .stat-card .num { font-size: 1.5rem; }
  .stat-card .label { font-size: 0.75rem; }
  .section, .section-tight { padding: 2.75rem 0; }
  .section-head h2 { font-size: 1.5rem; }
  .cta-banner { padding: 2rem 1.4rem; text-align: center; justify-content: center !important; }
  .cta-banner .d-flex { justify-content: center; }
  .page-banner { padding: 2rem 0; }
  .page-banner h1 { font-size: 1.5rem; }
  .notice-strip .tag { font-size: 0.72rem; padding: 0.3rem 0.7rem; }
  .top-bar-info span { display: block; margin-bottom: 2px; }
  .transport-empty { padding: 2.2rem 1.4rem; }
  .route-card { padding: 1.3rem; }
}

@media (max-width: 575px) {
  .hero-badge { font-size: 0.78rem; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; text-align: center; }
  .hero-carousel .carousel-inner, .hero-carousel .carousel-item, .hero-slide { height: 400px; }
  .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; }
  .event-img { height: 160px; }
  .testimonial-card { padding: 1.5rem; }
  .notice-item { flex-direction: column; }
  .notice-date-block { width: fit-content; }
  .route-card-head { flex-wrap: wrap; }
  .route-times { gap: 0.8rem; }
  .disclosure-item { flex-wrap: wrap; }
  .disclosure-actions { width: 100%; margin-top: 0.4rem; }
  .disclosure-btn { flex: 1; justify-content: center; }
}

/* Prevent any fixed-width element from forcing horizontal scroll on small screens */
/* overflow-x: hidden here would silently break position:sticky on the navbar
   (a well-known Chrome/WebKit quirk: any ancestor with overflow other than
   visible changes how sticky children calculate their scrolling container).
   overflow-x: clip prevents the same horizontal-scroll issue without that
   side effect. The plain "hidden" line is a fallback for older browsers that
   don't support the clip value; modern browsers use the line after it. */
html, body { overflow-x: hidden; overflow-x: clip; }
img { height: auto; }
