/* Shared site theme — loaded after templatemo-pod-talk.css on every page and overrides it. */
:root {
  --navy: #13315c;
  --navy-deep: #0b2140;
  --gold: #e0a82e;
  --gold-soft: #fdf3dc;
  --ink: #1f2933;
  --muted: #5b6876;
  --bg: #f7f5f0;
  --card: #ffffff;
  --line: #e6e1d6;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(19, 49, 92, .08);
  --shadow-hover: 0 14px 36px rgba(19, 49, 92, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* re-point template tokens so leftover template components match */
  --primary-color: var(--gold);
  --secondary-color: var(--navy);
  --custom-btn-bg-color: var(--navy);
  --custom-btn-bg-hover-color: var(--gold);
  --link-hover-color: var(--navy);
  --section-bg-color: var(--bg);
  --body-font-family: 'Inter', system-ui, sans-serif;
  --title-font-family: 'Noto Serif', 'Noto Serif Devanagari', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font-family);
  -webkit-font-smoothing: antialiased;
  animation: page-in .5s var(--ease) both;
}
body.is-leaving { opacity: 0; transition: opacity .25s ease; }

@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h1, h2, h3, h4, h5, h6 { font-family: var(--title-font-family); color: var(--navy); letter-spacing: -.01em; }
p, ul li { color: var(--muted); font-weight: 400; }
a { color: var(--navy); }
a:hover { color: var(--gold); }
::selection { background: var(--gold); color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  padding: 14px 0;
  transition: padding .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.navbar.is-scrolled { padding: 6px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, .06); border-color: var(--line); }

.navbar-brand { display: flex; align-items: center; gap: 12px; margin-right: 1rem; }
.navbar-brand .logo-image { width: 56px; height: auto; transition: width .3s var(--ease); }
.navbar.is-scrolled .navbar-brand .logo-image { width: 44px; }
.brand-name { flex: 1; min-width: 0; text-align: center; line-height: 1.3; }
.brand-name strong { display: block; font-family: 'Noto Serif Devanagari', serif; font-size: .95rem; color: var(--navy); }
.brand-name small { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.navbar > .container { max-width: none; padding-left: 24px; padding-right: 24px; } /* header spans full width so logo/Gandhi sit in the corners */
.brand-founder { order: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; margin-left: 8px; }
.navbar-collapse { order: 2; }
.brand-founder img { width: 44px; height: 44px; object-fit: cover; object-position: top; border-radius: 50%; border: 2px solid var(--gold); background: #fff; }
.brand-founder small { font-size: .68rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
@media (min-width: 992px) {
  .navbar.navbar-expand-lg > .container { flex-wrap: wrap; }
  .navbar-brand .logo-image { width: 96px; }
  .navbar.is-scrolled .navbar-brand .logo-image { width: 64px; }
  .brand-name strong { font-size: clamp(1.2rem, 2.2vw, 1.8rem); }
  .brand-founder img { width: 80px; height: 80px; }
  .navbar.is-scrolled .brand-founder img { width: 56px; height: 56px; }
  .navbar-expand-lg .navbar-collapse { flex-basis: 100%; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 12px !important;
  margin: 0;
}
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--navy); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
/* no caret (menus open on hover): reuse the toggle ::after as the same gold underline as other links */
.navbar .navbar-nav .dropdown-toggle::after { content: ""; display: block; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border: 0; vertical-align: 0; }
.navbar .dropdown-menu::before { display: none; } /* template's arrow */
@media (min-width: 992px) {
  /* open on hover / keyboard focus (overrides the template's opacity-only version) */
  .navbar .dropdown-menu {
    display: block; top: 100%; margin-top: 0; opacity: 0; visibility: hidden; transform: translateY(8px);
    pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown:focus-within > .dropdown-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .navbar-nav .dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* hover bridge */
  .navbar-nav .dropdown:hover > .nav-link::after { transform: scaleX(1); }
}

.dropdown-menu {
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow-hover);
  min-width: 230px; background: #fff;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-item { border-radius: 8px; padding: 9px 14px; font-size: .9rem; color: var(--ink); transition: background .2s, color .2s, padding .2s; }
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active { background: var(--gold-soft); color: var(--navy); padding-left: 18px; }

.navbar-toggler { border: 0; padding: 6px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .navbar-toggler-icon { background: none; width: 26px; height: 2px; background-color: var(--navy); position: relative; transition: background-color .3s; }
.navbar-toggler .navbar-toggler-icon::before, .navbar-toggler .navbar-toggler-icon::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 2px; background: var(--navy); transition: transform .3s var(--ease), top .3s var(--ease);
}
.navbar-toggler .navbar-toggler-icon::before { top: -8px; }
.navbar-toggler .navbar-toggler-icon::after { top: 8px; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { background-color: transparent; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { top: 0; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 991px) {
  .navbar-collapse { background: #fff; margin-top: 10px; border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-link.active { background: var(--gold-soft); border-radius: 8px; }
  .dropdown-menu { box-shadow: none; border: 0; padding-left: 12px; }
  .brand-name small { display: none; }
}

/* ---------- Page header (interior pages reuse .hero-section) ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy)) top / 100% 380px no-repeat, var(--bg);
  padding-top: 150px;
  padding-bottom: 60px;
}
.hero-section .col-12 > .text-center:first-child { margin-bottom: 70px !important; }
.hero-section .col-12 > .text-center:first-child h1 { color: #fff !important; font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
.hero-section .col-12 > .text-center:first-child h5 { color: var(--gold) !important; letter-spacing: .12em; font-family: var(--body-font-family); font-size: 1rem; margin-top: 10px; }
.hero-section .col-12 > .text-center:first-child h6 { color: rgba(255, 255, 255, .75) !important; font-family: var(--body-font-family); font-weight: 400; font-size: .85rem; }

/* body copy on interior pages was written as h6/h4 with text-white/text-black — normalise it */
.hero-section .col-12 > .text-center:first-child ~ * { color: var(--ink); }
.hero-section .col-12 > .text-center:first-child ~ * .text-white,
.hero-section .col-12 > .text-center:first-child ~ * .text-black,
.section-padding .text-white { color: var(--ink) !important; }
.hero-section .text-left h6, .hero-section [align="left"] { font-family: var(--body-font-family); font-weight: 400; font-size: 1rem; line-height: 1.8; color: var(--ink); }
.hero-section .text-left h4 { margin-top: 1.6rem; }
.hero-section .text-left {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow);
}
.hero-section img { max-width: 100%; height: auto; border-radius: var(--radius); }
.hero-section table { width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-collapse: collapse; }
.hero-section th { background: var(--navy); color: #fff; padding: 12px 14px; font-weight: 600; }
.hero-section td { padding: 11px 14px; border-top: 1px solid var(--line); }
.hero-section tr:nth-child(even) td { background: #faf8f3; }
.hero-section iframe { max-width: 100%; border-radius: var(--radius); }

/* ---------- Profile / staff cards (used across pages via inline styles) ---------- */
body .faculty-grid { gap: 24px; }
body .faculty-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px;
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
body .faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
body .faculty-img {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: top;
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--gold-soft), 0 6px 16px rgba(0, 0, 0, .12);
}
body .faculty-name, body .faculty-name h6 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
body .faculty-tag { background: var(--gold-soft); color: var(--navy); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 991px) and (min-width: 769px) { body .faculty-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Buttons ---------- */
.btn-primary-site, .btn-ghost-site {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn-primary-site { background: var(--gold); color: var(--navy-deep); }
.btn-primary-site:hover { background: #f0bb45; color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(224, 168, 46, .35); }
.btn-ghost-site { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-site:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 64px 0 24px; margin-top: 0;
  border-top: 4px solid var(--gold);
}
.site-footer > .container { top: 0; padding-top: 0; }
.site-footer h4, .site-footer h5 { color: #fff; }
.site-footer h6 { color: rgba(255, 255, 255, .75); font-family: var(--body-font-family); font-weight: 400; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: var(--gold); }
.site-footer .copyright-text { color: rgba(255, 255, 255, .55); font-size: .85rem; }
.site-footer .logo-image { width: 72px; }

/* ---------- Scroll reveal (classes added by js/site.js) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-hover); z-index: 1040;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold); color: var(--navy-deep); }

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

/* ---------- Homepage ---------- */
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(224, 168, 46, .18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .06), transparent 40%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 160px 0 140px;
}
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .8rem; color: var(--gold);
}
.hero-hindi { color: #fff; font-family: 'Noto Serif Devanagari', serif; font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.35; margin: 22px 0 8px; }
.hero-title { color: var(--gold); font-family: var(--title-font-family); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; margin-bottom: 16px; }
.hero-lead { color: rgba(255, 255, 255, .78); font-size: 1.05rem; line-height: 1.75; max-width: 540px; }

.hero-media { margin: 0; position: relative; animation: rise 1s .2s var(--ease) both; }
.hero-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 20px; opacity: .6;
}
@media (min-width: 992px) {
  .home-hero .hero-hindi { white-space: nowrap; font-size: clamp(1.4rem, 2.2vw, 2rem); }
  .home-hero .hero-media { margin-top: 60px; }
}
.hero-media img { position: relative; border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.stats-wrap { margin-top: -64px; position: relative; z-index: 2; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-hover); overflow: hidden;
}
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--title-font-family); font-size: 2rem; color: var(--navy); }
.stat span { font-size: .85rem; color: var(--muted); }

.home-section { padding: 96px 0; }
.home-section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker { display: inline-block; color: #b7821a; font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 20px; }
.home-section p { line-height: 1.8; }
.link-arrow { font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.feature i { font-size: 1.6rem; color: var(--navy); background: var(--gold-soft); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 14px; }
.feature h5 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: .9rem; margin: 0; line-height: 1.6; }

.faculty-grid.leaders { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 960px; margin: 0 auto; text-align: center; }
.leaders .faculty-img { width: 170px; height: 170px; margin-bottom: 16px; }

.facility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facility { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.facility::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 33, 64, .85), transparent 55%); }
.facility span { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #fff; font-weight: 600; font-size: 1.05rem; transition: transform .35s var(--ease); }
.facility:hover img { transform: scale(1.08); }
.facility:hover span { transform: translateY(-4px); }

.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); padding: 80px 0; color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255, 255, 255, .75); }

@media (max-width: 991px) {
  .home-hero { padding: 130px 0 120px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid.leaders { grid-template-columns: repeat(2, 1fr); }
  .hero-media::before { inset: 12px -10px -12px 10px; }
}
@media (max-width: 576px) {
  .home-section { padding: 64px 0; }
  .feature-grid, .faculty-grid.leaders { grid-template-columns: 1fr; }
  .stat { padding: 20px 12px; }
  .stat strong { font-size: 1.5rem; }
}

/* ---------- Template overrides found in QA ---------- */
.navbar-brand { flex-shrink: 0; display: flex; }
.navbar-brand span { font-family: var(--body-font-family); }
.navbar-nav .nav-link { font-family: var(--body-font-family); text-transform: none; letter-spacing: 0; }
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav .nav-link { padding: 8px 9px !important; font-size: .85rem; }
}
.section-title { background: none; border-radius: 0; padding: 0; display: block; }
.section-kicker { display: block; }
main img { max-width: 100%; height: auto; }
.custom-block-image-wrap { display: block; color: inherit; }

/* Header band sized to the page-title block itself, so any content below always starts clear of it */
.hero-section { background: var(--bg); }
.hero-section .col-12 > .text-center:first-child {
  background: var(--navy-deep);
  box-shadow: 0 0 0 100vmax var(--navy-deep);
  clip-path: inset(-100vmax -100vmax -56px -100vmax);
  padding-bottom: 0 !important;
  margin-bottom: 104px !important;
}

/* ---------- Inner page header + Principal's Voice ---------- */
.page-header {
  background: radial-gradient(circle at 85% 0%, rgba(224, 168, 46, .18), transparent 45%), linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 150px 0 130px; color: #fff; text-align: center;
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin: 10px 0; animation: rise .7s var(--ease) both; }
.page-header p { color: rgba(255, 255, 255, .75); margin: 0; animation: rise .7s .1s var(--ease) both; }
.crumbs { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; font-size: .85rem; }
.crumbs li { color: var(--gold); font-size: .85rem; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .4); }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: #fff; }

.profile-card {
  margin-top: -80px; position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-hover); padding: 28px;
}
.profile-photo { margin: 0; border-radius: 14px; overflow: hidden; }
.profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s var(--ease); }
.profile-card:hover .profile-photo img { transform: scale(1.04); }
.profile-quals { color: var(--navy); font-weight: 500; margin-bottom: 8px; }
.profile-org { margin-bottom: 22px; }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact-list i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--navy); }
.contact-list span { min-width: 64px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a { font-weight: 500; word-break: break-word; }

.sticky-intro { position: sticky; top: 110px; }
.highlights { list-style: none; padding: 0; margin: 24px 0 0; }
.highlights li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink); line-height: 1.6; }
.highlights i { color: #b7821a; font-size: 1.2rem; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding-bottom: 28px; position: relative; }
.timeline .year {
  position: relative; z-index: 1; align-self: start; text-align: center; background: var(--navy); color: #fff;
  font-weight: 600; font-size: .85rem; border-radius: 999px; padding: 6px 0; box-shadow: 0 0 0 5px #fff;
}
.timeline li > div {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.timeline li:hover > div { transform: translateX(4px); box-shadow: var(--shadow); background: #fff; }
.timeline h5 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline p { margin: 0; line-height: 1.7; }

@media (max-width: 991px) {
  .profile-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .profile-photo { max-width: 360px; }
  .sticky-intro { position: static; }
}
@media (max-width: 576px) {
  .page-header { padding: 120px 0 110px; }
  .timeline::before { left: 35px; }
  .timeline li { grid-template-columns: 72px 1fr; gap: 14px; }
  .timeline li > div { padding: 16px; }
}
.navbar .dropdown-item { font-family: var(--body-font-family); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .9rem; }
.navbar .dropdown-item { display: block; color: var(--ink); }
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus, .navbar .dropdown-item.active { background: var(--gold-soft); color: var(--navy); }

/* ---------- Infrastructure grid + lightbox ---------- */
.facility-cards { margin-top: -70px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility-card {
  position: relative; display: block; border-radius: 16px; overflow: hidden; background: #fff; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.facility-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 33, 64, .88), rgba(11, 33, 64, 0) 55%); }
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.facility-card:hover img { transform: scale(1.07); }
.facility-label { position: absolute; left: 20px; right: 60px; bottom: 18px; z-index: 1; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 1.05rem; }
.facility-label i { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--gold); color: var(--navy-deep); font-size: 1rem; }
.facility-zoom {
  position: absolute; right: 16px; bottom: 18px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease);
}
.facility-card:hover .facility-zoom, .facility-card:focus-visible .facility-zoom { opacity: 1; transform: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 18, 36, .88); backdrop-filter: blur(4px); }
.lightbox[open] { animation: zoom-in .3s var(--ease); }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 12px; margin: 0 auto; }
.lightbox-caption { color: #fff; text-align: center; margin: 14px 0 0; font-weight: 500; }
.lightbox-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); }

@media (max-width: 991px) { .facility-cards { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 576px) { .facility-cards { grid-template-columns: 1fr; } }

/* ---------- Admissions ---------- */
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); margin-bottom: 24px; }
.adm-card .section-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); color: var(--ink); line-height: 1.7; }
.check-list li:last-child { border-bottom: 0; }
.check-list i { color: #2e9e6b; font-size: 1.15rem; margin-top: 2px; }
.note-box { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 12px; padding: 20px 24px; }
.note-box h5 { font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.note-box ul { margin: 0; padding-left: 18px; }
.note-box li { color: var(--ink); line-height: 1.7; margin-bottom: 6px; }
.adm-card strong { color: var(--navy); }
.subject-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.subject-chips li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  color: var(--ink); font-weight: 500; transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.subject-chips li:hover { transform: translateY(-3px); border-color: var(--gold); background: #fff; }
.subject-chips i { color: var(--navy); font-size: 1.1rem; }
.adm-side { position: sticky; top: 110px; }
.side-title { font-size: 1.15rem; margin-bottom: 16px; }
.doc-link {
  display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px;
  color: var(--ink); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.doc-link > i:first-child { font-size: 1.6rem; color: #c0392b; }
.doc-link > i:last-child { margin-left: auto; color: var(--navy); transition: transform .3s var(--ease); }
.doc-link span { display: flex; flex-direction: column; line-height: 1.35; }
.doc-link strong { font-size: .92rem; }
.doc-link small { color: var(--muted); font-size: .78rem; margin-top: 2px; }
a.doc-link:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); transform: translateX(3px); }
a.doc-link:hover > i:last-child { transform: translateY(2px); }
.doc-link.is-pending { border-style: dashed; margin-bottom: 0; }
.doc-link.is-pending > i:first-child { color: var(--muted); }
.help-card { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border: 0; }
.help-card .side-title { color: #fff; }
.help-card p { color: rgba(255, 255, 255, .75); }
.help-card a { display: flex; align-items: center; gap: 10px; color: #fff; padding: 8px 0; word-break: break-word; }
.help-card a:hover { color: var(--gold); }
@media (max-width: 991px) { .adm-side { position: static; } }

/* ---------- About Sabha ---------- */
.sabha-intro { margin-top: -60px; position: relative; }
.sabha-intro .hero-media img { aspect-ratio: 4 / 3; }
.sabha-intro .col-lg-7 { padding-top: 70px; }
.founder-card {
  display: flex; align-items: center; gap: 20px; max-width: 460px; margin: 0 auto 28px; padding: 18px 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-radius: 18px; box-shadow: var(--shadow-hover);
}
.founder-card img { width: 72px; height: 72px; object-fit: cover; object-position: top; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.founder-card h3 { color: #fff; margin: 0; font-size: 1.4rem; }
.president-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.president-list li {
  display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); font-weight: 500; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.president-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fff; }
.president-list .initial {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-soft); color: var(--navy); font-family: var(--title-font-family); font-weight: 700;
}
@media (max-width: 991px) {
  .president-list { grid-template-columns: repeat(2, 1fr); }
  .sabha-intro .col-lg-7 { padding-top: 0; }
}
@media (max-width: 576px) { .president-list { grid-template-columns: 1fr; } }

/* two-row header is ~90px taller on desktop: push page content clear of it (kept last so it wins) */
@media (min-width: 992px) {
  .home-hero { padding-top: 250px; }
  .hero-section { padding-top: 240px; }
  .page-header { padding-top: 240px; }
}
/* college name now lives in the header: hide the old per-page title block (kept in markup because the ~ sibling rules above depend on it) */
.hero-section .col-12 > .text-center:first-child { display: none; }
@media (min-width: 992px) { .hero-section { padding-top: 220px; } }
/* contact page: smaller text so the long email address doesn't run under the map */
body .contact-info h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
body .contact-info h6 { font-size: clamp(.9rem, 1.1vw, 1.05rem); overflow-wrap: anywhere; }
/* long stat value (About Sabha "Art. 343–351"): keep on one line, shrink on narrower screens */
.stat strong.nowrap-fit { white-space: nowrap; font-size: clamp(1.2rem, 2.2vw, 2rem); }

/* home "Guiding the Institution": compact strip (low-priority section) */
.leaders-compact { padding: 44px 0; }
.leaders-compact .text-center { margin-bottom: 24px !important; }
.leaders-compact .section-title { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.leaders-compact .faculty-grid.leaders { gap: 16px; text-align: left; }
.leaders-compact .faculty-card { display: grid; grid-template-columns: 64px 1fr; align-items: center; column-gap: 14px; padding: 14px 16px; }
.leaders-compact .faculty-card:hover { transform: none; }
.leaders-compact .faculty-img { grid-row: span 2; width: 64px; height: 64px; margin: 0; border-width: 2px; }
.leaders-compact .faculty-name { font-size: .95rem; margin: 0 0 2px; align-self: end; }
.leaders-compact .faculty-tag { justify-self: start; align-self: start; font-size: .78rem; }
