
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.custom-menu-primary .submenu.level-1 > li > a > svg {
  line-height: 1;
  margin-right: 5px;
  display: inline;
  margin-left: 8px;
  position: static;
  text-indent: 0;
  width: .625em;
  vertical-align: -.125em;
  height: 1em;
}


.custom-menu-primary .submenu.level-2 > li{
  position: relative;
}




@media (min-width: 992px){
  .custom-menu-primary > div:before {
    content: "";
    display: table;
  }
  .custom-menu-primary > div:after {
    content: "";
    display: table;
    clear: both;
  }
  .custom-menu-primary .submenu.level-1 {
    float: left;
    position: static;
  }

  .custom-menu-primary .submenu.level-1 > li {
    float: left;
    margin: 0 10px;
    position: relative;
  }

  .custom-menu-primary .submenu.level-1:before {
    display: table;
    content: " ";
  }

  .custom-menu-primary .submenu.level-1:after {
    display: table;
    content: " ";
    clear: both;
  }

  .custom-menu-primary .submenu.level-1 > li > a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    line-height: 20px;
    padding: 35px 5px 35px 5px;
    position: relative;
    padding-top: 27px;
    padding-bottom: 27px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: uppercase;
    font-size: 17px;
    display: block;
  }
  .custom-menu-primary .submenu.level-1 > li.has-submenu > a {
    padding-right: 2px;
  }
  .custom-menu-primary .submenu.level-1 > li > a:before {
    content: "";
    position: absolute;
    left: 51%;
    right: 51%;
    bottom: 0;
    background: #fec527;
    height: 4px;
    -webkit-transition-property: left,right;
    transition-property: left,right;
    -webkit-transition-duration: .2s;
    transition-duration: .2s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    z-index: -1;
    background-color: #383838;
  }
  .custom-menu-primary .submenu.level-1 > li > a:hover:before,
  .custom-menu-primary .submenu.level-1 > li > a.active-branch:before{
    left: 0;
    right: 0;
  }
  .custom-menu-primary .submenu.level-2 {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 286px;
    z-index: 999;
    border-top: 4px solid #1971af;
    margin-top: -4px;
    border-color: #383838;
    visibility: hidden;
    opacity: 0;
  }
  .custom-menu-primary .submenu.level-2 > li{
    padding-left: 18px;
    padding-right: 18px;
  }

  .custom-menu-primary .submenu.level-1 > li.has-submenu:hover .submenu.level-2,
  .custom-menu-primary .submenu.level-1 > li.has-submenu.focus .submenu.level-2 {
    opacity: 1;
    -webkit-transition: visibility 0s, opacity 0.3s;
    -o-transition: visibility 0s, opacity 0.3s;
    transition: visibility 0s, opacity 0.3s;
    visibility: visible;
  }
  .custom-menu-primary .submenu.level-2 > li > a{
    position: relative;
    -moz-transition: all .25s ease-out;
    -webkit-transition: all .25s ease-out;
    transition: all .25s ease-out;
    font-size: 15px;
    line-height: 1.3;
    padding: .77em 0;
    font-weight: bold;
    display: block;
  }
}

@media (min-width: 992px) and (max-width: 1003px){
  .custom-menu-primary  .submenu.level-1 > li:nth-child(3) .submenu.level-2 {
    width: 242px;
  }
}
@media (max-width: 1199px){
  .custom-menu-primary .submenu.level-1 > li > a {
    font-size: 16px;
  }

  .custom-menu-primary  .submenu.level-1>li {
    margin: 0 0px !important;
  }
}


@media (max-width: 991px){
  .custom-menu-primary .submenu.level-1 {
    margin: 20px 0;
    margin-top: 0;
    font-size: 14px;
    list-style: none;
  }

  .custom-menu-primary .submenu.level-1 > li {
    line-height: 14px;
    list-style: none;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,.2);
  }

  .custom-menu-primary .submenu.level-1 > li > a {
    cursor: pointer;
    display: block;
    font-size: 14px;
    line-height: 1.2em;
    padding: 1.2em 1.4em;
    position: relative;
    text-decoration: none;
    color: #fff !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: uppercase;

  }
  .custom-menu-primary .submenu.level-1 > li.has-submenu > a {
    padding-right: 36px;
  }
  .custom-menu-primary .submenu.level-1 > li > a > svg {
    display: block;
    font-size: 18px;
    line-height: 1.2em;
    margin: -.5em 0 0 0;
    position: absolute;
    top: 50%;
    right: 1em;
    text-align: center;
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
  }
  .custom-menu-primary .submenu.level-1 > li > a:hover {
    background-color: rgba(0,0,0,.2) !important;
  }
  .custom-menu-primary .submenu.level-2 {
    position: static;
    visibility: visible;
    opacity: 1;
    background-color: transparent !important;
    background-repeat: no-repeat repeat;
    background-position: 10px 0;
    background-size: 21px 5px;
    font-size: 12px;
    margin: 0 0 10px 0;
    padding-left: 0;
    margin-top: 10px;    
    display: none;
  }
  .custom-menu-primary .submenu.level-2 > li {
    list-style: none;
    position: relative;
/*     background: 10px 5px no-repeat; */
    background-repeat: no-repeat;
    background-position: 10px 5px;
    background-size: 21px 60px;
    padding: 7px 12px 7px 35px;
  }
  .custom-menu-primary .submenu.level-2 > li > a {
    display: inline;
    padding: 0;
  }
}