
.custom-menu-primary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  float: right;
}
.custom-menu-primary li {
  position: relative;
  list-style-type: none;
}
ul.submenu.level-1 > li {
  float: left;
}
ul.submenu.level-1 > li > a,
ul.submenu.level-1 > li > span {
  display: block;
  position: relative;
  line-height: 18px;
  text-decoration: none;
}
ul.submenu.level-1 > li:last-child > a {
  margin-right: 0;
}
ul.submenu.level-1 ul > li > a {
  display: block;
  position: relative;
  line-height: 18px;
  text-decoration: none;
}

@media (max-width: 980px) {

  .custom-menu-primary ul {
    float: none;
  }
  .custom-menu-primary {
    float: left;
    width: 100%;
  }
  .custom-menu-primary .navigation-primary {
    display: none;
  }
  .custom-menu-primary > .hs_cos_wrapper_type_module {
    margin-left: -20px;
    margin-right: -20px;
    float: none;
  }
  ul.submenu.level-1 {
    position: relative;
    background: #333;
    padding: 20px;
    clear: both;
    list-style: none;
    float: none;
  }
  ul.submenu.level-1 > li {
    float: none;
  }
  ul.submenu.level-1 li a,
  ul.submenu.level-1 li span {
    color: #bbb;
    padding: 13px 12px;
    border-bottom: 1px solid #444;
  }
  ul.submenu.level-1 ul li:last-child > a {
    border-bottom: none;
  }
/*   ul.submenu.level-1 li:hover > a {
    background-color: #3a3a3a;
    color: #fff;
  } */
  ul.submenu.level-1 > li:first-child > a,
  ul.submenu.level-1 > li.child-open + li > a {
    border-top: 1px solid #444;
  }
  ul.submenu.level-1 ul {
    padding-left: 18px;
    display: none;
  }
  ul.submenu.level-1 li:hover > a > .mi-expand-btn {
    background-position: -33px center;
  }
  
}

@media (max-width: 400px) {
  ul.submenu.level-1 {
    padding-left: 10px;
    padding-right: 10px;
  }

}

@media (min-width: 981px) {

  .custom-menu-primary .navigation-primary,
  ul.submenu.level-1 ul {
    display: block !important;
    overflow: initial !important;
  }
  ul.submenu.level-1 > li > a,
  ul.submenu.level-1 > li > span {
    padding: 0;
    border-bottom: 4px solid transparent;
    opacity: 1;
    -webkit-transition: border-bottom .15s ease-out 0s;
    -moz-transition: border-bottom .15s ease-out 0s;
    -o-transition: border-bottom .15s ease-out 0s;
    transition: border-bottom .15s ease-out 0s;
    font-size: 14px;
    padding-top: 34px;
    padding-bottom: 34px;
    margin: 0 17px;
  }
/*   ul.submenu.level-1 > li:hover > a {
    border-bottom-color: #6fb062;
  } */
  ul.submenu.level-1 ul {
    position: absolute;
    width: 190px;
    font-size: 13px;
    margin-left: 0;
    -webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, .5);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .5);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    left: 17px;
    top: 100%;
    border-left: none;
    transition: all 0.5s ease;
    transform: scaleY(0);
    transform-origin: top;
  }
  ul.submenu.level-1 li:hover > ul {
    transition-delay: .3s;
    transform: scaleY(1);
  }
  ul.submenu.level-1 ul > li {
    padding-left: 4px;
    padding-right: 4px;
  }
  ul.submenu.level-1 ul > li:first-child {
    padding-top: 4px;
  }
  ul.submenu.level-1 ul > li:last-child {
    padding-bottom: 4px;
  }
  ul.submenu.level-1 ul > li > a {
    border-bottom: 1px solid #444;
    padding: 8px 15px 8px 10px;
  }
  ul.submenu.level-1 ul > li:first-child > a {
    border-top: 1px solid #444;
  }
/*   ul.submenu.level-1 ul > li > a:hover {
    background-color: #3a3a3a;
    color: #fff;
  } */

  .fixed-header ul.submenu.level-1 > li > a,
  .fixed-header ul.submenu.level-1 > li > span {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  
}

@media (max-width: 1270px) and (min-width: 981px) {
  ul.submenu.level-1 > li:nth-last-child(2) > ul {
    left: auto;
    right: 0;
  }
}

@media (max-width: 1012px) and (min-width: 981px) {
  .custom-header-wrapper:not(.fixed-header) ul.submenu.level-1 > li > a,
  .custom-header-wrapper:not(.fixed-header) ul.submenu.level-1 > li > span {
    margin: 0 12px;
  }


}










