/**
 * Shri Sant Savta Mali Gramin Mahavidyalaya, Phulambri
 * Master Stylesheet - Modern, High-Impact Institutional Design
 */

@import url('https://fonts.googleapis.com/css2?family=Aclonica&family=Averia+Serif+Libre:wght@400;700&family=Cinzel:wght@500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0b2545;
  --primary-dark: #06162a;
  --primary-light: #133a6f;
  --accent: #d97706;
  --accent-gold: #f59e0b;
  --accent-light: #fef3c7;
  --accent-glow: rgba(245, 158, 11, 0.25);
  
  --maroon: #800020;
  --maroon-dark: #580016;
  
  --surface: #ffffff;
  --surface-alt: #fffde7;
  --surface-muted: #fef9c3;
  --bg-main: #fffdf5;
  --lemon-yellow: #fffa9c;
  --lemon-pale: #fffde7;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --success: #10b981;
  --danger: #ef4444;
  --info: #0284c7;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.35);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

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

/* ==========================================================
   SPA PROGRESS BAR
   ========================================================== */
#spa-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #3b82f6);
  z-index: 99999;
  transition: width 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* ==========================================================
   TOP BAR / ACCREDITATION STRIP
   ========================================================== */
.top-header-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-container {
  max-width: 1680px;
  width: 95%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-accreditations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.accred-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.top-contact-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.top-contact-links a:hover {
  color: var(--accent-gold);
}

.admin-quick-link {
  background: var(--accent);
  color: #fff !important;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
  transition: var(--transition);
}

.admin-quick-link:hover {
  background: var(--accent-gold);
  transform: translateY(-1px);
}

/* ==========================================================
   MAIN BRANDING HEADER - CENTERED BANNER
   ========================================================== */
.main-brand-header {
  background-color: #fffa9c;
  background: linear-gradient(180deg, #fffde7 0%, #fffa9c 100%);
  padding: 1.5rem 0;
  box-shadow: 0 3px 15px rgba(171, 40, 6, 0.08);
  position: relative;
  border-top: 3px solid var(--primary-dark);
  border-bottom: 2px solid #edd96e;
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  max-width: 1440px;
  width: 98%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand-logo-left,
.brand-logo-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}

.brand-logo-img:hover,
.brand-sanstha-logo:hover {
  transform: scale(1.04);
}

.brand-sanstha-logo {
  width: 175px;
  height: 175px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}

.brand-center-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.sanstha-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #7b1113;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.college-name-en {
  font-family: 'Aclonica', var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: #AB2806; /* Original website title color */
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.college-name-mr {
  font-family: 'Averia Serif Libre', var(--font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  color: #AB2806; /* Original website Marathi title color */
  margin-bottom: 5px;
  line-height: 1.25;
}

.college-location {
  font-size: 0.95rem;
  font-weight: 600;
  color: #445175;
  margin-bottom: 3px;
}

.college-affiliation {
  font-size: 0.9rem;
  font-weight: 600;
  color: #445175;
  margin-bottom: 4px;
}

.college-accred-line {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.college-motto-wrapper {
  margin-top: 4px;
}

.college-motto-tag {
  background-color: #ec8319; /* Original website motto background */
  border: 1px solid #F7D4D4;
  border-radius: 15px;
  color: #ffffff; /* Original white font */
  padding: 5px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(236, 131, 25, 0.25);
  letter-spacing: 0.02em;
}

.accred-badges-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.accred-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-muted);
  color: var(--primary);
  border: 1px solid var(--border-light);
}

.accred-pill.highlight {
  background: linear-gradient(135deg, #0b2545, #133a6f);
  color: #fef08a;
  border: none;
}

/* ==========================================================
   NAVIGATION BAR & MEGA MENUS
   ========================================================== */
.main-nav-bar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1720px;
  width: 96%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center; /* Center screen menus */
  position: relative;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  justify-content: center; /* Center screen menus */
  list-style: none;
  gap: 0.15rem;
  flex-wrap: wrap;
  margin: 0 auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active > .nav-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-link.accent {
  background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
  color: #ffffff;
}

.nav-link.accent:hover {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent) 100%);
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  z-index: 1010;
}

.nav-item:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.dropdown-item a:hover {
  background: var(--surface-muted);
  color: var(--accent);
  padding-left: 1.5rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.4rem 0;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

/* ==========================================================
   DYNAMIC NOTICE TICKER (MARQUEE)
   ========================================================== */
.ticker-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.ticker-label {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  letter-spacing: 0.03em;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0,0,0,0.1);
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.ticker-marquee {
  white-space: nowrap;
  display: inline-block;
  animation: marquee-scroll 35s linear infinite;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 2.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
}

.ticker-item:hover {
  color: var(--accent);
  text-decoration: underline;
}

.badge-new {
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  animation: pulse-badge 1.5s infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==========================================================
   MAIN CONTENT AREA (SPA INJECTION TARGET)
   ========================================================== */
#main-content {
  min-height: 70vh;
  position: relative;
  transition: opacity 0.25s ease;
}

#main-content.loading {
  opacity: 0.45;
  pointer-events: none;
}

.container {
  max-width: 1720px;
  width: 96%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-py {
  padding: 3.5rem 0;
}

.section-py-sm {
  padding: 2rem 0;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.title-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.8rem auto 0 auto;
  border-radius: var(--radius-full);
}

/* ==========================================================
   HERO BANNER & SLIDER
   ========================================================== */
.hero-wrapper {
  position: relative;
  background: var(--primary-dark);
  color: #ffffff;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 37, 69, 0.92) 0%, rgba(11, 37, 69, 0.65) 60%, rgba(0,0,0,0.3) 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 780px;
}

.hero-motto-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--accent-gold);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-lead {
  font-size: 1.15rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Quick Bar (Floating Cards) */
.hero-quick-bar {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.quick-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-gold);
}

.quick-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.quick-card:nth-child(2) .quick-icon-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
}

.quick-card:nth-child(3) .quick-icon-box {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.quick-card:nth-child(4) .quick-icon-box {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.quick-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.quick-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================
   DYNAMIC TABS / NOTICE BOARD & EVENTS
   ========================================================== */
.dynamic-board-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.card-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-box-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.card-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  background: var(--surface-muted);
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.card-box-body {
  padding: 1.25rem 1.5rem;
  max-height: 480px;
  overflow-y: auto;
}

/* Custom Scrollbar */
.card-box-body::-webkit-scrollbar {
  width: 5px;
}
.card-box-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.card-box-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Announcement List Items */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.notice-item:hover {
  background: #ffffff;
  border-color: var(--accent-gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.notice-date-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 62px;
  flex-shrink: 0;
}

.notice-date-badge .day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.notice-date-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.notice-info {
  flex: 1;
}

.notice-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dept-pill {
  background: #e2e8f0;
  color: #334155;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.btn-download-link {
  color: var(--info);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.82rem;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-download-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* ==========================================================
   LEADERSHIP MESSAGES CARDS
   ========================================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.leader-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-gold);
}

.leader-avatar-wrapper {
  width: 140px;
  height: 160px;
  margin: 0 auto 1.25rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--surface-muted);
  box-shadow: var(--shadow-md);
  background: #f1f5f9;
}

.leader-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.leader-card:hover .leader-avatar-wrapper img {
  transform: scale(1.06);
}

.leader-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.leader-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.leader-quote {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================
   ACADEMIC PROGRAMS & STREAMS
   ========================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.program-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.program-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.program-stream-tag {
  background: rgba(245, 158, 11, 0.25);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.program-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.program-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.program-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-light);
}

.program-details-list li {
  display: flex;
  justify-content: space-between;
}

.program-details-list strong {
  color: var(--text-main);
}

/* ==========================================================
   STATISTICS STRIP
   ========================================================== */
.stats-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* ==========================================================
   CAMPUS LIFE & FACILITIES
   ========================================================== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.facility-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.facility-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-muted) 0%, #e2e8f0 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.facility-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.facility-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.main-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding-top: 4rem;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-brand-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-motto {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
}

.footer-links-list a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-contact-info {
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-bottom-bar {
  background: #030b15;
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================
   DEPARTMENT SELECTOR & REPOSITORY STYLES
   ========================================================== */
.dept-hub-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.dept-sidebar-menu {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.dept-sidebar-header {
  padding: 1rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.dept-nav-list {
  list-style: none;
  max-height: 540px;
  overflow-y: auto;
}

.dept-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.dept-nav-item a:hover, .dept-nav-item.active a {
  background: linear-gradient(135deg, var(--surface-muted) 0%, #e2e8f0 100%);
  color: var(--accent);
  border-left: 4px solid var(--accent);
}

.dept-badge-count {
  background: #e2e8f0;
  color: var(--primary);
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.dept-details-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.dept-header-banner {
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dept-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

/* Data Table */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.modern-table th {
  background: var(--surface-muted);
  color: var(--primary);
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-light);
}

.modern-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.modern-table tr:hover td {
  background: #f8fafc;
}

/* ==========================================================
   ADMIN PORTAL STYLES
   ========================================================== */
.admin-login-box {
  max-width: 440px;
  margin: 4rem auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  text-align: center;
}

.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1400px) {
  .admin-dashboard-layout {
    grid-template-columns: 300px 1fr;
    gap: 2.25rem;
  }
}

@media (min-width: 1600px) {
  .admin-dashboard-layout {
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
  }
}

/* Modern Admin Table Controls & Pagination */
.table-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.table-entries-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.entries-select {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.entries-select:focus {
  outline: none;
  border-color: var(--accent);
}

.table-search-box {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 260px;
}

.table-search-input {
  width: 100%;
  padding: 0.5rem 0.85rem 0.5rem 2.2rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  font-size: 0.88rem;
  background: #ffffff;
  transition: var(--transition);
}

.table-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.table-search-icon {
  position: absolute;
  left: 0.75rem;
  pointer-events: none;
  font-size: 0.9rem;
  color: var(--text-light);
}

.table-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.pagination-info {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-btn {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-light);
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  min-width: 34px;
  text-align: center;
}

.page-btn:hover:not(:disabled) {
  background: var(--surface-muted);
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-sidebar {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 25px;
  height: calc(100vh - 50px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.admin-sidebar-menu-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.admin-sidebar-bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-user-profile {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.admin-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 0.75rem auto;
  font-weight: 700;
}

.admin-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-menu-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: var(--transition);
}

.admin-menu-item a:hover, .admin-menu-item.active a {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.admin-main-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
}

.kpi-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.kpi-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================== */
@media (max-width: 1024px) {
  .brand-container {
    grid-template-columns: 100px 1fr 100px;
    gap: 1rem;
    padding: 0 1rem;
  }
  .brand-logo-img, .brand-sanstha-logo {
    width: 90px;
    height: 90px;
  }
  .college-name-en {
    font-size: 1.55rem;
  }
  .college-name-mr {
    font-size: 1.15rem;
  }
  .quick-cards-grid, .stats-grid, .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .leadership-grid, .programs-grid, .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dynamic-board-grid, .dept-hub-layout, .admin-dashboard-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================
   WIDESCREEN MEDIA QUERIES (1440px+)
   ========================================================== */
@media (min-width: 1440px) {
  .brand-container {
    grid-template-columns: 230px 1fr 230px;
    gap: 3rem;
  }
  .brand-logo-img {
    width: 210px;
    height: 210px;
  }
  .brand-sanstha-logo {
    width: 205px;
    height: 205px;
  }
  .college-name-en {
    font-size: 2.35rem;
  }
  .college-name-mr {
    font-size: 1.55rem;
  }
}

/* ==========================================================
   MOBILE APP-LIKE DESIGN (RESPONSIVE)
   ========================================================== */
.mobile-bottom-appbar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for mobile bottom app bar */
  }

  /* App-Like Mobile Bottom Navigation Bar */
  .mobile-bottom-appbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(11, 37, 69, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.25rem;
  }

  .mobile-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 2px;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    flex: 1;
    touch-action: manipulation;
  }

  .mobile-app-item .app-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: block;
    transition: transform 0.2s ease;
  }

  .mobile-app-item.active,
  .mobile-app-item:active {
    color: #ffffff;
  }

  .mobile-app-item.active .app-icon,
  .mobile-app-item:active .app-icon {
    transform: translateY(-2px);
    color: var(--accent-gold);
  }

  .mobile-app-item.active::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 22px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 99px;
  }

  /* Compact app-like mobile header */
  .main-brand-header {
    padding: 1rem 0;
  }

  .brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .brand-logo-left, .brand-logo-right {
    display: inline-flex;
    justify-content: center;
  }

  .brand-logo-img, .brand-sanstha-logo {
    width: 90px;
    height: 90px;
  }

  .sanstha-name {
    font-size: 0.82rem;
  }

  .college-name-en {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .college-name-mr {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }

  .college-location, .college-affiliation {
    font-size: 0.8rem;
  }

  .college-accred-line {
    font-size: 0.75rem;
  }

  .college-motto-tag {
    font-size: 0.82rem;
    padding: 4px 12px;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-links-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 285px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
  }

  .nav-links-menu.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 0;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border: none;
    width: 100%;
    display: none;
  }

  .nav-item.open > .nav-dropdown {
    display: block;
  }

  .dropdown-item a {
    color: #cbd5e1;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-slider {
    height: 440px;
  }

  .quick-cards-grid, .stats-grid, .leadership-grid, .programs-grid, .facilities-grid, .footer-grid, .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}
