/* ═══════════════════════════════════════════════════════════
   SSS COLLEGE OF ARTS, SCIENCE & MANAGEMENT — ARCOT
   Official Website Stylesheet
   Affiliated to Thiruvalluvar University
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+Tamil:wght@400;700&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --red:        #9b2335;
  --red-dark:   #6e1827;
  --red-light:  #c94160;
  --navy:       #0a1f44;
  --navy-light: #1a3464;
  --gold:       #c9a227;
  --gold-light: #f0c040;
  --white:      #ffffff;
  --off-white:  #f8f6f0;
  --light-gray: #f4f4f4;
  --mid-gray:   #e5e5e5;
  --text:       #2d2d2d;
  --text-light: #5a5a5a;
  --border:     #ddd;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow:     0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utility ──────────────────────────────────────────────── */
.container { max-width: 16  00px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--off-white); }
.section.dark { background: var(--navy); }
.section.red-bg { background: var(--red); }
.sec-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.sec-label.gold { color: var(--gold); }
.sec-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3vw,2.6rem);
  font-weight: 900; line-height: 1.2; margin-bottom: 16px; color: var(--navy);
}
.sec-title.white { color: var(--white); }
.sec-title span { color: var(--red); }
.sec-title .gold-span { color: var(--gold); }
.sec-desc { font-size: 15px; color: var(--text-light); max-width: 680px; line-height: 1.75; }
.sec-desc.white { color: rgba(255,255,255,0.8); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.text-center { text-align: center; }
.text-center .sec-desc { margin: 0 auto; }
.hidden { display: none !important; }
.page { display: none; }
.page.active { display: block; }

/* ── Announcement Ticker ─────────────────────────────────── */
.ticker-bar {
  background: var(--navy); color: var(--white); padding: 1px 0;
  border-bottom: 1px solid var(--gold); overflow: hidden;
  position: relative; z-index: 200;
}
.ticker-inner { display: flex; align-items: center; }
.ticker-label {
  background: var(--red); color: var(--white); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 14px; white-space: nowrap; flex-shrink: 0;
  margin-right: 16px; border-radius: 3px;
}
.ticker-track-wrap { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex; gap: 30px; white-space: nowrap;
  animation: tickerMove 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a {
  font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 500;
  transition: color 0.2s;
}
.ticker-track a:hover { color: var(--gold); }
@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NEW main-header ──────────────────────────────────────── */
.main-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  align-items: stretch;
  min-height: 105px;
}

/* Left — SSS Logo */
.main-header .header-logo {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--mid-gray);
  background: var(--white);
}
.main-header .header-logo img {
  height: 88px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}
.main-header .header-logo img:hover { transform: scale(1.04); }

/* Center — Building Banner */
.main-header .header-building {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.main-header .header-building img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.5s ease;
  display: block;
}
.main-header .header-building:hover img { transform: scale(1.03); }
.building-overlay-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,31,68,0.78));
  padding: 10px 16px 6px;
  text-align: center;
  pointer-events: none;
}
.college-name-banner {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 900;
  color: #fff; letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.college-sub-banner {
  font-size: 10px;
  color: rgba(255,255,255,0.88);
  margin-top: 2px;
}

/* Right — TVU Logo */
.main-header .header-tvu-logo {
  padding: 1px 1px;
  display: flex;
  align-items: center;
  gap: 1px;
  border-left: 1px solid var(--mid-gray);
  background: var(--off-white);
}
.main-header .header-tvu-logo a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.main-header .header-tvu-logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}
.main-header .header-tvu-logo img:hover { transform: scale(1.05); }
.tvu-text { flex: 1; }
.tvu-name {
  font-family: 'Playfair Display', serif;
  font-size: 11px; font-weight: 900;
  color: var(--navy); line-height: 1.3;
}
.tvu-sub {
  font-size: 9px;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 1px;
}
/* Legacy header-right */
.header-right img { height: 60px; width: auto; object-fit: contain; }
.header-right-info { text-align: right; }
.header-right-info .naac { display: inline-block; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 3px; }
.header-right-info .affiliation { font-size: 10px; color: var(--text-light); line-height: 1.4; margin-top: 4px; }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  background: var(--red);
  padding: 7px 0;
  font-size: 12px;
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-left {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar-left a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar-left a:hover { color: var(--gold-light); }
.topbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-topbar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: var(--transition);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-topbar:hover { background: rgba(255,255,255,0.25); }
.btn-topbar.gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-topbar.gold:hover { background: var(--gold-light); }
.btn-topbar.navy { background: var(--navy); color: var(--white); border-color: var(--navy-light); }
.btn-topbar.navy:hover { background: var(--navy-light); }

/* ── Navigation ───────────────────────────────────────────── */
.main-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
/* New nav-container used by rebuilt HTML */
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
}
.nav-quick-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  flex-shrink: 0;
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  white-space: nowrap;
  transition: var(--transition);
}
.quick-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.quick-link.apply { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.quick-link.apply:hover { background: var(--gold-light); }
.nav-btn-login {
  background: var(--red) !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 10px 14px !important;
  margin: 6px 4px;
}
.nav-list {
  display: flex;
  align-items: stretch;
}
.nav-list > li {
  position: relative;
}
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 16px;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--gold);
}
.nav-list > li > a .arrow {
  font-size: 10px;
  transition: transform 0.2s;
}
.nav-list > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  padding: 8px 0;
}
.nav-list > li:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.nav-dropdown a:hover {
  background: var(--off-white);
  color: var(--red);
  border-left-color: var(--red);
  padding-left: 24px;
}

/* Mega dropdown */
.nav-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: -100px;
  width: 600px;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  padding: 20px;
  display: none;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.nav-list > li:hover .nav-mega { display: grid; }
.mega-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  margin-top: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--mid-gray);
}
.mega-col-title:first-child { margin-top: 0; }
.nav-mega a {
  display: block;
  padding: 6px 8px;
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
  border-radius: 4px;
  transition: var(--transition);
}
.nav-mega a:hover { background: var(--off-white); color: var(--red); padding-left: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero Banner ──────────────────────────────────────────── */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,68,0.75) 0%, rgba(155,35,53,0.45) 60%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 16px;
}
.hero-title .red-line { color: var(--red); }
.hero-title .gold-line { color: var(--gold); }
.hero-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  padding: 13px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.3px;
  transition: var(--transition); box-shadow: 0 4px 16px rgba(155,35,53,0.4);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(155,35,53,0.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,0.7); color: var(--white);
  padding: 13px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--gold); line-height: 1;
}
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 4px; }

/* ── Announcement Section ─────────────────────────────────── */
.announce-section { padding: 48px 0; background: var(--off-white); }
.announce-section .container { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.announce-sidebar {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.announce-sidebar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.announce-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
}
.announce-link:hover { background: rgba(255,255,255,0.15); }
.announce-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  flex-shrink: 0;
  margin-top: 6px;
}
.announce-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}
.announce-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

.announce-list { display: flex; flex-direction: column; gap: 12px; }
.announce-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  border-left: 4px solid var(--mid-gray);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.announce-card:hover { border-left-color: var(--red); box-shadow: var(--shadow); transform: translateX(4px); }
.announce-card.important { border-left-color: var(--red); }
.announce-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.announce-card-title { font-weight: 600; font-size: 14px; color: var(--text); }
.announce-card-badge {
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.announce-card-badge.gold { background: var(--gold); color: var(--navy); }
.announce-card-detail { font-size: 12.5px; color: var(--text-light); margin-top: 6px; line-height: 1.6; }
.announce-card-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--text-light); }

/* ── Video Section ────────────────────────────────────────── */
.video-section {
  background: var(--navy);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(155,35,53,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.video-section .container { position: relative; z-index: 1; }
.video-header { text-align: center; margin-bottom: 32px; }
.video-header .sec-label { color: var(--gold); }
.video-header .sec-title { color: var(--white); }
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.1);
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Stats Strip ──────────────────────────────────────────── */
.stats-strip {
  background: var(--red);
  padding: 32px 0;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 16px;
  text-align: center;
}
.stat-item { padding: 16px 0; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: stretch;
}

/* ── About Section ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.about-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.about-points { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.about-point h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.about-point p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ── Department Cards ─────────────────────────────────────── */
.dept-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; margin-top: 28px;
}
.dept-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  border: 2px solid var(--mid-gray);
  color: var(--text-light);
  transition: var(--transition);
  cursor: pointer;
}
.dept-tab:hover,
.dept-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.dept-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  cursor: pointer;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dept-card-header {
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  color: var(--white);
}
.dept-icon {
  font-size: 28px;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dept-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.dept-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  margin-top: 4px; letter-spacing: 0.3px;
}
.dept-card-body { padding: 16px 20px; }
.dept-desc { font-size: 12.5px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.dept-fee {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--mid-gray);
}
.dept-fee-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.dept-fee-amount { font-size: 15px; font-weight: 800; color: var(--red); }
.dept-explore {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-size: 12.5px; font-weight: 700;
  transition: gap 0.2s;
  margin-top: 10px;
}
.dept-explore:hover { gap: 10px; }

/* ── Admissions Section ───────────────────────────────────── */
.admission-steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-top: 40px;
}
.step-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}
.step-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(155,35,53,0.35);
}
.step-icon { font-size: 32px; margin-bottom: 14px; margin-top: 8px; }
.step-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.step-desc { font-size: 12.5px; color: var(--text-light); line-height: 1.6; }

.fees-table-wrap {
  margin-top: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.fees-table {
  width: 100%;
  border-collapse: collapse;
}
.fees-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fees-table td {
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--mid-gray);
  color: var(--text);
}
.fees-table tr:hover td { background: var(--off-white); }
.fees-table tr:last-child td { border-bottom: none; }
.fees-table td:last-child { font-weight: 700; color: var(--red); }

/* ── Examinations Section ─────────────────────────────────── */
.exam-links-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 36px;
}
.exam-link-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 16px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.exam-link-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }
.exam-link-icon {
  font-size: 32px;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.exam-link-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.exam-link-desc { font-size: 12.5px; color: var(--text-light); line-height: 1.6; }
.exam-link-arrow { color: var(--red); font-weight: 700; margin-top: 10px; font-size: 13px; }

/* Question Papers section */
.qpapers-controls {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; margin-top: 24px;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.qpapers-controls select {
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  flex: 1;
  min-width: 140px;
}
.qpapers-controls button {
  padding: 9px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}
.qpapers-controls button:hover { background: var(--red-dark); }

.qpapers-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.qpapers-table {
  width: 100%;
  border-collapse: collapse;
}
.qpapers-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.qpapers-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--mid-gray);
}
.qpapers-table tr:hover td { background: var(--off-white); }
.qpapers-table tr:last-child td { border-bottom: none; }
.btn-download {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}
.btn-download:hover { background: var(--red-dark); }

/* ── Placements Section ───────────────────────────────────── */
.placement-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.p-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.p-stat-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.p-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.p-stat-lbl { font-size: 12px; color: var(--text-light); font-weight: 500; margin-top: 8px; }

.companies-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.company-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.company-badge:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.company-badge .icon { font-size: 22px; margin-bottom: 6px; }
.company-badge .name { font-size: 11px; font-weight: 700; color: var(--navy); }
.company-badge .sector { font-size: 10px; color: var(--text-light); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-quote {
  font-size: 40px;
  color: var(--red);
  opacity: 0.15;
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: -12px;
}
.testimonial-text { font-size: 13.5px; color: var(--text-light); line-height: 1.7; font-style: italic; }
.testimonial-author { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mid-gray); }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--red));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white); font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { font-size: 13px; font-weight: 700; }
.testimonial-batch { font-size: 11px; color: var(--text-light); }
.testimonial-company { font-size: 11px; color: var(--red); font-weight: 600; }

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 32px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,31,68,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: var(--white); font-size: 13px; font-weight: 600; }

/* ── Contact Section ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  display: flex; gap: 14px; align-items: flex-start;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.contact-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.contact-card p, .contact-card a {
  font-size: 13px; color: var(--text-light); line-height: 1.6;
  transition: color 0.2s;
}
.contact-card a:hover { color: var(--red); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--navy);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--white);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(155,35,53,0.08);
}
.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: var(--white);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
}
.form-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.form-success {
  background: #d4edda; color: #155724;
  border: 1px solid #c3e6cb;
  padding: 14px; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  display: none;
  margin-top: 12px;
}

/* ── Login Sections ───────────────────────────────────────── */
.login-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: var(--off-white);
}
.login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.login-box-header { text-align: center; margin-bottom: 28px; }
.login-box-header .login-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.login-box-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.login-box-header p { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.login-divider {
  height: 1px;
  background: var(--mid-gray);
  margin: 20px 0;
}
.login-result {
  padding: 12px; border-radius: 6px;
  font-size: 13.5px; font-weight: 600;
  margin-top: 12px;
  display: none;
}
.login-result.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.login-result.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 0;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.footer-brand .brand-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 16px;
}
.footer-affil {
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-affil p {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.footer-affil strong { color: var(--gold); font-size: 12.5px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col a {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  padding: 5px 0;
  transition: color 0.2s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.footer-contact-item span:first-child { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 16px 20px;
  text-align: center;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: var(--gold); }
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--red); transform: translateY(-2px); }

/* ── Floating Social Sidebar ──────────────────────────────── */
.social-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sf-btn {
  display: flex; align-items: center;
  background: var(--navy);
  color: var(--white);
  padding: 10px 8px;
  border-radius: 8px 0 0 8px;
  transition: var(--transition);
  text-decoration: none;
  overflow: hidden;
  max-width: 40px;
}
.sf-btn:hover { max-width: 130px; }
.sf-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.sf-label {
  font-size: 12px; font-weight: 700; white-space: nowrap;
  margin-right: 10px; opacity: 0; transition: opacity 0.2s 0.05s;
}
.sf-btn:hover .sf-label { opacity: 1; }
.sf-wa { background: #25D366; }
.sf-ig { background: #E1306C; }
.sf-fb { background: #1877F2; }
.sf-yt { background: #FF0000; }

/* ── Back to top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  z-index: 900;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ── Department Detail Page ───────────────────────────────── */
.dept-detail-hero {
  padding: 56px 0;
  color: var(--white);
}
.dept-detail-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 14px;
}
.dept-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem,3vw,2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.dept-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.dept-info-item { display: flex; flex-direction: column; gap: 4px; }
.dept-info-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; }
.dept-info-value { font-size: 15px; font-weight: 700; }

.subjects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 10px;
  margin-top: 20px;
}
.subject-chip {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.subject-chip::before {
  content: '📖';
  font-size: 14px;
}

/* ── TVU Section ──────────────────────────────────────────── */
.tvu-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 4px 0;
}
.tvu-inner {
  display: flex; gap: 32px; align-items: center;
}
.tvu-logo-col {
  flex-shrink: 0;
  width: 120px;
}
.tvu-logo-col img { width: 5100%; border-radius: 50%; border: 3px solid var(--gold); }
.tvu-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}
.tvu-info p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 600px;
}
.tvu-badges {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
}
.tvu-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.tvu-badge.gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .companies-grid { grid-template-columns: repeat(4,1fr); }
  .stats-inner { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .header-building { display: none; }
  .header-right { display: none; }
  .header-logo { border-right: none; }
  .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-light); z-index: 100; padding: 12px 0; box-shadow: var(--shadow); }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 12px 20px; border-bottom-color: transparent !important; }
  .nav-dropdown, .nav-mega { position: static; box-shadow: none; border-radius: 0; border-top: none; border-left: 3px solid var(--red); margin-left: 12px; display: none; }
  .nav-list > li:hover .nav-dropdown,
  .nav-list > li:hover .nav-mega { display: none; }
  .nav-list > li.open .nav-dropdown,
  .nav-list > li.open .nav-mega { display: block; }
  .nav-mega { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
  .grid-2, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .testimonials-grid, .exam-links-grid { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
  .placement-stats { grid-template-columns: 1fr 1fr; }
  .admission-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topbar-inner { flex-direction: column; gap: 8px; text-align: center; }
  .hero { height: 380px; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .grid-3, .testimonials-grid, .exam-links-grid, .gallery-grid { grid-template-columns: 1fr; }
  .companies-grid { grid-template-columns: repeat(3,1fr); }
  .placement-stats { grid-template-columns: 1fr 1fr; }
  .admission-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .social-float { display: none; }
  .announce-section .container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .qpapers-controls { flex-direction: column; }
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .main-nav, .topbar, .social-float, .back-to-top, footer { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   STAFF / FACULTY SECTION
═══════════════════════════════════════════════════════════ */

/* Faculty Page Department Filter */
.faculty-dept-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.faculty-dept-filter select,
.faculty-dept-filter input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s;
  flex: 1;
  min-width: 160px;
}
.faculty-dept-filter select:focus,
.faculty-dept-filter input:focus {
  outline: none;
  border-color: var(--red);
}
.faculty-dept-filter input::placeholder { color: var(--text-light); }

/* Faculty Stats Bar */
.faculty-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.fac-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.fac-stat:hover { border-color: var(--red); transform: translateY(-2px); }
.fac-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.fac-stat-lbl {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Department Group Header */
.faculty-dept-group { margin-bottom: 48px; }
.faculty-dept-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--white);
  margin-bottom: 0;
}
.faculty-dept-group-header .dept-group-icon { font-size: 28px; }
.faculty-dept-group-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 800;
}
.faculty-dept-group-header .dept-group-count {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

/* Staff Card */
.staff-card {
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.staff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.staff-card:hover::before { transform: scaleX(1); }
.staff-card:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  z-index: 2;
}
.staff-card.hod-card {
  background: linear-gradient(135deg, rgba(155,35,53,0.04), rgba(201,162,39,0.04));
  border-color: rgba(155,35,53,0.2);
}
.staff-card.hod-card::before { transform: scaleX(1); background: var(--gold); }

/* Staff Photo */
.staff-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--mid-gray);
  margin-bottom: 14px;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s;
  background: var(--off-white);
}
.staff-card:hover .staff-photo-wrap { border-color: var(--red); }
.staff-card.hod-card .staff-photo-wrap { border-color: var(--gold); width: 110px; height: 110px; }
.staff-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.staff-card:hover .staff-photo-wrap img { transform: scale(1.05); }

/* Staff Photo Fallback (initials) */
.staff-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

/* Staff Info */
.staff-designation-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.badge-hod { background: var(--gold); color: var(--navy); }
.badge-asst { background: rgba(10,31,68,0.1); color: var(--navy); }
.badge-prof { background: rgba(155,35,53,0.1); color: var(--red); }
.badge-guest { background: rgba(90,90,90,0.1); color: var(--text-light); }

.staff-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
.staff-title {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.4;
}
.staff-qual {
  font-size: 11.5px;
  color: var(--text-light);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  font-weight: 500;
}
.staff-exp {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
}
.staff-spec {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}
.staff-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 6px 14px;
  background: var(--red);
  color: var(--white);
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition);
}
.staff-card:hover .staff-view-btn { opacity: 1; transform: translateY(0); }

/* ── Staff Modal (Profile Popup) ─────────────────────────── */
.staff-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,31,68,0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.staff-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.staff-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
}
.staff-modal-overlay.open .staff-modal {
  transform: translateY(0) scale(1);
}
.staff-modal-header {
  padding: 28px 28px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.staff-modal-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}
.staff-modal-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.staff-modal-info { flex: 1; }
.staff-modal-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 8px;
}
.staff-modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--navy); line-height: 1.2;
}
.staff-modal-title { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.staff-modal-dept {
  font-size: 12px; font-weight: 700;
  color: var(--red); margin-top: 4px;
}
.staff-modal-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  align-self: flex-start;
}
.staff-modal-close:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.staff-modal-body { padding: 20px 28px 28px; }
.staff-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.staff-modal-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.staff-modal-item-label {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-light); margin-bottom: 4px;
}
.staff-modal-item-value {
  font-size: 13.5px; font-weight: 600;
  color: var(--navy);
}
.staff-modal-publications {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(155,35,53,0.05), rgba(10,31,68,0.05));
  border: 1px solid rgba(155,35,53,0.15);
  border-radius: var(--radius);
  padding: 14px;
}
.staff-modal-publications h4 {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--red); margin-bottom: 8px;
}
.staff-modal-publications p {
  font-size: 12.5px; color: var(--text-light); line-height: 1.65;
}

/* ── Dept Staff Section (inside dept detail) ─────────────── */
.dept-staff-section {
  background: var(--off-white);
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.dept-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.dept-staff-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}
.dept-staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}
.dept-staff-card-top {
  padding: 24px 16px 16px;
  position: relative;
}
.dept-staff-card-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.dept-staff-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
  background: var(--off-white);
}
.dept-staff-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.dept-staff-card-body { padding: 0 16px 20px; }
.dept-staff-name {
  font-size: 14px; font-weight: 700;
  color: var(--navy); margin-bottom: 4px;
}
.dept-staff-role {
  font-size: 11.5px; color: var(--text-light);
  margin-bottom: 8px;
}
.dept-staff-qual {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2px 10px; border-radius: 20px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.dept-staff-hod-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 9.5px; font-weight: 800;
  padding: 2px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.dept-staff-exp {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
}

/* ── Faculty Search Results Count ───────────────────────── */
.faculty-results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 10px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}
.faculty-results-info strong { color: var(--navy); }

/* Responsive Staff */
@media (max-width: 900px) {
  .staff-grid { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
  .faculty-stats-bar { grid-template-columns: 1fr 1fr; }
  .dept-staff-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
}
@media (max-width: 600px) {
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .staff-modal-grid { grid-template-columns: 1fr; }
  .staff-modal-header { flex-direction: column; align-items: center; text-align: center; }
  .staff-modal-close { position: absolute; top: 16px; right: 16px; }
  .faculty-stats-bar { grid-template-columns: 1fr 1fr; }
  .dept-staff-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero { padding: 52px 0; }
.page-hero .sec-label { color: var(--gold); }

/* ── Hero Section ────────────────────────────────────────── */
.hero-section { position: relative; height: 62vh; min-height: 400px; max-height: 600px; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,31,68,0.78) 0%, rgba(155,35,53,0.4) 55%, rgba(0,0,0,0.25) 100%); z-index: 1; }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,162,39,0.2); border: 1px solid rgba(201,162,39,0.5); color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 18px; border-radius: 50px; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero-title span { color: var(--gold-light); }
.hero-desc { font-size: clamp(13px, 1.5vw, 15px); color: rgba(255,255,255,0.85); max-width: 680px; line-height: 1.75; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 20px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; backdrop-filter: blur(6px); }
.hero-stat-num { font-size: clamp(1.4rem,3vw,2rem); font-weight: 900; color: var(--gold-light); }
.hero-stat-lbl { font-size: 11px; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 1px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-slider-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; border: none; }
.hero-slider-dots .dot.active { background: var(--gold); transform: scale(1.3); }
.hero-scroll-hint { position: absolute; bottom: 12px; right: 32px; color: rgba(255,255,255,0.5); font-size: 11px; letter-spacing: 2px; z-index: 3; animation: bounceDown 1.8s ease infinite; }
@keyframes bounceDown { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; padding: 12px 26px; border-radius: 7px; font-size: 13.5px; font-weight: 700; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(155,35,53,0.35); }
.btn-outline { display: inline-flex; align-items: center; background: transparent; color: var(--navy); padding: 11px 22px; border-radius: 7px; font-size: 13px; font-weight: 700; border: 2px solid var(--navy); cursor: pointer; transition: var(--transition); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-white { display: inline-flex; align-items: center; background: transparent; color: #fff; padding: 11px 22px; border-radius: 7px; font-size: 13px; font-weight: 700; border: 2px solid rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ── Announcements Section ───────────────────────────────── */
.announce-section { padding: 44px 0; background: var(--off-white); }
.announce-section .container { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.announce-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.announce-icon { font-size: 32px; }
.announce-list { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.announce-item { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--mid-gray); font-size: 13.5px; transition: background 0.2s; }
.announce-item:last-child { border-bottom: none; }
.announce-item:hover { background: var(--off-white); }
.announce-item a { color: var(--navy); font-weight: 500; transition: color 0.2s; flex: 1; }
.announce-item a:hover { color: var(--red); }
.announce-item.new a { font-weight: 700; }
.new-badge { background: var(--red); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 3px; letter-spacing: 0.5px; flex-shrink: 0; }
.ann-date { font-size: 11px; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }
.see-all-ann { display: block; text-align: right; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--red); }
.quick-links-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ql-title { background: var(--navy); color: var(--gold); padding: 14px 18px; font-size: 13px; font-weight: 800; letter-spacing: 0.5px; }
.ql-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--mid-gray); font-size: 13.5px; font-weight: 600; color: var(--navy); transition: background 0.2s; cursor: pointer; }
.ql-item:last-child { border-bottom: none; }
.ql-item:hover { background: var(--off-white); color: var(--red); }
/* ── Video Section ───────────────────────────────────────── */
.video-section { padding: 64px 0; background: var(--navy); }
.video-section .sec-label { color: var(--gold); }
.video-section .sec-title { color: #fff; }
.video-section .sec-title span { color: var(--gold-light); }
.video-player-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 48px rgba(0,0,0,0.5); margin-bottom: 32px; aspect-ratio: 16/9; background: #000; }
.video-placeholder { position: relative; width: 100%; height: 100%; }
.video-bg-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.video-placeholder-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(10,31,68,0.4), rgba(155,35,53,0.2)); }
.video-play-icon { cursor: pointer; transition: transform 0.3s; }
.video-play-icon:hover { transform: scale(1.12); }
.play-btn { width: 80px; height: 80px; background: rgba(255,255,255,0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--red); box-shadow: 0 4px 24px rgba(0,0,0,0.4); transition: all 0.3s; }
.play-btn:hover { background: var(--gold); color: var(--navy); }
.video-placeholder-text { color: #fff; text-align: center; }
.vptext-title { font-family: 'Playfair Display',serif; font-size: 1.5rem; font-weight: 900; margin-bottom: 6px; }
.vptext-sub { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.vptext-note { font-size: 11.5px; color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 30px; display: inline-block; }
.video-feature-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.video-feature { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 9px 18px; border-radius: 50px; color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; }

/* ── About / Feature ─────────────────────────────────────── */
.about-img-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 420px; }
.about-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.ab1 { border-radius: 16px 6px 6px 6px; }
.ab2 { border-radius: 6px 16px 6px 6px; }
.ab3 { border-radius: 6px 6px 6px 16px; }
.ab4 { border-radius: 6px 6px 16px 6px; }
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.fi-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-item strong { color: var(--navy); font-size: 13.5px; }
.feature-item small { color: var(--text-light); font-size: 12px; }

/* ── Dept Cards ──────────────────────────────────────────── */
.dept-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.dept-tab { padding: 9px 18px; border-radius: 30px; border: 2px solid var(--mid-gray); font-size: 13px; font-weight: 700; color: var(--text-light); cursor: pointer; transition: var(--transition); background: var(--white); }
.dept-tab:hover, .dept-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.dept-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); cursor: pointer; transition: var(--transition); background: var(--white); }
.dept-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dept-card-header { padding: 20px; display: flex; align-items: center; gap: 14px; color: #fff; }
.dept-icon { font-size: 36px; flex-shrink: 0; }
.dept-name { font-family: 'Playfair Display',serif; font-size: 15px; font-weight: 900; line-height: 1.2; }
.dept-tag { font-size: 11px; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 10px; }
.dept-card-body { padding: 16px 20px; }
.dept-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.dept-fee { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dept-fee-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.dept-fee-amount { font-size: 14px; font-weight: 800; color: var(--red); }
.dept-explore { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.dept-card:hover .dept-explore { color: var(--red); }

/* ── Facilities Strip ────────────────────────────────────── */
.facilities-strip { padding: 32px 0; background: var(--off-white); }
.facilities-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.facility-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 160px; cursor: pointer; }
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.facility-card:hover img { transform: scale(1.06); }
.facility-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(10,31,68,0.85)); padding: 20px 12px 10px; color: #fff; font-size: 13px; font-weight: 700; }

/* ── News Grid ───────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 24px; }
.news-grid-full { grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-img-wrap { height: 180px; overflow: hidden; }
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-img-wrap img { transform: scale(1.06); }
.news-body { padding: 18px 20px; }
.news-date { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.news-title { font-family: 'Playfair Display',serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.news-desc { font-size: 13px; color: var(--text-light); line-height: 1.65; margin-bottom: 14px; }
.news-link { background: none; border: none; color: var(--red); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; transition: color 0.2s; }
.news-link:hover { color: var(--red-dark); }

/* ── Placement Strip ─────────────────────────────────────── */
.placement-strip { padding: 52px 0; background: var(--navy); }
.company-logos-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.company-logo-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); padding: 10px 20px; border-radius: 40px; color: rgba(255,255,255,0.88); font-size: 14px; font-weight: 700; transition: all 0.25s; }
.company-logo-chip:hover { background: rgba(255,255,255,0.2); color: #fff; transform: translateY(-2px); }

/* ── Contact Snap ────────────────────────────────────────── */
.contact-snap { padding: 36px 0; background: var(--navy); }
.contact-snap-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; }
.contact-snap-item { text-align: center; padding: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); }
.csn-icon { font-size: 28px; margin-bottom: 8px; }
.csn-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.csn-val { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.6; }
.csn-val a { color: rgba(255,255,255,0.82); transition: color 0.2s; }
.csn-val a:hover { color: var(--gold-light); }

/* ── Mini Stats ──────────────────────────────────────────── */
.mini-stat-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.msc-num { font-family: 'Playfair Display',serif; font-size: 1.5rem; font-weight: 900; color: var(--red); }
.msc-lbl { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ── Chairman ────────────────────────────────────────────── */
.chairman-section { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; padding: 40px; background: linear-gradient(135deg,var(--off-white),var(--white)); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.chairman-photo-wrap { text-align: center; }
.chairman-initials { width: 120px; height: 120px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; overflow: hidden; }
.chairman-initials img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chairman-label { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.chairman-quote { font-size: 72px; line-height: 0.7; color: var(--gold); font-family: serif; margin-bottom: 8px; }
.chairman-text { color: var(--text-light); line-height: 1.85; margin-bottom: 12px; font-size: 14px; }

/* ── Features Grid ───────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red); }
.fc-icon { font-size: 36px; margin-bottom: 12px; }
.feature-card h3 { font-family: 'Playfair Display',serif; font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-light); line-height: 1.65; }

/* ── Admissions ──────────────────────────────────────────── */
.process-steps { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.process-step { flex: 1; min-width: 150px; max-width: 220px; text-align: center; padding: 24px 16px; }
.ps-num { width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.process-step h3 { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: 12.5px; color: var(--text-light); line-height: 1.6; }
.process-arrow { font-size: 24px; color: var(--mid-gray); padding-top: 28px; flex-shrink: 0; }
.eligibility-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; margin-top: 36px; }
.elig-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.elig-card h3 { color: var(--navy); font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.elig-card p, .elig-card li { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.elig-card ul { padding-left: 16px; list-style: disc; }

/* ── Exam Cards ──────────────────────────────────────────── */
.exam-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; }
.exam-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: var(--transition); text-decoration: none; color: inherit; display: block; }
.exam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.ec-icon { font-size: 40px; margin-bottom: 14px; display: block; }
.exam-card h3 { font-family: 'Playfair Display',serif; color: var(--navy); font-size: 1.1rem; margin-bottom: 10px; }
.exam-card p { font-size: 13px; color: var(--text-light); line-height: 1.65; margin-bottom: 12px; }
.ec-link { font-size: 13px; font-weight: 700; color: var(--red); }

/* ── QP Controls ─────────────────────────────────────────── */
.qpapers-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.qpapers-controls select { padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: inherit; color: var(--text); min-width: 140px; flex: 1; }
.btn-download { display: inline-flex; align-items: center; background: var(--navy); color: #fff; padding: 5px 12px; border-radius: 5px; font-size: 12px; font-weight: 700; text-decoration: none; transition: var(--transition); }
.btn-download:hover { background: var(--red); }

/* ── Placement Stats ─────────────────────────────────────── */
.placement-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 40px; }
.pstat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.pstat-num { font-family: 'Playfair Display',serif; font-size: 2rem; font-weight: 900; color: var(--red); }
.pstat-lbl { font-size: 12px; color: var(--text-light); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.companies-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.company-badge { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; text-align: center; box-shadow: var(--shadow-sm); min-width: 120px; }
.company-badge .icon { font-size: 32px; margin-bottom: 6px; }
.company-badge .name { font-size: 14px; font-weight: 800; color: var(--navy); }
.company-badge .sector { font-size: 11px; color: var(--text-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.testimonial-quote { font-size: 48px; line-height: 0.8; color: var(--red); font-family: serif; margin-bottom: 8px; }
.testimonial-text { font-size: 13.5px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.testimonial-batch { font-size: 11px; color: var(--text-light); }
.testimonial-company { font-size: 12px; font-weight: 700; color: var(--red); margin-top: 2px; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.gallery-tab { padding: 8px 18px; border-radius: 30px; border: 2px solid var(--mid-gray); font-size: 13px; font-weight: 700; color: var(--text-light); cursor: pointer; background: var(--white); transition: var(--transition); }
.gallery-tab:hover, .gallery-tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 12px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent,rgba(10,31,68,0.85)); padding: 20px 10px 8px; color: #fff; font-size: 12px; font-weight: 600; transform: translateY(100%); transition: transform 0.3s; }
.gallery-item:hover .gallery-cap { transform: translateY(0); }

/* ── Contact Page ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 14px; }
.ci-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ci-icon { font-size: 24px; flex-shrink: 0; }
.ci-label { font-size: 11px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.ci-val { font-size: 13.5px; color: var(--navy); line-height: 1.6; }
.ci-val a { color: var(--navy); font-weight: 600; transition: color 0.2s; }
.ci-val a:hover { color: var(--red); }
.ci-link { display: block; font-size: 12px; font-weight: 700; color: var(--red); margin-top: 6px; }
.contact-form-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13.5px; font-family: inherit; color: var(--text); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,31,68,0.08); }
.form-submit { width: 100%; padding: 13px; background: var(--red); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.form-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.contact-success { margin-top: 12px; padding: 12px 16px; background: #e8f5e9; border-radius: var(--radius); color: #2e7d32; font-size: 13px; border: 1px solid #c8e6c9; }

/* ── Login ───────────────────────────────────────────────── */
.login-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--red-dark) 100%); padding: 40px 20px; }
.login-box { background: var(--white); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-box-header { text-align: center; margin-bottom: 28px; }
.login-icon { font-size: 40px; margin-bottom: 8px; }
.login-box h2 { font-family: 'Playfair Display',serif; font-size: 1.6rem; color: var(--navy); margin-bottom: 6px; }
.login-box p { font-size: 13px; color: var(--text-light); }
.login-result { display: none; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 600; }
.login-result.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.login-result.error { background: #fce4e4; color: #c62828; border: 1px solid #f5b8b8; }
.login-divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── Dept Detail ─────────────────────────────────────────── */
.dept-detail-hero { padding: 52px 0 32px; }
.dept-detail-badge { display: inline-block; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 5px 14px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.25); margin-bottom: 20px; }
.dept-detail-title { font-family: 'Playfair Display',serif; font-size: clamp(1.4rem,3vw,2.2rem); font-weight: 900; color: #fff; margin-bottom: 8px; }
.dept-info-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dept-info-item { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); padding: 12px 16px; min-width: 120px; }
.dept-info-label { font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.dept-info-value { font-size: 14px; font-weight: 800; color: #fff; }
.subjects-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.subject-chip { background: var(--off-white); border: 1px solid var(--border); padding: 6px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 600; color: var(--navy); }

/* ── Dept Staff ──────────────────────────────────────────── */
.dept-staff-section { padding: 52px 0; background: var(--off-white); }
.dept-staff-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 20px; }
.dept-staff-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); text-align: center; cursor: pointer; transition: var(--transition); }
.dept-staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.dept-staff-card-top { padding: 24px 16px 0; }
.staff-photo-wrap { border-radius: 50%; overflow: hidden; border: 3px solid var(--white); margin: 0 auto 4px; position: relative; box-shadow: 0 4px 16px rgba(0,0,0,0.12); flex-shrink: 0; }
.staff-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%; }
.staff-avatar-fallback { background: var(--navy); color: #fff; font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.dept-staff-card-body { padding: 0 16px 20px; }
.dept-staff-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.dept-staff-role { font-size: 11.5px; color: var(--text-light); margin-bottom: 8px; }
.dept-staff-qual { display: inline-block; font-size: 10.5px; font-weight: 700; background: var(--off-white); border: 1px solid var(--border); padding: 2px 10px; border-radius: 20px; color: var(--text-light); margin-bottom: 6px; }
.dept-staff-hod-badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 9.5px; font-weight: 800; padding: 2px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.dept-staff-exp { font-size: 11px; color: var(--red); font-weight: 700; }

/* ── Faculty Page Staff Cards ────────────────────────────── */
.faculty-dept-group { margin-bottom: 40px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.faculty-dept-group-header { display: flex; align-items: center; gap: 14px; padding: 18px 24px; color: #fff; }
.dept-group-icon { font-size: 28px; }
.faculty-dept-group-header h3 { font-family: 'Playfair Display',serif; font-size: 1.15rem; font-weight: 900; flex: 1; }
.dept-group-count { background: rgba(255,255,255,0.2); padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 16px; padding: 20px; background: var(--white); }
.staff-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 14px; text-align: center; cursor: pointer; transition: var(--transition); }
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red); }
.hod-card { border-color: var(--gold); background: linear-gradient(135deg,#fffdf0,#fff); }
.staff-designation-badge { display: inline-block; font-size: 9.5px; font-weight: 800; padding: 2px 10px; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.badge-hod { background: var(--gold); color: var(--navy); }
.badge-prof { background: var(--navy); color: #fff; }
.badge-asst { background: var(--off-white); color: var(--navy); border: 1px solid var(--border); }
.badge-guest { background: #f0f0f0; color: #555; }
.staff-name { font-size: 13.5px; font-weight: 800; color: var(--navy); margin-bottom: 3px; line-height: 1.3; }
.staff-title { font-size: 11.5px; color: var(--text-light); margin-bottom: 6px; }
.staff-qual { font-size: 10.5px; color: var(--text-light); margin-bottom: 5px; }
.staff-exp { font-size: 11px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.staff-spec { font-size: 10.5px; color: var(--text-light); }
.staff-view-btn { font-size: 11px; font-weight: 700; color: var(--navy); margin-top: 8px; transition: color 0.2s; }
.staff-card:hover .staff-view-btn { color: var(--red); }

/* ── Staff Modal ─────────────────────────────────────────── */
.staff-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(10,31,68,0.7); z-index: 10000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.staff-modal-overlay.open { display: flex; }
.staff-modal { background: var(--white); border-radius: var(--radius-lg); max-width: 580px; width: 100%; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.4); animation: modalIn 0.3s cubic-bezier(0.4,0,0.2,1); max-height: 90vh; overflow-y: auto; }
@keyframes modalIn { from { transform: scale(0.9) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.staff-modal-header { background: linear-gradient(135deg, var(--navy), var(--navy-light)); padding: 28px 24px; display: flex; align-items: flex-start; gap: 18px; position: relative; }
.staff-modal-photo { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); flex-shrink: 0; }
.staff-modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.staff-modal-badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 3px 12px; border-radius: 20px; margin-bottom: 8px; }
.staff-modal-name { font-family: 'Playfair Display',serif; font-size: 1.3rem; font-weight: 900; color: #fff; }
.staff-modal-title { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.staff-modal-dept { font-size: 12px; color: var(--gold-light); }
.staff-modal-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.staff-modal-close:hover { background: var(--red); }
.staff-modal-body { padding: 24px; }
.staff-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.staff-modal-item { padding: 12px 14px; background: var(--off-white); border-radius: var(--radius); border: 1px solid var(--border); }
.staff-modal-item-label { font-size: 10.5px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.staff-modal-item-value { font-size: 13px; color: var(--navy); font-weight: 600; }
.staff-modal-publications { margin-top: 14px; padding: 16px; background: linear-gradient(135deg,#f0f4ff,#fff); border: 1px solid #d0d8f0; border-radius: var(--radius); }
.staff-modal-publications h4 { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.staff-modal-publications p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ── Faculty Stats ───────────────────────────────────────── */
.faculty-stats-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.fac-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.fac-stat-num { font-family: 'Playfair Display',serif; font-size: 1.8rem; font-weight: 900; color: var(--red); }
.fac-stat-lbl { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.faculty-dept-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.faculty-dept-filter select, .faculty-dept-filter input { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: inherit; color: var(--text); flex: 1; min-width: 150px; }
.faculty-dept-filter select:focus, .faculty-dept-filter input:focus { outline: none; border-color: var(--navy); }
.faculty-results-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 10px 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); font-size: 13px; color: var(--text-light); }
.faculty-results-info strong { color: var(--navy); }

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--navy); color: #fff; padding: 13px 14px; text-align: left; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--mid-gray); font-size: 13px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--off-white); }
.data-table tr:hover td { background: #f0f4ff; }

/* ── Footer ──────────────────────────────────────────────── */
footer { background: linear-gradient(135deg, var(--navy) 0%, #071528 100%); color: rgba(255,255,255,0.75); padding: 56px 0 0; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 36px; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.footer-brand .brand-name { font-family: 'Playfair Display',serif; font-size: 1rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.footer-brand .brand-sub { font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
.footer-affil { margin-top: 14px; font-size: 11.5px; line-height: 1.6; }
.footer-affil strong { color: #fff; }
.footer-col h4 { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); font-size: 13px; padding: 5px 0; transition: color 0.2s; cursor: pointer; }
.footer-col a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.footer-contact-item span:first-child { flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 20px; }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; text-align: center; font-size: 12px; }
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }
.social-links { display: flex; gap: 8px; }
.social-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.25s; text-decoration: none; }
.social-btn:hover { background: var(--gold); transform: scale(1.1); }

/* ── Social Float & Back to Top ──────────────────────────── */
.social-float { position: fixed; bottom: 80px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 8000; }
.sf-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: transform 0.25s, box-shadow 0.25s; text-decoration: none; }
.sf-btn:hover { transform: scale(1.15); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.sf-wa { background: #25d366; }
.sf-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.sf-fb { background: #1877f2; }
.sf-yt { background: #ff0000; }
.sf-btn i, .social-btn i { color: #fff; font-size: 20px; line-height: 1; }
.social-btn i { font-size: 16px; }
.ql-item i, .ci-icon i { font-size: 1.2em; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; border: none; font-size: 18px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: var(--transition); opacity: 0; pointer-events: none; z-index: 7000; display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--red); transform: translateY(-2px); }

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 12px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ═══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .main-header { grid-template-columns: 160px 1fr 180px; }
  .tvu-name { font-size: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .main-header { grid-template-columns: 140px 1fr 50px; }
  .main-header .header-tvu-logo .tvu-text { display: none; }
  .main-header .header-tvu-logo img { height: 54px; }
  .announce-section .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .placement-stats { grid-template-columns: 1fr 1fr; }
  .faculty-stats-bar { grid-template-columns: 1fr 1fr; }
  .process-steps { flex-direction: column; align-items: center; }
  .process-arrow { display: none; }
  .chairman-section { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-img-grid { height: 280px; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 8px 0 16px; z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-dropdown, .nav-mega { position: static; box-shadow: none; border: none; background: rgba(0,0,0,0.2); display: none !important; }
  .nav-quick-bar { display: none; }
  .hero-section { height: 46vh; min-height: 320px; }
  .main-header { grid-template-columns: 120px 1fr 48px; min-height: 80px; }
  .main-header .header-logo img { height: 66px; }
  .college-name-banner { font-size: 11px; }
  .college-sub-banner { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .dept-staff-grid { grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); }
  .staff-modal-grid { grid-template-columns: 1fr; }
  .staff-modal-header { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .hero-stat { padding: 6px 10px; }
  .dept-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .placement-stats { grid-template-columns: 1fr 1fr; }
  .main-header { grid-template-columns: 100px 1fr 46px; min-height: 70px; }
}

/* ═══════════════════════════════════════════════════════════
   CLASS NOTES SYSTEM — CSS
═══════════════════════════════════════════════════════════ */

/* ── Nav button for Class Notes ─── */
.nav-btn-notes {
  background: linear-gradient(135deg, var(--navy), #1a3464) !important;
  color: var(--gold-light) !important;
  padding: 7px 16px !important;
  border-radius: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  border: 1px solid rgba(201,162,39,0.3) !important;
  transition: all 0.25s !important;
}
.nav-btn-notes:hover {
  background: linear-gradient(135deg, var(--gold), #f0c040) !important;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

/* ── CLASS NOTES HERO ─────────────────────────────────────── */
.cn-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3464 60%, var(--red-dark) 100%);
  padding: 52px 0 40px;
  position: relative;
  overflow: hidden;
}
.cn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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");
}
.cn-hero .sec-label { color: var(--gold); }
.cn-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}
.cn-hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.cn-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cn-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  min-width: 100px;
  backdrop-filter: blur(4px);
}
.cn-stat span {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.cn-stat small {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* ── FILTER BAR ───────────────────────────────────────────── */
.cn-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.cn-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 140px;
}
.cn-filter-group label {
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cn-filter-group select,
.cn-filter-group input {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--white);
}
.cn-filter-group select:focus,
.cn-filter-group input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,31,68,0.08);
}
.cn-reset-btn {
  padding: 9px 20px;
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-end;
}
.cn-reset-btn:hover { background: var(--red); color: #fff; }

/* ── RESULT BAR ───────────────────────────────────────────── */
.cn-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* ── NOTES GRID ───────────────────────────────────────────── */
.cn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* ── NOTE CARD ────────────────────────────────────────────── */
.cn-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.cn-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.cn-card-top {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cn-card-type-icon { font-size: 20px; }
.cn-card-type {
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}
.cn-delete-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cn-delete-btn:hover { background: rgba(255,50,50,0.5); }
.cn-card-body {
  padding: 14px 16px;
  flex: 1;
}
.cn-card-dept {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.cn-card-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.cn-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}
.cn-badge.year { background: rgba(10,31,68,0.1); color: var(--navy); }
.cn-badge.sem  { background: rgba(155,35,53,0.1); color: var(--red); }
.cn-card-subject {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}
.cn-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.cn-card-preview {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}
.cn-card-topics {
  font-size: 11.5px;
  color: var(--text-light);
  background: var(--off-white);
  border-radius: 6px;
  padding: 6px 10px;
}
.cn-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--mid-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--off-white);
}
.cn-card-staff { font-size: 11.5px; color: var(--navy); font-weight: 600; }
.cn-card-date  { font-size: 11px;   color: var(--text-light); }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.cn-empty {
  text-align: center;
  padding: 64px 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.cn-empty-icon { font-size: 52px; margin-bottom: 14px; }
.cn-empty h3 { color: var(--navy); font-family: 'Playfair Display',serif; margin-bottom: 8px; }
.cn-empty p { font-size: 13.5px; color: var(--text-light); max-width: 380px; }

/* ── NOTICE BAR ───────────────────────────────────────────── */
.cn-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg,#f0f4ff,#fff);
  border: 1px solid #c0d0f0;
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--navy);
  flex-wrap: wrap;
}

/* ── NOTE MODAL ───────────────────────────────────────────── */
.note-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,31,68,0.75);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.note-modal-overlay.open { display: flex; }
.note-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  animation: modalIn 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.nm-header {
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
}
.nm-header-icon { font-size: 42px; flex-shrink: 0; }
.nm-header-info { flex: 1; }
.nm-type {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.nm-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}
.nm-subject { font-size: 13px; color: rgba(255,255,255,0.75); }
.nm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nm-close:hover { background: var(--red); }
.nm-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 24px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.note-modal-body { padding: 24px; flex: 1; }
.nm-topics-bar {
  background: linear-gradient(135deg,#f0f4ff,#fff);
  border: 1px solid #c0d0f0;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 20px;
}
.nm-content {
  white-space: pre-wrap;
  font-family: 'Inter', 'Space Grotesk', sans-serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-height: 50vh;
  overflow-y: auto;
}
.nm-content::-webkit-scrollbar { width: 6px; }
.nm-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.note-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--off-white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── STAFF DASHBOARD BAR ──────────────────────────────────── */
.sd-bar {
  background: linear-gradient(135deg, var(--navy), #1a3464);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 900;
}
.sd-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
  flex-wrap: wrap;
}
.sd-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sd-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sd-name { font-size: 15px; font-weight: 800; color: #fff; }
.sd-role { font-size: 12px; color: var(--gold-light); }
.sd-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sd-tab-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}
.sd-tab-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.sd-tab-btn.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.sd-logout {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(155,35,53,0.5);
  background: transparent;
  color: #ffaaaa;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  margin-left: 8px;
}
.sd-logout:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── SD PANELS ────────────────────────────────────────────── */
.sd-panel { display: none; }
.sd-panel.active { display: block; }

/* ── UPLOAD FORM ──────────────────────────────────────────── */
.notes-upload-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.notes-upload-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.nuf-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mid-gray);
}
.nuf-icon {
  font-size: 36px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,var(--navy),#1a3464);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nuf-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.nuf-header p { font-size: 13px; color: var(--text-light); }
.req { color: var(--red); }
.note-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--mid-gray);
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-light);
  background: var(--white);
}
.pill-label:hover { border-color: var(--navy); color: var(--navy); }
.pill-label input[type="radio"] { display: none; }
.pill-label:has(input:checked) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.nuf-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.note-success-msg {
  margin-top: 16px;
  padding: 16px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  color: #2e7d32;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
}

/* ── LIVE PREVIEW ─────────────────────────────────────────── */
.notes-preview-panel {
  position: sticky;
  top: 80px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.np-header {
  background: linear-gradient(135deg,#f0f4ff,#e8ecf8);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}
.np-body {
  padding: 20px;
  min-height: 200px;
}
.np-placeholder {
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  padding: 40px 16px;
}
.np-badge {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.np-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}
.np-meta { font-size: 11.5px; color: var(--text-light); margin-bottom: 6px; }
.np-subject { font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.np-topics {
  font-size: 12px;
  color: var(--text-light);
  background: var(--off-white);
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.np-content {
  white-space: pre-wrap;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--mid-gray);
  max-height: 280px;
  overflow-y: auto;
}
.np-tip {
  padding: 12px 16px;
  background: linear-gradient(135deg,#fffdf0,#fff8e0);
  border-top: 1px solid #ffe8a0;
  font-size: 11.5px;
  color: #7a6000;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .notes-upload-wrap { grid-template-columns: 1fr; }
  .notes-preview-panel { position: static; }
}
@media (max-width: 768px) {
  .cn-filter-bar { flex-direction: column; }
  .cn-filter-group { min-width: 100%; }
  .cn-grid { grid-template-columns: 1fr; }
  .sd-bar-inner { flex-direction: column; align-items: flex-start; }
  .nm-header { flex-direction: column; }
  .note-modal-footer { flex-direction: column; }
  .note-modal-footer .btn-primary,
  .note-modal-footer .btn-outline { width: 100%; justify-content: center; }
  .cn-stats { gap: 10px; }
  .cn-stat { padding: 10px 18px; }
}
@media (max-width: 480px) {
  .cn-grid { grid-template-columns: 1fr; }
  .notes-upload-form { padding: 20px; }
  .nuf-header { flex-direction: column; }
}

/* -----------------------------------------------------------
   CAMPUS VIDEO PLAYER � New Section CSS
----------------------------------------------------------- */

/* -- Video wrap ------------------------------------------- */
.campus-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  margin-bottom: 32px;
}

/* -- The actual <video> element --------------------------- */
.campus-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -- Subtle dark gradient overlay on bottom --------------- */
.cvw-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* -- LIVE badge � top left -------------------------------- */
.cvw-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 2;
  letter-spacing: 0.5px;
}
.cvw-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* -- Controls strip � bottom right ----------------------- */
.cvw-controls {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}
.campus-video-wrap:hover .cvw-controls { opacity: 1; }

.cvw-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}
.cvw-btn:hover {
  background: var(--navy);
  border-color: var(--gold);
}

.cvw-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.45);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* -- Fallback card (shown when video file is missing) ------ */
.cvw-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  text-align: center;
}
.cvw-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.4);
}
.cvw-fallback-info {
  position: relative;
  z-index: 6;
  padding: 32px;
  background: rgba(10,31,68,0.75);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  max-width: 420px;
}
.cvw-fallback-icon { font-size: 48px; margin-bottom: 12px; }
.cvw-fallback-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.cvw-fallback-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 4px;
}
.cvw-ig-link {
  text-decoration: none;
  font-size: 13.5px;
}

/* -- Video section responsive ---------------------------- */
@media (max-width: 768px) {
  .campus-video-wrap { aspect-ratio: 9 / 16; }
  .cvw-controls { opacity: 1; }
}
@media (max-width: 480px) {
  .campus-video-wrap { border-radius: var(--radius); }
  .cvw-badge { font-size: 11px; padding: 5px 10px; }
  .cvw-label { display: none; }
}

/* ═════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
═════════════════════════════════════════════════════════ */
.lang-switch { position: relative; display: flex; align-items: center; margin-left: 10px; }
.lang-btn {
  background: var(--navy, #0a2a50); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 4px; transition: background 0.2s;
}
.lang-btn:hover { background: var(--navy-light, #123b6e); }
.lang-menu {
  display: none; position: absolute; top: 110%; right: 0; background: #fff; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22); overflow: hidden; min-width: 170px; z-index: 5000;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: block; padding: 11px 16px; color: #0a2a50; text-decoration: none; font-size: 14px;
  font-weight: 600; border-bottom: 1px solid #f0f0f0;
}
.lang-menu a:last-child { border-bottom: none; }
.lang-menu a:hover { background: #f4f6fa; }
@media (max-width: 900px) {
  .lang-switch { margin-left: auto; order: 2; }
  .hamburger { order: 3; }
}

/* ═════════════════════════════════════════════════════════
   DESKTOP / LAPTOP VIEW TOGGLE (for mobile devices)
═════════════════════════════════════════════════════════ */
.desktop-view-toggle {
  display: none; align-items: center; gap: 8px; padding: 12px 20px; background: var(--navy-light, #123b6e);
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
  .desktop-view-toggle { display: flex; }
}
body.force-desktop-view { min-width: 1280px; }
body.force-desktop-view .main-header,
body.force-desktop-view .main-nav { min-width: 1280px; }

/* ═════════════════════════════════════════════════════════
   EVENTS / NOTIFICATIONS POPUP
═════════════════════════════════════════════════════════ */
.events-popup-overlay {
  display: none; position: fixed; inset: 0; background: rgba(10,20,40,0.65); backdrop-filter: blur(3px);
  z-index: 20000; align-items: center; justify-content: center; padding: 20px;
}
.events-popup-overlay.open { display: flex; }
.events-popup {
  background: #fff; border-radius: 18px; max-width: 460px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35); animation: eventsPopIn 0.35s ease;
  position: relative;
}
@keyframes eventsPopIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.events-popup-header {
  background: linear-gradient(135deg, var(--navy, #0a2a50), var(--red-dark, #7a1f1f)); color: #fff;
  padding: 22px 24px; border-radius: 18px 18px 0 0; position: relative;
}
.events-popup-header h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin: 0 0 4px; }
.events-popup-header p { font-size: 12.5px; opacity: 0.85; margin: 0; }
.events-popup-close {
  position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,0.18); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1;
}
.events-popup-close:hover { background: rgba(255,255,255,0.3); }
.events-popup-body { padding: 18px 22px 22px; }
.event-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid #eef0f4; }
.event-item:last-child { border-bottom: none; }
.event-date-badge {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; background: #f4f6fa; color: var(--navy, #0a2a50);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800;
}
.event-date-badge .ed-day { font-size: 16px; line-height: 1; }
.event-date-badge .ed-mon { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.event-item-title { font-weight: 700; color: var(--navy, #0a2a50); font-size: 14.5px; margin-bottom: 2px; }
.event-item-desc { font-size: 12.5px; color: #666; line-height: 1.5; }
.events-popup-footer { padding: 0 22px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.events-popup-footer label { font-size: 12px; color: #888; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.events-popup-footer button { background: var(--red, #b91c1c); color: #fff; border: none; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }
@media (max-width: 480px) {
  .events-popup { max-width: 94vw; }
}

/* ═════════════════════════════════════════════════════════
   NOTIFICATION BELL (reopen popup anytime)
═════════════════════════════════════════════════════════ */
.notif-bell {
  position: fixed; bottom: 80px; left: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy, #0a2a50); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.25); z-index: 8000; border: none;
}
.notif-bell .notif-dot {
  position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b;
  border: 2px solid #fff;
}
@media (max-width: 600px) { .notif-bell { bottom: 140px; left: 14px; width: 40px; height: 40px; } }

/* ═════════════════════════════════════════════════════════
   3D EFFECTS + SCROLL ANIMATIONS (site-wide)
═════════════════════════════════════════════════════════ */

/* -- Perspective root for 3D tilt children -- */
.feature-card, .cn-card, .program-card, .companies-grid img,
.testimonial-card, .gallery-item, .qp-table tbody tr, .dept-card,
.pstat, .cn-stat, .ci-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}

/* -- 3D tilt + lift on hover (cards) -- */
.feature-card:hover, .cn-card:hover, .dept-card:hover, .testimonial-card:hover {
  transform: perspective(800px) rotateX(3deg) rotateY(-3deg) translateY(-8px) scale(1.015);
  box-shadow: 0 26px 46px rgba(10,31,68,0.22);
}
.ci-card:hover, .pstat:hover, .cn-stat:hover {
  transform: perspective(800px) translateY(-6px) scale(1.03);
  box-shadow: 0 18px 34px rgba(10,31,68,0.16);
}

/* -- Buttons: subtle 3D press + glow -- */
.btn-primary, .btn-outline, .btn-outline-white, .form-submit, .cn-reset-btn,
.quick-link, .sf-btn, .social-btn {
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-primary:hover, .form-submit:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 26px rgba(155,35,53,0.35);
  filter: brightness(1.06);
}
.btn-outline:hover, .btn-outline-white:hover, .quick-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 22px rgba(10,31,68,0.22);
}
.sf-btn:hover, .social-btn:hover {
  transform: translateY(-4px) scale(1.12) rotate(-4deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* -- Hero slider: gentle Ken Burns zoom for depth -- */
.hero-slide.active {
  animation: kenBurns 9s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* -- Campus video: 3D frame lift on hover -- */
.campus-video-wrap {
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.campus-video-wrap:hover {
  transform: perspective(1000px) rotateX(2deg) scale(1.015);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}

/* -- Logo / trust badges: floating animation -- */
#tvuLogo, .login-icon, .cvw-fallback-icon {
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* -- Scroll-reveal: elements fade + rise into view -- */
.reveal-up {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up:nth-child(2) { transition-delay: 0.08s; }
.reveal-up:nth-child(3) { transition-delay: 0.16s; }
.reveal-up:nth-child(4) { transition-delay: 0.24s; }
.reveal-up:nth-child(5) { transition-delay: 0.32s; }
.reveal-up:nth-child(6) { transition-delay: 0.4s; }

/* -- Animated gradient underline for section titles -- */
.sec-title span {
  background: linear-gradient(90deg, var(--red,#b91c1c), var(--gold,#d4af37), var(--red,#b91c1c));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmerText 4s linear infinite;
}
@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* -- Stat numbers: pop-in -- */
.hero-stat-num, .pstat-num {
  animation: popIn 0.6s cubic-bezier(.2,.9,.3,1.3) both;
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* -- Notification bell: pulse to draw attention -- */
.notif-bell { animation: bellPulse 2.6s ease-in-out infinite; }
@keyframes bellPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 0 rgba(185,28,28,0.5); }
  50%      { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 10px rgba(185,28,28,0); }
}

/* -- Respect reduced-motion users -- */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active, #tvuLogo, .login-icon, .cvw-fallback-icon,
  .sec-title span, .hero-stat-num, .pstat-num, .notif-bell {
    animation: none !important;
  }
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ═════════════════════════════════════════════════════════
   EXTRA 3D + ANIMATION — Staff, Class Notes, About, Admissions,
   Academics, Faculty, Placements, Gallery, Contact
═════════════════════════════════════════════════════════ */

/* -- Staff / Faculty directory cards -- */
.staff-card, .dept-staff-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.staff-card:hover, .dept-staff-card:hover {
  transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateY(-10px) scale(1.02);
  box-shadow: 0 28px 50px rgba(10,31,68,0.28);
  z-index: 3;
}
.hod-card { transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease; }
.hod-card:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(-10px) scale(1.03);
  box-shadow: 0 30px 55px rgba(155,35,53,0.3);
}
.fac-stat { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease; }
.fac-stat:hover { transform: translateY(-6px) scale(1.05); box-shadow: 0 16px 30px rgba(10,31,68,0.18); }
.fac-stat-num { animation: popIn 0.6s cubic-bezier(.2,.9,.3,1.3) both; }

/* -- Class Notes: note cards get depth + shine sweep -- */
.cn-card { position: relative; overflow: hidden; }
.cn-card::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.7s ease;
}
.cn-card:hover::after { left: 130%; }
.cn-stat { animation: popIn 0.6s cubic-bezier(.2,.9,.3,1.3) both; }
.cn-empty-icon { animation: floatY 3.5s ease-in-out infinite; }

/* -- About page: chairman + gallery collage with 3D depth -- */
.chairman-photo-wrap, .chairman-section .chairman-initials {
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.chairman-photo-wrap:hover {
  transform: perspective(900px) rotateY(-6deg) scale(1.03);
}
.about-img {
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
  will-change: transform;
}
.about-img:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-3deg) scale(1.06);
  box-shadow: 0 24px 45px rgba(0,0,0,0.35);
  z-index: 2;
}
.about-img-grid { perspective: 1200px; }

/* -- Admissions: process steps + eligibility cards -- */
.process-step {
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.process-step:hover {
  transform: perspective(800px) translateY(-10px) rotateX(4deg) scale(1.04);
  box-shadow: 0 22px 40px rgba(155,35,53,0.22);
}
.ps-num {
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.3);
  animation: pulseNum 2.8s ease-in-out infinite;
}
.process-step:hover .ps-num { transform: scale(1.2) rotate(-8deg); }
@keyframes pulseNum {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155,35,53,0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(155,35,53,0); }
}
.process-arrow { display: inline-block; animation: arrowNudge 1.6s ease-in-out infinite; }
@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}
.elig-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.elig-card:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(-8px);
  box-shadow: 0 24px 44px rgba(10,31,68,0.2);
}

/* -- Academics: department tabs + cards -- */
.dept-tab {
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease;
}
.dept-tab:hover { transform: translateY(-3px) scale(1.05); }
.dept-tab.active { animation: popIn 0.4s cubic-bezier(.2,.9,.3,1.3) both; }
.dept-card-header { transition: transform 0.4s ease; }
.dept-card:hover .dept-card-header { transform: scale(1.08); }

/* -- Placements: exam cards, companies, pstat glow -- */
.exam-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.exam-card:hover {
  transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateY(-10px) scale(1.03);
  box-shadow: 0 26px 48px rgba(26,58,122,0.25);
}
.ec-icon { transition: transform 0.4s cubic-bezier(.2,.9,.3,1.3); }
.exam-card:hover .ec-icon { transform: scale(1.25) rotate(8deg); }
.pstat-num { text-shadow: 0 0 0 transparent; transition: text-shadow 0.4s ease; }
.pstat:hover .pstat-num { text-shadow: 0 4px 16px rgba(155,35,53,0.35); }
.companies-grid img, .companies-grid > * {
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), filter 0.35s ease;
}
.companies-grid img:hover { transform: scale(1.12) rotate(-2deg); filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2)); }

/* -- Gallery: 3D flip-lift on images -- */
.gallery-item {
  overflow: hidden; transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease;
}
.gallery-item:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-3deg) scale(1.05);
  box-shadow: 0 26px 50px rgba(0,0,0,0.35);
  z-index: 3;
}
.gallery-item img { transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* -- Contact: form fields + info cards lift -- */
.contact-form-box, .ci-card {
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  transform: scale(1.015);
  box-shadow: 0 8px 20px rgba(10,31,68,0.15);
}
.ci-icon { transition: transform 0.4s cubic-bezier(.2,.9,.3,1.3); }
.ci-card:hover .ci-icon { transform: scale(1.25) rotate(-8deg); }
.contact-success { animation: popIn 0.5s cubic-bezier(.2,.9,.3,1.3) both; }

/* -- Staff portal (login + dashboard) -- */
.login-box {
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.login-box:hover { transform: perspective(900px) rotateX(1.5deg) translateY(-4px); }
.form-submit:active { transform: scale(0.97); }

/* -- Note detail / staff modal pop -- */
.note-modal, .staff-modal {
  animation: modalPopIn 0.4s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes modalPopIn {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .staff-card, .dept-staff-card, .hod-card, .fac-stat, .cn-card::after,
  .chairman-photo-wrap, .about-img, .process-step, .ps-num, .process-arrow,
  .elig-card, .dept-tab, .dept-card-header, .exam-card, .ec-icon, .pstat-num,
  .companies-grid img, .gallery-item, .gallery-item img, .ci-icon,
  .login-box, .note-modal, .staff-modal {
    animation: none !important;
    transition: none !important;
  }
}

/* ═════════════════════════════════════════════════════════
   EXTRA POLISH — Contact quick-strip + Staff Dashboard
═════════════════════════════════════════════════════════ */
.contact-snap-item {
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.contact-snap-item:hover {
  transform: perspective(800px) translateY(-6px) scale(1.03);
  box-shadow: 0 16px 32px rgba(10,31,68,0.18);
}

.sd-tab-btn {
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease;
}
.sd-tab-btn:hover { transform: translateY(-2px); }
.sd-tab-btn.active { animation: popIn 0.4s cubic-bezier(.2,.9,.3,1.3) both; }
.sd-avatar { animation: floatY 4s ease-in-out infinite; }

.pill-label { transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease; }
.pill-label:hover { transform: translateY(-2px) scale(1.04); }
.pill-label:has(input:checked) { transform: scale(1.03); box-shadow: 0 6px 16px rgba(155,35,53,0.2); }

.notes-preview-panel { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.notes-preview-panel:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10,31,68,0.14); }

.note-success-msg { animation: popIn 0.5s cubic-bezier(.2,.9,.3,1.3) both; }

@media (prefers-reduced-motion: reduce) {
  .contact-snap-item, .sd-tab-btn, .sd-avatar, .pill-label,
  .notes-preview-panel, .note-success-msg {
    animation: none !important;
    transition: none !important;
  }
}

/* ═════════════════════════════════════════════════════════
   SECRETARY & PRINCIPAL (About page)
═════════════════════════════════════════════════════════ */
.leader-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.leader-card {
  background: linear-gradient(135deg, var(--off-white), var(--white));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.leader-card:hover {
  transform: perspective(800px) rotateX(3deg) rotateY(-3deg) translateY(-8px) scale(1.015);
  box-shadow: 0 26px 46px rgba(10,31,68,0.2);
}
.leader-photo {
  width: 120px; height: 120px; border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--navy);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(10,31,68,0.25);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leader-photo-fallback {
  display: none; width: 100%; height: 100%; align-items: center; justify-content: center;
  font-size: 3rem; color: #fff;
}
.leader-card h3 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.15rem; margin-bottom: 4px; }
.leader-role { color: var(--red); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.leader-bio { color: var(--text-light); font-size: 13.5px; line-height: 1.7; }

@media (max-width: 768px) {
  .leader-duo-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .leader-card { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   PDF CLASS NOTES — action buttons & PDF preview modal
═══════════════════════════════════════════════════════════ */
.cn-pdf-tag {
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}
.cn-card-pdf .cn-card-top,
.cn-card-pdf .cn-card-body { cursor: pointer; }
.cn-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  background: var(--off-white);
}
.cn-btn {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.cn-btn-view {
  background: var(--navy);
  color: #fff;
}
.cn-btn-view:hover { background: var(--navy-light); transform: translateY(-1px); }
.cn-btn-download {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}
.cn-btn-download:hover { background: var(--red); color: #fff; transform: translateY(-1px); }

/* Google-Form-style CTA box, matching the Contact page pattern */
.cn-gform-box {
  margin-top: 28px;
  padding: 22px 24px;
  background: linear-gradient(135deg,#fff,var(--off-white));
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cn-gform-box p {
  font-size: 13.5px;
  color: var(--navy);
  margin-bottom: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cn-gform-box .btn-primary {
  display: inline-block;
}

/* Embedded PDF viewer inside the note detail modal */
.nm-pdf-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nm-pdf-preview iframe {
  width: 100%;
  height: 60vh;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
}
.nm-pdf-fallback {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}
.nm-pdf-fallback a { color: var(--red); font-weight: 700; }
@media (max-width: 768px) {
  .cn-card-actions { flex-direction: column; }
  .nm-pdf-preview iframe { height: 50vh; }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY — IMPRESSIVE 3D TILT VIEW
   Overrides earlier .gallery-item rules (source order wins).
═══════════════════════════════════════════════════════════ */
.gallery-grid {
  perspective: 1600px;
}
.gallery-item {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.45s ease;
  box-shadow: 0 10px 24px rgba(10,31,68,0.14);
  will-change: transform;
}
.gallery-item.tilting {
  transition: transform 0.06s linear, box-shadow 0.3s ease;
  box-shadow: 0 34px 48px -14px rgba(10,31,68,0.5), 0 0 0 1px rgba(201,162,39,0.35);
  z-index: 5;
}
.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
  transform: translateZ(0) scale(1);
}
.gallery-item.tilting img {
  transform: translateZ(28px) scale(1.1);
}
.gallery-cap {
  transform: translateY(100%) translateZ(30px);
}
.gallery-item.tilting .gallery-cap,
.gallery-item:hover .gallery-cap {
  transform: translateY(0) translateZ(30px);
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.4), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.gallery-item.tilting::before { opacity: 1; }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}
.gallery-item.tilting::after { border-color: rgba(201,162,39,0.5); }

@media (hover: none) {
  .gallery-item { transform: none !important; box-shadow: 0 6px 16px rgba(10,31,68,0.12); }
  .gallery-item::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item, .gallery-item img, .gallery-cap { transition: none !important; transform: none !important; }
}
