/* Mobile Menu Unified Styles (header1 & header2)
   Centralizes structural styles; theming remains in header-specific CSS. */

/* Toggle buttons (header1: .mobile-menu-toggle, header2: .mobile-menu-btn) */
.mobile-menu-toggle, .mobile-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

/* Hamburger lines (header1) - Red and Thick */
.mobile-menu-toggle .hamburger-line {
  width: 24px;
  height: 3px;
  background: #dc3545 !important;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(220, 53, 69, 0.3);
}

/* Burger lines (header2) - Red and Thick */
.mobile-menu-btn .burger-line {
  width: 24px;
  height: 3px;
  background: #dc3545 !important;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(220, 53, 69, 0.3);
}

/* Hover effects for both */
.mobile-menu-toggle:hover .hamburger-line,
.mobile-menu-btn:hover .burger-line {
  background: #c82333 !important;
  transform: scaleY(1.2);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.5);
}

/* Overlay */
#mobileNavOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: none;
}
#mobileNavOverlay.show {
  opacity: 1;
  visibility: visible;
  display: block;
}

/* Sliding drawer */
#mobileNavMenu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85vw;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
#mobileNavMenu.show { left: 0; }

/* Drawer header (neutral base) */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
}

/* Close buttons - Red Theme */
.close-menu-btn, .close-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 2px solid #dc3545;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: #dc3545;
  transition: all 0.3s ease;
}

.close-menu-btn:hover, .close-nav-btn:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

/* Menu items (applies to both header1 and header2) - Red Theme */
#mobileNavMenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid #f0f2f5;
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
}

#mobileNavMenu a:hover {
  background: #dc3545;
  color: white;
  border-left: 4px solid #c82333;
}

#mobileNavMenu a i { 
  width: 20px; 
  text-align: center; 
  font-size: 16px;
  color: #dc3545;
  transition: color 0.3s ease;
}

#mobileNavMenu a:hover i {
  color: white;
}

/* Main menu items with submenu indicator */
#mobileNavMenu .has-submenu > a {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#mobileNavMenu .has-submenu > a i {
  color: white;
}

/* Submenu items */
#mobileNavMenu .submenu a {
  padding-left: 50px;
  background: #f8f9fa;
  color: #666;
  font-weight: 500;
  border-left: 3px solid #dc3545;
}

#mobileNavMenu .submenu a:hover {
  background: #dc3545;
  color: white;
  border-left-color: #c82333;
}

/* Safe mobile visibility helpers (keeps desktop behavior intact) */
@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu-btn { display: none !important; }
}

