/* Apex header navigation component */
.apex-header-nav-component {
  gap: 1rem;
}

.apex-header-nav-component .te-menu {
  flex: 1 1 auto;
  min-width: 0;
}

.apex-header-nav-component .te-main-menu > ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
}

.apex-header-nav-component .te-main-menu > ul > li {
  flex: 0 0 auto;
}

.apex-header-nav-component .te-main-menu > ul > li > a {
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 14px !important;
  color: #C41E3A !important;
}

.apex-header-nav-component .te-main-menu > ul > li > a:hover,
.apex-header-nav-component .te-main-menu > ul > li.te-active > a {
  color: #9E1830 !important;
}

.apex-header-nav-component .te-main-menu > ul > li.te-active > a {
  font-weight: 700;
}

/* Navy hero header — white tabs, red on hover/active */
.header-area.style-1.background-gray-light .apex-header-nav-component .te-main-menu > ul > li > a {
  color: #ffffff !important;
}

.header-area.style-1.background-gray-light .apex-header-nav-component .te-main-menu > ul > li > a:hover,
.header-area.style-1.background-gray-light .apex-header-nav-component .te-main-menu > ul > li.te-active > a {
  color: #C41E3A !important;
}

.apex-header-nav-component .te-header-btn {
  flex: 0 0 auto;
}

.apex-header-nav-component .te-quote-btn {
  white-space: nowrap;
}

.apex-header-nav-component .te-mobile-menu-bar {
  flex: 0 0 auto;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .apex-header-nav-component .te-main-menu > ul > li > a {
    font-size: 14px;
  }

  .apex-header-nav-component .te-main-menu > ul {
    gap: 0.25rem 0.85rem;
  }
}

@media only screen and (max-width: 1199px) {
  .apex-header-nav-component .te-menu {
    display: none !important;
  }
}

/* Keep nav styling consistent if sticky class is present */
.header-area.style-1 .te-header-menu-area:has(.apex-site-header__row).te-sticky_menu .apex-header-nav-component .te-main-menu > ul > li > a {
  padding: 0;
}

.header-area.style-1 .te-header-menu-area:has(.apex-site-header__row).te-sticky_menu .apex-header-nav-component .te-main-menu > ul > li.te-active > a:after {
  display: none;
}
