header {
  padding: 16px 0;
  width:100%;
  z-index: 10;
  position: fixed;
  top:0;
  left: 0;
  transition: .5s;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
}
header.scroll {
  padding: 8px 0;
}
header .content-wrapper{
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .logo img {
  width: 189px;
  transition: .5s;
}
header .logo a {
  display: inline-block;
  padding-top: 0.3125rem;
}
header.scroll .logo img {
  width: 150px;
}

/* ====== Navigation Styles ====== */
header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

header nav ul li {
  position: relative;
  line-height: 40px;
  margin-bottom: 0;
}

header nav ul li a {
  display: block;
  text-decoration: none;
  color: #1b1533;
  font-size: 18px;
  padding: 0 12px;
  min-width: 85px;
  box-sizing: border-box;
  transition: transition: color .15s ease-in-out, 
}

header nav ul li a.active {
  color: #ff6a00;
  font-style: italic;
}
header nav ul li.hs-item-has-children > a {
  position: relative;
  display: inline-block;
}
header nav ul li.hs-menu-item.hs-menu-depth-1:hover > a {
  color: #ff6a00;
  font-style: italic;
}

header nav ul li.hs-menu-item.hs-menu-depth-1.hs-item-has-children {
  padding-right: 6px;
  margin-right: 12px;
}

header nav .hs-menu-children-wrapper li:hover a {
  background-color: #f8f9fa;
}

header nav ul li i {
  position: absolute;
  right: 0;
  top: 9px;
  font-size: 12px;
  margin-left: 6px;
}

/* ====== Dropdown Styles ====== */
header nav .hs-item-has-children > ul {
  position: absolute;
  display: none;
  top: 40px;
  right: 0;
  left: auto;
  opacity: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #0000002d;
  padding: 0.5rem 0;
  border-radius: 0.375rem;
}

header nav ul li.hs-item-has-children:hover > ul.hs-menu-children-wrapper {
  opacity: 1;
  display: block;
}

header nav ul li.hs-item-has-children:hover > ul.hs-menu-children-wrapper a {
  display: block;
  width: 100%;
  padding: 0.25rem 1rem;
  font-weight: 400;
  color: #212529;
  white-space: nowrap;
  border: 0;
}
header nav ul li.hs-item-has-children > ul li a {
  position: relative;
  font-size: 16px;
  line-height: 25px;
  font-weight: 400;
}
header nav ul li.hs-item-has-children i.fa-chevron-down {
  top: 50%;
  right:-5px;
  transform: translateY(-50%);
}

/* ====== Mobile Menu Toggle ====== */
header .menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

header .menu-toggle span {
  width: 25px;
  height: 3px;
  background: #16122b;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ====== Responsive ====== */
@media (max-width: 1920px) {
  header .content-wrapper{
    max-width: 100%;
  }
}
@media (max-width: 1380px) {
  header .content-wrapper {
    padding: 0 30px;
  }
}

@media (max-width: 1024px) {
  header .content-wrapper {
    padding: 0 20px;
  }
}
@media (max-width: 991px) { 
  header nav {
    position: absolute;
    top: 72px;
    right: 0;
    width: 100%;
    background: #fafafa;
    display: none;
    text-align: left;
    padding: 0 12px;
    left: 0;
  }
  header nav#navMenu > span {
    width: 100%;
  }
  header nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  header nav ul li {
    width: 100%;
  }
  header nav .hs-item-has-children > ul {
    position: relative;
    top: 0;
    left: 10px;
  }
  header nav ul li.hs-menu-item.hs-menu-depth-1.hs-item-has-children {
    padding-right: 0;
    margin-right: 0;
  }

  header nav ul li.hs-item-has-children i.fa-chevron-down {
    top: 15px;
    right: 15px;
    font-size: 16px;
    transform: translateY(0);
  }
  header .menu-toggle {
    display: flex;
  }

  header nav.active {
    display: flex;
  }

  header nav ul li ul.submenu .hs-menu-children-wrapper {
    display: block;
  }

  header div#menuToggle {
    width: 45px;
    height: 35px;
    padding: 0px;
    border-radius: 3px;
    text-align: center;
    box-sizing: border-box;
    display: inline-block;
    background-size: 26px;
    background-position: center;
    border: 1px solid #000000a6;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

}

@media (max-width: 767px) {
  header .logo img {
    width: 150px;
  }
}

header nav ul li.active > a,
header nav ul li.hs-item-has-children.active > a {
  color: #ff6a00;
  font-style: italic;
}
header nav ul li.hs-item-has-children.active i.fa-chevron-down{
  color: #ff6a00;
}
header nav ul li.hs-menu-depth-2.active > a {
  color: #ff6a00;
  background-color: #f8f9fa;
}
li.active > a {
  color: #ff6600;
  font-weight: 400;
}
header nav li.hs-menu-depth-1.active > a,
header nav li.hs-menu-depth-1 > a.active,
header nav li.hs-menu-depth-1.active > span > a {
  color: #ff6a00;
  font-style: italic;
}

header nav li.hs-item-has-children.active > a {
  color: #ff6a00;
  font-style: italic;
}

/* Submenu active */
header nav li.hs-menu-depth-2.active > a {
  color: #ff6a00;
  background-color: #f8f9fa;
}
