/*General Configuration */
/* Menu */


.menu--desktop {
  display: block;
}

.menu--mobile {
  display: none;
}


.menu.menu--mobile.menu--open {
    display: block;
}

ul.menu__submenu > li:last-child {
  border:none;
}


/*end of General Configuration */



@media (max-width: 1100px) {
  .menu--desktop {
    display: none;
  }

}

/* Menu items */
.menu__item {
  position: relative;
}

.menu__link {
  font-size: 14px;
  line-height: 1.667rem;
  text-decoration: none;
}

.menu__link:hover,
.menu__link:focus,
.menu__link:active {
  text-decoration: none;
}

.menu__link--active-link,
.menu__link--active-branch {
  font-weight: bold;
}

button.menu__child-toggle.no-button {
  background: none;
  border:none;
}

ul.menu__submenu.menu__submenu--level-2,
ul.menu__submenu.menu__submenu--level-3{
list-style:none;
}

@media (min-width: 768px) and (max-width: 1150px) {
  .menu__link {
    font-size:13px;
  }
}

@media (max-width: 1100px) {
  .menu__item {
    display: block;
    width: 100%;
  }

  .menu__link {
    display: block;
    font-size:18px;
  }
}

/* Menu items - top level */
.menu__item--depth-1 {
  display: inline-block;
  padding: 0.7rem 0.7rem;
  
}

.menu__item--depth-1 > .menu__link--active-link:after {
  bottom: -3px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}

@media (max-width: 1100px) {
  .menu__link, a.menu__link.menu__link--toggle {
    color:#000;
  }
  .menu__item--depth-1 {
    font-size: 16px;
    padding: 0;
    background:#fff;
  
  }

  .menu__item--depth-1 > .menu__link {
    padding: 0.35rem 1rem;
  }
  
  .menu__item--depth-1 > .menu__link:last-child {
  padding-bottom:50px;
  }

  .menu__item--depth-1 > .menu__link--active-link:after {
    content: none;
  }
}

/* Menu items - submenus */
.menu__submenu {
    box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.2);
    border-radius: 0 0 25px 25px;
    display: none;
    position: absolute;
    text-transform: none;
    width: 100%;
    z-index: 99;
    min-width: 20em;
    max-width: 1000px;
    padding: 20px 15px;
    margin:auto;
    top:90px;
   
}
    
   


.menu__item--open > .menu__submenu {
  display: block;
  background:red;
}

.menu__submenu--level-2 {
  transform: translateX(-50%);
}

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item 
nav.menu.menu--mobile {
    background: rgb(0,0,0,0.18);
    width: 100vw;
    top: -10px;
    position: fixed;
    left: 0;
    height: 100vh;
}*/


nav.menu.menu--mobile ul.menu__wrapper.no-list {
    width: 70vw;
    background: white;
    position: absolute;
    top: -10px;
    padding: 2rem 1rem;
    right: 0;
    height: 100vh;
}
.menu__item--depth-1:first-child .menu__submenu--level-2 {
  transform: unset;
}

.menu__submenu .menu__item {
  padding: 0;
  width: 100%;
}

.menu__submenu .menu__link {
  display: block;
  padding: 0.4rem 1.05rem;
  transition: background-color 0.3s;
  width: 100%;
  font-size:12px;
 

}

.menu__submenu .menu__link:hover{
  border-bottom:1px solid #2fabe1;
}


.menu__link:hover, 
a.menu__link.menu__link--toggle:hover {
  color: #2fabe1;
}

.menu__submenu--level-3 {
  left: 100%;
  top: 0;
  font-size:12px;
}

/* Flyouts for the last two top level menu items go left to keep page responsive */

.menu__item--depth-1:nth-last-child(-n+2) .menu__submenu--level-3 {
  left: auto;
  right: 100%;
  top: 0;
}

/* Accounts for child toggle */

.menu__submenu .menu__item--has-submenu > .menu__link {
  padding-right: 3rem;
}

/* Creates the triangle at the top of the submenu drop down */

@media (min-width: 1100px) {
  .menu__submenu--level-2 > .menu__item:first-child:before {
     content: '';
   /*  box-shadow: 0 2px 9px 0 rgb(0 0 0 / 20%); */
     display: block;
     height: 55px;
     left: 125px;
     margin-left: -1rem;
     overflow: hidden;
     position: absolute;
     top: -75px;
     background:transparent!important;
     /* transform: rotate(45deg); */
     /* transition: background-color .3s; */
     width: 160px;
     z-index: 2;
     
  }

  /* Keeps triangle to the left for the first menu item's drop down menu */

  .menu__item--depth-1:first-child > .menu__submenu--level-2 > .menu__item:first-child:before {
    left: 0;
  }

  .menu__submenu--level-2 > .menu__item:first-child > .menu__link {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 1100px) {
.x-icon {
  cursor: pointer;
  background-color: #204e5f;
  border: none;
  padding: 8px;
 position: absolute;
  top: -10px;
  right: 35px;
}



  .menu__submenu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
    transform: unset;
    width: 100%;
  }

  .menu__submenu .menu__item {
    background-color: #FFF;
    border-bottom: none;
    padding: 0;
  }

  .menu__submenu .menu__link {
    display: block;
    padding: 0.4rem 1.5rem;
    transition: none;
    width: 100%;
    font-size:16px;
  }

  .menu__submenu .menu__item .menu__link:hover,
  .menu__submenu .menu__item .menu__link:focus {
    background-color: inherit;
    transition: none;
  }

  .menu__item--has-submenu > .menu__link {
    width: 70%;
  }

  .menu__submenu--level-3 .menu__item .menu__link {
    padding: 0.7rem 2rem;
  }
}

/* Menu icons */
@media(min-width: 768px) {
  .menu__submenu .menu__child-toggle {
    margin-left: auto;
    padding: 0 1.05rem;
  }

  .menu__child-toggle {
    position: absolute;
    right: 5px;
    top: 20px;
    z-index: 2;
  }

  .menu__item--depth-1 > .menu__child-toggle {
    position: static;
    right: 0;
    top: 0;
    vertical-align: middle;
  }

.menu__child-toggle-icon {
   border: solid #204e5f;
    border-width: 0 3px 3px 0;
    cursor: pointer;
    height: 8px;
    top: 21px;
    position: absolute;
    /* right: 1.5rem; */
    transform: rotate(45deg);
    transition: transform .3s ease-in;
    width: 8px;
    right: 9px;
  }

.menu__child-toggle-icon::focus {
    outline: none!important;
}
}

@media (max-width: 1100px) {
  .menu__child-toggle {
    background-position: center right 30px;
    background-repeat: no-repeat;
    background-size: 20px;
    border: none;
    cursor: pointer;
    height: 55px;
    padding: 15px 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
  }

  .menu__child-toggle-icon {
    border: solid #000;
    border-width: 0 3px 3px 0;
    cursor: pointer;
    height: 8px;
    top: 21px;
    position: absolute;
    /* right: 1.5rem; */
    transform: rotate(45deg);
    transition: transform .3s ease-in;
    width: 8px;
    right: 50px;
  }




}



/**/
.menu__hamburger-btn {
  display: none; /* Hide the button on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu__hamburger-icon {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #333;
  position: relative;
}

.menu__hamburger-icon::before,
.menu__hamburger-icon::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background-color: #333;
  position: absolute;
  top: -8px;
}


.menu__hamburger-icon::after {
  top: 8px;
}

/* Media query for mobile devices */
@media (max-width: 1100px) {
  .header__logo img {
    max-width:290px;
  
}

  .menu--desktop {
    display: none;
  }

ul .menu__item--depth-1 {
    width: 100vw;
    left: -16px;
    top: 25px;
    padding: 5px 30px;
}

span.menu__hamburger-icon::hover  {
   transform: scale(1.2);
}

.menu__hamburger-btn{
    display: block;
     margin: 2.3rem 1rem 2rem 1rem;
  }


  
 /* Initial state of the mobile menu */

/* nav.menu.menu--mobile.menu--open {
  background: rgba(0, 0, 0, 0.16);
  width: 100vw; /* Start with full width
  top: 0;
  position: fixed;
  left: 0;
  height: 100vh;
} */



  /* Hide the submenus by default on mobile */
  .menu__submenu {
    display: none;
  }


/* When the hamburger icon is clicked 
nav.menu.menu--mobile.menu--open ul.menu__wrapper {
  background: white;
  max-width: 70vw; 
  right: 0;
  position: absolute;
  top: -1rem;
  padding: 5rem 1rem;
  height: 100vh;
  animation: slideInFromRight 0.3s ease;
} */

nav.menu.menu--mobile.menu--open ul.menu__wrapper {
  background: none;
  width: 100%;
  right: 0;
  position: absolute;
  height: auto;
  animation: slideInFromTop 0.3s ease;
  top:10px;
 
}

@keyframes slideInFromRight {
  from { transform: translateX(0);}
  to {transform: translateX(100%); }


