:root {
  /* Core Traditional Institutional Palette (Sanskrit.nic.in style) */
  --brand-maroon: #800000;
  --header-bg: #4A0E0E;
  --accent-gold: #FFCC00;
  --accent-blue: #00AEEF;
  
  /* Text & Backgrounds */
  --bg-color: #FFFFFF;
  --bg-alt: #F8F9FA;
  --bg-dark: #2D2D2D;
  --text-dark: #1F2933;
  --text-black: #050505;
  --text-light: #F2F2F2;
  --text-maroon: #800000;
  
  /* Borders and UI */
  --border-light: #E0E0E0;
  --border-dark: #CCCCCC;
  --shadow-flat: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  /* Dimensions & Typography */
  --container: min(1140px, 92vw);
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition-fast: 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Removed smooth scrolling for a more formal feel */
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-maroon);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #5A0000;
  text-decoration: underline;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* Typography Overrides */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--brand-maroon);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h1 { font-size: 2.35rem; }
h2 { border-bottom: 2px solid var(--accent-gold); padding-bottom: 8px; display: inline-block; font-size: 1.9rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.45rem; }

p, .body-copy {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #27313D;
  font-size: 1rem;
}

/* Institutional Header */
#site-header {
  position: relative;
  z-index: 1200;
}

.site-header {
  position: relative;
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  will-change: box-shadow;
}

.sticky-header-clone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(128, 0, 0, 0.12);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(10px);
}

.sticky-header-clone .container {
  width: min(1540px, 97vw);
}

#site-header.show-sticky-header .sticky-header-clone {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.sticky-header-clone .brand-mark {
  width: 58px;
  height: 58px;
}

.sticky-header-clone .brand-copy {
  max-width: 320px;
  opacity: 1;
  transform: none;
}

.sticky-header-clone .brand-copy strong {
  font-size: 1.7rem;
}

.sticky-header-clone .brand-copy span {
  max-height: none;
  margin-top: 5px;
  opacity: 1;
  overflow: visible;
}

.site-header.is-sticky {
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  height: 72px;
  overflow: hidden;
}

/* TOP STRIP */
.top-strip {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.24s ease, transform 0.3s ease;
  max-height: 42px;
}

.site-header.is-sticky .top-strip {
  display: none;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 10px;
}

.top-strip-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ccc;
}

.top-strip-left .helpdesk-icon {
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.top-strip-left strong {
  color: #eee;
  font-size: 0.82rem;
}

.top-strip-left a,
.top-strip-right a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.top-strip-left a:hover,
.top-strip-right a:hover { color: #fff; }

.top-strip-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.info-for {
  color: #aaa;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
}

.top-strip-right a {
  padding: 0 8px;
  border-right: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
}
.top-strip-right a:last-child { border-right: none; }

/* MAIN NAV STRUCTURE: Split into brand row + nav bar */

/* Brand Row (white) */
.brand-row {
  background-color: #fff;
  transition: background-color 0.28s ease;
}

.brand-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
  transition: min-height 0.28s ease, padding 0.28s ease;
}

.site-header.is-sticky .brand-row-inner {
  min-height: 72px;
  height: 72px;
  padding-top: 0;
  padding-bottom: 0;
  gap: 18px;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-dark);
  flex-shrink: 0;
  transition: gap 0.28s ease;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  height: 65px;
  width: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: width 0.28s ease, height 0.28s ease;
}

.site-header.is-sticky .brand-mark {
  height: 46px;
  width: 46px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 320px;
  transition: opacity 0.22s ease, transform 0.28s ease, max-width 0.28s ease;
}

.site-header.is-sticky .brand-copy {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-8px);
}

.brand-copy strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-maroon);
  line-height: 1;
  overflow-wrap: anywhere;
  transition: font-size 0.28s ease;
}

.brand-copy span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.22s ease, max-height 0.28s ease, margin 0.28s ease;
}

.site-header.is-sticky .brand-copy strong {
  font-size: 1.35rem;
}

.site-header.is-sticky .brand-copy span {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
}

/* Right controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
  transition: opacity 0.22s ease, transform 0.28s ease, width 0.28s ease;
}

.site-header.is-sticky .nav-controls {
  width: 0;
  opacity: 0;
  transform: translateX(12px);
  overflow: hidden;
  pointer-events: none;
}

.desktop-inline-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-inline-nav::-webkit-scrollbar {
  display: none;
}

.site-header.is-sticky .desktop-inline-nav,
.sticky-header-clone .desktop-inline-nav {
  display: flex;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-search-btn:hover {
  background-color: var(--brand-maroon);
  color: #fff;
  border-color: var(--brand-maroon);
  text-decoration: none;
}

.header-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-maroon);
  color: #fff;
  border: 1px solid #600000;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.header-contact-cta:hover {
  background: #600000;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.sticky-contact-cta {
  flex: 0 0 auto;
  margin-left: auto;
}

/* NAV BAR (maroon strip, full-width) */
.nav-bar {
  background-color: var(--brand-maroon);
  transition: max-height 0.3s ease, opacity 0.24s ease;
  max-height: 48px;
}

.site-header.is-sticky .nav-bar {
  display: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-bar-inner::-webkit-scrollbar { display: none; }

.nav-item {
  color: #fff;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.desktop-inline-nav .nav-item {
  color: var(--text-dark);
  border-right: none;
  border-left: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.desktop-inline-nav .nav-item:first-child {
  border-left: none;
}

.desktop-inline-nav .nav-item:hover,
.desktop-inline-nav .nav-item.active {
  background-color: var(--brand-maroon);
  color: #fff;
}

.nav-item:first-child { border-left: 1px solid rgba(255,255,255,0.12); }

.nav-item:hover,
.nav-item.active {
  background-color: rgba(0,0,0,0.2);
  color: var(--accent-gold);
  text-decoration: none;
}

/* Google Translate Overrides */
.goog-te-gadget {
  font-family: inherit !important;
  font-size: 0.85rem !important;
  margin: 0 !important;
  padding: 0 !important;
}
.goog-te-gadget .goog-te-combo {
  background: #fff;
  color: var(--text-dark);
  border: 1.5px solid #ddd;
  padding: 5px 8px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.goog-te-gadget span {
  display: none !important;
}
.goog-logo-link {
  display: none !important;
}
body {
  top: 0 !important; 
}
.skiptranslate.goog-te-banner-frame {
  display: none !important;
}


/* Mobile Toggles */
.menu-toggle {
  display: flex;
  position: relative;
  z-index: 1001;
  background: var(--accent-gold);
  color: var(--brand-maroon);
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  font-weight: bold;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease, background-color var(--transition-fast), color var(--transition-fast);
}

.site-header.is-sticky .menu-toggle {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.sticky-header-clone .menu-toggle {
  display: none;
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease, background-color 0.28s ease, backdrop-filter 0.28s ease;
}

.mobile-panel.open {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(7px);
  opacity: 1;
  pointer-events: auto;
}

body.mobile-menu-open {
  overflow: hidden;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: min(80vw, 360px);
  height: 100%;
  margin-left: auto;
  padding: 0 0 24px;
  background-color: var(--header-bg);
  border-left: 4px solid var(--accent-gold);
  box-shadow: -22px 0 45px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-panel.open .mobile-nav {
  transform: translateX(0);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  min-height: 118px;
  background: rgba(99, 0, 0, 0.42);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mobile-drawer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 5px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.mobile-drawer-brand strong {
  display: block;
  color: var(--accent-gold);
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-drawer-brand span {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 5px;
  text-transform: uppercase;
}

.mobile-nav a {
  padding: 15px 24px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 600;
  transform: translateX(16px);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease, background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-panel.open .mobile-nav a {
  transform: translateX(0);
  opacity: 1;
}

.mobile-panel.open .mobile-nav a:nth-child(1) { transition-delay: 0.05s; }
.mobile-panel.open .mobile-nav a:nth-child(2) { transition-delay: 0.08s; }
.mobile-panel.open .mobile-nav a:nth-child(3) { transition-delay: 0.11s; }
.mobile-panel.open .mobile-nav a:nth-child(4) { transition-delay: 0.14s; }
.mobile-panel.open .mobile-nav a:nth-child(5) { transition-delay: 0.17s; }
.mobile-panel.open .mobile-nav a:nth-child(6) { transition-delay: 0.20s; }
.mobile-panel.open .mobile-nav a:nth-child(7) { transition-delay: 0.23s; }
.mobile-panel.open .mobile-nav a:nth-child(8) { transition-delay: 0.26s; }
.mobile-panel.open .mobile-nav a:nth-child(9) { transition-delay: 0.29s; }
.mobile-panel.open .mobile-nav a:nth-child(10) { transition-delay: 0.32s; }
.mobile-panel.open .mobile-nav a:nth-child(11) { transition-delay: 0.35s; }

.mobile-nav a:hover { background-color: var(--brand-maroon); color: var(--accent-gold); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background-color: var(--brand-maroon);
  color: #ffffff;
  border-color: #600000;
}
.btn-primary:hover {
  background-color: #600000;
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  border-color: #DAA520;
}
.btn-secondary:hover {
  background-color: #DAA520;
  color: #000;
}

.btn-ghost {
  background-color: #fff;
  color: var(--brand-maroon);
  border-color: var(--brand-maroon);
}
.btn-ghost:hover {
  background-color: var(--bg-alt);
}

/* Hero */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: url("assets/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video.video-fallback {
  display: none;
}

.hero-card-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.hero-intro-card {
  color: #fff;
  padding: 34px;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(38, 16, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-top: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.home-content {
  position: relative;
  z-index: 2;
  background: transparent;
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.18);
}

.home-content .section {
  background: var(--bg-color);
}

.home-content .section-alt {
  background: var(--bg-alt);
}

.hero-welcome {
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.hero-intro-card h1 {
  font-size: 3.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 28px;
  border: none;
  padding: 0;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.35);
}

.hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.btn-outline-white {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-outline-white:hover {
  background-color: #fff;
  color: var(--brand-maroon);
  text-decoration: none;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 24px;
  justify-content: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
}

.hero-stat strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.hero-copy {
  background-color: var(--bg-color);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.hero-copy h1 { color: var(--text-dark); font-size: 2.4rem; margin-bottom: 1rem;}
.hero-copy p { font-size: 1.15rem; max-width: 800px; margin: 0 auto; color: var(--text-dark); }

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.hero-meta-item {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-light);
  padding: 20px 40px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.hero-meta-item strong {
  display: block;
  font-size: 2.2rem;
  color: var(--brand-maroon);
}

/* Sections and Grid */
.section {
  padding: 60px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading p {
  color: var(--text-black);
  font-size: 1.06rem;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.four.faculty-group {
  grid-template-columns: repeat(auto-fit, minmax(320px, 450px));
  justify-content: center;
}

.faculty-department-section + .faculty-department-section {
  margin-top: 42px;
}

.faculty-department-section .section-heading {
  text-align: center;
}

.faculty-department-section .section-heading h2 {
  display: inline-block;
}

/* Flat Institutional Cards */
.card, .content-card, .admin-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-flat);
  transition: transform 0.2s;
}

.card {
  padding: 24px;
}

.card:hover, .content-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border-dark);
}

.content-card {
  padding: 30px;
}

.department-detail-grid {
  align-items: stretch;
}

.department-detail-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.department-detail-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.department-detail-card h2 {
  min-height: 72px;
  display: flex;
  align-items: flex-end;
}

.department-detail-card p {
  color: #1F2933;
  line-height: 1.65;
}

.department-detail-card .course-offerings {
  margin-top: auto;
  padding-top: 18px;
}

.department-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.department-actions .btn {
  min-width: 150px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  background-color: var(--brand-maroon);
  color: #fff;
  padding: 30px;
  border-radius: var(--radius-sm);
  border-bottom: 4px solid var(--accent-gold);
}
.stat-card strong { font-size: 2.5rem; display: block; margin-bottom: 5px; }

.feature-card,
.values-grid .card,
.achievement-card,
.staff-card {
  padding: 24px;
}

.feature-card p {
  color: var(--text-black);
  font-weight: 700;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.section-action {
  margin-top: 28px;
  text-align: center;
}

.home-gallery {
  margin-top: 8px;
}

.guru-section .section-heading {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.guru-section .section-heading h2 {
  display: inline-block;
}

.guru-section .section-heading p {
  margin-left: auto;
  margin-right: auto;
  color: var(--text-black);
  font-weight: 700;
}

.guru-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.guru-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 360px;
}

.guru-portrait {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-alt);
  margin-bottom: 18px;
}

.guru-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guru-card h3 {
  color: var(--brand-maroon);
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.staff-card {
  text-align: center;
}

.administration-section .container {
  max-width: 1320px;
}

.administration-heading {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.administration-heading h2 {
  display: inline-block;
}

.administration-heading p {
  margin-left: auto;
  margin-right: auto;
}

.administration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin-top: 14px;
}

.administration-grid .staff-card {
  width: 100%;
  min-height: 440px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-top: 4px solid var(--brand-maroon);
}

.administration-grid .staff-card h3 {
  font-size: 1.28rem;
  line-height: 1.35;
  margin: 10px 0 10px;
}

.administration-grid .staff-card p {
  color: #1f2933;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 0;
}

.administration-grid .meta-row {
  justify-content: center;
  min-height: 46px;
}

.administration-grid .meta-pill {
  color: var(--brand-maroon);
  background: #fff7d6;
  border-color: #f3d36a;
  font-weight: 800;
  line-height: 1.35;
}

.staff-card .portrait {
  width: 170px;
  height: 170px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--border-light);
}

.staff-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Split Layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1fr; }

.media-panel {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  padding: 5px;
  background-color: #fff;
}
.media-panel img { width: 100%; border-radius: 2px; }

/* Department Cards */
.dept-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  text-align: center; 
}
.dept-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 15px; border-radius: 2px;}
.dept-card .utility-links {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.course-offerings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.course-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-flat);
}

.course-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-card strong {
  display: block;
  padding: 10px 12px;
  color: var(--text-black);
  font-size: 0.98rem;
  text-align: center;
  min-height: 48px;
}

/* Faculty / Directory Cards */
.faculty-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
  min-height: 100%;
  border-top: 4px solid var(--brand-maroon);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.faculty-card .portrait {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--border-light), 0 8px 18px rgba(0, 0, 0, 0.12);
}
.faculty-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card h3 {
  color: var(--text-black);
  margin-bottom: 6px;
  font-size: 1.26rem;
  font-weight: 650;
  border-bottom: none;
}
.faculty-card p {
  color: var(--text-black);
  font-size: 1.06rem;
  font-weight: 700;
}
.faculty-card .body-copy {
  font-size: 1.02rem;
  font-weight: 700;
}
.faculty-intro {
  width: 100%;
  color: #1F2933;
  max-width: 560px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.6;
  text-align: center;
  margin: 4px auto 10px;
}

.faculty-readmore {
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
  text-align: center;
}

.faculty-readmore summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-maroon);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faculty-readmore summary::-webkit-details-marker {
  display: none;
}

.faculty-readmore summary::after {
  content: "+";
  margin-left: 8px;
  font-weight: 900;
}

.faculty-readmore[open] summary::after {
  content: "-";
}

.faculty-profile {
  width: 100%;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  text-align: left;
}
.faculty-profile p {
  color: #1F2933;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 12px;
}
.faculty-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 14px 0;
}
.faculty-profile h4 {
  color: var(--brand-maroon);
  font-size: 1rem;
  margin-bottom: 8px;
}
.faculty-profile ul {
  margin: 0;
  padding-left: 18px;
}
.faculty-profile li {
  color: #1F2933;
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 6px;
}
.faculty-card .meta-pill { background: var(--bg-alt); color: #555; border: 1px solid var(--border-light); padding: 4px 10px; font-size: 0.8rem; border-radius: 20px; display: inline-block; margin-bottom: 5px;}
.faculty-card .utility-links { margin-top: auto; display: flex; justify-content: center; gap: 8px; }
.faculty-card .utility-links .btn { padding: 6px 12px; font-size: 0.85rem; }

/* Notice / Circular Lists */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notice-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: center;
  border-left: 4px solid var(--brand-maroon);
}

.notice-content {
  flex: 1 1 auto;
  min-width: 0;
}

.notice-document {
  margin-left: auto;
  align-self: center;
  flex: 0 0 auto;
}

.notice-date {
  text-align: center;
  background-color: var(--bg-alt);
  padding: 10px 20px;
  border: 1px solid var(--border-light);
  min-width: 100px;
}
.notice-date strong { display: block; font-size: 1.8rem; color: var(--brand-maroon); line-height: 1; }
.notice-date span { text-transform: uppercase; font-size: 0.85rem; font-weight: bold; color: #666; }

.notice-card h3 { border-bottom: none; font-size: 1.3rem; margin-bottom: 8px; }
.notice-card p { margin-bottom: 8px; color: #444; }

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.event-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
}

.event-card-banner {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.event-card h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  min-height: 68px;
  display: flex;
  align-items: flex-end;
}

.event-intro {
  color: #1F2933;
  font-size: 0.98rem;
  font-weight: 550;
  line-height: 1.6;
}

.event-card-action {
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
}

.event-detail-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.event-detail-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.event-detail-content {
  padding: 34px;
}

.event-detail-content h2 {
  display: block;
  max-width: 920px;
}

.event-detail-content p {
  max-width: 920px;
  color: #1F2933;
  font-size: 1.05rem;
  line-height: 1.75;
}

.event-detail-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-detail-media-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-flat);
}

.event-detail-media-card img,
.event-detail-media-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* Timelines / Events */
.timeline {
  border-left: 2px solid var(--border-light);
  padding-left: 25px;
  margin-left: 10px;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 5px;
  width: 14px;
  height: 14px;
  background-color: var(--accent-gold);
  border: 2px solid var(--brand-maroon);
  border-radius: 50%;
}
.timeline-item h3 { border-bottom: none; font-size: 1.2rem; }

/* Subpage Hero */
.page-hero {
  background-color: var(--brand-maroon);
  color: #fff;
  padding: 40px 0;
  border-bottom: 4px solid var(--accent-gold);
}
.page-hero h1 { color: #fff; border-bottom: none; margin-bottom: 10px; }
.page-hero p {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 14px;
}
.breadcrumbs { font-size: 0.9rem; color: #FFDAB9; }
.breadcrumbs a { color: #fff; }

/* Utilities */
.tag, .meta-pill {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  font-size: 0.85rem;
  color: #555;
  border-radius: 2px;
}

.utility-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* CTA Band */
.cta-band {
  background-color: var(--bg-dark);
  color: #fff;
  padding: 50px;
  text-align: center;
  border-top: 4px solid var(--accent-gold);
}
.cta-band h2 { color: #fff; border-bottom-color: var(--brand-maroon); }
.cta-band p {
  color: #fff;
  font-weight: 600;
}
.cta-band .eyebrow { color: var(--accent-gold); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: block; }

/* Forms & UI */
.search-bar, .filter-bar {
  background-color: var(--bg-alt);
  padding: 20px;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 15px;
}

.search-inline { flex: 1; }

input, select, textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-maroon);
  box-shadow: 0 0 0 2px rgba(128,0,0,0.2);
}



/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.gallery-card {
  padding: 5px;
  border: 1px solid var(--border-light);
  text-align: center;
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 10px;
}
.gallery-card h3 { border-bottom: none; font-size: 1rem; margin-bottom: 5px; }

.lightbox {
  position: fixed; inset: 0; background-color: rgba(0,0,0,0.85);
  z-index: 1000; display: none; justify-content: center; align-items: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border: 4px solid #fff; }

/* =============================================
   ADMIN DASHBOARD — Polished Styles
   ============================================= */

/* --- Utility Classes (eyebrow / meta-label / meta-pill) --- */
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-maroon);
  margin-bottom: 6px;
}

.meta-label {
  font-size: 0.82rem;
  color: #5f6b7a;
  font-weight: 500;
  line-height: 1.45;
}

.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Body & Root --- */
body[data-page="admin"] {
  background: #f0f2f5;
}

body[data-page="admin"] #site-header,
body[data-page="admin"] #site-footer {
  display: none;
}

body[data-page="admin"] #admin-root {
  min-height: 100vh;
}

/* --- Login Screen --- */
.login-screen {
  width: var(--container);
  margin: 0 auto;
  padding: 70px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-width: 960px;
  width: 100%;
}

.login-visual {
  background: linear-gradient(145deg, #800000 0%, #3d0a0a 100%);
  color: #fff;
  padding: 54px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-visual .eyebrow {
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.login-visual h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 18px;
}

.login-visual p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.7;
}

.login-panel {
  padding: 54px 48px;
  align-self: center;
}

.login-panel .eyebrow {
  color: #5f6b7a;
}

.login-panel .admin-title h1 {
  font-size: 1.6rem;
}

/* --- Admin Shell --- */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* --- Sidebar --- */
.admin-sidebar {
  width: 272px;
  min-width: 272px;
  background: linear-gradient(180deg, #4a0e0e 0%, #320808 100%);
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.admin-sidebar .brand {
  gap: 12px;
  padding: 22px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-sidebar .brand:hover {
  text-decoration: none;
}

.admin-sidebar .brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.admin-sidebar .brand-copy strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.admin-sidebar .brand-copy span {
  display: block;
  color: var(--accent-gold);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
  opacity: 0.9;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  flex: 1;
}

.admin-nav-btn {
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-left-color: rgba(255, 204, 0, 0.4);
}

.admin-nav-btn.active {
  background: rgba(255, 204, 0, 0.12);
  color: #fff;
  border-left-color: var(--accent-gold);
  font-weight: 700;
}

.admin-sidebar .admin-stack {
  padding: 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.admin-sidebar .admin-stack .btn {
  width: 100%;
  text-align: center;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.admin-sidebar .admin-stack .btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- Main Content Area --- */
.admin-main {
  flex: 1;
  min-width: 0;
  padding: 32px 36px 48px;
  background: #f0f2f5;
}

/* --- Top Bar --- */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dde1e6;
  gap: 20px;
}

.admin-title .eyebrow {
  margin-bottom: 4px;
}

.admin-title h1 {
  margin-bottom: 0;
  font-size: 1.45rem;
  color: #1a1a2e;
}

/* --- Dashboard Stats --- */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.dashboard-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--brand-maroon);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-stat strong {
  display: block;
  color: var(--brand-maroon);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
}

.dashboard-stat span {
  display: block;
  margin-top: 8px;
  color: #5f6b7a;
  font-weight: 600;
  font-size: 0.88rem;
}

/* --- Admin Grid --- */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

/* --- Admin Cards --- */
.admin-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 28px;
  transition: box-shadow 0.2s ease;
}

.admin-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.admin-card > .eyebrow {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2f5;
}

/* --- Toolbar & Form Grid --- */
.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Admin Form --- */
.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #27313d;
  cursor: pointer;
}

.admin-form label input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--brand-maroon);
}

.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  padding: 11px 14px;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--brand-maroon);
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
  color: #9ca3b0;
}

.admin-form .btn-primary {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  justify-self: start;
}

.admin-form .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.25);
}

/* --- Admin List --- */
.admin-list-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 16px 18px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.admin-list-item:hover {
  border-color: #c5c9d0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.admin-list-item > div:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-list-item > div:nth-child(2) strong {
  display: block;
  font-size: 0.95rem;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.admin-list-item > div:nth-child(2) .meta-label {
  font-size: 0.8rem;
}

/* --- Item Actions --- */
.admin-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.tiny-btn {
  width: auto;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tiny-btn:hover {
  border-color: var(--brand-maroon);
  color: var(--brand-maroon);
  background: #fdf2f2;
}

.tiny-btn.danger {
  color: #b91c1c;
  border-color: #fca5a5;
}

.tiny-btn.danger:hover {
  background: #fef2f2;
  border-color: #b91c1c;
}

/* --- Drag Handle --- */
.drag-handle {
  flex: 0 0 auto;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7d6 100%);
  border: 1px solid #f3d36a;
  border-radius: 8px;
  color: var(--brand-maroon);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: grab;
}

/* --- Upload Control --- */
.upload-control {
  display: grid;
  gap: 10px;
}

.upload-drop {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 2px dashed #c8cdd3;
  border-radius: 10px;
  background: #fafbfc;
  color: #111827;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.upload-drop input {
  display: none;
}

.upload-drop span {
  color: var(--brand-maroon);
  font-weight: 800;
  font-size: 0.92rem;
}

.upload-drop small {
  display: block;
  margin-top: 6px;
  color: #5f6b7a;
  font-weight: 500;
  font-size: 0.82rem;
}

.upload-drop.dragging,
.upload-drop:hover {
  border-color: var(--brand-maroon);
  background: #fff8e1;
  transform: translateY(-1px);
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafbfc;
  color: #27313d;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.upload-preview img,
.upload-preview video {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s ease;
}

.upload-preview img:hover,
.upload-preview video:hover {
  border-color: var(--brand-maroon);
}

/* --- Modal Overlay & Popup --- */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, background-color 0.28s ease, backdrop-filter 0.28s ease;
}

.admin-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.admin-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  opacity: 0;
}

.admin-modal-overlay.open .admin-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid #edf0f3;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 14px 14px 0 0;
}

.admin-modal-header h2 {
  font-size: 1.15rem;
  margin: 0;
  padding: 0;
  border: none;
  display: block;
  color: #1a1a2e;
}

.admin-modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
}

.admin-modal-close:hover {
  background: #fef2f2;
  border-color: var(--brand-maroon);
  color: var(--brand-maroon);
}

.admin-modal-body {
  padding: 28px;
}

/* --- Add New Button --- */
.btn-add-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--brand-maroon);
  color: #fff;
  border: 1.5px solid #600000;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-add-new:hover {
  background: #600000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.25);
}

.btn-add-new::before {
  content: "+";
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

/* --- Admin section header with add button --- */
.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* --- Empty State --- */
.admin-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #9ca3b0;
}

.admin-empty-state strong {
  display: block;
  font-size: 1.05rem;
  color: #5f6b7a;
  margin-bottom: 6px;
}

/* --- Toast / Save Feedback --- */
.admin-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #065f46;
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: #fff;
  padding: 60px 0 20px;
  border-top: 4px solid var(--brand-maroon);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h3 { color: var(--accent-gold); border-bottom-color: #555; }
.footer-grid p { color: #ccc; font-size: 0.95rem; }
.footer-grid p strong {
  color: #fff;
}
.footer-grid p a {
  color: var(--accent-gold);
  font-weight: 700;
}
.footer-grid p a:hover {
  color: #fff;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #ccc; }
.footer-links a:hover { color: #fff; }
.footer-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #444;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

/* Visibility classes */
.reveal { opacity: 0; transform: translateY(15px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive Adjustments */
@media (max-width: 1180px) {
  .hero-intro-card {
    max-width: 840px;
  }

  .hero-intro-card h1 {
    font-size: 3rem;
  }

  .hero-stats {
    gap: 22px;
  }

  .hero-stat {
    min-width: 135px;
  }
}

@media (max-width: 1080px) {
  .site-header {
    z-index: 1100;
  }

  .nav-desktop,
  .nav-bar { display: none; }
  .site-header.is-sticky .desktop-inline-nav,
  .sticky-header-clone .desktop-inline-nav,
  .desktop-inline-nav {
    display: none;
  }
  .sticky-contact-cta {
    margin-left: auto;
  }
  .sticky-header-clone .menu-toggle {
    display: flex;
  }
  .menu-toggle {
    display: flex;
    margin: 0;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
  .site-header.is-sticky {
    height: auto;
    overflow: visible;
  }
  .header-actions { justify-content: center; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .grid.four, .grid.three { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-detail-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .administration-grid { grid-template-columns: repeat(2, minmax(260px, 380px)); }
  .grid.four.faculty-group {
    grid-template-columns: repeat(auto-fit, minmax(320px, 450px));
    justify-content: center;
  }
  .guru-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { display: block; }
  .admin-sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  }
  .admin-sidebar .brand { padding: 14px 16px; }
  .admin-sidebar nav { flex-direction: row; padding: 0 8px; flex-wrap: wrap; }
  .admin-nav-btn { white-space: nowrap; border-bottom: none; border-left: none; border-right: 1px solid rgba(255,255,255,0.1); padding: 10px 14px; font-size: 0.84rem; }
  .admin-sidebar .admin-stack { padding: 10px 14px; border-top: none; margin-top: 0; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .top-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
  }

  .top-strip-right {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .brand-row-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    min-height: 72px;
    padding: 10px 0;
    text-align: left;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .nav-controls {
    display: none;
  }

  .sticky-contact-cta {
    display: none;
  }

  .menu-toggle {
    order: 2;
  }

  .hero-card-section {
    min-height: auto;
    padding: 72px 0;
  }

  .hero-intro-card h1 {
    font-size: 2.6rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .hero-stat {
    min-width: 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .search-bar,
  .filter-bar {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .hero {
    position: relative;
    height: auto;
    background: #000;
  }
  .hero-bg {
    height: auto;
    min-height: 0;
    background: #000;
    display: block;
  }
  .hero-video {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
  }
  .hero-card-section {
    padding: 56px 0;
  }
  .hero-intro-card {
    padding: 24px 18px;
    max-width: 92vw;
  }
  .hero-intro-card h1 {
    font-size: 2.1rem;
  }
  .brand { flex-direction: row; gap: 10px; }
  .brand-copy strong { font-size: 1.45rem; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .event-detail-content { padding: 22px; }
  .event-detail-media-grid { grid-template-columns: 1fr; }
  .grid.four.faculty-group {
    grid-template-columns: minmax(0, 1fr);
  }
  .course-offerings { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .administration-grid { grid-template-columns: minmax(0, 1fr); }
  .administration-grid .staff-card { min-height: auto; }
  .guru-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .notice-card { flex-direction: column; align-items: flex-start; }
  .notice-document {
    width: 100%;
    margin-left: 0;
    align-self: stretch;
    display: flex;
    justify-content: flex-end;
  }
  .notice-date { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 5px; }
  .notice-date strong { font-size: 1.4rem; }
  .hero-meta { flex-direction: column; }
  .content-card,
  .feature-card,
  .values-grid .card,
  .achievement-card,
  .staff-card,
  .dept-card,
  .faculty-card {
    padding: 20px;
  }

  .cta-band {
    padding: 34px 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(calc(100% - 28px), 1140px);
  }

  .top-strip-right {
    display: none;
  }

  .top-strip-inner {
    align-items: center;
    text-align: center;
  }

  .top-strip-left {
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand-mark {
    height: 48px;
    width: 48px;
  }

  .brand-copy strong {
    font-size: 1.28rem;
  }

  .brand-copy span {
    font-size: 0.66rem;
  }

  .hero-intro-card {
    padding: 22px 14px;
  }

  .hero-intro-card h1 {
    font-size: 1.75rem;
    line-height: 1.24;
    margin-bottom: 18px;
  }

  .hero-welcome {
    font-size: 1rem;
  }

  .hero-tagline {
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 28px;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline-white {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-stat strong {
    font-size: 1.55rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.18rem; }

  .section {
    padding: 34px 0;
  }

  .notice-card {
    gap: 12px;
    padding: 16px;
  }

  .admin-main {
    padding: 24px 14px;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 380px) {
  .hero-intro-card h1 {
    font-size: 1.55rem;
  }

  .brand-copy strong {
    font-size: 1.2rem;
  }

  .content-card,
  .feature-card,
  .values-grid .card,
  .achievement-card,
  .staff-card,
  .dept-card,
  .faculty-card,
  .cta-band {
    padding: 16px;
  }
}

@media (max-width: 1080px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  }

  .admin-sidebar .brand { padding: 14px 16px; }

  .admin-sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 8px;
    flex: 1;
  }

  .admin-nav-btn {
    white-space: normal;
    border-right: none;
    border-left: none;
    text-align: center;
    font-size: 0.82rem;
    padding: 10px 8px;
  }

  .admin-sidebar .admin-stack {
    padding: 10px 14px;
    border-top: none;
    margin-top: 0;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-visual,
  .login-panel {
    padding: 32px 24px;
  }

  .admin-main {
    padding: 20px 16px 32px;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-list-item {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .admin-item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-modal {
    max-width: 100%;
    max-height: calc(100vh - 30px);
    margin: 0;
    border-radius: 10px;
  }

  .admin-modal-overlay {
    padding: 15px;
  }

  .admin-modal-header,
  .admin-modal-body {
    padding: 18px 20px;
  }

  .admin-card {
    padding: 20px 16px;
  }
}
