header .header-navigation {
  max-width: 1440px;
  width: 100%;
  z-index: 1000;
  transition: 0.3s ease all;
}
header .header-navigation::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  height: 1px;
  background-color: var(--dark-blue-2);
  width: 100vw;
  pointer-events: none;
  transition: background-color 0.3s ease;
}
header .header-navigation.inactive-scroll::before {
  background-color: transparent;
}
header .header-navigation.hide-border::before {
  background-color: transparent ;
}
/* Parrent */
.header-navigation {
  position: fixed;
  display: flex;
  left: 50%;
  transform: translate(-50%, 0);
  height: 86px;
  max-width: 1440px;
  transition: 0.3s ease all;
  text-transform: uppercase;
  background-color: inherit;
  z-index: 1005;
}
.header-navigation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3);
}

.header-navigation > div > div > div > ul {
  display: flex;
  gap: 22px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Manrope";
  line-height: 22px;
  text-align: center;
}

/* Desktop header */
.header-desktop {
  width: 100%;
  padding: 0 100px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.header-desktop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
  background-color: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px)
}
/* Mobile header */
.header-mobile {
  display: none;    
  height: 100%;
  width: 100%;
  background-color: inherit;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  position: relative;
}
.header-mobile.bg-open {
  background-color: #0057ff;
  border-bottom: 1px solid #ffffff;
  overflow: hidden;
}
/* hover on titles */
.header-desktop li, .side-menu-wrapper li {
  transition: opacity 0.5s ease-in-out;
}
/* Side menu hidden by default */
.side-menu {
  display: block;
  position: absolute;
  overflow: hidden;
  z-index: 1050;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s ease;
  width: 100%;
  height: 666px;
  background-color: #0057ff;
  font-family: Manrope;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  left: 0;
  top: 100%;
  padding-top: 8px;
  color: #ffffff;
}


/* When the menu is active, display it */
.side-menu[aria-hidden="false"] {
  display: block;
  overflow: hidden;
}

.side-menu.open {
  visibility: visible;
  opacity: 1;
  overflow: hidden;
}

.side-menu-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  z-index: 90;
  gap: 0;
  width: 100%;
  position: relative;
  /* overflow: hidden; */
}
/* BG of side-menu */
.background-logo {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 270px;
  /* transform: translate(0%, 137%); */
  min-width: 100%;
  height: 350px;
  width: 350px;
  pointer-events: none;
}
.background-logo img {
  
  height: 450px;
  width: 400px;
}

/* Buttons in side menu */
.side-menu-wrapper li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  width: 100%;
  padding: 0 20px;
  margin: 0;
  z-index: 100;
  transition: all 0.3s ease;
}
.side-menu-wrapper li a:hover {
  opacity: 0.5;
  cursor: pointer;
}

.side-menu-wrapper li a::after {
  content: "";
  display: block;
  background-image: url("../icons/Arrow-white.svg");
  background-repeat: no-repeat;
  background-position: center;
  height: 22px;
  width: 22px;
  z-index: 100;
  transition: transform 0.1s ease;
  transform: rotate(360deg);
}
/* changed button in side menu */
.side-menu-wrapper li.open > a {
  left: 20px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 16px;
  transition: transform 0.3s ease;
}

.side-menu-wrapper li.open > a::after {
  content: "";
  display: block;
  background-image: url("../icons/Arrow-back.svg");
  background-repeat: no-repeat;
  background-position: center;
  height: 22px;
  width: 22px;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.1s ease;
  transform-origin: center;
}

/* Styling for the hamburger button */
#hamburger-menu {
  width: 28px;
  height: 28px;
  position: absolute;
  background: no-repeat;
  cursor: pointer;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  transform-origin: center;
}
#hamburger-menu img {
  position: absolute;
  background: no-repeat;
  cursor: pointer;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  transform-origin: center;
  z-index: 1100;
  transition: opacity 0.5s ease;
}
.hamburger-light,
.hamburger-dark {
  opacity: 0;
  pointer-events: none;
}

.dark-bg .hamburger-light,
.light-bg .hamburger-dark {
  opacity: 1;
  pointer-events: auto;
}
#hamburger-menu:hover .hamburger-light {
  opacity: 0.5;
}
#hamburger-menu:hover .hamburger-dark {
  opacity: 0.5;
}

/* Styling for the close button */
#close-menu {
  display: none;
  background: no-repeat;
  border: none;
  cursor: pointer;
  right: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease;
}
/* Logo */
.logo-div {
  width: 206px;
  /* position: relative; */
}
.logo-div img {
  position: absolute;
  top: 50%;
  bottom: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.logo-div:hover img {
  opacity: 0.5;
}

.white-logo {
  opacity: 1;
  z-index: 2;
}
.black-logo {
  opacity: 0;
  z-index: 1;
}

.dark-bg .white-logo {
  opacity: 1;
  pointer-events: auto;
}
.dark-bg .black-logo {
  opacity: 0;
  pointer-events: none;
}
.light-bg .black-logo {
  opacity: 1;
  pointer-events: auto;
}
.light-bg .white-logo {
  opacity: 0;
  pointer-events: none;
}
/* hover logo */
.logo-div:hover .white-logo {
  opacity: 1;
}
.logo-div:hover .white-logo {
  opacity: 0.5;
}

nav.innactive-scroll .logo-div img.white-logo {
  opacity: 1;
  pointer-events: auto;
}

nav:not(.innactive-scroll) .logo-div img.black-logo {
  opacity: 1;
  pointer-events: auto;
}
nav.inactive-scroll .logo-div:hover img.white-logo {
  opacity: 0.6;
}
nav:not(.inactive-scroll) .logo-div:hover img.black-logo {
  opacity: 0.8;
}

.sub-menu {
  display: none;
}
.menu-item-has-children.open .sub-menu { display: block; }

/* Default styling for desktop - hide the submenu */
.side-menu-wrapper li a .sub-menu {
  display: none;
}

@media (max-width: 970px) {
  header {
    padding: 0;
  }
  .header-desktop {
    display: none;
  }
  .header-mobile {
    display: block;
  }
  .header-navigation {
    height: 64px;
    text-transform: capitalize;
  }
  .logo-div {
    width: 149px;
    height: 24px;
    /* position: absolute; */
  }
  .logo-div img {
    top: 50%;
    bottom: 50%;
    left: 95px;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  #close-menu {
    display: none;
  }
  /* Keep submenus hidden on mobile until opened */
  .side-menu-wrapper li a .sub-menu {
    display: none;  
  }
  /* Show the submenu when the parent item has the 'open' class */
  .side-menu-wrapper li.open > a .sub-menu {
    display: block;
  }
}
