.custom-menu-primary {
  padding: 56px 0 0 166px;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
  float: right;
}
.navigation-primary {
  display: block;
}
.navigation-primary .submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation-primary .submenu a,
.navigation-primary .submenu p {
  text-decoration: none;
}

.submenu-toggle {
  display: none;
}

.submenu.level-1 {
  display: block;
  white-space: nowrap;
  line-height:0;
}

.submenu.level-1 > li {
  display: inline-block;
  font-size: 14px;
  padding-right: 22px;
  position: relative;
  line-height: 1em;
}
.submenu.level-1 > li:last-child {
  padding-right: 0px;
}
.submenu.level-1 > li > a {
  font-size: 16px;
  padding-bottom: 56px;
  display: block;
  letter-spacing: 1px;
  font-weight: 600;
  position: relative;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}
.submenu.level-1 > li.has-submenu {
  position: static;
}
.submenu.level-1 > li.has-submenu > a {
  padding-right: 20px;
}
.submenu.level-1 > li.has-submenu > a:after {
  font-family: ETmodules;
  content: "3";
  font-size: 16px;
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 800;
}
.submenu.level-1 > .has-submenu > .menu-arrow {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid black;
  display: block;
  height: 0;
  margin-left: 1px;
  position: absolute;
  right: 5px;
  top: 30px;
  width: 0;
}

.submenu.level-2 {
  padding: 30px 20px;
  position: absolute!important;
  width: 100%;
  left: 0;
  border-top: 3px solid;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  -moz-box-shadow: 0 2px 5px rgba(0,0,0,.1);
  -webkit-box-shadow: 0 2px 5px rgba(0,0,0,.1);
  -webkit-transform: translateZ(0);
  -webkit-transition: visibility 0s, opacity 0.3s;
  -o-transition: visibility 0s, opacity 0.3s;
  transition: visibility 0s, opacity 0.3s;
  visibility: hidden;
  opacity: 0;
  z-index: 999;
}
.submenu.level-2 > li {
  width: 25%;
  margin: 30px 0 0;
  float: left;
  font-size: 14px;
  line-height: 1.1em;
}
.submenu.level-2>li:nth-of-type(4n+1) {
  clear: left;
}
.submenu.level-2 > li > a {
  border-bottom: 1px solid #e8481b;
}
.submenu.level-2 > li > a {
  font-size: 16px;
  line-height: 1.1;
  margin-bottom: 10px;
  font-weight: 700;
  display: block;
  padding-bottom: 10px;
  padding-right: 40px;
  padding-left: 20px;
  letter-spacing: 1px;
}
.submenu.level-2 > li > a {
  width: 90%;
}
.submenu.level-2 > li:first-child > a:first-child {
 border-bottom: 1px solid #e8481b;
}
.submenu.level-2>li:nth-child(2) {
  margin-top: 30px;
}
/*.submenu.level-2>li:nth-child(2) > a {
  padding: 0;
  line-height: 0;
}*/
.submenu.level-2 > li:first-child>a:hover {
  background-color: transparent !important; 
}
.submenu.level-3 {
  visibility: visible;
  opacity: 1;
  width: 90%;
  display: none;
}
.submenu.level-3 > li > a {
  font-size: 16px;
  line-height: 1.0;
  padding: 6px 20px;
  letter-spacing: 1px;
  display: block;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
  font-weight: 600;
  white-space: normal;
}
.submenu.level-2>li:nth-child(2)> a {
  width: 85%;
}
.submenu.level-2 .menu-item .menu-link:hover,
.submenu.level-2 .menu-item .menu-link:focus {
  background-color: #D0D2D4;
  cursor: pointer;
  -webkit-transition: background-color 0.3s;
  -o-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.submenu.level-2>li:first-child>a:first-child {
  width: 100%;
}
.submenu.level-1 > li.has-submenu:hover .submenu.level-2,
.submenu.level-1 > li.has-submenu.focus .submenu.level-2 {
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  -webkit-animation: Grow .4s ease-in-out;
  animation: Grow .4s ease-in-out;
  -webkit-backface-visibility: visible!important;
  backface-visibility: visible!important;
  opacity: 1;
  visibility: visible;
}

.fixed-header .custom-menu-primary {
  padding-top: 20px; 
}
.fixed-header .submenu.level-1>li>a {
  padding-bottom: 20px;
}
/* Hide navigation dropdown in the inline editor */
.hs-inline-edit .submenu.level-1 > li.has-submenu:hover .submenu.level-2,
.hs-inline-edit > li.has-submenu.focus .submenu.level-2 {
  visibility: hidden;
}
@media (min-width: 981px) {
.submenu.level-1 > li.has-submenu:hover .submenu.level-3{
  display: block;
}
/*   .submenu.level-1 > li.has-submenu:hover .submenu.level-3{
  display: block;
} */
}
@media (min-width: 981px) and (max-width: 1110px) {
  .submenu.level-1>li {
    padding-right: 16px;
  }
  .submenu.level-1>li>a {
    font-size: 13.5px;
  }
}

@media (max-width: 980px) {
  span.mobile_menu_bar {
    padding-bottom: 24px;
    position: relative;
    display: block;
    line-height: 0;
    font-weight: 600;
  }

  span.mobile_menu_bar:before {
    content: "\61";
    font-size: 32px;
    position: relative;
    left: 0;
    top: 0;
    cursor: pointer;
    color: #1d2649;
    font-family: ETmodules!important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    -webkit-font-feature-settings: normal;
    font-feature-settings: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0;
  }
  .custom-menu-primary {
    display: none; 
  }
  .mobile-navigation {
    padding-left: 166px;
    padding-top: 24px;
    display: block;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    float: right;
  }
  .mobile-menu {
    position: absolute;
    left: 0;
    padding: 5%;
    background: #fff;
    width: 100%;
    visibility: visible;
    opacity: 1;
    display: none;
    z-index: 9999;
    border-top: 3px solid #1d2649;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    -moz-box-shadow: 0 2px 5px rgba(0,0,0,.1);
    -webkit-box-shadow: 0 2px 5px rgba(0,0,0,.1);
  }
  .mobile-menu .hs-menu-wrapper ul {
    display: block;
    margin: 0;
    padding: 0;
  }
  .mobile-menu .hs-menu-wrapper ul li a {
    border-bottom: 1px solid rgba(0,0,0,.03);
    color: #666;
    padding: 10px 5%;
    display: block;
    font-size: 14px;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    font-weight: 600;
    line-height: 23px;
  }
  .mobile-menu .hs-menu-wrapper ul li a:hover {
    background-color: rgba(0,0,0,.03);
    opacity: .7;
  }
  .mobile-menu .hs-menu-wrapper > ul > li.hs-item-has-children > a {
    font-weight: 700;
    background-color: rgba(0,0,0,.03);
  }
  .mobile-menu .hs-menu-wrapper ul li li {
    padding-left: 5%;
  }
  .mobile-menu .hs-menu-wrapper>ul>li.hs-item-has-children >ul> li {
    margin-top: 30px;
  }
  .mobile-menu .hs-menu-wrapper>ul>li.hs-item-has-children >ul> li:nth-child(2) {
    margin-top: 0px;
  }
  .mobile-menu .hs-menu-wrapper>ul>li.hs-item-has-children >ul> li:nth-child(2) > a {
    padding: 0;
    border: 0;
  }
  .mobile-menu .hs-menu-wrapper>ul>li.hs-item-has-children ul {
    padding-left: 10px; 
  }
  .mobile-menu .hs-menu-wrapper>ul>li.hs-item-has-children>ul>li >a {
    background-color: transparent!important;
  }
}
@-webkit-keyframes Grow {
  0% {
    opacity: 0;
    -webkit-transform: scaleY(.5)
  }

  to {
    opacity: 1;
    -webkit-transform: scale(1)
  }
}

@keyframes Grow {
  0% {
    opacity: 0;
    -webkit-transform: scaleY(.5);
    transform: scaleY(.5)
  }

  to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}
@media screen and (min-width: 979px) and (max-height: 650px) {
  .submenu.level-2 {
    overflow-y: scroll;
    height: 500px;
    padding-bottom: 150px;
  }
}