/* Menu */

.menu--desktop {
  display: block;
}

.menu--mobile {
  display: none;
}

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

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

/* Menu items */

.menu__item {
  position: relative;
}

.menu__link {
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: 0.4px;
  text-decoration: none;
    padding: 20px 0px;
}

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

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

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

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

  .menu__link {
    display: block;
   
  }
}

/* Menu items - top level */

.menu__item--depth-1 {
  display: inline-block;
  padding: 0.7rem 0.875rem;

}

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

@media (max-width: 767px) {
  .menu__item--depth-1 {
  
    padding: 0;
  }

  .menu__item--depth-1 > .menu__link {
    padding: 15px;
  }

  .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: 3px;
  display: none;
  left: 0;
  position: absolute;
  text-align: left;
  text-transform: none;
  top: 100%;
  z-index: 99;
}

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

.menu__submenu--level-2 {

}

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item */

.menu__item--depth-1:first-child .menu__submenu--level-2 {
  transform: unset;

}
.menu__item--depth-1 .menu__submenu--level-2 {

margin-top:10px;
}


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

.menu__submenu .menu__link {
  display: block;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s;
  width: 100%;
}

.menu__submenu--level-3 {
  left: 100%;
  top: 0;
}

/* 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 {
  
}

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

@media (min-width: 768px) {
  


  .menu__submenu--level-2 > .menu__item:first-child:before {
    box-shadow: 0 2px 9px 0 rgb(0 0 0 / 20%);
    display: block;
    height: 30px;
    left: 125px;
    margin-left: 1rem;
    overflow: hidden;
    position: absolute;
    top: -12px;
    transform: rotate(45deg);
    transition: background-color .3s;
    width: 30px;
    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: 767px) {
  .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;
    border-top: 0px solid #14DF99;
    text-align:center;
    padding: 0;
  }
    .menu__submenu .menu__item .menu__link{
font-size:24px;
    padding-top:: 0;
      padding-bottom:10px;
  }
    .menu__submenu .menu__item:last-child {
 margin-bottom:20px;
  }

  .menu__submenu .menu__link {
    display: block;
    padding: 15px;
    transition: none;
    width: 100%;
  }

  .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: 100%;
  }

  .menu__submenu--level-3 .menu__item .menu__link {
    padding: 15px;
  }
}

/* Menu icons */

@media(min-width: 768px) {
  

  
  .menu__submenu .menu__child-toggle {
    margin-left: auto;
    padding: 0 .5rem;
  }

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

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

  .menu__child-toggle-icon {
border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top-style: solid;
    border-top-width: 3px;
    display: block;
    height: 0;
    margin-left: 1px;
    width: 0;
    margin-top: 3px;
  }
}

@media (max-width: 767px) {
  .header__menu_cont li.menu__item.menu__item--depth-1.hs-skip-lang-url-rewrite:last-child a:before,
  .header__menu_cont li.menu__item.menu__item--depth-1:last-child a:after{
  display:none;
  }
  .header__menu_cont li.menu__item.menu__item--depth-1:last-child .menu__link {
    padding: 15px;
}
    .header__menu_cont li.menu__item.menu__item--depth-1:last-child  {
   border-bottom:0px;
}
  .header__menu_cont li.menu__item--depth-1:last-child {
    margin: 0;
}
  
      .menu__link {
    font-size: 30px;
  }
  .menu--mobile {
    text-align: center;
    background-color: white;
}
  
  .menu__child-toggle {
 
    border: none;
    cursor: pointer;
    height: 55px;
    padding: 15px 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
display:flex;
    align-items:center;
  }

  .menu__child-toggle-icon {
 
    display: block;
    height: 20px;
    width: 20px;
margin-top:15px;
    margin-left:15px;
transition:all .2s;
  }

  
  .menu__child-toggle-icon:before {
transition:all .2s;
    border-style: solid;
    border-width: 0.15em 0.15em 0 0;
    content: '';
    display: inline-block;
    height: 0.35em;
    left: 0.15em;
    position: relative;
    top: 0.15em;
    transform: rotate(135deg);
    vertical-align: top;
    width: 0.35em;
  }
    .menu__child-toggle--open .menu__child-toggle-icon:before {
  transform: rotate(315deg);
  }

  .menu__item--open > .menu__child-toggle .menu__child-toggle-icon {
   
  }
  
  .header__menu_cont li.menu__item--depth-1 {
    margin: auto;
   
}
}

