/* ==========================================================================
   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;
}

/* 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;
  }
}