/* Header */
.custom-header {
  background: #fff;
  padding: 0px 2rem;
  height: 85px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0px 10px 19px -12px rgba(0, 0, 0, 0.16);
}
.custom-header-container {
  width: 100%;
  max-width: 85em;
  margin: auto;
}
.nav-items {
  display: flex;
}
.nav-item {
  padding: 10px 20px;
  list-style: none;
  position: relative;
  cursor: pointer;
}
.nav-link {
  text-decoration: none;
  color: #1b1b1b;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.nav-link svg {
  margin-left: 5px;
}

.usa-menu-btn {
  background-color: #fff !important;
  color: #474747 !important;
  font-size: 20px !important;
}
a:focus,
button:focus {
  outline: none !important;
  cursor: pointer;
}

.submenu-container a {
  font-size: 16px;
}
.nav-item:hover .submenu-container {
  display: block;
}
.submenu-item {
  width: 100%;
  min-width: max-content;
  padding: 10px 20px;
  border-bottom: 1px solid #e5ecf4;
}
.submenu-item svg {
  margin-right: 10px;
}
.header-overlay {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  position: fixed;
  background: #000;
  opacity: 0.7;
  transition: opacity 0.15s ease-in-out;
  z-index: 400;
  display: none;
}
.nav-close {
  display: none;
}
.header-logo {
  width: 150px;
}
.nav-item {
  -webkit-tap-highlight-color: transparent;
}
/* Allow submenu to be tappable and highlight properly */
.submenu-item {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Optional: Highlight submenu on tap (iOS/Android safe) */
.submenu-item:active {
  background-color: #f0f0f0;
}
@media (min-width: 1024px) {
  .submenu-container {
    position: absolute;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0px 12px 15px 0px rgba(14, 92, 140, 0.2);
    display: none;
    padding: 15px 0px;
    z-index: 1;
  }
}
@media (max-width: 1023.9px) {
  .custom-header {
    padding: 0px 1rem;
    height: 70px;
  }
  .header-logo {
    width: 120px;
  }
  .nav-link {
    font-weight: 600;
    font-size: 16px;
  }
  .nav-items {
    right: 0;
    bottom: 0;
    top: 0;
    position: fixed;
    background: #fff;
    flex-direction: column;
    overflow-y: auto;
    padding: 1rem;
    width: 16rem;
    z-index: 500;
    margin: 0;
    display: none;
  }
  .submenu-container {
    display: block;
    position: relative;
    margin-top: 10px;
  }
  .submenu-item {
    border-bottom: none;
  }
  .submenu-item {
    padding: 10px;
  }
  .nav-close {
    display: block;
    width: 100%;
    text-align: right;
  }
  .nav-link {
    -webkit-tap-highlight-color: transparent;
  }

  .nav-link:focus,
  .nav-link:active {
    background: transparent;
    outline: none;
  }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  .header-logo {
    width: 120px;
  }
  .nav-items {
    padding: 0;
  }
  .nav-item {
    padding: 10px 15px;
  }
  .nav-link {
    font-size: 13px;
  }
}
