/* ===================================================
   VIBRANT COLOR PALETTES & THEME ENGINE
=================================================== */

/* 1. Electric Cyan & Sapphire (DEFAULT THEME) */
:root, body.theme-cyan {
  --top-gradient: linear-gradient(90deg, #0284c7 0%, #0ea5e9 50%, #06b6d4 100%);
  --nav-bg: #0c4a6e;
  --nav-hover: #082f49;
  --panel-header-bg: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  --page-bg: #f0f9ff;
  --card-bg: #ffffff;
  --text-primary: #0c4a6e;
  --text-secondary: #64748b;
  --border-color: #bae6fd;
  --accent-gold: #f59e0b;
  --accent-action: #0284c7;
  --hero-height: 440px;
}

/* 2. Vibrant Indigo-Violet */
body.theme-indigo {
  --top-gradient: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  --nav-bg: #312e81;
  --nav-hover: #1e1b4b;
  --panel-header-bg: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  --page-bg: #f5f3ff;
  --card-bg: #ffffff;
  --text-primary: #1e1b4b;
  --text-secondary: #6b7280;
  --border-color: #e0e7ff;
  --accent-gold: #fbbf24;
  --accent-action: #4f46e5;
  --hero-height: 440px;
}

/* 3. Vibrant Emerald Teal */
body.theme-teal {
  --top-gradient: linear-gradient(90deg, #0d9488 0%, #059669 50%, #10b981 100%);
  --nav-bg: #064e3b;
  --nav-hover: #022c22;
  --panel-header-bg: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  --page-bg: #f0fdf4;
  --card-bg: #ffffff;
  --text-primary: #064e3b;
  --text-secondary: #4b5563;
  --border-color: #ccfbf1;
  --accent-gold: #f59e0b;
  --accent-action: #059669;
  --hero-height: 440px;
}

/* 4. Sunset Crimson */
body.theme-crimson {
  --top-gradient: linear-gradient(90deg, #be123c 0%, #e11d48 50%, #f43f5e 100%);
  --nav-bg: #881337;
  --nav-hover: #4c0519;
  --panel-header-bg: linear-gradient(135deg, #9f1239 0%, #e11d48 100%);
  --page-bg: #fff1f2;
  --card-bg: #ffffff;
  --text-primary: #4c0519;
  --text-secondary: #701a75;
  --border-color: #fecdd3;
  --accent-gold: #f59e0b;
  --accent-action: #e11d48;
  --hero-height: 440px;
}
/* 5. Dark Yellow Mode */
body.theme-dark {
  --top-gradient: #020617;
  --nav-bg: #090d16;
  --nav-hover: #1e293b;
  --panel-header-bg: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  --page-bg: #020617;
  --card-bg: #0f172a;
  --text-primary: #fde047 !important; /* Bright Yellow Text */
  --text-secondary: #fef08a !important; /* Light Yellow Secondary */
  --border-color: #334155;
  --accent-gold: #fde047;
  --accent-action: #fde047;
}

/* Dark theme specific element overrides for text visibility */
body.theme-dark .exam-card,
body.theme-dark .person-card-enhanced,
body.theme-dark .quick-card,
body.theme-dark .events-block-wrapper,
body.theme-dark .video-block-wrapper,
body.theme-dark .ref-sidebar-box,
body.theme-dark .ref-leader-card,
body.theme-dark .ref-notice-box,
body.theme-dark .event-single-card,
body.theme-dark .logo-badge-card {
  background-color: #0f172a !important;
  color: #fde047 !important;
  border-color: #334155 !important;
}

body.theme-dark h1, body.theme-dark h2, body.theme-dark h3, 
body.theme-dark h4, body.theme-dark h5, body.theme-dark span, 
body.theme-dark p, body.theme-dark a:not(.muhs-lms-btn):not(.btn-readmore-gold) {
  color: #fde047 !important;
}

/* Dark mode color dot preview button styling */
.dot-dark { 
  background: linear-gradient(135deg, #0f172a, #fde047); 
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--page-bg);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.full-container {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===================================================
   TOP UTILITY BAR WITH POPUP THEME SWITCHER
=================================================== */
.muhs-top-bar {
  background: var(--top-gradient);
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2000;
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.helpline-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}

.helpline-text a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.helpline-text a:hover {
  text-decoration: underline;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  color: #ffffff;
  font-size: 14px;
  transition: transform 0.2s, opacity 0.2s;
}

.social-icons a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* Cross-Browser Safe Theme Switcher Dropdown */
.custom-theme-dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.theme-icon-trigger {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-action);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  outline: none;
  user-select: none;
}

.theme-icon-trigger i {
  pointer-events: none;
}

.theme-icon-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.theme-color-palette {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  border: 1px solid #cbd5e1;
}

.theme-color-palette.is-open {
  display: flex !important;
}

.color-dot-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  padding: 0;
  outline: none;
  display: inline-block;
}

.color-dot-btn:hover {
  transform: scale(1.25);
}

.color-dot-btn.active {
  border-color: #0f172a;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.dot-cyan { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.dot-indigo { background: linear-gradient(135deg, #4f46e5, #9333ea); }
.dot-teal { background: linear-gradient(135deg, #059669, #10b981); }
.dot-crimson { background: linear-gradient(135deg, #be123c, #f43f5e); }

.muhs-lms-btn {
  background: linear-gradient(180deg, #fbc02d 0%, #f57f17 100%);
  color: #111827;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.screen-reader-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.sr-icon-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.top-search-box input {
  background: #ffffff;
  border: none;
  outline: none;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  width: 140px;
  color: #334155;
}

.lang-dropdown select {
  background: #ffffff;
  border: none;
  outline: none;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

/* ===================================================
   HEADER
=================================================== */
.main-header {
  background: var(--card-bg);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-circle {
  width: 58px;
  height: 58px;
  background: var(--top-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.branding h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.branding p {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.swachh-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--page-bg);
  padding: 6px 14px;
  border-radius: 20px;
  border-left: 3px solid var(--accent-gold);
}

/* ===================================================
   NAVIGATION
=================================================== */
.main-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  width: 100%;
}

.nav-links li {
  position: relative;
}

.nav-links .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 18px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-links .nav-item:hover,
.nav-links .nav-item.active,
.nav-links li:hover > .nav-item {
  background: var(--nav-hover);
  color: var(--accent-gold);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  min-width: 250px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  border-radius: 0 0 8px 8px;
  border-top: 3px solid var(--accent-gold);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a {
  display: block;
  padding: 11px 16px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, padding-left 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background-color: var(--page-bg);
  color: var(--accent-action);
  padding-left: 20px;
  font-weight: 700;
}

/* ===================================================
   ANNOUNCEMENTS TICKER
=================================================== */
.ticker-bar {
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  color: #ffffff;
  padding: 7px 0;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ticker-container {
  display: flex;
  align-items: center;
}

.ticker-label {
  background: #0f172a;
  color: #fde047;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-text-wrapper {
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
}

/* ===================================================
   3-COLUMN EQUAL-HEIGHT HERO
=================================================== */
.hero-trio-section {
  padding: 18px 0;
}

.trio-grid {
  display: grid;
  grid-template-columns: 330px 1fr 310px;
  gap: 16px;
  align-items: stretch;
}

.trio-col {
  height: var(--hero-height);
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
}

.panel-header {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: var(--panel-header-bg);
  color: #ffffff;
}

.news-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-ctrl-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.news-ctrl-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

.news-scroller-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  background: var(--card-bg);
}

.news-scroller-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 8px 12px;
}

.news-item-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
  min-height: 84px;
  box-sizing: border-box;
}

.news-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-badge-red { background: linear-gradient(135deg, #fee2e2, #fca5a5); color: #dc2626; }
.icon-badge-amber { background: linear-gradient(135deg, #fef3c7, #fcd34d); color: #d97706; }
.icon-badge-blue { background: linear-gradient(135deg, #dbeafe, #93c5fd); color: #2563eb; }
.icon-badge-purple { background: linear-gradient(135deg, #f3e8ff, #d8b4fe); color: #7e22ce; }

.news-info { flex: 1; }
.item-tag { font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; display: inline-block; margin-bottom: 2px; }
.tag-recruit { background: #ffe4e6; color: #e11d48; }
.tag-affil { background: #ffedd5; color: #ea580c; }
.tag-admission { background: #e0e7ff; color: #4338ca; }
.tag-notice { background: #f3e8ff; color: #7e22ce; }

.item-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.35;
}

.item-title:hover { color: var(--accent-action); }
.item-date { font-size: 10px; color: var(--text-secondary); display: block; margin-top: 3px; }

.panel-footer {
  padding: 8px 12px;
  background: var(--page-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
  flex-shrink: 0;
}

.footer-btn {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-action);
  text-decoration: none;
}

/* Slider */
.slider-panel {
  position: relative;
  background: #000;
  border: none;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-end;
}

.slide.active { opacity: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
}

.slide-caption {
  position: relative;
  z-index: 10;
  padding: 26px;
  color: #ffffff;
}

.slide-badge {
  background: var(--accent-gold);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.slide-caption h2 { font-size: 24px; font-weight: 800; }
.slide-caption p { font-size: 13px; color: #e2e8f0; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover { background: var(--accent-gold); color: #000; }
.prev-btn { left: 14px; }
.next-btn { right: 14px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 20;
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.dot.active {
  background: var(--accent-gold);
  width: 22px;
  border-radius: 4px;
}

/* Links */
.links-scrollable {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px 12px;
}

.links-scrollable::-webkit-scrollbar { width: 4px; }
.links-scrollable::-webkit-scrollbar-track { background: var(--page-bg); }
.links-scrollable::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.important-links-list { list-style: none; }
.important-links-list li { border-bottom: 1px solid var(--border-color); }
.important-links-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
}

.link-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--page-bg);
  color: var(--accent-action);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.important-links-list a:hover .link-icon-box {
  background: var(--accent-action);
  color: #ffffff;
}

.important-links-list a:hover {
  color: var(--accent-action);
  padding-left: 6px;
}

.important-links-list i.chevron { color: var(--text-secondary); font-size: 10px; }

/* ===================================================
   ENTRANCE CARDS
=================================================== */
.entrance-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 10px auto 26px;
}

.exam-card {
  background: var(--card-bg);
  padding: 18px 22px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.card-cnet
{
	background: linear-gradient(135deg, rgba(212, 0, 38, 0.25), rgba(221, 60, 89, 0.1));
}
.card-upget
{
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(220, 38, 38, 0.1));
}
.card-cahet
{
		background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.1));
}
.exam-card:hover { transform: translateY(-3px); }

.card-cnet::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #f43f5e, #e11d48); }
.card-upget::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #f59e0b, #d97706); }
.card-cahet::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #06b6d4, #0284c7); }

.badge-red { background: #ffe4e6; color: #be123c; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; }
.badge-amber { background: #fef3c7; color: #b45309; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; }
.badge-blue { background: #e0f2fe; color: #0369a1; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; }

.exam-card h3 { font-size: 14.5px; font-weight: 800; margin: 8px 0 4px; color: var(--text-primary); }
.exam-card p { font-size: 11.5px; color: var(--text-secondary); margin-bottom: 5px; }
.btn-link { font-size: 11.5px; font-weight: 800; text-decoration: none; }
.text-red { color: #e11d48; }
.text-amber { color: #d97706; }
.text-blue { color: #0284c7; }

/* ===================================================
   EQUAL-HEIGHT: LEADERSHIP & INFORMATION CENTRE
=================================================== */
.main-hub-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  margin-bottom: 30px;
  align-items: stretch;
}

.block-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 5px solid var(--accent-action);
  padding-left: 10px;
  color: var(--text-primary);
  height: 24px;
}

.leadership-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.leadership-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.person-card-enhanced {
  flex: 1;
  background: var(--card-bg);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
}

.person-card-enhanced:hover {
  transform: translateY(-2px);
  border-color: var(--accent-action);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.leadership-photo-box {
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
  border-radius: 50%;
  padding: 3px;
  background: var(--top-gradient);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.leadership-photo-box img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid #ffffff;
}

.person-card-enhanced h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.25;
}

.person-card-enhanced .role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: var(--page-bg);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn-pill-lg {
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pill-lg:hover {
  background: var(--page-bg);
}

.pill-action-glow {
  background: var(--accent-action);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.info-hub-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.quick-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}

.quick-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 14px 10px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quick-card:hover {
  border-color: var(--accent-action);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.quick-card i {
  font-size: 22px;
  color: var(--accent-action);
  margin-bottom: 6px;
  display: block;
}

.quick-card span { font-size: 11px; font-weight: 700; text-transform: uppercase; }

.convocation-banner {
  background: var(--top-gradient);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.convocation-banner h4 { font-size: 14.5px; font-weight: 800; }
.convocation-banner p { font-size: 11px; color: #f1f5f9; }
.banner-btns { display: flex; gap: 8px; }
.btn-gold {
  background: var(--accent-gold);
  color: #0f172a;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.btn-glass {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

/* ===================================================
   EVENTS & VIDEO GALLERY
=================================================== */
.events-video-section {
  padding: 24px 0 24px;
}

.events-video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.events-block-wrapper, .video-block-wrapper {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.section-split-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #3e2723;
  color: #ffffff;
  padding-right: 12px;
}

.header-left-title {
  background: #8d4f00;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background 0.2s;
}

.event-nav-btn:hover {
  background: var(--accent-gold);
  color: #000000;
}

.header-right-action {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header-right-action:hover {
  color: var(--accent-gold);
}

.video-header-bg {
  background: #2b1d0c;
}

.events-carousel-viewport {
  overflow: hidden;
  position: relative;
  padding: 16px;
}

.events-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.event-single-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: calc((100% - 32px) / 3);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.event-img-box {
  width: 100%;
  height: 130px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}

.event-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-single-card:hover .event-img-box img {
  transform: scale(1.05);
}

.event-details-box {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-details-box h5 {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.35;
}

.event-date-row {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-readmore-gold {
  background: #d97706;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s;
}

.btn-readmore-gold:hover {
  background: #b45309;
}

/* Video Player Card */
.video-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-frame-box {
  width: 100%;
  height: 195px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.video-frame-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.video-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: #dc2626;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.6);
  cursor: pointer;
  transition: transform 0.2s;
}

.video-play-center:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.video-yt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.video-yt-footer a {
  color: #dc2626;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================
   LOGO-ONLY CAROUSEL
=================================================== */
.logo-carousel-section {
  background: #ffffff;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.logo-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.logo-arrow-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 10;
  flex-shrink: 0;
}

.logo-arrow-btn:hover {
  background: var(--accent-action);
  color: #ffffff;
  border-color: var(--accent-action);
}

.logo-carousel-viewport {
  flex: 1;
  overflow: hidden;
  margin: 0 12px;
}

.logo-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  align-items: center;
}

.logo-badge-card {
  flex: 0 0 calc((100% - (20px * 5)) / 6);
  min-width: calc((100% - (20px * 5)) / 6);
  height: 84px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  text-decoration: none;
  padding: 12px;
  box-sizing: border-box;
}

.logo-badge-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-action);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.logo-symbol {
  /*width: 52px;*/
  height: 84px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.logo-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge-inc {/* background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309;*/ }
.badge-samadhaan { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0284c7; }
.badge-digital { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #ea580c; }
.badge-grievance { background: linear-gradient(135deg, #fee2e2, #fca5a5); color: #b91c1c; }
.badge-rti { background: linear-gradient(135deg, #fdf2f8, #fbcfe8); color: #9d174d; }
.badge-gem { background: linear-gradient(135deg, #ecfdf5, #a7f3d0); color: #047857; }
.badge-nmc { background: linear-gradient(135deg, #eef2ff, #c7d2fe); color: #4338ca; }
.badge-dci { background: linear-gradient(135deg, #f0fdf4, #bbf7d0); color: #15803d; }

/* ===================================================
   MODERN COMPREHENSIVE FOOTER WITH MAP
=================================================== */
.modern-footer {
  background: #091322;
  color: #cbd5e1;
  padding-top: 48px;
  border-top: 4px solid var(--accent-action);
  font-size: 13px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.3fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.footer-col h5 i {
  color: var(--accent-gold);
  font-size: 14px;
}

.footer-about p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-contact-info li i {
  color: var(--accent-gold);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 9px;
}

.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav-list a i {
  font-size: 9px;
  color: var(--accent-action);
  transition: transform 0.2s;
}

.footer-nav-list a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-nav-list a:hover i {
  color: var(--accent-gold);
}

/* Embedded Google Map Box */
.footer-map-container {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  background: #1e293b;
  height: 180px;
}

.footer-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.map-directions-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Bottom Bar */
.footer-bottom-bar {
  background: #050b14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.footer-bottom-flex a {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}

.footer-bottom-flex a:hover {
  color: #ffffff;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
=================================================== */
.mobile-menu-toggle { display: none; }

@media (max-width: 1024px) {
  .full-container { padding-left: 16px; padding-right: 16px; }
  .top-bar-flex { flex-direction: column; align-items: flex-start; gap: 8px; }
  .top-actions { width: 100%; justify-content: center; /*justify-content: space-between;*/ flex-wrap: wrap; gap: 8px; }
  
  .trio-grid { display: flex;
    flex-direction: column;
    gap: 20px;/*grid-template-columns: 1fr; gap: 20px;*/ }
  .trio-col { height: 380px; }
  .entrance-cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .main-hub-grid { grid-template-columns: 1fr; }
  .events-video-grid { grid-template-columns: 1fr; }
  
  .event-single-card {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: calc((100% - 16px) / 2);
  }

  .logo-badge-card {
    flex: 0 0 calc((100% - (20px * 3)) / 4);
    min-width: calc((100% - (20px * 3)) / 4);
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
 .links-panel {
    order: -1;
    height: auto;
    max-height: 380px;
  }
  .news-panel { order: 2; }
  .slider-panel { order: 1; height: 340px; }
  .trio-col { height: 380px; }
  .nav-wrapper { position: relative; padding: 0; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--nav-bg);
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
  }
  .mobile-menu-toggle i { font-size: 20px; color: var(--accent-gold); }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--nav-hover);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.mobile-active { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-links .nav-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    color: #ffffff;
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-left: 4px solid var(--accent-gold);
    padding: 4px 0;
  }
  .has-dropdown.open-dropdown .dropdown-menu { display: block; }
  .has-dropdown.open-dropdown .nav-arrow { transform: rotate(180deg); }
  .dropdown-menu a { padding: 10px 24px; color: #cbd5e1; font-size: 13.5px; }
  .dropdown-menu a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
}

@media (max-width: 768px) {
  .muhs-top-bar { padding: 8px 0; }
  .helpline-text { font-size: 11.5px; flex-wrap: wrap; }
  .top-search-box { width: 100%; order: 4; }
  .top-search-box input { width: 100%; }
  .header-container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .branding h1 { font-size: 15.5px; }
  .branding p { font-size: 10.5px; }
  .swachh-badge { display: none; }
  .trio-col { height: 340px; }
  .slide-caption h2 { font-size: 18px; }
  .quick-icons-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  
  .event-single-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .logo-badge-card {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: calc((100% - 20px) / 2);
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }

  .convocation-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Blink Animation Definition */
@keyframes blinkEffect {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2; /* Yahan opacity kam hoti hai */
  }
  100% {
    opacity: 1;
  }
}

/* Class to apply the animation */
.blink-animation {
  animation: blinkEffect 1.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes shimmerEffect {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmerEffect 2.5s infinite;
}
/* ===================================================
   CAMPUS MAP SECTION STYLING (Before Footer)
=================================================== */
.campus-map-section {
  background: var(--card-bg);
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: 30px;
}

.map-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.map-section-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 5px solid var(--accent-action);
  padding-left: 10px;
  color: var(--text-primary);
}

.map-embed-wrapper {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.map-address-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.map-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-action);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.map-directions-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
/* ===================================================
   GLOBAL FONT SIZE RESIZER (INCLUDING MENU FIX)
=================================================== */

.font-dropdown-wrapper {
  display: inline-flex;
  align-items: center;
}

.font-resize-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  outline: none;
  padding-right:0px;
  transition: background 0.2s, border-color 0.2s;
}

.font-resize-select:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent-gold);
}

.font-resize-select option {
  background: #ffffff;
  color: #334155;
  font-weight: 600;
}

body.font-level--2 { 
  font-size: 65%; 
}
body.font-level--2 .nav-links .nav-item { font-size: 13px !important; }
body.font-level--2 .dropdown-menu a { font-size: 12px !important; }

body.font-level--1 { 
  font-size: 82%; 
}
body.font-level--1 .nav-links .nav-item { font-size: 14px !important; }
body.font-level--1 .dropdown-menu a { font-size: 12.5px !important; }

body.font-level-0 { 
  font-size: 100%; 
}
body.font-level-0 .nav-links .nav-item { font-size: 15px !important; }
body.font-level-0 .dropdown-menu a { font-size: 13.5px !important; }

body.font-level-1 { 
  font-size: 130%; 
}
body.font-level-1 .nav-links .nav-item { font-size: 16.5px !important; }
body.font-level-1 .dropdown-menu a { font-size: 14.5px !important; }

body.font-level-2 { 
  font-size: 140%; 
}
body.font-level-2 .nav-links .nav-item { font-size: 18px !important; }
body.font-level-2 .dropdown-menu a { font-size: 16px !important; }