.header-logo-link {
  display: none; /* Hide logo from desktop header by default */
}
@media (min-width: 1025px) { /* Show logo on desktop */
  .header-logo-link { display: block; line-height: 0; }
}
.menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 120px;
  padding-top: 10px; /* Pushes content down slightly */
}
.menu-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}
.menu-wrapper ul {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-wrapper ul li a {
  position: relative;
  text-decoration: none;
}
.menu-wrapper ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: #fff;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-wrapper ul li a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.menu-wrapper ul li a.active {
  font-weight: 700;
}
.menu-wrapper ul li a.active::after {
  opacity: 1;
  transform: scaleX(1);
}
@media (max-width: 768px) {
  .header-actions {
    top: 12px;
    right: 16px;
  }
  .profile-icon {
    font-size: 1.6rem !important;
    position: absolute;
    top: 18px;
    right: 60px; /* Adjust to position it left of the hamburger */
  }
  .menu-bar {
    min-height: 70px;
  }
}

/* Universal Header Style Enforcement */
header, .menu-bar {
  background:rgb(0, 0, 0) !important;
  color:rgb(255, 255, 255) !important;
  border-bottom: 1px solid #111111 !important;
}
.menu-wrapper ul li a,
.menu-wrapper ul li span,
.menu-wrapper ul li .dropdown-toggle {
  color:rgb(0, 0, 0);
  background: transparent;
}
.menu-wrapper ul li a:hover,
.menu-wrapper ul li a:hover i,
.menu-wrapper ul li .dropdown-toggle:hover,
.menu-wrapper ul li .dropdown-toggle:hover i {
  color:rgb(0, 0, 0) !important; /* Keep all nav text and icons white on hover */
}

/* --- Enhanced Mobile Navigation Modal --- */
.nav-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  box-shadow: 8px 0 40px rgba(0,0,0,0.4);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-modal.show {
  transform: translateX(0);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  z-index: 100001;
}

.mobile-nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.nav-modal-header {
  background: linear-gradient(135deg, #007dd1 0%, #0056b3 100%);
  padding: 30px 20px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 125, 209, 0.3);
}

.welcome-section {
  margin-bottom: 15px;
}

.welcome-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 400;
}

.mobile-nav-logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.mobile-nav-logo-link:hover {
  transform: scale(1.05);
}

.mobile-nav-logo {
  display: block;
  width: 100px;
  height: auto;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.nav-modal-content {
  padding: 25px 20px;
  flex-grow: 1;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(45,45,45,0.95) 0%, rgba(26,26,26,0.95) 100%);
}

.nav-modal .close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100003;
}

.nav-modal .close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mobile-nav-links {
  margin-top: 20px;
}

.mobile-nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links ul li {
  margin-bottom: 12px;
}

.mobile-nav-links ul li a,
.mobile-nav-links ul li .nav-modal-section-title {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.mobile-nav-links ul li a::before,
.mobile-nav-links ul li .nav-modal-section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-nav-links ul li a:hover::before,
.mobile-nav-links ul li .nav-modal-section-title:hover::before {
  left: 100%;
}

.mobile-nav-links ul li a:hover,
.mobile-nav-links ul li .nav-modal-section-title:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateX(8px) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.mobile-nav-links ul li a.active {
  background: linear-gradient(135deg, #007dd1 0%, #0056b3 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 125, 209, 0.4);
}

.nav-modal-section-title {
  font-size: 0.85rem;
  color: #bbb;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 30px;
  padding: 16px 20px 8px 20px;
  cursor: pointer;
}

.nav-icon {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  color: #007dd1;
}

.mobile-nav-links ul li a .nav-icon,
.mobile-nav-links ul li .nav-modal-section-title .nav-icon {
  color: #007dd1;
}

.mobile-nav-links ul li a:hover .nav-icon,
.mobile-nav-links ul li .nav-modal-section-title:hover .nav-icon {
  color: #fff;
}

.mobile-nav-links ul li a.active .nav-icon {
  color: #fff;
}

.dropdown-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.mobile-nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-submenu li a {
  padding: 12px 20px 12px 40px;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.mobile-submenu li a:hover {
  background: rgba(255,255,255,0.1);
  transform: none;
  padding-left: 50px;
}

.mobile-submenu li a.active {
  background: rgba(0, 125, 209, 0.3);
  color: #fff;
}

/* Scrollbar styling */
.nav-modal-content::-webkit-scrollbar {
  width: 6px;
}

.nav-modal-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.nav-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.nav-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}
