* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100% !important;
  padding: 1% 0;
}

.navigation-link {
  display: flex;
  align-items: center;
}

/*----  search---- */
/* Icon trigger styling */
.search1 {
  cursor: pointer;
  position: relative;
  z-index: 2000;
  width: 50px;
  display: flex;
  justify-content: end;
  align-items: center;
}

.search1 .fa-solid {
  font-weight: 900;
  color: #fff;
  font-size: 17px;
}

/* Search overlay (hidden by default) */
.search-overlay {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: #70707082;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

/* Popup box */
.search-popup {
  background: #fff;
  padding: 38px 31px;
  position: relative;
  display: inline-block;
  width: 40%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: popupFade 0.3s ease-in-out;
}

/* Close (×) button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #233e81;
}

/* Form styles */
.search-popup input[type="text"] {
  width: 82%;
  padding: 10px;
  font-size: 16px;
  margin-right: 10px;
  border: 1px solid #ccc;
}

.search-popup button[type="submit"] {
  padding: 12px 25px;
  font-size: 16px;
  color: white;
  border: none;
  background: linear-gradient(45deg, #20397a, #4884e1);
  cursor: pointer;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/*--- search---- */
/* Sticky class applied on scroll */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #fff;
  /* or your background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* optional shadow for effect */
  transition: all 0.3s ease-in-out;
}

/* Main Navigation */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav ul li {
  position: relative;
  margin-right: 0px !important;
}

nav ul li a {
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  transition: all .2s linear;
}

nav ul li a::before {
  transition: all .2s linear;

}

nav ul li a::before {
  content: "";
  width: 100%;
  height: 3px;
  background-color: #fff;
  color: #fff;
  position: absolute;
  left: 0px;
  bottom: -1px;
  opacity: 0;
  transform: translate(0%, 0%);
  transition: all .2s linear;
}

nav ul li:hover>a::before {
  opacity: 1;
}

nav ul li:hover>a {
  color: #fff;
}

nav ul li.active>a {
  color: #fff;
}

/* Mega Menu Layout */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: auto;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 999;
  flex-wrap: nowrap;
  /* 🚨 Important: keep columns in a row */
  gap: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translate(-45%, 0%);
  ;
  overflow-x: auto;
  /* Optional: scroll if too many columns */
}

.mega-menu.single-column {
  left: 0 !important;
  transform: none !important;
  width: auto;
}

/* Mega Columns */
.mega-column {
  flex: 1 1 0;
  min-width: 225px;
}

/* Show on hover (desktop) */
.has-mega-menu:hover>.mega-menu {
  display: flex;
  opacity: 1;
}

.mega-column h2 {
  font-size: 18px;
  text-decoration: none;
  color: #000;
  font-weight: 400;
font-family: "Open Sans", sans-serif;

  position: relative;
  border-bottom: 1px solid #ccc;
  transition: all 0.2s linear;
  padding-bottom: 5px;
  margin-bottom: 3%;
}

/* Product Card */
/* Product Card */
.product-card {
  display: block;
  padding: 8px 0px;
  margin-bottom: 6px;
  font-size: 15px;
font-family: "Open Sans", sans-serif;

  text-decoration: none;
  color: #555;
  text-transform: capitalize;
  font-weight: 500;
  line-height: 140% !important;
  border-bottom: 1px solid #cecece;
  text-decoration: none;
  transition: background 0.3s ease;
}

.product-card:last-of-type {
  border-bottom: none;
}

.product-card:hover {
  color: #6674ba;
}

/* Toggle Traditional STB */
.toggle-traditional {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 5px;
  margin-bottom: 6px;
  cursor: pointer;
font-family: "Open Sans", sans-serif;

  font-weight: 500;
}

.toggle-icon {
  margin-left: 10px;
}

/* Traditional Submenu */
#traditional-submenu {
  padding-left: 10px;
  margin: 6px 0;
}

#traditional-submenu a {
  display: block;
  padding: 6px 10px;
  background: #fff;
  color: #444;
  font-size: 14px;
  border-left: 3px solid #ccc;
  margin-bottom: 4px;
  text-decoration: none;
}

/* Hide by default */
.display-none {
  display: none;
}

/*----sticky--nav*/
.fix_nav {
  position: relative;
  width: 100%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.fix_nav.sticky-active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  /* Sticky background */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Menu links default */
nav ul li a {
  color: #fff;
  transition: color 0.3s ease;
}

/* When scrolled */
nav ul li a.scrolled {
  color: #000;
  /* Text color after sticky */
}

.search .fa-solid {
     color: #fff;
    transition: color 0.3s ease;
    margin-left: 45px;
}
.search .fa-solid:hover {
    cursor: pointer;
}


.search .fa-solid.scrolled {
  color: #000;
}

/* Optional: style the .burger-toggle and icons on sticky if needed */


/* ------------------------------------------- */
/* MOBILE RESPONSIVE STYLES */
/* ------------------------------------------- */
@media (max-width: 1600px) {
  .search-popup input[type="text"] {
    width: 75%;
  }
}

@media (max-width: 1300px) {
  .search-popup {
    width: 60%;
  }
}

@media screen and (max-width: 991px) {
  nav ul li {
    border-bottom: 1px solid #cecece;
  }

  nav ul li:last-child {
    border-bottom: none !important;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
  }

  .mega-menu {
    position: static;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 0 15px;
    box-shadow: none;
    border-radius: 0;
    /*
    background: #fdfdfd;*/
  }

  .has-mega-menu.active .mega-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .product-card,
  .toggle-traditional {
    width: 100%;
  }

}

.hidden {
  display: none;
}

.submenu-items a {
  color: #555;
  font-size: 15px;
  padding-left: 15px;
  display: block;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding: 8px 15px;
}

.submenu-items a:hover {
  color: #0073aa;
}

/* Optional Scrollbar Styling */
.mega-menu::-webkit-scrollbar {
  width: 6px;
}

.mega-menu::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 4px;
}

/* Burger Icon */
/* Container for header */
.site-header {
  display: flex;
  justify-content: end;
  align-items: center;
  position: relative;
  z-index: 1002;
}

/* Burger icon base */
.burger-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
  width: 30px;
  color: #fff;
  height: 24px;
  position: absolute;
  top: 15px;
  right: 35px;
  z-index: 1003;
  transition: transform 0.3s ease;
}

.burger-toggle span {
  height: 3px;
  width: 100%;
  background: #fff;
  margin-bottom: 5px;
  border-radius: 2px;
  transition: 0.3s;
}

.burger-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #000;
}

.burger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: #000;
}

/* Nav menu */
.menu-list {
  display: flex;
  gap: 0px;
  list-style: none;
  padding: 0;
  justify-content: center;
  align-items: center;
  gap: 45px;

}

/* Responsive Styles */
@media (max-width: 990px) {
    .burger-toggle {
      display: flex;
    }

    .menu-list {
      position: fixed;
      top: 0;
      right: -100%;
      width: 90%;
      height: 100vh;
      background-color: #fff;
      flex-direction: column;
      align-items: flex-start;
      padding: 60px 20px 20px;
      box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
      z-index: 1001;
      transition: right 0.4s ease;
      overflow-y: auto;
    }

    .menu-list.active {
      right: 0;
    }

    .menu-list li {
      width: 100%;
    }

    /* Overlay */
    .menu-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: 1000;
    }

    .menu-overlay.active {
      display: block;
    }


    .search {
      position: absolute;
      top: 15px;
      right: 90px;
    }

    .mega-column .product-card:last-child {
      border-bottom: none !important;
    }

    .menu-list {
      justify-content: start;
    }

    nav ul li a {
      color: #555 !important;
    }

    nav ul li:hover>a {
      color: #0073aa !important;
    }

    .mega-menu {
      transform: none;
      padding: 15px 15px;
    }

    .search-popup input[type="text"] {
      width: 245px;
    }

    .search-popup {
      width: 65%;
      padding: 30px 18px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

}

@media (max-width: 600px) {
  .search-popup {
    width: 80%;
  }
}

@media (max-width: 500px) {
  .search-popup button[type="submit"] {
    margin-top: 10px;
  }

  .search-popup input[type="text"] {
    width: 95%;
  }
}