.site-header {
  background-color: #fff;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  width: 100%;
  transition: box-shadow 0.2s;
}
.header-nav-link {
  color: var(--secondary-color);
}
.header-nav-link:hover {
  color: var(--primary-color) !important;
}
.site-header.sticky {
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.13);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list a,
.mega-toggle,
.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.mega-section {
  display: none;
}

.mega-section.open {
  display: block;
}

.mega-toggle .fa-caret-down {
  transition: transform 0.3s;
}

.mega-toggle[aria-expanded="true"] .fa-caret-down {
  transform: rotate(180deg);
}

.tabs-container {
  max-width: 900px;
  margin: auto;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Mobile arrow for mega tabs */
@media (min-width: 769px) {
  .mobile-arrow {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-arrow {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 1em;
    margin-left: 8px;
    vertical-align: middle;
  }

  .tab-list li.open .mobile-arrow {
    transform: rotate(180deg);
  }
}

@media (min-width: 769px) {
  .tabs-container {
    display: flex;
  }

  .tab-list {
    list-style: none;
    width: 200px;
    margin: 0;
    padding: 0;
    border-right: 1px solid #ccc;
  }

  .tab-list li {
    padding: 0.75rem;
    background: #eee;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
  }

  .header-tab-pane {
    flex: 1;
    padding: 1rem;
  }

  .header-tab-content {
    display: none;
  }

  .header-tab-content.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .tab-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .tab-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #bbb;
    cursor: pointer;
    font-weight: bold;
  }

  .header-tab-content {
    display: none;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #ccc;
  }

  .tab-list li.open + .header-tab-content {
    display: block;
  }

  .header-tab-pane {
    display: none;
  }
}

@media (min-width: 992px) {
  .offcanvas {
    display: none !important;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
  }

  .navbar .nav-item.position-relative {
    position: static;
  }

  .mega-section {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 9999;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: none;
    padding: 0;
  }

  .mega-section.open {
    display: block;
  }

  .mega-section .tabs-container {
    margin: 0 auto;
    max-width: 1140px;
    width: 100%;
    background: #fff;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    border: 1px solid #e3e6ed;
    border-top: none;
    display: flex;
  }

  .tab-list {
    /* background: #f6f9fc; */
    border-right: 0px;
    min-width: 200px;
    max-width: 240px;
  }

  .tab-list li {
    background: #fff0e0;
    color: #222;
    border-bottom: 1px solid #e3e6ed;
    transition: background 0.2s, color 0.2s;
  }

  .tab-list li.active,
  .tab-list li:hover {
    background-color: #fff;
    /* border-left-color: #ffa366; */
    color: var(--primary-color);
  }
  .tab-list {
    background: #fff0e0;
  }
  .header-tab-pane {
    background-color: #fff;
    flex: 1;
    /* padding: 1.5rem 2rem; */
    color: #222;
  }
  .hov-light:hover {
    background-color: #fff0e0;
    border-radius: 20px;
  }
  .header-tab-content {
    display: none;
  }

  .header-tab-content.active {
    display: block;
  }
}

/* Dropdown styles */
.dropdown-menu {
  width: max-content;
  background: #fff;
  border: 1px solid #e3e6ed;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  left: 0;
  top: 100%;
  margin-top: 0.2rem;
  display: none;
  z-index: 1002;
  padding: 0.5rem 0;
}

.dropdown-menu.show {
  display: block;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
  display: block;
}

.dropdown .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  color: #222 !important;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  background: none;
}

.dropdown-menu a:hover {
  background: #f4f6fb;
  color: var(--secondary-color) !important;
}

/* Remove default Bootstrap caret for dropdown-toggle */
.dropdown-toggle::after {
  display: none !important;
}

.header-tab-pane ul li:hover {
  color: var(--primary-color);
  background-color: #ffc98fff;
  padding-left: 6px;
}

.header-tab-pane ul li {
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
  font-weight: 500;
}

.menu-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  /* Uses text color */
  transition: fill 0.3s ease;
}