/* Menu */

.menu--desktop {
  display: block;
}

.menu--mobile {
  display: none;
}

@media (max-width: 1199.99px) {
  .menu--desktop {
    display: none;
  }

  .menu--mobile {
    display: block;
  }
}

/* Menu items */

.menu__item {
  position: relative;
}

.menu__link {
  font-size: 0.917rem;
  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;
}

@media (min-width: 1200px) {
  .menu__link {
    font-size: 0.833rem;
  }
}

@media (max-width: 1199.99px) {
  .menu__item {
    display: block;
    width: 100%;
  }

  .menu__link {
    display: block;
    font-size: 1.083rem;
  }
}

/* Menu items - top level */

.menu__item--depth-1 {
  display: inline-block;
  padding: 0.7rem 0.875rem;
  text-transform: uppercase;
}

.menu__item--depth-1 > .menu__link--active-link:after {
  bottom: -3px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}

@media (max-width: 1199.99px) {
  .menu__item--depth-1 {
    border-top: 2px solid #CED4DB;
    padding: 0;
  }

  .menu__item--depth-1 > .menu__link {
    padding: 0.35rem 1.225rem;
  }

  .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%;
  width: 270px;
  z-index: 99;
}

.menu__item--open > .menu__submenu {
  display: block;
}

.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 */

.menu__item--depth-1:first-child .menu__submenu--level-2 {
  transform: unset;
}

.menu__submenu .menu__item {
  border-bottom: 1px solid #D1D6DC;
  padding: 0;
  width: 100%;
}

.menu__submenu .menu__link {
  display: block;
  padding: 0.7rem 1.05rem;
  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 {
  padding-right: 3rem;
}
.menu__item--has-submenu .menu-arrow{
  display: none;
}

@media screen and (min-width: 1200px){
  
}

@media screen and (max-width: 1199.99px){
  header .menu__child-toggle--open svg{
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: -webkit-transform .4s;
    transition: -webkit-transform .4s;
    -o-transition: transform .4s;
    transition: transform .4s;
    transition: transform .4s,-webkit-transform .4s;
  }
  header .menu__item--depth-1 a{
    padding-bottom: 0px !important;
  }
  header .menu__item--has-submenu .menu-arrow {
    background-position: center right 30px;
    background-repeat: no-repeat;
    background-size: 20px;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    display: block;
  }
  header .menu__item--has-submenu > ul{
    position: relative !important;
    width: 100%;
  }
  header .menu__submenu{
    border: none !important;
  }
  header .menu__submenu .menu__item{
    border-bottom: none;
  }
  header .menu__submenu--level-2{
    transform: unset;
    box-shadow: none;
  }
  header .menu__submenu--level-2 a{
    padding: 0.7rem 2.25rem !important;
    font-size: 16px;
  }
  header .mobile-menu--item-plus-icon svg {
    fill: #000000;
  }
  header .menu__item--depth-1 a{
    width: calc(100% - 50px);
    float: left;
  }
  .menu__child-toggle{
    width: 50px;
    float: right;
  }
  .header__navigation--toggle.open:after{
    content: "" !important;
  }
  #main-content{
    /* margin-top: 73px; /* I leave this here because is to compensate the header sticky height */  */
    margin-top: 0px; /* Changed it because it's not working on blog posts */
  }
  .top-header{
    display: none;
  }
  #nav-icon{
    width: 25px;
    height: 18px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
  }
  #nav-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-font);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }
  #nav-icon span:nth-child(1) {
    top: 0px;
  }
  #nav-icon span:nth-child(2),#nav-icon span:nth-child(3) {
    top: 8px;
  }
  #nav-icon span:nth-child(4) {
    top: 16px;
  }
  #nav-icon.open span:nth-child(1) {
    top: 18px;
    width: 0%;
    left: 50%;
  }
  #nav-icon.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  #nav-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  #nav-icon.open span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50%;
  }
  .header__container{
    flex-direction: column;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .header.sticky .header__container{
    height: auto;
  }
  .header.sticky .submenu.level-1>li{
    padding: 0px;
  }
  .header__logo{
    max-width: 100%;
    width: 100%;
    justify-content: space-between;
    padding: 0px;
  }
  .submenu.level-1>li.has-submenu:hover .submenu.level-2, .submenu.level-1>li.has-submenu.focus .submenu.level-2, .submenu.level-2{
    transform: unset !important;
  }
  .main-menu{
    width: 100%;
    background-color: #367abb;
    position: absolute;
    top: 73px;
    overflow-y: auto;
  }
  .main-menu .row-fluid [class*="span"]{
    min-height: 0px;
  }
  .main-menu .navigation-primary ul li a{
    color: #ffffff !important;
    font-family: 'Avenir Bold', sans-serif;
    font-size:  22px;
  }
  .submenu.level-2{
    margin-left: 0px;
  }
  .dropdown, .menu-arrow {
    display: block;
  }
  .dropdown {
    float: right;
    cursor: pointer;
  }
  .dropdown_list{
    display: none;
    height: calc(100vh - 73px);
  }
  .search-open + div .dropdown_list{
    height: calc(100vh - 133px);
  }
  .dropdown_list.is-active{
    display: block;
  }
  .header.sticky .desktop-search{
    display: flex;
  }
  .submenu.level-1 > li > a{
    padding: 7px 0px;
  }
}