/* ============================================================
   SANJIVANI COE — SHARED STYLESHEET
   Design System: Navy Blue + Forest Green + Amber Gold
   ============================================================ */

/* ---------- Google Fonts (via @import) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:    #1a3c6e;
  --primary-dark: #0f2547;
  --primary-light: #2a5298;
  --secondary:  #1e8449;
  --secondary-light: #27ae60;
  --accent:     #f39c12;
  --accent-dark: #d68910;
  --danger:     #c0392b;
  --dark:       #1a1a2e;
  --text:       #2c3e50;
  --muted:      #6c757d;
  --light:      #f4f6f9;
  --lighter:    #eef1f7;
  --white:      #ffffff;
  --border:     #dee2e6;
  --shadow:     0 4px 20px rgba(26,60,110,.12);
  --shadow-lg:  0 10px 40px rgba(26,60,110,.18);
  --radius:     10px;
  --radius-lg:  16px;
  --transition: all .3s ease;
  --font-head:  'Poppins', sans-serif;
  --font-body:  'Open Sans', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* CMS / TinyMCE HTML — restore lists & alignment (global ul reset hides bullets) */
.cms-wysiwyg ul:not(.nav):not(.nav-block):not(.ddh-ach-highlight-list):not(.action-list):not(.criteria-list):not(.accred-list),
.cms-wysiwyg ol {
  list-style: disc;
  padding-left: 1.35em;
  margin: 0 0 1em;
}
.cms-wysiwyg ol { list-style: decimal; }
.cms-wysiwyg ul ul,
.cms-wysiwyg ol ol { margin-top: 0.35em; margin-bottom: 0.35em; }
.cms-wysiwyg li { display: list-item; margin-bottom: 0.35em; }
.cms-wysiwyg p { text-align: justify; margin: 0 0 1em; }
.cms-wysiwyg [style*="text-align: justify"] { text-align: justify !important; }
.cms-wysiwyg [style*="text-align: center"] { text-align: center !important; }
.cms-wysiwyg [style*="text-align: right"] { text-align: right !important; }
.cms-wysiwyg [style*="text-align: left"] { text-align: left !important; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(1.8rem,4vw,2.8rem); }
h2 { font-size: clamp(1.4rem,3vw,2rem); }
h3 { font-size: clamp(1.1rem,2vw,1.35rem); }
h4 { font-size: 1.1rem; }
p  { line-height: 1.8; color: var(--text); }
/* Paragraphs inside blockquotes / on-dark bands inherit foreground (global p color would win otherwise) */
blockquote p { color: inherit; }
.gradient-policy-band p { color: rgba(255, 255, 255, 0.96) !important; }
.gradient-policy-band .policy-attrib { color: rgba(255, 255, 255, 0.82) !important; }

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 70px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.fw-600 { font-weight: 600; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,60,110,.35);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: #166a3a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,132,73,.35);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243,156,18,.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-light {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-light:hover {
  background: #f0f4f8;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,.25);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 34px; font-size: 16px; }

/* ---------- Section Header ---------- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
  font-family: var(--font-head);
}
.section-header h2 { margin-bottom: 14px; }
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  margin: 0 auto 16px;
}
.section-header p { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 15px; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  padding: 8px 0;
  overflow: hidden;
}
.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ann-label {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 3px;
  white-space: nowrap;
  font-family: var(--font-head);
  letter-spacing: 1px;
}
.ann-ticker { flex: 1; overflow: hidden; }
.ann-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.ann-ticker-inner a { color: rgba(255,255,255,.9); }
.ann-ticker-inner a:hover { color: var(--accent); }
.ann-ticker-inner span { margin: 0 30px; color: var(--accent); }
@keyframes ticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }
.ann-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ann-right a:not(.ann-apply-btn) {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ann-right a:not(.ann-apply-btn):hover { color: var(--accent); }
/* Primary admissions CTA — lives in announcement bar so the main header can stay logo + nav only */
.ann-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white) !important;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: var(--transition);
  cursor: pointer;
}
button.ann-apply-btn {
  -webkit-appearance: none;
  appearance: none;
}
.ann-apply-btn:hover {
  filter: brightness(1.08);
  color: var(--white) !important;
  transform: translateY(-1px);
}
.ann-apply-btn i { font-size: 11px; opacity: 0.95; }
.ann-social { display: flex; gap: 10px; }
.ann-social a {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}
.ann-social a:hover { background: var(--accent); color: var(--white); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1320px;
  margin: 0 auto;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
/* Keep brand mark from collapsing to 0 width in flex header (nav competes for space) */
.logo-area.logo-area--image {
  flex-shrink: 0;
  min-width: 0;
  max-width: min(100%, 440px);
}
.logo-mark {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.site-logo-img {
  display: block;
  height: auto;
  max-height: 56px;
  width: auto;
  /* Reserve space while loading (matches live PNG 1170×185) */
  aspect-ratio: 1170 / 185;
  max-width: min(100%, 420px);
  object-fit: contain;
  object-position: left center;
}

/* Header logo: emblem + text, must not overlap nav */
.site-header .logo-area.logo-area--image {
  gap: 10px;
  flex: 0 0 auto;
  max-width: 335px;
}
.site-header .logo-mark.logo-mark--emblem {
  width: 56px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-header .logo-mark.logo-mark--emblem .site-logo-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.site-header .logo-area .logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 0;
}
.site-header .logo-area .logo-text .college-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.1px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header .logo-area .logo-text .college-tagline {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
@media (max-width: 768px) {
  .logo-area.logo-area--image { max-width: min(100%, 300px); }
  .site-logo-img { max-height: 44px; max-width: min(100%, 280px); }
  .site-header .logo-area.logo-area--image {
    max-width: 200px;
    gap: 8px;
  }
  .site-header .logo-mark.logo-mark--emblem {
    width: 44px;
    height: 34px;
  }
  .site-header .logo-area .logo-text .college-name {
    font-size: 11.5px;
  }
  .site-header .logo-area .logo-text .college-tagline {
    display: none;
  }
}
/* Footer logo — show original logo without any wrapper styling */
.logo-mark--footer {
  display: inline-flex;
  align-items: center;
}
.site-logo-img--footer {
  max-height: 56px;
  max-width: 56px;
  display: block;
  border-radius: 8px;
}
.logo-icon {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--white);
  flex-shrink: 0;
}
.logo-text .college-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -.3px;
}
.logo-text .college-tagline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .5px;
}
.logo-text .accred-badges { display: flex; gap: 6px; margin-top: 4px; }
.badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  font-family: var(--font-head);
}
.badge-naac { background: #fff3cd; color: #856404; }
.badge-nba  { background: #d1ecf1; color: #0c5460; }
.badge-aicte{ background: #d4edda; color: #155724; }

/* ----- Main Nav ----- */
.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;          /* allow flex shrink */
}
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar visually — scroll still works via trackpad / touch / shift+wheel */
  scrollbar-width: none;                 /* Firefox */
  -ms-overflow-style: none;             /* IE / Edge */
}
.main-nav > ul::-webkit-scrollbar { display: none; }  /* Chrome / Safari */
.main-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.main-nav > ul > li { position: relative; }

/* Force nested submenu ULs to behave like vertical Superfish menus */
.main-nav ul.dropdown-menu,
.main-nav li .dropdown-menu {
  display: block !important;
}
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--primary); background: var(--lighter); }
.main-nav > ul > li > a .fa-chevron-down { font-size: 10px; transition: var(--transition); }
.main-nav > ul > li:hover > a .fa-chevron-down { transform: rotate(180deg); }

/* Dropdown — uses position:fixed so it escapes any overflow container */
.dropdown-menu {
  position: fixed;
  min-width: 220px;
  max-width: min(92vw, 380px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 10000;
  padding: 8px 0;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
}
.main-nav > ul > li:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li {
  display: block;
  width: 100%;
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-head);
  white-space: nowrap;
  line-height: 1.45;
  word-break: normal;
}
.dropdown-menu li a:hover { color: var(--primary); background: var(--lighter); padding-left: 24px; }
.dropdown-menu li a i { width: 18px; color: var(--secondary); font-size: 12px; }

/* Nav Right (CTA) */
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a5276 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30,132,73,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(243,156,18,.2) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-text {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-badge i { color: var(--accent); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem,4.5vw,3.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-item { text-align: center; }
.hero-stat-item .num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.hero-stat-item .lbl {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  letter-spacing: .5px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  color: var(--white);
  transition: var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,.16); transform: translateY(-4px); }
.hero-card i {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}
.hero-card h4 { font-size: 14px; margin-bottom: 5px; font-weight: 700; }
.hero-card p { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.5; }
.hero-card.featured {
  grid-column: 1/-1;
  background: linear-gradient(135deg, var(--secondary), #145a32);
  border-color: transparent;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-card.featured .big-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-head);
}

/* ============================================================
   HOME HERO SLIDER — text left, photo right (no overlap)
   ============================================================ */
.home-hero-slider {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #0a1c3a 0%, #1a3c6e 55%, #0f2847 100%);
  overflow: hidden;
}
.home-hero-slider__viewport {
  position: relative;
  width: 100%;
  min-height: clamp(400px, 52vh, 560px);
  max-height: min(72vh, 620px);
}
.home-hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  z-index: 0;
  background: linear-gradient(135deg, #0a1c3a 0%, #1a3c6e 48%, #152d52 100%);
}
.home-hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.home-hero-slider__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  height: 100%;
  min-height: inherit;
  max-height: inherit;
  padding-top: 28px;
  /* Keep the placement strip visually attached to the hero */
  padding-bottom: 18px;
}
.home-hero-slider__caption-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 0;
  padding-right: 8px;
}
.home-hero-slider__caption {
  max-width: 540px;
}
.home-hero-slider__media {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 38vh, 440px);
  max-height: min(56vh, 480px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  padding: 0;
}
/* Fit entire image — scales up/down to panel (no white letterbox; see main.js) */
.home-hero-slider__media--contain,
.home-hero-slider--contain .home-hero-slider__media {
  background: transparent;
}
.home-hero-slider__media--cover,
.home-hero-slider--cover .home-hero-slider__media {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
}
.home-hero-slider__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-position: var(--slide-object-position, center center);
}
.home-hero-slider__media--contain .home-hero-slider__img,
.home-hero-slider--contain .home-hero-slider__img {
  width: auto;
  height: auto;
  object-fit: contain;
}
.home-hero-slider__media--cover .home-hero-slider__img,
.home-hero-slider--cover .home-hero-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero-slider__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--hero-eyebrow-color, #fff);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.home-hero-slider--caption-on_light .home-hero-slider__eyebrow {
  background: rgba(10, 28, 58, 0.08);
  border-color: rgba(10, 28, 58, 0.16);
}
.home-hero-slider__eyebrow i {
  color: var(--hero-eyebrow-icon-color, var(--accent));
}
.home-hero-slider__title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--hero-title-color, #fff);
}
/* Beat global h1 { color: var(--dark) } and editor inline forecolor on the dark hero band */
.home-hero-slider__title,
.home-hero-slider__title p,
.home-hero-slider__title strong,
.home-hero-slider__title em {
  color: var(--hero-title-color, #fff) !important;
}
.home-hero-slider__title span {
  color: var(--hero-title-accent, var(--accent)) !important;
}
.home-hero-slider__subtitle {
  margin: 0 0 24px;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.75;
  color: var(--hero-subtitle-color, rgba(255, 255, 255, 0.88));
  max-width: 520px;
}
.home-hero-slider__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home-hero-slider__ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.home-hero-slider__arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.home-hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.05);
}
.home-hero-slider__arrow--prev { left: 12px; }
.home-hero-slider__arrow--next { right: 12px; }
.home-hero-slider__dots {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}
.home-hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.home-hero-slider__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}
.home-hero-slider__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
  pointer-events: none;
}
.home-hero-slider__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width linear;
}
@media (max-width: 992px) {
  /* Active slide in document flow so viewport gets real height (absolute-only collapses on mobile). */
  .home-hero-slider__viewport {
    min-height: 0;
    max-height: none;
    height: auto;
  }
  .home-hero-slider__slide {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .home-hero-slider__slide.is-active {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
  }
  .home-hero-slider__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 76px;
    min-height: 0;
    height: auto;
    max-height: none;
  }
  .home-hero-slider__caption-wrap {
    padding-right: 0;
    order: 1;
  }
  .home-hero-slider__caption {
    max-width: none;
  }
  .home-hero-slider .fade-on-scroll {
    opacity: 1;
    transform: none;
  }
  .home-hero-slider__media {
    order: 2;
    align-self: auto;
    width: 100%;
    min-height: min(52vw, 280px);
    max-height: min(56vw, 340px);
    height: min(52vw, 280px);
  }
  .home-hero-slider__media--cover .home-hero-slider__img,
  .home-hero-slider--cover .home-hero-slider__img {
    width: 100%;
    height: 100%;
  }
  .home-hero-slider__dots {
    bottom: 16px;
  }
}
@media (max-width: 768px) {
  .home-hero-slider__arrow {
    width: 40px;
    height: 40px;
    font-size: 14px;
    top: auto;
    bottom: 72px;
    transform: none;
  }
  .home-hero-slider__arrow:hover {
    transform: scale(1.05);
  }
  .home-hero-slider__arrow--prev { left: 8px; }
  .home-hero-slider__arrow--next { right: 8px; }
  .home-hero-slider__layout {
    padding-top: 16px;
    padding-bottom: 18px;
  }
  .home-hero-slider__title {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
  }
  .home-hero-slider__subtitle {
    max-width: none;
    margin-bottom: 18px;
    font-size: 14px;
  }
  .home-hero-slider__eyebrow {
    font-size: 11px;
    padding: 6px 12px;
  }
  .home-hero-slider__media {
    min-height: 200px;
    max-height: 300px;
    height: min(48vw, 260px);
  }
}
@media (max-width: 480px) {
  .home-hero-slider__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .home-hero-slider__cta .btn {
    width: 100%;
    justify-content: center;
  }
  .home-hero-slider__arrow {
    display: none;
  }
  .home-hero-slider__layout {
    padding-bottom: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-slider__slide {
    transition: none;
  }
  .home-hero-slider__progress {
    display: none;
  }
}

/* Floating Badge */
.floating-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 10;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #d35400 100%);
  border: 3px solid rgba(255,255,255,.35);
  box-shadow:
    0 0 0 5px rgba(243,156,18,.2),
    0 8px 25px rgba(243,156,18,.45),
    inset 0 -2px 6px rgba(0,0,0,.15);
  animation: badgePulse 3s ease-in-out infinite;
  line-height: 1.15;
  letter-spacing: 0.5px;
}
.floating-badge br + * ,
.floating-badge {
  font-size: 13px;
}
/* The "A+" line stands out bigger */
.floating-badge .badge-grade {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  display: block;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.floating-badge .badge-label {
  font-size: 11px;
  font-weight: 700;
  opacity: .9;
  display: block;
  margin-top: 1px;
}
@keyframes badgePulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ============================================================
   PLACEMENT BANNER
   ============================================================ */
.placement-banner {
  background: linear-gradient(90deg, var(--dark) 0%, #16213e 50%, var(--primary-dark) 100%);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.pb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}
.pb-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.pb-label i { color: var(--accent); font-size: 20px; }
.pb-highlights {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.pb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
}
.pb-item i { color: var(--secondary-light); }
.pb-item strong { color: var(--accent); }
.pb-cta .btn-sm { font-size: 12px; padding: 7px 16px; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-img-placeholder {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.9);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-placeholder::before {
  content:'';
  position:absolute;
  width:300px; height:300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  top:-50px; right:-50px;
}
.about-img-placeholder .campus-icon { font-size: 80px; margin-bottom: 20px; }
.about-img-placeholder h3 { font-size: 1.5rem; }
.about-img-placeholder p { opacity: .8; font-size: 14px; }
.about-est-badge {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-est-badge .year { font-size: 1.8rem; font-weight: 800; font-family: var(--font-head); line-height: 1; }
.about-est-badge .yr-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; }

.about-text .section-label { text-align: left; }
.about-text h2 { text-align: left; margin-bottom: 12px; }
.about-text .divider { margin: 0 0 20px; }
.about-text p { margin-bottom: 14px; color: var(--text); }
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.about-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--lighter);
  padding: 14px;
  border-radius: var(--radius);
  border-left: 3px solid var(--secondary);
}
.about-highlight-item i { color: var(--secondary); font-size: 16px; margin-top: 2px; }
.about-highlight-item div { font-size: 13.5px; font-weight: 600; color: var(--dark); }
.about-highlight-item span { font-size: 12px; color: var(--muted); }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* About + "Why Sanjivani" pillars side-by-side (homepage) */
.about-section--with-companion {
  background: var(--lighter);
}
.about-grid--with-companion {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}
.about-companion {
  min-width: 0;
}
.about-inline-image {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.about-inline-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}
.about-companion-inner .section-label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
}
.about-companion-title {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.35;
}
.about-companion-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.about-companion .pillars-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px;
  margin: 0;
}
.about-companion .pillar-card {
  padding: 16px 18px;
}
.about-companion .pillar-num {
  font-size: 28px;
}
.about-companion .pillar-card h4 {
  font-size: 14px;
  margin-bottom: 8px;
}
.about-companion .pillar-card ul li {
  font-size: 12px;
  padding: 3px 0;
}
.about-highlights--three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
  .about-grid--with-companion {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-highlights--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-companion .pillars-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content:'';
  position:absolute;
  width:500px; height:500px;
  border-radius:50%;
  background: rgba(255,255,255,.04);
  top:-200px; right:-100px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
}
.stat-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.stat-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
  color: var(--accent);
}
.stat-card .counter {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-card .counter-suffix { color: var(--accent); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 500;
}

/* ============================================================
   VISION & MISSION
   ============================================================ */
.vm-section { background: var(--lighter); }
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.vm-card::before {
  content:'';
  position: absolute;
  top:0; left:0; right:0;
  height: 4px;
}
.vm-card.vision::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.vm-card.mission::before { background: linear-gradient(90deg, var(--secondary), var(--secondary-light)); }
.vm-card.values::before { background: linear-gradient(90deg, var(--accent), #e67e22); }
.vm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vm-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.vm-card.vision .vm-icon  { background: #e8eef7; color: var(--primary); }
.vm-card.mission .vm-icon { background: #e8f5ee; color: var(--secondary); }
.vm-card.values .vm-icon  { background: #fef3e2; color: var(--accent); }
.vm-card h3 { margin-bottom: 14px; }
.vm-card p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.vm-card ul { text-align: left; margin-top: 10px; }
.vm-card ul li {
  padding: 5px 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
  position: relative;
}
.vm-card ul li::before {
  content:'✓';
  position: absolute; left:0;
  color: var(--secondary);
  font-weight: 700;
}

/* ============================================================
   DEPARTMENTS
   ============================================================ */
.departments-section { background: var(--white); }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dept-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dept-header {
  padding: 30px 22px 22px;
  position: relative;
  overflow: hidden;
}
.dept-card:nth-child(1) .dept-header { background: linear-gradient(135deg, #1e3a5f, #2980b9); }
.dept-card:nth-child(2) .dept-header { background: linear-gradient(135deg, #1a6b2a, #27ae60); }
.dept-card:nth-child(3) .dept-header { background: linear-gradient(135deg, #7d0a0a, #c0392b); }
.dept-card:nth-child(4) .dept-header { background: linear-gradient(135deg, #4a235a, #8e44ad); }
.dept-card:nth-child(5) .dept-header { background: linear-gradient(135deg, #17618a, #2471a3); }
.dept-card:nth-child(6) .dept-header { background: linear-gradient(135deg, #704214, #d68910); }
.dept-card:nth-child(7) .dept-header { background: linear-gradient(135deg, #1a5f4a, #1abc9c); }
.dept-card:nth-child(8) .dept-header { background: linear-gradient(135deg, #2c3e50, #596275); }
.dept-card:nth-child(9) .dept-header { background: linear-gradient(135deg, #1a3c6e, #2980b9); }
.dept-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 14px;
}
.dept-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.dept-header h3 { color: var(--white); font-size: 1rem; }
.dept-header p { color: rgba(255,255,255,.75); font-size: 12px; margin-top: 4px; }
.dept-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.2);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.dept-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dept-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.dept-meta-item { font-size: 12.5px; color: var(--muted); }
.dept-meta-item strong { color: var(--dark); font-weight: 700; }
.dept-links { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; }
.dept-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-head);
  display: flex; align-items: center; gap: 4px;
}
.dept-links a:hover { color: var(--secondary); }

/* ============================================================
   NEWS & EVENTS
   ============================================================ */
.news-section { background: var(--lighter); }
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-img {
  height: 170px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: rgba(255,255,255,.4);
  overflow: hidden;
}
.news-img img { width:100%; height:100%; object-fit:cover; }
.news-body { padding: 16px; }
.news-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-family: var(--font-head);
}
.news-cat.placement { color: var(--secondary); }
.news-cat.event    { color: var(--accent); }
.news-cat.notice   { color: var(--danger); }
.news-cat.achievement { color: var(--primary); }
.news-card h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

/* Events sidebar */
.events-sidebar {}
.events-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.events-title i { color: var(--secondary); }
.event-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.event-item:hover { border-color: var(--primary); transform: translateX(4px); }
.event-date {
  flex-shrink: 0;
  width: 46px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 0;
}
.event-date .day { font-size: 1.3rem; font-weight: 800; font-family: var(--font-head); line-height: 1; }
.event-date .month { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.event-info h5 { font-size: 13px; color: var(--dark); margin-bottom: 4px; line-height: 1.4; }
.event-info p { font-size: 12px; color: var(--muted); }
.event-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-top: 4px;
  display: inline-block;
}
.event-tag.fest    { background: #fef3e2; color: var(--accent-dark); }
.event-tag.workshop{ background: #d1ecf1; color: #0c5460; }
.event-tag.seminar { background: #d4edda; color: #155724; }
.event-date--tba { background: var(--muted); }
.event-date--tba .day { font-size: 0.7rem; letter-spacing: 0.5px; }

/* Homepage News & Events hub */
.home-news-events .news-layout {
  align-items: start;
}
.home-news-events .news-layout--single {
  grid-template-columns: 1fr;
}
.home-hub-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 20px;
  line-height: 1.3;
}
.home-hub-subtitle--compact {
  margin-bottom: 16px;
}
.home-hub-subtitle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(26, 60, 110, 0.08);
  color: var(--primary);
  font-size: 15px;
  flex-shrink: 0;
}
.home-hub-subtitle > span:last-child {
  flex: 1;
  min-width: 0;
}
.home-news-events .news-grid--wide {
  grid-template-columns: repeat(3, 1fr);
}
.home-news-events .news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.home-news-events .news-card h4 a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}
.home-news-events .news-card h4 a:hover {
  color: var(--primary);
}
.home-hub-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-hub-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.home-hub-read-more {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-hub-read-more:hover {
  color: var(--secondary);
  gap: 8px;
}
.home-hub-venue {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.home-hub-venue i {
  margin-right: 4px;
  color: var(--secondary);
}
.home-hub-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.home-hub-events-col.events-sidebar--full .news-grid--wide {
  margin-top: 0;
}
@media (max-width: 1024px) {
  .home-news-events .news-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .home-news-events .news-grid,
  .home-news-events .news-grid--wide {
    grid-template-columns: 1fr;
  }
  .home-hub-subtitle {
    font-size: 1.05rem;
  }
}

/* ============================================================
   ALUMNI SECTION
   ============================================================ */
.alumni-section { background: var(--white); }
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.alumni-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.alumni-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.alumni-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  position: relative;
  overflow: hidden;
}
.alumni-avatar img { width:100%; height:100%; object-fit:cover; }
.alumni-card h4 { font-size: 15px; margin-bottom: 4px; }
.alumni-card .role { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.alumni-company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lighter);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}
.alumni-batch {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* ============================================================
   RECRUITERS
   ============================================================ */
.recruiters-section { background: var(--lighter); padding: 50px 0; }
.recruiter-track-wrap { overflow: hidden; margin-top: 30px; position: relative; }
.recruiter-track-wrap::before,
.recruiter-track-wrap::after {
  content:'';
  position:absolute;
  top:0; bottom:0;
  width:80px;
  z-index:2;
}
.recruiter-track-wrap::before { left:0; background: linear-gradient(90deg,var(--lighter),transparent); }
.recruiter-track-wrap::after  { right:0; background: linear-gradient(270deg,var(--lighter),transparent); }
.recruiter-track {
  display: flex;
  gap: 20px;
  animation: scroll-logos 30s linear infinite;
  width: max-content;
}
.recruiter-track:hover { animation-play-state: paused; }
@keyframes scroll-logos { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.recruiter-logo {
  flex-shrink: 0;
  width: 140px;
  height: 70px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: -.5px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.recruiter-logo:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: scale(1.05); }

/* ============================================================
   LIFE AT SANJIVANI
   ============================================================ */
.life-section {
  background: var(--white);
}
.life-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.life-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.life-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.life-card-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: .15;
}
.life-card:nth-child(1) { background: linear-gradient(135deg, #1a3c6e, #2980b9); }
.life-card:nth-child(2) { background: linear-gradient(135deg, #1e8449, #27ae60); }
.life-card:nth-child(3) { background: linear-gradient(135deg, #6c3483, #8e44ad); }
.life-card:nth-child(4) { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.life-card:nth-child(5) { background: linear-gradient(135deg, #17618a, #2471a3); }
.life-card:nth-child(6) { background: linear-gradient(135deg, #1a5f4a, #1abc9c); }
.life-content {
  position: relative;
  padding: 22px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white);
}
.life-content h4 { font-size: 15px; margin-bottom: 5px; }
.life-content p { font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.5; }

/* ============================================================
   ACCREDITATION STRIP
   ============================================================ */
.accred-strip {
  background: var(--lighter);
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.accred-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.accred-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.accred-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 8px;
}
.accred-icon-wrap.naac  { background: #fff3cd; color: #856404; }
.accred-icon-wrap.nba   { background: #d1ecf1; color: #0c5460; }
.accred-icon-wrap.aicte { background: #d4edda; color: #155724; }
.accred-icon-wrap.nirf  { background: #f8d7da; color: #842029; }
.accred-item h5 { font-size: 15px; font-weight: 700; color: var(--dark); }
.accred-item p  { font-size: 12px; color: var(--muted); }
.accred-divider { width: 1px; height: 60px; background: var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
}
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.footer-about h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-about h4::after {
  content:'';
  position:absolute;
  bottom:0; left:0;
  width:32px; height:2px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-contact-info { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-info a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
}
.footer-contact-info a i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.footer-contact-info a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content:'';
  position:absolute;
  bottom:0; left:0;
  width:32px; height:2px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 7px; }
.footer-links li a {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  line-height: 1.4;
}
.footer-links li a i { font-size: 10px; color: var(--accent); flex-shrink: 0; }
.footer-links li a:hover { color: var(--white); padding-left: 4px; }

.footer-newsletter input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--white);
  margin-bottom: 10px;
  font-size: 13px;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter .btn { width: 100%; justify-content: center; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ============================================================
   INNER PAGES — Page Banner
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
  padding: 55px 0 45px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content:'';
  position:absolute;
  width:400px;height:400px;
  border-radius:50%;
  background:rgba(255,255,255,.05);
  top:-150px;right:-80px;
}
.page-banner-inner { position: relative; z-index:1; }
.page-banner h1 { color: var(--white); font-size: clamp(1.5rem,3.5vw,2.2rem); margin-bottom: 10px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 10px; }

/* ============================================================
   INNER PAGE — Generic Content
   ============================================================ */
.inner-page { padding: 60px 0; }
.two-col-layout { display: grid; grid-template-columns: 1fr 280px; gap: 36px; align-items: start; }
.two-col-layout > div:first-child { min-width: 0; overflow-x: auto; }
.sidebar {}
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.sidebar-widget h4 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lighter);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget h4 i { color: var(--primary); }
.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--lighter);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.sidebar-list li a:hover { color: var(--primary); padding-left: 4px; }
.sidebar-list li a i { color: var(--secondary); font-size: 12px; }

/* Content Cards */
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.content-card h2, .content-card h3 { margin-bottom: 14px; }
.content-card p { margin-bottom: 12px; }
.content-card ul, .content-card ol { padding-left: 20px; }
.content-card ul li, .content-card ol li { margin-bottom: 8px; font-size: 14.5px; line-height: 1.7; }
/* Preserve readability for styled quote blocks inside WYSIWYG content */
.content-card blockquote { color: #fff; }
.content-card blockquote p,
.content-card blockquote cite,
.content-card blockquote * { color: inherit; }

/* ── WYSIWYG Table Styles (auto-applied to any table in CMS content) ── */
.content-card table,
.inner-page table,
.about-text table,
.footer-desc table,
.nl-desc table,
.news-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.6;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.content-card table caption,
.inner-page table caption {
  caption-side: top;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--heading);
  text-align: left;
}
.content-card table thead,
.inner-page table thead,
.about-text table thead {
  background: linear-gradient(135deg, var(--primary, #1a3c6e), var(--secondary, #2d5fa0));
  color: #fff;
}
.content-card table thead th,
.inner-page table thead th,
.about-text table thead th {
  padding: 11px 14px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
  text-transform: uppercase;
  border: none;
  white-space: nowrap;
}
.content-card table tbody td,
.inner-page table tbody td,
.about-text table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef0f2;
  color: #374151;
  vertical-align: top;
}
.content-card table tbody tr:last-child td,
.inner-page table tbody tr:last-child td {
  border-bottom: none;
}
.content-card table tbody tr:nth-child(even),
.inner-page table tbody tr:nth-child(even),
.about-text table tbody tr:nth-child(even) {
  background: #f8f9fb;
}
.content-card table tbody tr:hover,
.inner-page table tbody tr:hover,
.about-text table tbody tr:hover {
  background: #eef4ff;
  transition: background .15s;
}
/* First column bold as row header */
.content-card table tbody td:first-child,
.inner-page table tbody td:first-child {
  font-weight: 600;
  color: var(--heading, #1a1a2e);
}
/* If no thead, style first row as header */
.content-card table tr:first-child td,
.inner-page table tr:first-child td {
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary, #1a3c6e), var(--secondary, #2d5fa0));
  color: #fff;
  font-size: 13px;
  letter-spacing: .3px;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255,255,255,.15);
}
/* Reset when thead exists — first body row should NOT be styled as header */
.content-card table thead ~ tbody tr:first-child td,
.inner-page table thead ~ tbody tr:first-child td {
  font-weight: normal;
  background: transparent;
  color: #374151;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  border-bottom: 1px solid #eef0f2;
}
.content-card table thead ~ tbody tr:first-child:nth-child(even) td,
.inner-page table thead ~ tbody tr:first-child:nth-child(even) td {
  background: #f8f9fb;
}
/* Responsive: horizontal scroll on small screens */
@media (max-width: 768px) {
  .content-card table,
  .inner-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .content-card table thead th,
  .inner-page table thead th,
  .content-card table tbody td,
  .inner-page table tbody td {
    padding: 8px 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.info-item {
  background: var(--lighter);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--primary);
}
.info-item h5 { font-size: 13px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.info-item p { font-size: 15px; font-weight: 700; color: var(--dark); margin: 0; }

/* Timeline */
/* ── Milestone Horizontal Scroll Cards ─────────── */
.milestone-scroll {
  position: relative;
  margin: 0 -8px;
}
.milestone-scroll__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 8px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
}
.milestone-scroll__track::-webkit-scrollbar { height: 6px; }
.milestone-scroll__track::-webkit-scrollbar-track { background: transparent; }
.milestone-scroll__track::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.milestone-scroll__track::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.25); }

.milestone-scroll__card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #1a3c6e;
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: all .25s ease;
}
.milestone-scroll__card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.milestone-scroll__card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading, #1a1a2e);
  margin: 0 0 8px;
  line-height: 1.35;
}
.milestone-scroll__card p {
  font-size: 13px;
  color: var(--muted, #6b7280);
  margin: 0;
  line-height: 1.65;
}
@media (max-width: 768px) {
  .milestone-scroll__card { flex: 0 0 250px; padding: 18px 16px; }
}

/* Legacy timeline classes kept for backward compat if needed */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:linear-gradient(var(--primary),var(--secondary)); border-radius:3px; }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 24px; }
.timeline-dot { position:absolute; left:-37px; top:4px; width:16px; height:16px; border-radius:50%; background:var(--primary); border:3px solid var(--white); box-shadow:0 0 0 3px var(--primary); }
.timeline-item h4 { font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.timeline-item p { font-size: 13.5px; color: var(--muted); }
.timeline-year { font-size: 11px; font-weight: 700; color: var(--accent); font-family: var(--font-head); letter-spacing: 1px; margin-bottom: 4px; }

/* Leader Cards */
.leader-card { background:var(--white); border-radius:var(--radius-lg); padding:28px 22px; text-align:center; box-shadow:var(--shadow); border:1px solid var(--border); transition:var(--transition); }
.leader-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.leader-avatar { width:90px; height:90px; border-radius:50%; margin:0 auto 14px; overflow:hidden; border:3px solid var(--primary); }
.leader-avatar img { width:100%; height:100%; object-fit:cover; }
.leader-avatar-placeholder { width:90px; height:90px; border-radius:50%; margin:0 auto 14px; background:linear-gradient(135deg,var(--primary),var(--secondary)); display:flex; align-items:center; justify-content:center; font-size:28px; color:#fff; font-weight:700; font-family:var(--font-head); }
.leader-card h4 { font-size: 16px; margin-bottom: 4px; }
.leader-card .designation { font-size: 13px; color: var(--secondary); font-weight: 600; }
.leader-card .qualification { font-size: 12px; color: var(--muted); margin-top: 4px; }
.leader-card .message { font-size: 13px; color: var(--text); margin-top: 10px; font-style: italic; line-height: 1.7; }

/* Infrastructure Cards */
.infra-card { background:var(--white); border-radius:var(--radius); padding:22px 18px; box-shadow:var(--shadow); border:1px solid var(--border); text-align:center; transition:var(--transition); }
.infra-card--link { display:block; text-decoration:none; color:inherit; }
.infra-card:hover { transform:translateY(-4px); border-color:var(--primary); }
.infra-icon { width:60px; height:60px; border-radius:50%; margin:0 auto 12px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.infra-card h5 { font-size: 14px; margin-bottom: 4px; }
.infra-card p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Award Cards */
.award-card { background:var(--white); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); border:1px solid var(--border); display:flex; gap:16px; align-items:flex-start; transition:var(--transition); }
.award-card:hover { border-color:var(--accent); transform:translateX(4px); }
.award-icon { width:50px; height:50px; border-radius:12px; background:linear-gradient(135deg,var(--accent),#e67e22); display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; flex-shrink:0; }
.award-card h5 { font-size: 14px; margin-bottom: 4px; }
.award-card p { font-size: 12.5px; color: var(--muted); }

/* MoU Cards */
.mou-card { background:var(--white); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); border-left:4px solid var(--secondary); transition:var(--transition); }
.mou-card:hover { box-shadow:var(--shadow-lg); }
.mou-card h5 { font-size: 14px; margin-bottom: 4px; }
.mou-card p { font-size: 12.5px; color: var(--muted); }
.mou-card .country { font-size: 11px; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }

/* Fade on scroll */
.fade-on-scroll { opacity:0; transform:translateY(24px); transition:opacity .7s ease,transform .7s ease; }
.fade-on-scroll.visible { opacity:1; transform:translateY(0); }
/* First paint: avoid empty-looking layout while scroll-reveal CSS waits for JS */
body.page-booting .fade-on-scroll { opacity:1; transform:none; transition:none; }

/* Tabs */
.tab-btn {
  padding: 10px 20px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* tab-nav + tab-pane — match department-detail-hub (.ddh-tab-bar / .ddh-tab-btn) */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 2px solid var(--border);
}
.tab-nav button {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-nav button:hover,
.tab-nav button.active,
.tab-nav button.sz-tab-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-pane {
  display: none;
  padding: 22px 0 8px;
}
.tab-pane.active,
.tab-pane.sz-tab-visible {
  display: block;
}
.tab-pane > h2,
.tab-pane > h3 {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--primary);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* Tabs Section block — tab bar matches department-detail-hub */
.year-tab-section {
  margin-bottom: 28px;
}
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 2px solid var(--border);
}
.year-tab {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13.5px;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--muted);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.year-tab.active,
.year-tab:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.year-tab-body {
  padding: 22px 0 8px;
}

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 13px;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tbody tr:hover { background: var(--lighter); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Faculty Card */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 20px; }
.faculty-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.faculty-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--white);
  font-weight: 700; font-family: var(--font-head);
}
.faculty-card h5 { font-size: 13.5px; margin-bottom: 4px; }
.faculty-card .designation { font-size: 11.5px; color: var(--muted); }
.faculty-card .qualification {
  font-size: 11px;
  background: var(--lighter);
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 8px;
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
}

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  font-family: var(--font-head);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,110,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Gallery hub — masonry grid, filters, accessible lightbox */
.gallery-hub-toolbar { margin-bottom: 28px; }
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.gallery-hub .gallery-filter-btn,
.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.gallery-filter-count {
  opacity: 0.85;
  font-size: 11px;
  margin-left: 4px;
}
.gallery-hub-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
/* Fixed 4-column grid (equal tiles per row) */
.gallery-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1024px) {
  .gallery-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gallery-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .gallery-grid-4 { grid-template-columns: 1fr; }
}
.gallery-masonry {
  columns: 4;
  column-gap: 14px;
}
@media (max-width: 1024px) { .gallery-masonry { columns: 3; } }
@media (max-width: 640px) { .gallery-masonry { columns: 2; } }
@media (max-width: 400px) { .gallery-masonry { columns: 1; } }
.gallery-tile {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--lighter);
  outline: none;
  aspect-ratio: 4 / 3;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}
.gallery-grid-4 .gallery-tile {
  break-inside: auto;
}
.gallery-tile-media {
  position: absolute;
  inset: 0;
  background: var(--lighter);
  overflow: hidden;
}
.gallery-tile-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    var(--lighter) 0%,
    #e8eef5 40%,
    var(--lighter) 80%
  );
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s ease-in-out infinite;
}
.gallery-tile--loaded .gallery-tile-skeleton,
.gallery-tile--broken .gallery-tile-skeleton {
  opacity: 0;
  visibility: hidden;
  animation: none;
}
.gallery-tile-media img {
  opacity: 1;
  transition: opacity 0.35s ease;
}
.gallery-tile--loading .gallery-tile-media img {
  opacity: 0;
}
.gallery-tile--loaded .gallery-tile-media img,
.gallery-tile:not(.gallery-tile--loading) .gallery-tile-media img {
  opacity: 1;
}
@keyframes gallery-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.gallery-masonry .gallery-tile {
  break-inside: avoid;
  margin-bottom: 14px;
}
.gallery-tile.gallery-tile--broken {
  display: none !important;
}
.gallery-tile:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.35);
}
.gallery-tile-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gallery-tile--loaded:hover .gallery-tile-media img,
.gallery-tile--loaded:focus-visible .gallery-tile-media img {
  transform: scale(1.04);
  transition: opacity 0.35s ease, transform 0.4s ease;
}
.gallery-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(26, 60, 110, 0.88) 0%, rgba(26, 60, 110, 0.35) 55%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: #fff;
  text-align: center;
  padding: 16px 12px;
}
.gallery-tile:hover .gallery-tile-overlay,
.gallery-tile:focus-visible .gallery-tile-overlay {
  opacity: 1;
}
.gallery-tile-overlay i {
  font-size: 22px;
  margin-bottom: 6px;
}
.gallery-tile-overlay p {
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-head);
  margin: 0 0 6px;
  line-height: 1.35;
}
.gallery-tile-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.gallery-lightbox[hidden] {
  display: none !important;
}
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: calc(100vh - 32px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 48px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gallery-lightbox-figure {
  margin: 0;
  width: 100%;
}
.gallery-lightbox-figure img {
  max-height: min(78vh, calc(100vh - 120px));
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--dark);
  margin: 0 auto;
  display: block;
}
.gallery-lightbox--top-placements .gallery-lightbox-panel {
  width: min(1200px, 96vw);
}
.gallery-lightbox--top-placements .gallery-lightbox-figure img {
  max-height: min(88vh, calc(100vh - 100px));
  background: transparent;
}
.gallery-lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  margin-top: 12px;
  font-family: var(--font-head);
}
.gallery-lightbox-counter {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin: 8px 0 0;
}
.gallery-lightbox-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 10051;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-close:hover {
  background: var(--danger);
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-nav:hover {
  background: var(--primary);
}
.gallery-lightbox-prev { left: max(8px, env(safe-area-inset-left, 0px)); }
.gallery-lightbox-next { right: max(8px, env(safe-area-inset-right, 0px)); }
@media (max-width: 768px) {
  .gallery-lightbox-panel { padding: 8px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-tile-skeleton { animation: none; }
  .gallery-tile-media img { transition: none; }
}

/* Legacy gallery grid (older blocks) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: rgba(255,255,255,.3);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.gallery-item img { width:100%; height:100%; object-fit:cover; }
.gallery-item .gallery-overlay,
.gallery-item .overlay {
  position:absolute; inset:0;
  background: rgba(26,60,110,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  font-size: 28px; color: var(--white);
  text-align: center;
  padding: 12px;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:hover .overlay { opacity: 1; }

/* Placement Stats Cards */
.placement-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.placement-highlight-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}
.placement-highlight-card.green { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); }
.placement-highlight-card.amber { background: linear-gradient(135deg, var(--accent), #e67e22); }
.placement-highlight-card.dark  { background: linear-gradient(135deg, var(--dark), #2c3e50); }
.placement-highlight-card .big { font-size: 2.4rem; font-weight: 800; font-family: var(--font-head); }
.placement-highlight-card .lbl { font-size: 12.5px; opacity: .85; margin-top: 4px; }

/* ----- Contact page hub (contact.html layout) ----- */
.contact-hub-quick-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: #fff;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Global `p { color: var(--text) }` would override inherited white — force readable body copy on gradients */
.contact-page-hub .contact-hub-quick-card p,
.contact-page-hub .contact-hub-quick-card .lbl {
  color: rgba(255, 255, 255, 0.95);
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lighter);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.contact-item p,
.contact-item a { font-size: 14.5px; color: var(--dark); font-weight: 500; }
.contact-item a:hover { color: var(--primary); }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.map-bg-faint {
  position: absolute;
  inset: 0;
  opacity: .15;
  pointer-events: none;
}
.map-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, .95);
  padding: 30px;
  position: relative;
  z-index: 1;
}
.map-placeholder i { font-size: 56px; margin-bottom: 16px; display: block; color: var(--accent); }
.map-placeholder h3 { margin-bottom: 8px; color: #fff; font-size: 1.25rem; }
/* `p { color: var(--text) }` applies to CMS HTML inside .map-address-html — force light text on dark gradient */
.map-placeholder .map-address-html,
.map-placeholder .map-address-html p,
.map-placeholder > p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1.6;
}
.map-address-html p { margin: 0 0 6px; }

.contact-map-stack { display: flex; flex-direction: column; gap: 16px; }
.contact-map-embed-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--lighter);
  line-height: 0;
}
.contact-map-iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .contact-map-iframe { height: 280px; }
}

.dept-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dept-contact-card {
  background: var(--lighter);
  border-radius: var(--radius);
  padding: 16px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.dept-contact-card:hover { background: var(--white); box-shadow: var(--shadow); }
.dept-contact-card h5 { font-size: 14px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.dept-contact-card p { font-size: 12.5px; color: var(--muted); }
.dept-contact-card a { font-size: 13px; color: var(--primary); font-weight: 600; }
.how-reach-list { display: flex; flex-direction: column; gap: 12px; }
.how-reach-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  background: var(--lighter);
  border-radius: var(--radius);
}
.social-links-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-head);
  transition: var(--transition);
  border: 1px solid var(--border);
  color: var(--dark);
  background: var(--white);
}
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.social-btn.fb { border-color: #1877f2; color: #1877f2; }
.social-btn.fb:hover { background: #1877f2; color: #fff; }
.social-btn.ig { border-color: #e1306c; color: #e1306c; }
.social-btn.ig:hover { background: #e1306c; color: #fff; }
.social-btn.li { border-color: #0a66c2; color: #0a66c2; }
.social-btn.li:hover { background: #0a66c2; color: #fff; }
.social-btn.yt { border-color: #ff0000; color: #ff0000; }
.social-btn.yt:hover { background: #ff0000; color: #fff; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-in-up { animation: fadeInUp .7s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .contact-page-grid { grid-template-columns: 1fr; }
  .about-grid,
  .news-layout,
  .two-col-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .alumni-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .vm-grid { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: repeat(2,1fr); }
  .placement-highlight-grid { grid-template-columns: repeat(2,1fr); }
  .dept-contact-grid { grid-template-columns: 1fr; }
  .social-links-big { grid-template-columns: 1fr; }
  .dropdown-menu { min-width: 220px; max-width: min(92vw, 320px); }
}

@media (max-width: 768px) {
  /* Keep Apply in the top bar; hide phone + social on small screens to save width (Apply stays in mobile menu too) */
  .announcement-bar .ann-phone-link,
  .announcement-bar .ann-social { display: none !important; }
  .announcement-bar .container { gap: 10px; }
  .ann-apply-btn {
    font-size: 11px;
    padding: 5px 10px;
    gap: 4px;
  }
  .ann-apply-btn .fa-pen-nib { display: none; }
  .main-nav,
  .nav-right .btn:not(.btn-apply) { display: none; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .life-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .alumni-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { padding: 40px 0 30px; }
  .about-highlights { grid-template-columns: 1fr; }
  .placement-highlight-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pb-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .pb-label { white-space: normal; font-size: 13px; }
  .pb-highlights {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .pb-item { font-size: 13px; }
  .hero-stats { gap: 16px; }
  .accred-divider { display: none; }
  .accred-strip-inner { gap: 24px; }
  .content-card [style*="grid-template-columns: repeat(3"] ,
  .content-card [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr 1fr !important; }
  .content-card [style*="grid-template-columns: 1fr 1fr"] ,
  .content-card [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .content-card .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .alumni-grid { grid-template-columns: 1fr 1fr; }
  .life-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 50px 0; }
  .hero { min-height: auto; }
  .hero-content { padding: 40px 20px; }
  .placement-highlight-grid { grid-template-columns: 1fr; }
  .container { padding-left: 16px; padding-right: 16px; }
  .dept-grid { gap: 16px; }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 100%;
  background: var(--white);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: var(--transition);
  padding: 20px 0;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.mobile-nav-close span { font-weight: 700; font-size: 16px; color: var(--primary); font-family: var(--font-head); }
.mobile-nav-close button { font-size: 20px; color: var(--muted); }
.mobile-nav-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--lighter);
  font-family: var(--font-head);
}
.mobile-nav-list li a:hover { color: var(--primary); background: var(--lighter); }
.mobile-nav-list li a i { width: 20px; color: var(--secondary); }
.mobile-nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 36px;
  border-bottom: 1px solid var(--lighter);
}
.mobile-nav-submenu li a {
  padding: 8px 20px 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: none;
}
.mobile-nav-submenu li a:hover { color: var(--primary); background: transparent; }
.mobile-nav-list li button.mobile-nav-apply {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border: none;
  border-bottom: 1px solid var(--lighter);
  background: transparent;
  font-family: var(--font-head);
  text-align: left;
  cursor: pointer;
}
.mobile-nav-list li button.mobile-nav-apply:hover { color: var(--primary); background: var(--lighter); }
.mobile-nav-list li button.mobile-nav-apply i { width: 20px; color: var(--secondary); }

/* Apply enquiry modal (admissions.html mockup) */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.apply-modal[hidden] { display: none !important; }
.apply-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
  cursor: pointer;
}
.apply-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(96vw, 560px);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
.apply-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.apply-modal__title {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.35;
  padding-right: 8px;
}
.apply-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--lighter);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.apply-modal__close:hover { background: var(--border); }
.apply-modal__body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.apply-modal__intro {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
}
.apply-modal__deadline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--danger), #e74c3c);
  color: #fff;
  margin-bottom: 20px;
}
.apply-modal__deadline i { font-size: 26px; flex-shrink: 0; margin-top: 2px; opacity: .95; }
.apply-modal__deadline h5 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.apply-modal__deadline p { margin: 0; font-size: 12.5px; opacity: .9; line-height: 1.45; }
.apply-modal__fineprint {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
  text-align: center;
  line-height: 1.5;
}
.apply-modal__fineprint a { color: var(--primary); font-weight: 600; }
.apply-modal__err { display: block; font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-control.is-invalid { border-color: var(--danger) !important; }
.apply-modal__success {
  text-align: center;
  padding: 12px 8px 8px;
}
.apply-modal__success i {
  font-size: 42px;
  color: var(--secondary);
  margin-bottom: 12px;
  display: block;
}
.apply-modal__success p { margin: 0 0 16px; font-size: 14px; line-height: 1.65; color: var(--dark); }
.apply-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== IQAC COMPONENTS ===== */

/* NAAC Grade Card */
.naac-grade-card { background: linear-gradient(135deg, var(--primary), #2a5298); border-radius: 12px; padding: 28px; text-align: center; color: #fff; position: relative; overflow: hidden; min-width: 160px; }
.naac-grade-card::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); top: -60px; right: -60px; }
.naac-grade-card .grade { font-size: 5rem; font-weight: 800; font-family: var(--font-head); color: var(--accent); line-height: 1; }
.naac-grade-card .cgpa { font-size: 1.3rem; font-weight: 700; margin-top: 4px; }
.naac-grade-card p { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 8px; }

/* Metric Cards */
.metric-card { border-radius: 8px; padding: 18px; text-align: center; color: #fff; }
.metric-card .val { font-size: 1.6rem; font-weight: 800; font-family: var(--font-head); }
.metric-card .lbl { font-size: 12px; opacity: .8; margin-top: 4px; }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 15px 0; }
.data-table th { background: var(--primary); color: #fff; padding: 12px 14px; text-align: left; font-family: var(--font-head); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid #e8e8e8; }
.data-table tr:nth-child(even) { background: #f8f9fa; }
.data-table tr:last-child td { font-weight: 700; background: #eef2f8; }

/* Table Badges */
.badge-achieved, .badge-green { background: #d4edda; color: #155724; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-progress, .badge-yellow { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-planned { background: #d1ecf1; color: #0c5460; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }

/* Member Cards */
.members-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.member-card { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.08); border: 1px solid #e8e8e8; display: flex; align-items: center; gap: 12px; transition: .2s; }
.member-card:hover { border-color: var(--primary); transform: translateX(4px); }
.member-avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; font-family: var(--font-head); color: #fff; flex-shrink: 0; }
.member-info .role { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.member-info h5 { font-size: 13.5px; font-family: var(--font-head); margin: 3px 0 2px; font-weight: 600; }
.member-info p { font-size: 12px; color: #666; margin: 0; }

/* Practice Cards */
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.practice-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.08); border: 1px solid #e8e8e8; border-top: 4px solid var(--secondary); transition: .2s; }
.practice-card:hover { transform: translateY(-3px); box-shadow: 0 4px 25px rgba(0,0,0,.12); }
.practice-card h5 { font-family: var(--font-head); font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.practice-card h5 i { color: var(--secondary); }
.practice-card p { font-size: 13px; color: #666; line-height: 1.7; }

/* Doc Items */
.doc-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8f9fa; border-radius: 8px; margin-bottom: 8px; transition: .2s; }
.doc-item:hover { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.doc-item i.pdf-icon { font-size: 20px; color: #dc3545; flex-shrink: 0; }
.doc-item div { flex: 1; }
.doc-item h6 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; font-family: var(--font-head); }
.doc-item p { font-size: 12px; color: #666; margin: 0; }
.btn-dl { font-size: 12px; font-weight: 700; color: var(--primary); border: 1px solid var(--primary); padding: 5px 12px; border-radius: 5px; white-space: nowrap; transition: .2s; text-decoration: none; }
.btn-dl:hover { background: var(--primary); color: #fff; }

/* Subpage Links Grid */
.subpage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.subpage-link { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border-radius: 10px; border: 1px solid #e8e8e8; transition: .2s; text-decoration: none; color: inherit; }
.subpage-link:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: 0 4px 15px rgba(26,60,110,.08); }
.subpage-link .sp-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.subpage-link .sp-text h5 { font-family: var(--font-head); font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.subpage-link .sp-text p { font-size: 12px; color: #666; margin: 0; }

/* Accreditation Sidebar Widget */
.accred-widget .accred-body { padding: 20px; text-align: center; }
.accred-widget .accred-grade { font-size: 3.5rem; font-weight: 800; color: var(--accent); font-family: var(--font-head); line-height: 1; }
.accred-widget .accred-label { font-size: 14px; font-weight: 700; color: var(--primary); }
.accred-widget .accred-score { font-size: 13px; color: #666; margin-top: 4px; }
.accred-widget .accred-divider { border: none; border-top: 1px solid #e8e8e8; margin: 14px 0; }
.accred-widget .accred-list { list-style: none; padding: 0; text-align: left; }
.accred-widget .accred-list li { font-size: 13px; padding: 6px 0; display: flex; align-items: center; gap: 8px; color: #555; }
.accred-widget .accred-list li i { color: var(--secondary); width: 16px; }

/* Policy Box */
.policy-box { background: linear-gradient(135deg, #f8f9fa, #e8f4fd); border-left: 4px solid var(--primary); border-radius: 8px; padding: 20px 24px; margin: 15px 0; }
.policy-box p { font-size: 14px; color: #444; line-height: 1.8; font-style: italic; }
.policy-box .attr { font-size: 12px; color: #888; margin-top: 10px; }

/* Contact Widget */
.contact-widget { padding: 16px; }
.contact-widget p { font-size: 13px; color: #666; margin-bottom: 12px; }
.btn-email { display: flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: .2s; }
.btn-email:hover { background: #2a5298; }

/* Section Label */
.section-label { font-size: 12px; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }

/* Info Box */
.info-box { background: linear-gradient(135deg, #e8f4fd, #d1ecf1); border-left: 4px solid var(--primary); border-radius: 8px; padding: 20px 24px; margin: 20px 0; }
.info-box h4 { font-family: var(--font-head); color: var(--primary); margin-bottom: 10px; font-size: 15px; }
.info-box p, .info-box li { font-size: 14px; color: #444; line-height: 1.8; }
.info-box ul { padding-left: 20px; }

/* Vision Box */
.vision-box { background: linear-gradient(135deg, var(--primary), #2a5298); color: #fff; border-radius: 14px; padding: 35px; text-align: center; margin-bottom: 35px; }
.vision-box h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 12px; }
.vision-box p { font-size: 15px; opacity: .92; line-height: 1.8; font-style: italic; }
.vision-box .period { display: inline-block; background: var(--accent); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }

/* Pillar Cards */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0; }
.about-companion .pillars-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px;
  margin: 0;
}
.pillar-card { border-radius: 12px; padding: 24px; position: relative; overflow: hidden; color: #fff; }
.pillar-card::before { content: ''; position: absolute; right: -20px; bottom: -20px; width: 100px; height: 100px; background: rgba(255,255,255,.08); border-radius: 50%; }
.pillar-card .pillar-num { font-size: 36px; font-weight: 700; opacity: .25; font-family: var(--font-head); line-height: 1; }
.pillar-card h4 { font-family: var(--font-head); font-size: 16px; margin-bottom: 10px; font-weight: 700; }
.pillar-card ul { list-style: none; padding: 0; }
.pillar-card ul li { font-size: 13px; opacity: .9; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.15); display: flex; gap: 8px; align-items: flex-start; }
.pillar-card ul li:last-child { border-bottom: none; }
.pillar-card ul li::before { content: '\2192'; flex-shrink: 0; opacity: .7; }

/* Audit Cards */
.audit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 20px 0; }
.audit-card { background: #fff; border-radius: 10px; border: 1px solid #e0e8ff; padding: 22px; transition: .2s; }
.audit-card:hover { border-color: var(--primary); box-shadow: 0 4px 15px rgba(26,60,110,.08); }
.audit-card .audit-icon { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #2a5298); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; margin-bottom: 14px; }
.audit-card h4 { font-family: var(--font-head); color: var(--primary); font-size: 15px; margin-bottom: 8px; }
.audit-card p { font-size: 13px; color: #666; line-height: 1.7; }

/* Criteria List */
.criteria-list { list-style: none; counter-reset: criteria; padding: 0; }
.criteria-list li { display: flex; gap: 15px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.criteria-list li:last-child { border-bottom: none; }
.criteria-list li .cnum { background: var(--primary); color: #fff; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.criteria-list li .cbody h4 { font-family: var(--font-head); font-size: 14px; color: var(--primary); margin-bottom: 4px; }
.criteria-list li .cbody p { font-size: 13px; color: #666; line-height: 1.6; }

/* Distinct Cards */
.distinct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 20px 0; }
.distinct-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,.09); border-top: 5px solid var(--primary); }
.distinct-card.green { border-top-color: var(--secondary); }
.distinct-card.orange { border-top-color: var(--accent); }
.distinct-card.purple { border-top-color: #8e44ad; }
.distinct-card-header { padding: 20px 24px 14px; display: flex; gap: 14px; align-items: flex-start; }
.distinct-card-header .icon { width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #2a5298); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; flex-shrink: 0; }
.distinct-card.green .distinct-card-header .icon { background: linear-gradient(135deg, var(--secondary), #27ae60); }
.distinct-card.orange .distinct-card-header .icon { background: linear-gradient(135deg, #e67e22, var(--accent)); }
.distinct-card.purple .distinct-card-header .icon { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.distinct-card-header h3 { font-family: var(--font-head); font-size: 17px; color: var(--primary); font-weight: 700; line-height: 1.3; border: none; padding: 0; margin: 0; }
.distinct-card-header .tag { font-size: 11px; background: #f0f4ff; color: var(--primary); padding: 3px 10px; border-radius: 12px; display: inline-block; margin-top: 5px; font-weight: 600; }
.distinct-card-body { padding: 0 24px 24px; }
.distinct-card-body p { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 12px; }
.distinct-card-body ul { list-style: none; padding: 0; }
.distinct-card-body ul li { font-size: 13px; color: var(--text); padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; }
.distinct-card-body ul li i { color: var(--secondary); flex-shrink: 0; margin-top: 3px; font-size: 11px; }

/* Stat Row */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 25px 0; }
.stat-box { background: #f8f9fa; border-radius: 10px; padding: 18px; text-align: center; border-bottom: 3px solid var(--secondary); }
.stat-box .num { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-box p { font-size: 12px; color: #4a5568; margin-top: 5px; }

/* Score Cards */
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.score-card { background: #fff; border-radius: 10px; padding: 18px; text-align: center; border: 1px solid #e0e8ff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.score-card .score { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--secondary); line-height: 1; }
.score-card .max { font-size: 14px; color: #999; }
.score-card p { font-size: 12px; color: #666; margin-top: 8px; line-height: 1.4; }

/* Bar Chart */
.bar-chart { margin: 20px 0; }
.bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-item .bar-label { width: 220px; font-size: 13px; color: var(--text); flex-shrink: 0; }
.bar-item .bar-track { flex: 1; background: #f0f0f0; border-radius: 20px; height: 20px; overflow: hidden; }
.bar-item .bar-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--secondary), #27ae60); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 11px; font-weight: 700; color: #fff; transition: width 1s; }
.bar-item .bar-fill.accent { background: linear-gradient(90deg, var(--primary), #2a5298); }

/* Clause Grid */
.clause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.clause-card { background: #fff; border: 1px solid #e0e8ff; border-radius: 10px; padding: 18px; text-align: center; }
.clause-card .clause-num { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.clause-card p { font-size: 12px; color: #666; line-height: 1.5; }

/* Process Steps */
.process-steps { display: flex; gap: 0; margin: 20px 0; overflow-x: auto; }
.process-step { flex: 1; text-align: center; padding: 20px 14px; position: relative; min-width: 120px; }
.process-step::after { content: '\2192'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 18px; }
.process-step:last-child::after { display: none; }
.process-step .ps-icon { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #2a5298); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 18px; }
.process-step p { font-size: 12px; color: #555; line-height: 1.4; }

/* Cert Hero */
.cert-hero { background: linear-gradient(135deg, #f8f9fa, #e8f4fd); border: 3px solid var(--primary); border-radius: 16px; padding: 40px; text-align: center; margin: 25px 0; position: relative; overflow: hidden; }
.cert-hero::before { content: 'ISO'; position: absolute; right: -20px; top: -20px; font-size: 120px; font-weight: 900; color: rgba(26,60,110,.05); font-family: var(--font-head); }
.cert-hero .cert-badge { width: 90px; height: 90px; background: linear-gradient(135deg, var(--primary), #2a5298); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #fff; font-size: 36px; box-shadow: 0 8px 25px rgba(26,60,110,.3); }
.cert-hero h3 { font-family: var(--font-head); font-size: 26px; color: var(--primary); margin-bottom: 8px; }
.cert-hero .cert-num { font-size: 16px; color: var(--secondary); font-weight: 600; margin-bottom: 8px; }
.cert-hero .valid { font-size: 14px; color: #666; background: #fff; padding: 6px 18px; border-radius: 20px; display: inline-block; border: 1px solid #e0e0e0; }

/* Action List */
.action-list { list-style: none; padding: 0; }
.action-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; font-size: 14px; }
.action-list li:last-child { border-bottom: none; }
.action-list li i { color: var(--secondary); flex-shrink: 0; margin-top: 2px; }

/* ===== RESPONSIVE GRID CLASSES ===== */
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mou-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.content-section-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.content-section-grid--with-image { grid-template-columns: 1fr 1fr; }
.governance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* Image-with-text block */
.iwt-layout { display: flex; gap: 24px; align-items: flex-start; }
.iwt-layout--profile .iwt-media { flex: 0 0 220px; }
.iwt-layout--stacked { flex-direction: column; }
.iwt-layout--stacked .iwt-media { flex: none; width: 100%; max-width: none; }
.iwt-media img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.iwt-media h4 { margin-top: 12px; margin-bottom: 4px; }
.iwt-designation { color: var(--primary); font-weight: 600; margin: 0 0 4px; }
.iwt-org { color: var(--muted); font-size: 14px; margin: 0; }
.iwt-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.iwt-body { flex: 1; min-width: 0; }

/* Photo grid — full-width images below tables (e.g. Student Council) */
.image-grid-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.image-grid { display: grid; gap: 16px; margin-top: 8px; }
.image-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.image-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.image-grid-item {
  margin: 0;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: center;
  outline: none;
}
.image-grid-item-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.image-grid-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}
.image-grid-item:hover img,
.image-grid-item:focus-visible img {
  transform: scale(1.03);
}
.image-grid-item-zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 60, 110, 0.45);
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.image-grid-item:hover .image-grid-item-zoom,
.image-grid-item:focus-visible .image-grid-item-zoom {
  opacity: 1;
}
.image-grid-item:focus-visible .image-grid-item-media {
  box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.35);
}
.image-grid-item figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
}
/* Thought Leaders — industry leader cards */
.thought-leaders-hub__intro {
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.thought-leaders-hub__empty {
  color: var(--muted);
  padding: 40px 0;
}
.thought-leaders-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.thought-leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.thought-leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.thought-leader-card__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary), #2a5298);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thought-leader-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thought-leader-card__initials {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}
.thought-leader-card__body {
  padding: 18px 16px 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.thought-leader-card__name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.35;
}
.thought-leader-card__company {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0;
}
.thought-leader-card__designation {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 1200px) {
  .thought-leaders-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .thought-leaders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .thought-leaders-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* Student Council — photos sit under each table, same width as other inner pages */
.student-council-photos.image-grid-block {
  margin-top: -8px;
  margin-bottom: 28px;
  padding-top: 20px;
}
.student-council-photos .image-grid {
  gap: 14px;
}
.student-council-photos .image-grid-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 220px;
  min-height: 0;
  background: var(--lighter);
}
.student-council-photos .image-grid-item figcaption {
  font-size: 12px;
  margin-top: 6px;
}

/* ===== IQAC RESPONSIVE ===== */
@media (max-width: 992px) {
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pillars-grid:not(.pillars-grid--companion) { grid-template-columns: 1fr !important; }
  .about-companion .pillars-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .audit-grid { grid-template-columns: 1fr !important; }
  .distinct-grid { grid-template-columns: 1fr !important; }
  .stat-row { grid-template-columns: repeat(2, 1fr) !important; }
  .score-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .clause-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .process-steps { flex-direction: column; }
  .process-step::after { display: none; }
  .members-grid { grid-template-columns: 1fr !important; }
  .practice-grid { grid-template-columns: 1fr !important; }
  .subpage-grid { grid-template-columns: 1fr !important; }
  .bar-item { flex-direction: column; gap: 4px; }
  .bar-item .bar-label { width: 100%; }
  .about-img-main, .about-img-placeholder { height: 260px; }
  .mou-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .content-section-grid--with-image { grid-template-columns: 1fr; }
  .governance-grid { grid-template-columns: 1fr; }
  .iwt-layout { flex-direction: column; }
  .iwt-layout--profile .iwt-media { flex: none; width: 100%; max-width: 220px; }
  .image-grid--cols-3,
  .image-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .image-grid--cols-2,
  .image-grid--cols-3,
  .image-grid--cols-4 { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .content-card { padding: 20px 16px; }
  .stat-row { grid-template-columns: 1fr !important; }
  .score-grid { grid-template-columns: 1fr !important; }
  .clause-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   Site-wide search (header box, autocomplete dropdown, results page)
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Header search --------------------------------------------------------- */
.site-search { position: relative; display: flex; align-items: center; }
.site-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%;
  background: #fff; color: var(--primary);
  cursor: pointer; transition: var(--transition);
}
.site-search-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.site-search.is-open .site-search-toggle { display: none; }

.site-search-form {
  display: flex; align-items: center;
  width: 0; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: width .28s ease, opacity .2s ease;
}
.site-search.is-open .site-search-form {
  width: 280px; opacity: 1; pointer-events: auto;
  overflow: visible; /* restore once open so the suggestions dropdown (a child) can escape */
}
.site-search-field {
  flex: 1 1 auto; min-width: 0;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-right: 0;
  border-radius: 20px 0 0 20px;
  font-size: 14px; outline: none;
  background: #fff; color: var(--text, #212529);
}
.site-search-field:focus { border-color: var(--primary); }
.site-search-submit {
  height: 38px; width: 42px; flex: 0 0 auto;
  border: 1px solid var(--primary); border-radius: 0 20px 20px 0;
  background: var(--primary); color: #fff; cursor: pointer;
  transition: var(--transition);
}
.site-search-submit:hover { background: #142f57; }

/* Autocomplete dropdown ------------------------------------------------- */
.site-search-suggestions {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; max-width: 80vw;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg, 0 10px 30px rgba(26,60,110,.18));
  overflow: hidden; z-index: 1200;
}
.site-search-suggestions[hidden] { display: none; }
.ss-item {
  display: block; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text, #212529);
  transition: background .15s ease;
}
.ss-item:last-child { border-bottom: 0; }
.ss-item:hover, .ss-item.is-active { background: #f2f6fc; }
.ss-item .ss-title { display: block; font-weight: 600; font-size: 14px; color: var(--primary); }
.ss-item .ss-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ss-item .ss-type {
  display: inline-block; font-size: 10px; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700; color: var(--accent); margin-right: 6px;
}
.ss-empty { padding: 12px 14px; font-size: 13px; color: var(--muted); }

/* Mobile nav search ----------------------------------------------------- */
.mobile-nav-search { padding: 4px 0 12px; }
.mobile-nav-search form { display: flex; align-items: center; }
.mobile-nav-search input {
  flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 14px;
  border: 1px solid var(--border); border-right: 0;
  border-radius: 8px 0 0 8px; font-size: 15px; outline: none;
}
.mobile-nav-search button {
  height: 42px; width: 48px; flex: 0 0 auto;
  border: 1px solid var(--primary); border-radius: 0 8px 8px 0;
  background: var(--primary); color: #fff; cursor: pointer;
}

/* Results page ---------------------------------------------------------- */
.search-page-form { margin-bottom: 20px; }
.search-page-input { display: flex; align-items: center; gap: 0; position: relative; }
.search-page-input > i {
  position: absolute; left: 16px; color: var(--muted); pointer-events: none;
}
.search-page-input input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 50px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--border); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 16px; outline: none;
}
.search-page-input input[type="search"]:focus { border-color: var(--primary); }
.search-page-input .btn { height: 50px; border-radius: 0 var(--radius) var(--radius) 0; }

.search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.search-filter-chip {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff;
  color: var(--primary); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: var(--transition);
}
.search-filter-chip:hover { border-color: var(--primary); }
.search-filter-chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.search-summary { margin: 0 0 16px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-result { padding: 16px 0; border-bottom: 1px solid var(--border); }
.search-result:first-child { padding-top: 0; }
.search-result-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.search-result-type {
  display: inline-block; font-size: 10px; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700; color: #fff;
  padding: 2px 8px; border-radius: 4px; background: var(--primary);
}
.search-result-type--news { background: #2a5298; }
.search-result-type--event { background: #16a34a; }
.search-result-type--newsletter { background: var(--accent); }
.search-result-cat { font-size: 12px; color: var(--muted); }
.search-result-title { font-size: 1.1rem; margin: 0 0 6px; line-height: 1.35; }
.search-result-title a { color: var(--primary); text-decoration: none; }
.search-result-title a:hover { text-decoration: underline; }
.search-result-excerpt { font-size: 14px; color: var(--text, #495057); margin: 0 0 6px; line-height: 1.55; }
.search-result-url { font-size: 12px; color: #16803c; text-decoration: none; word-break: break-all; }
.search-result mark, .ss-item mark { background: #fff2cc; color: inherit; padding: 0 1px; border-radius: 2px; }

@media (max-width: 768px) {
  .site-search { display: none; }
}
