.hs-tools-menu {
  display: none;
}

ul{
  display: flex;
  list-style: none;
  margin: 0;
}



/* Main header container */
.global-header {
  background-color: var(--white);
  width: 100%;
  top: 0;
  position: fixed;
  z-index: 99;
  padding: 0;
}

/* Flex container for logo and menu */
.header-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo container */
.nav-logo-wrapper {
  max-width: 10rem;
}

.nav-logo-wrapper img {
  width: 100%;
}




/* Main Menu Styling */
.hs-menu-item.hs-menu-depth-1 a {
    color: #333;
    text-decoration: none;
    text-transform: uppercase !important;
    font-size: 1rem !important;
    display: inline-flex;
    padding: 2rem 2.5rem 2rem 2rem;
    overflow: hidden;
    font-family: 'Fira Sans', sans-serif !important;
  }

.hs-menu-item.hs-menu-depth-1 a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--blue);
  transition: left 0.2s ease-out, visibility 0.2s ease-out;
  visibility: hidden;
  z-index: -1;
}

.hs-menu-item.hs-menu-depth-1.hs-item-has-children::after {
  content: "";
  border-left: 5px solid transparent;
  border-radius: 5px;
  border-right: 5px solid transparent;
  border-top: 5px solid #000;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}



.hs-menu-item.hs-menu-depth-1.hs-item-has-children:hover::after {
  border-top: 5px solid #fff;
}



.hs-menu-item.hs-menu-depth-1.hs-item-has-children:has(.active)::after {
  border-top: 5px solid #fff;
}


.hs-menu-item.hs-menu-depth-1 a:hover::before {
  left: 0;
  visibility: visible;
}

.hs-menu-item.hs-menu-depth-1.active a::before {
  left: 0;
  visibility: visible;
}

  
  .hs-menu-item.hs-menu-depth-1 a:hover {
    color: var(--white);
  }
  
  .hs-menu-item.hs-menu-depth-1.active a{
    color: var(--white);
  }
  
  /* Submenu 1 */
  .hs-menu-item.hs-menu-depth-2 a {
    color: #555 !important;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
    border-left: 5px solid transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .hs-menu-item.hs-menu-depth-2 a:hover {
    color: var(--blue);
    border-left: 5px solid var(--blue);
  }
  
  .hs-menu-item.hs-menu-depth-2 a:active {
    color: var(--blue);
  }

.hs-menu-item.hs-menu-depth-1:has(.active) > a::before {
  left: 0;
  visibility: visible;
}

.hs-menu-item.hs-menu-depth-1:has(.active) > a {
  color: var(--white);
}


  /* Submenu 2 */
  .hs-menu-item.hs-menu-depth-3 a {
    color: #555;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    border-left: 5px solid transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .hs-menu-item.hs-menu-depth-3 a:hover {
    color: var(--blue);
  }
  
 .hs-menu-item.hs-menu-depth-3 a:active { 
    color: var(--blue)
  }

.hs-menu-item.hs-menu-depth-3 {
  background-color: #f5f5f5;
}
  
  /* Dropdown styling */
  .hs-menu-children-wrapper {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 15rem;  /* set your minimum width */
  }
  

/*Jeg er meget mistænkelig om den her!!*/
    .hs-item-has-children:hover .hs-menu-children-wrapper { 
    display: block;
  }



  

 /* Main Menu Styles */
  
  .hs-menu-item {
    position: relative;
    cursor: pointer;
  }

 .hs-menu-item a {
    position: relative;
    cursor: pointer;
    overflow: hidden;
  }
  
/* Dropdown Styles */
.hs-menu-children-wrapper {
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  /* Show nested dropdown */
  .hs-menu-children-wrapper.show-dropdown {
    max-height: 500px;  /* Adjust as needed */
    overflow-y: auto;
  }
  
  /* Nesting under 2nd Depth */
  .hs-menu-item.hs-menu-depth-2.hs-item-has-children > .hs-menu-children-wrapper {
    position: inherit;
    overflow-y: hidden;
    transition: max-height 0.3s ease;
  }


  
 /* Hamburger Button */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 2rem;

}

/* Hide Main Menu and Show Hamburger on small screens */

@media (max-width: 991px) {
  


  .hs-menu-children-wrapper {
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.4s ease;
    position: relative;
  }


  .hs-menu-children-wrapper.show-dropdown {
    max-height: 500px; 
   overflow-y: auto;
  display: block; 
  }
 

 
  .hs-menu-item.hs-menu-depth-2.hs-item-has-children > .hs-menu-children-wrapper {
    display: block;
    position: inherit;
  }

  
  .hs-menu-item.hs-menu-depth-1.hs-item-has-children::after {
    content: none; /* This removes the ::after element */
  }
  
  .header-content-wrapper {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    height: 10vh;
  }
  
  .navigation-menu-wrapper ul {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  
  .hamburger {
    display: block;
    background-color: #fff;
    color: var(--blue);
  }
  
  /* Hamburger Icon */
.bar {
  background-color: var(--blue);
  height: 4px;
  border-radius: 2px;
  width: 28px;
  margin: 2px auto;
  transition: all 0.3s ease-in-out;
}

/* When menu is open, apply these classes */
.bar.transform-bar-1 {
  transform: translateY(6px) rotate(45deg);
}

.bar.transform-bar-2 {
  opacity: 0;
}

.bar.transform-bar-3 {
  transform: translateY(-6px) rotate(-45deg);
}

  

  .hs-menu-item.hs-menu-depth-1 a::before {
    content: none;
  }
  
  .hs-menu-item.hs-menu-depth-1 a:hover {
    color: var(--blue);
  }
  
  .hs-menu-item.hs-menu-depth-1 a:active {
    color: var(--blue);
  }
  
 .hs-menu-item.hs-menu-depth-1:has(.active) > a {
  color: #333;
}
  
  .hs-menu-item.hs-menu-depth-1.active a{
    color: #333;
  }

  /* Initially hide the main menu */
  .navigation-menu-wrapper {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    width: 100%;
    z-index: 98;
  }

  /* Style list items */
  .hs-menu-item.hs-menu-depth-1 a {
    padding: 1rem;
    font-size: 1.2rem !important;
  }
  
 
  
  .hs-menu-item.hs-menu-depth-2 a {
    margin-left: 15px;
    display: block;
    /* existing styles */
}
.hs-menu-item.hs-menu-depth-3 a {
    margin-left: 30px;
    display: block;
    /* existing styles */
}
  
  .hs-menu-item.hs-menu-depth-3 {
  background-color: #fff;
}
  
  .hs-menu-item.hs-menu-depth-1 a {
    font-weight: 600;
  }
  
  .hs-menu-item.hs-menu-depth-2 a {
    font-weight: 500;
  }
  
  .hs-menu-item.hs-menu-depth-3 a {
    font-weight: 400;
  }
  
  





