/* Base Header Styles */
.clean-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  z-index: 1001;
  flex-shrink: 0;
}

.logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation Styles */
.main-nav {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 30px;
  align-items: center;
}

.nav-links > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  color: #0E386F;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* Dropdown Styling */
.has-dropdown > .nav-link {
  padding-right: 18px;
  position: relative;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.has-dropdown:hover .dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.nav-link:hover {
  color: #a8c7ff;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1002;
  border-radius: 6px;
  list-style: none;
  margin-top: 5px;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: #0E386F;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #f2f6ff;
}

/* CTA Button */
.cta-button {
  background: #E07100;
  color: #1a1a1a;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  margin-left: 30px;
  white-space: nowrap;
}

.cta-button:hover {
  background: #ff9e2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #0E386F;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  margin-left: 15px;
  z-index: 1001;
  width: 30px;
  height: 30px;
  position: relative;
}

.hamburger-icon,
.close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .header-container {
    padding: 12px 20px;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: #ffffff;
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 25px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-link {
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dropdown-arrow {
    position: absolute;
    right: 0;
    font-size: 0;
  }

  .dropdown-arrow::before {
    content: "+";
    font-size: 16px;
  }

  .has-dropdown.active .dropdown-arrow::before {
    content: "-";
  }

/* Dropdown Mobile */
  .has-dropdown > .dropdown-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    min-width: unset !important;
    margin-top: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #ffffff;
    max-height: 200px; /* Added this line */
    overflow-y: auto; /* Added this line */
  }


  .has-dropdown.active > .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu li {
    width: 100%;
  }

  .dropdown-menu li a {
    font-size: 14px !important;
    padding: 10px 20px !important;
    display: block;
    white-space: normal !important;
    word-break: break-word;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .cta-button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.active ~ .menu-toggle .hamburger-icon {
    display: none;
  }

  .nav-links.active ~ .menu-toggle .close-icon {
    display: block;
  }
}

/* Desktop Nav Enhancements */
.nav-links > li {
  display: flex !important;
  align-items: center;
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 0;
  color: #0E386F;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #a8c7ff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0E386F;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.has-dropdown > .nav-link::after {
  content: "▼";
  font-size: 10px;
  margin-left: 4px;
  transform: translateY(1px);
  display: inline-block;
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
  display: block;
}
@media (max-width: 768px) {
  /* Make ENTIRE mobile menu scrollable */
  .nav-links {
    overflow-y: auto;       /* Enable scrolling */
    overscroll-behavior: contain; /* Prevent scroll bleed */
  }

  /* Make dropdown submenus scrollable */
  .has-dropdown > .dropdown-menu {
    max-height: 200px;      /* Limit height */
    overflow-y: auto;       /* Enable scrolling */
  }
}