/* ==========================================================================
   Shaildevi College Theme - Deep Maroon & Warm Gold Custom Styles
   ========================================================================== */

:root {
  --college-maroon-dark: #3f0911;
  --college-maroon: #5c0f1b;
  --college-maroon-light: #7a1525;
  --college-gold: #d97706;
  --college-gold-light: #f59e0b;
  --college-gold-accent: #fbbf24;
  --college-cream: #fffdf5;
  --college-text-dark: #1e293b;
  --topbar-h: 34px;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

#page-wrapper {
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* Hide theme toggle completely */
.theme-toggle-wrapper,
#theme-toggle {
  display: none !important;
}

/* Responsive Table Styling */
table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse !important;
  margin: 1.5rem 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

table thead {
  display: table-header-group !important;
}

table tbody {
  display: table-row-group !important;
}

table tr {
  display: table-row !important;
}

table th,
table td {
  display: table-cell !important;
  padding: 12px 16px !important;
  white-space: nowrap !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.92rem;
  line-height: 1.5;
}

table th {
  background: var(--college-maroon) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-align: left;
  letter-spacing: 0.3px;
}

table td {
  background: #ffffff;
  color: #334155;
}

table tr:nth-child(even) td {
  background-color: #f8fafc !important;
}

table tr:hover td {
  background-color: #fefce8 !important;
}

/* Leader Profile Cards Side-by-Side */
.leader-profile-card {
  display: flex !important;
  gap: 24px !important;
  align-items: flex-start !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin: 24px 0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

.leader-img-col {
  flex-shrink: 0 !important;
  width: 180px !important;
}

.leader-img-col img {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  display: block !important;
}

.leader-text-col {
  flex: 1 !important;
}

.leader-text-col h4 {
  color: var(--college-maroon) !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.leader-text-col blockquote {
  margin: 0 !important;
  padding-left: 16px !important;
  border-left: 4px solid var(--college-gold) !important;
  font-style: italic !important;
  color: #334155 !important;
  line-height: 1.7 !important;
}

.leader-text-col footer {
  margin-top: 12px !important;
  font-style: normal !important;
  color: var(--college-maroon) !important;
  font-weight: 700 !important;
}

@media (max-width: 680px) {
  .leader-profile-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .leader-img-col {
    width: 140px !important;
  }
  .leader-text-col blockquote {
    border-left: none !important;
    border-top: 2px solid var(--college-gold) !important;
    padding-top: 12px !important;
    padding-left: 0 !important;
  }
}

/* 1. TOP BAR */
.college-topbar {
  background-color: var(--college-maroon-dark) !important;
  color: #f8fafc !important;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--college-gold);
  position: relative;
  z-index: 101;
  box-sizing: border-box;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.topbar-social {
  display: flex;
  gap: 14px;
}

.topbar-social a {
  color: #e2e8f0 !important;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}

.topbar-social a:hover {
  color: var(--college-gold-accent) !important;
  transform: translateY(-1px);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-links a {
  color: #f1f5f9 !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.82rem;
}

.topbar-links a:hover {
  color: var(--college-gold-accent) !important;
}

.topbar-links .divider {
  color: rgba(255, 255, 255, 0.4);
}

/* 2. BRANDING BAR (DESKTOP) */
.college-brandbar {
  background-color: #ffffff !important;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 100;
}

.brandbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
}

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

.brand-logo img,
.brand-logo svg {
  height: 68px;
  width: auto;
  max-width: 85px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-title-hi {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--college-maroon);
  margin: 0;
  line-height: 1.2;
}

.brand-title-en {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin: 3px 0 0 0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.affiliation-badge {
  color: #d97706;
  font-weight: 700;
  font-size: 0.72rem;
  display: block;
  margin-top: 2px;
}

.brandbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-item {
  text-align: left;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-val a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--college-maroon);
  text-decoration: none;
}

.info-val a:hover {
  color: var(--college-gold);
}

.btn-prospectus {
  display: inline-block;
  background: linear-gradient(135deg, var(--college-gold-light), var(--college-gold)) !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-prospectus:hover {
  background: linear-gradient(135deg, var(--college-gold-accent), var(--college-gold-light)) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.4);
}

/* 3. SOLID NAVIGATION BAR (DESKTOP) */
#header,
header.college-navbar-section {
  background-color: var(--college-maroon) !important;
  background: var(--college-maroon) !important;
  padding: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  position: relative !important;
  z-index: 99 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.college-navbar-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.college-navbar-section .navbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
  width: 100%;
}

.college-navbar-section .desktop-menu {
  flex: 1;
  display: flex;
  align-items: center;
}

.college-navbar-section .dropmenu {
  width: 100%;
}

.college-navbar-section ul.navigation {
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100%;
  flex-wrap: nowrap !important;
  background: transparent !important;
}

.college-navbar-section ul.navigation>li {
  margin: 0 !important;
  padding: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: transparent !important;
  flex-shrink: 0 !important;
}

.college-navbar-section ul.navigation>li:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.college-navbar-section ul.navigation>li>a {
  display: flex !important;
  align-items: center !important;
  padding: 13px 14px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.college-navbar-section ul.navigation>li>a:hover,
.college-navbar-section ul.navigation>li.active>a {
  background-color: var(--college-maroon-dark) !important;
  color: var(--college-gold-accent) !important;
  box-shadow: inset 0 -3px 0 var(--college-gold-accent) !important;
}

/* 4. MOBILE HAMBURGER BUTTON (IN BRANDBAR) */
.mobile-menu,
.college-brandbar .mobile-menu {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 0 0 auto !important;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: none !important;
  filter: none !important;
}

.button_container {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 28px !important;
  height: 20px !important;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.button_container span {
  background: var(--college-maroon) !important;
  border-radius: 2px !important;
  height: 3px !important;
  width: 100% !important;
  transition: all 0.3s ease;
  display: block;
  box-shadow: none !important;
  filter: none !important;
}

.button_container.active span.top {
  transform: translateY(8px) rotate(45deg);
  background: var(--college-gold-accent) !important;
}

.button_container.active span.middle {
  opacity: 0;
}

.button_container.active span.bottom {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--college-gold-accent) !important;
}

/* Overlay Fullscreen Menu */
.overlay {
  position: fixed !important;
  top: var(--topbar-h) !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - var(--topbar-h)) !important;
  background: rgba(63, 9, 17, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  z-index: 1001 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

.overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
}

.overlay-header {
  width: 100%;
  padding: 8px 1rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-sizing: border-box;
  background: var(--college-maroon-dark) !important;
  flex-shrink: 0;
}

.mobile-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

.mobile-logo img,
.mobile-logo svg {
  height: 40px !important;
  width: auto !important;
  max-width: 45px !important;
  object-fit: contain;
  display: block;
}

.mobile-logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.mobile-logo-title-hi {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.2;
}

.mobile-logo-title-en {
  color: #cbd5e1 !important;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-top: 1px;
}

.overlay-close-btn {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.4rem !important;
  line-height: 1 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: color 0.2s ease, transform 0.2s ease;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.overlay-close-btn:hover {
  color: var(--college-gold-accent) !important;
  transform: scale(1.1);
}

.overlay-menu {
  width: 100%;
  flex: 1;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 12px 1rem 40px !important;
  box-sizing: border-box;
}

.overlay-menu ul.navigation {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay-menu ul.navigation>li>a {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  text-align: center;
}

.overlay-menu ul.navigation>li>a:hover,
.overlay-menu ul.navigation>li.active>a {
  background: var(--college-gold);
  color: #0f172a !important;
  border-color: var(--college-gold);
}

/* 5. COMPACT MOBILE LAYOUT (Under 860px) */
@media (max-width: 860px) {
  :root {
    --topbar-h: 32px;
  }

  #header,
  header.college-navbar-section {
    display: none !important;
  }

  .college-topbar {
    padding: 5px 0;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
  }

  .topbar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
  }

  .topbar-links a {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .topbar-links .divider,
  .topbar-links a[href^="tel:"] {
    display: none;
  }

  .college-brandbar {
    padding: 8px 0;
  }

  .brandbar-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 1rem;
  }

  .brandbar-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: left !important;
    flex: 1;
  }

  .brand-logo img,
  .brand-logo svg {
    height: 40px;
    max-width: 45px;
  }

  .brand-title-hi {
    font-size: 0.98rem;
  }

  .brand-title-en {
    font-size: 0.65rem;
    margin: 1px 0 0 0;
  }

  .affiliation-badge {
    display: none;
  }

  .brandbar-right {
    display: none !important;
  }

  .college-brandbar .mobile-menu {
    display: flex !important;
    margin-left: 10px !important;
    flex-shrink: 0;
  }

  .overlay {
    top: 34px !important;
    height: calc(100vh - 34px) !important;
  }
}

/* ==========================================================================
   Universal Lightbox & Image Dimensions Preservation
   ========================================================================== */

/* Universal clickable image styles */
.content-item img,
.gallery-card img,
.img-lightbox-trigger,
.media-card img {
  cursor: zoom-in !important;
  transition: transform 0.25s ease, filter 0.2s ease;
}

.content-item img:hover,
.gallery-card img:hover,
.img-lightbox-trigger:hover,
.media-card img:hover {
  filter: brightness(1.05);
}

/* Responsive Pure Image Grid (Clean Rounded Corners, No Card Box, No Title) */
.media-card {
  background: transparent !important;
  border-radius: 12px !important;
  border: none !important;
  overflow: hidden !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card-img-wrap {
  width: 100% !important;
  height: 200px !important;
  background: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
  padding: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 12px !important;
  transition: transform 0.3s ease;
}

.media-card-img-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16) !important;
}

.media-card-img-wrap:hover img {
  transform: scale(1.04);
}

/* Hide card captions per user request */
.media-card-caption {
  display: none !important;
}

/* Gallery cards borderless clean rounded design */
.gallery-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.gallery-card > div:first-child {
  height: 210px !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card > div:first-child:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16) !important;
}

.gallery-card img {
  border-radius: 12px !important;
}

.gallery-card > div:last-child {
  display: none !important;
}

/* Lightbox Modal Structure */
.shaildevi-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  user-select: none;
  touch-action: none;
}

.shaildevi-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.shaildevi-lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shaildevi-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.shaildevi-lightbox.active .shaildevi-lightbox-img {
  transform: scale(1);
}

.shaildevi-lightbox-caption {
  margin-top: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  max-width: 800px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.shaildevi-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100000;
}

.shaildevi-lightbox-close:hover {
  background: var(--college-maroon);
  color: #ffffff;
  transform: scale(1.1);
}

.shaildevi-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100000;
}

.shaildevi-lightbox-nav:hover {
  background: var(--college-maroon);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.shaildevi-lightbox-prev {
  left: 20px;
}

.shaildevi-lightbox-next {
  right: 20px;
}

@media (max-width: 640px) {
  .shaildevi-lightbox-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .shaildevi-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .shaildevi-lightbox-prev {
    left: 8px;
  }
  .shaildevi-lightbox-next {
    right: 8px;
  }
}

/* ==========================================================================
   Typography - Plus Jakarta Sans with relaxed, readable letter-spacing
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.hero-title,
.slider-caption h1,
.slider-caption h2,
.trade-card h3,
.trade-card h4,
.trade-card-header,
.section-title,
.header-menu a,
#header nav a,
.navigation a,
.button,
.btn {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: 0.015em;
}

h1, .hero-title, .slider-caption h1 {
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

#header nav a, .header-menu a {
  letter-spacing: 0.035em;
  font-weight: 600;
}