body.page-scrolled {
  .header-wrapper {
    background-color: white;
  }
  .bottom-links {
    padding-top: 0;
  }
  .top-links-a.top-links-a,
  .bottom-links-a.bottom-links-a {
    color: #1a2741!important;
  }
  .submenu {
    @media only screen and (min-width: 900px) {
      top: 4.5rem;
    }
  }
}
body:has(.blog-listing) {
  .top-links-a.top-links-a,
  .bottom-links-a.bottom-links-a {
    color: white;
  }
}
.header-wrapper {
  position: fixed;
  width: 100dvw;
  z-index: 100;
  background-color: transparent;
  transition: background-color .4s;
  
  .top-links-a.top-links-a,
  .bottom-links-a.bottom-links-a {
    color: white;
    transition: color .4s;
  }
  .submenu {
    @media only screen and (min-width: 900px) {
      top: 5.5rem;
    }
  }
}


ul{
  margin: 0 0 0.5rem;
}

.navbar {
  padding: 10px;
  display: flex; 
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;

  ul {
    list-style:none;
  }

  @media only screen and (min-width: 900px){
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    flex-direction: row;
    max-width: 1300px;
  }

  &:has(:checked){
    @media only screen and (max-width: 899px){
      height: 100dvh;
      background-color: #4A4A49;
    }

    .logo {

      @media only screen and (max-width: 899px){
        justify-content:center;
        margin-left:0;

      }
    }
    .nav-links li a{
      @media only screen and (max-width: 899px){
        color: #fff;
      }
    }
    .menu-icon{
    color: #fff;
    }
    .hamburger-icon{
      display:none;
    }
    .close-icon{
      display:block;
    }
  }
}
.hamburger-icon{
  display:block;
}
.close-icon{
  display:none;
}

.logo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;

  @media only screen and (max-width: 899px){
    margin-left:10px;
  }

}

.logo a {
  text-decoration: none;
  color: #1A2741;
  font-size: 24px;
  font-weight: bold;
  display: block;
  width: 60px;
  height: 60px;

  @media only screen and (min-width: 900px){
    width: 90px;
    height: 90px;
  }
}

.quanture-logo{
  display: block;
  width: 60px;
  height: 60px;

  @media only screen and (min-width: 900px){
    width: 90px;
    height: 90px;
  }
}

.menu {  
  @media only screen and (min-width: 900px){
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
  }
}

.nav-links {
  display: none;
  width: 100%;
  padding: 10px 0;

  @media only screen and (min-width: 900px){
    display: flex;
    flex-direction: row;
    list-style: none;
    justify-content: flex-end;
  } 
}

.nav-links.top-links {
  margin-bottom: 0;
}

.nav-links.top-links li a { 
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
}

.bottom-links li{
  @media only screen and (max-width: 899px){
    margin-bottom: 25px!important;
  }
}

.nav-links li {
  margin: 0 15px;
}

.bottom-links{
  padding-top:25px;
  padding-bottom:20px;
  transition: padding .4s;
}

.nav-links.bottom-links li a:not(.main-page-link) {
  font-size: 18px;
  font-weight: bold;
  line-height: normal;

  @media only screen and (min-width: 900px){
    display: block;
  } 
}
.nav-links li a:not(.main-page-link) {
  text-decoration: none;
  color: #1A2741;
}
.main-page-link,
.main-page-link:hover {
  font-weight: 700;
  text-decoration: none;
  color: #d2ef00;
}

.menu-icon {
  display: flex;
  align-self: flex-end;
  position:absolute;
  flex-direction: column;
  cursor: pointer;
  color: #1A2741;
  width: 24px;
  height:60px;
  justify-content:center;


  @media only screen and (min-width: 900px){
    display: none;
  }
}


#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .menu .nav-links {
  display: flex;
  flex-direction: column;
  top: 0;

  @media only screen and (min-width: 900px){
    display: none;
    flex-direction: row;
  }
}

#menu-toggle:checked ~ .menu {
  display: flex;
  flex-direction: column-reverse;


  @media only screen and (max-width: 899px){
    margin-bottom:auto;
  }


  @media only screen and (min-width: 900px){
    display: none;
  }
}

.nav-links li {
  position: static; 
}

.submenu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out;
  position: absolute;
  top: 0;
  width: 100%;
  left: 0;
  background-color: #4A4A49;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  height: 100vh;
  padding: 2rem 1rem;

  @media only screen and (min-width: 900px) {
    /* top: 5.5rem; */
    padding: 1.5rem 0;
    height: auto;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
  }
}

.submenu-container {
  display: flex;
  flex-direction: column;

  @media only screen and (min-width: 900px) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 0.2fr);
    grid-column-gap: 2rem;
    grid-row-gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
  }
}

.nav-links li.open .submenu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease-in-out;

  @media only screen and (min-width: 900px) {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
}

.submenu-item li{
  display: none;

  @media only screen and (min-width: 900px){
    displaY: block;
  }
}

.submenu-item-container{
  width: 100%;

  @media only screen and (min-width: 900px){
    grid-area: 1 / 1 / 2 / 2;
  }
}

.submenu-item{
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: .5rem;

  @media only screen and (min-width: 900px){
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    margin-top: 1rem;
  }
}

.submenu-item-container h3{
  margin-bottom: 0.3rem;
  line-height: 1.2;

  @media only screen and (min-width: 900px){
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }
}

.submenu-item-container p{

  @media only screen and (min-width: 900px){
    margin-bottom: 0.8rem;
  }
}

.submenu-item{
  width: 100%;

  @media only screen and (min-width: 900px){
    grid-area: 1 / 2 / 2 / 5;
  }
}

.submenu-item .submenu-title li a{
  font-size: 16px!important;
  font-family: "Mulish", sans-serif!important;
  font-weight: 500!important;

}

.submenu-title-li{

  @media only screen and (min-width: 900px){
    margin-top: 0.8rem; 
  }
}

.submenu li{
  margin: 0; 
}

a.subitem-link{
  font-weight: bold!important;
  color: #fff!important;
  font-size: 18px;

  @media only screen and (min-width: 900px){   
    font-weight: bold!important;
    color: #D2EF00!important;
  }
}

.subitem-link-container{
  flex-direction: column;
  gap: 0.3rem;
  display:none;

  @media only screen and (min-width: 900px){
    gap: 0.8rem;
    display: flex;
  }
}

.subitem-link-container-mobile .subitem-link-subcontainer{
  margin: 15px 0;
}

.subitem-link-container-mobile{
  display:block;
  padding-top:20px;

  @media only screen and (min-width: 900px){
    display:none;
  }
}

.subitem-link-subcontainer{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.main-menu-mobile.main-menu-mobile {
  fill:#999A9B;

  @media only screen and (min-width: 900px){
    display:none;
  }
}


.subitem-link-subcontainer svg{
  width: 18px;
  height: 18px;
  fill: #fff;

  @media only screen and (min-width: 900px){
    fill: #D2EF00;
  }
}

.submenu-title-a {
  font-size: 18px;
  color: #D2EF00!important;

  @media only screen and (min-width: 900px){
    color: #D2EF00!important;
  }
}

a.submenu-title-a:hover {
  color: #fff!important;
}

.submenu p {
  color: #fff!important;
  font-family: "Mulish", sans-serif!important;
  font-size: 18px;
}

.submenu li a {
  color: #fff!important; 
  display: block; 
  text-decoration: none; 
}

.submenu li a:hover {
  color: #D2EF00!important;
}

.submenu-info{
  display: none;

  @media only screen and (min-width: 900px){
    display: flex;
    flex-direction: row;
    grid-area: 2 / 2 / 3 / 5;
    border-top: 1px solid #D2EF00;
    padding-top: 1.5rem;
  }
}

.top-links-a,
.bottom-links-a {
  position: relative;
  text-decoration: none;
}

.top-links-a::after,
.bottom-links-a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 50%;
  background-color: #D2EF00!important;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.top-links-a::after {
  top: 20px;
}

.top-links-a:hover {
  color: #D2EF00!important;
}

.bottom-links-a::after {
  top: 25px;
}

.top-links-a:hover::after,
.bottom-links-a:hover::after {
  width: 100%;
  left: 0;
  transform: translateX(0);
  color: #fff!important;
}

.submenu-info-a:hover{
  color: #fff!important;
}

.submenu-info-a:not(:last-child) {
  border-right: 1px solid #fff;
}

.submenu-info-a:not(:first-child) {
  padding-left: 0.5rem;
}

.submenu-info-a {
  color: #D2EF00!important;
  font-size: 16px!important;
  font-weight: 400!important;
  padding-right: 0.5rem;
  position: relative;
  text-decoration: none;
  color: inherit;
  font-family: "Mulish", sans-serif!important;
}

.submenu-info-a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  top: 27px;
  left: 50%;
  background-color: #D2EF00!important;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.submenu-info-a:hover::after {
  width: 90%;
  left: 0;
  transform: translateX(5%);
  color: #fff!important;
}

.nav-links li .submenu {
  display: none;
}

.nav-links li.open .submenu {
  display: block;
}

.back-to-menu {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 1rem 0;
  position: relative;
}

.back-link {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.back-arrow {
  width: 18px;
  height: 18px;
  fill: #999A9B;
  margin-right: 8px;
}

@media only screen and (min-width: 900px) {
  .back-to-menu {
    display: none;
  }
}

.e-font-icon-svg.e-fas-arrow-right.back-arrow{
  rotate: 180deg;
}

{# only mobile #}

.separator{
  display: flex;
  flex-direction: row;
  margin: 1rem 2.5rem 0;

  @media only screen and (min-width: 900px) {
    display: none;
  }
}

.separator-blue,
.separator-green{
  display: block;
  height: 5px;

  @media only screen and (min-width: 900px) {
    display: none;
  }
}

.separator-blue{
  width: 30%;
  background-color: var(--heading-color);
}

.separator-green{
  width: 70%;
  background-color: var(--link-color);
}