
.custom-menu-primary .navigation-primary > ul.submenu {
  font-family: 'Merriweather Sans', sans-serif;
  margin: 7.5px -15px !important;
}
.triangle-container {
  display: none;
}
.custom-menu-primary .navigation-primary > ul.submenu > li.menu-item {
  position: relative;
  display: block;
}
.custom-menu-primary .navigation-primary > ul.submenu > li.menu-item:first-of-type {}
.custom-menu-primary .navigation-primary > ul.submenu > li.menu-item:last-of-type {}
.custom-menu-primary .navigation-primary > ul.submenu > li.no-submenu {}
.custom-menu-primary .navigation-primary > ul.submenu > li.has-submenu {
  position: static;
}
.custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link {
  position: relative;
  display: block;
  line-height: 20px;
  font-size: 16px;
  padding: 10px 15px 10px 15px;
  z-index: 102;
  border: none;
  border-bottom: 1px solid transparent;
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
  text-decoration: none;
}
.custom-menu-primary .navigation-primary > ul.submenu > li.has-submenu > a.menu-link {
  padding-right: 20px;
}
.custom-menu-primary .navigation-primary > ul.submenu > li.has-submenu > a:before {
  font-family: 'FontAwesome';
  content: "\f107";
  position: absolute;
  left: auto;
  top: 31px;
  right: 6px;
  line-height: 1;
  color: #d1d1d1;
  font-size: 14px;
}
.custom-menu-primary .navigation-primary > ul.submenu > li.has-submenu.menu-open > a:before {
  color: #eaeaea;
}
.custom-menu-primary .navigation-primary > ul.submenu > li.menu-open > a.menu-link {
  border-bottom-color: #ffffff;
  border-right: 1px solid #f5f5f5;
  border-left: 1px solid #f5f5f5;
}

/*=========== Menu Level 2 and so on ============*/

.custom-menu-primary .navigation-primary > ul ul li a {
  display: block;
  font-weight: normal;
  line-height: 1.42857143;
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 14px;
  color: #333333;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}
.custom-menu-primary .navigation-primary > ul ul li a:hover {
  background-color: #fcfcfc;
  color: #1D97D4;
  border-color: #f7f7f7;
}

/*=========== Menu Level 3 and so on ============*/

@media (min-width: 768px) {
  .custom-menu-primary {}
  .custom-menu-primary .navigation-primary {}
  .custom-menu-primary .navigation-primary ul.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  /*=========== Menu Level 1 ============*/

  .custom-menu-primary .navigation-primary > ul.submenu {
    margin: 0 !important;
    float: right;
  }
  .custom-menu-primary .navigation-primary > ul.submenu:before,
  .custom-menu-primary .navigation-primary > ul.submenu:after {
    content: "";
    clear: both;
    display: block;
  }
  .triangle-container {
    display: none;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li.menu-item {
    float: left;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li.menu-item:first-of-type {}
  .custom-menu-primary .navigation-primary > ul.submenu > li.menu-item:last-of-type {}
  .custom-menu-primary .navigation-primary > ul.submenu > li.no-submenu {}
  .custom-menu-primary .navigation-primary > ul.submenu > li.has-submenu {
    position: relative;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link {
    padding: 28px 15px 27px 15px;
    -webkit-transition: padding 0s linear, color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    -o-transition: padding 0s linear, color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    transition: padding 0s linear, color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  }
  .fixed-header-on .custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link {
    padding-top: 21px;
    padding-bottom: 21px;
  }
  .fixed-header-on .custom-menu-primary .navigation-primary > ul.submenu > li.has-submenu > a:before {
    top: 24px;
  }

  /*=========== Flyout ===========*/

  .custom-menu-primary .navigation-primary > ul > li > ul {
    position: absolute;
    border-width: 1px;
    border-style: solid;
    z-index: 10;
    left: 0;
    top: 99.2%;
    display: none;
    min-width: 220px;
    -webkit-box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.06);
    box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.06);
    background-clip: padding-box;
    transition: all 0.2s ease-in;
  }
  .custom-menu-primary .navigation-primary > ul > li.has-submenu.menu-open > ul {
    -webkit-animation-duration: 0.3s;
    animation-duration: 0.3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInUpSmall;
    animation-name: fadeInUpSmall;
    display: block;
  }
  @keyframes fadeInUpSmall {

    0% {
      opacity: 0;
      -webkit-transform: translate3d(0, 20px, 0);
      -ms-transform: translate3d(0, 20px, 0);
      transform: translate3d(0, 20px, 0);
    }
    100% {
      opacity: 1;
      -webkit-transform: none;
      -ms-transform: none;
      transform: none;
    }

  }


  /*=========== Menu Level 2 and so on ============*/

  .custom-menu-primary .navigation-primary > ul ul li a {
    display: block;
    white-space: nowrap;
  }
  .custom-menu-primary .navigation-primary > ul ul li a:hover {}

  /*=========== Mega Menu ============*/
  .custom-menu-primary .navigation-primary > ul > li:nth-child(3) {
    position: static !important;
  }
  .mega-menu {
    width: 100%;
    padding: 20px 15px !important;
  }
  .mega-menu > li {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    width: 33.33333333%;
    float: left;
  }
  .mega-menu > li > a {
    display: none !important;
  }
  .mega-menu .submenu.level-3 li a {
    padding: 5px 0;
    line-height: 1.46666667;
    white-space: normal;
  }
  .mega-menu .submenu.level-3 li a:before {
    content: "\f105";
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-left: 5px;
    font-size: 12px;
    width: 20px;
    position: relative;
    top: -1px;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    color: #cdcdcd;
  }
  .mega-menu .submenu.level-3 li a:hover:before {
    color: #459bfc;
  }
}

@media (max-width: 1400px) and (min-width: 768px) {

  .custom-menu-primary .navigation-primary > ul > li:last-child > ul {
    left: auto;
    right: 0;
  }

}


@media (max-width: 1199.5px) and (min-width: 768px) {
  .custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link {
    font-size: 15px;
    padding: 28px 10px 27px 10px;
  }
}

@media (max-width: 991.5px) and (min-width: 768px) {
  .custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link {
    border-top: 1px solid transparent;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link {
    padding: 28px 5px 27px 5px;
  }
}

@media (max-width: 800px) and (min-width: 768px) {
  .custom-menu-primary .navigation-primary > ul > li:nth-last-child(2) > ul {
    left: auto;
    right: 0;
  }
}

@media (min-width: 992px) {
  .custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link {
    font-size: 17px;
  }
}

@media (min-width: 1200px) {
  .custom-menu-primary .navigation-primary > ul.submenu > li.menu-item {
    margin: 0 0 0 10px;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li.menu-item:first-child {
    margin: 0;
  }
}

@media (max-width: 1199.5px) and (min-width: 992px) {
  .custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link {
    font-size: 15px;
  }
}

@media (max-width: 767.5px) {
  .custom-menu-primary.desktop {
    display: none;
  }
  .custom-menu-primary.mobile {
    display: block !important;
  }
  .custom-menu-primary {
    padding-right: 15px;
    padding-left: 15px;
    overflow-x: visible;
    border-top: 1px solid #e7e7e7;
    margin-right: -15px;
    margin-left: -15px;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    overflow-y: auto;
    border-top-color: #ededed;
  }
  .mobile-open .custom-menu-primary{
    border-top-color: #e7e7e7;
  }
  .custom-menu-primary .navigation-primary {
    display: none;
  }
  .custom-menu-primary .navigation-primary ul.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .custom-menu-primary .navigation-primary > ul.submenu {}
  .custom-menu-primary .navigation-primary > ul.submenu:before,
  .custom-menu-primary .navigation-primary > ul.submenu:after {
    content: "";
    clear: both;
    display: block;
  }
  .triangle-container {
    display: none;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li.menu-item {
    float: none;
    display: block;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li.no-submenu {}
  .custom-menu-primary .navigation-primary > ul.submenu > li.has-submenu {
    position: relative;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link {
    border-bottom: 1px solid #f3f3f3;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li:last-child > a.menu-link {
    border-bottom: 1px solid transparent;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li > a.menu-link:hover {
    background-color: #fff;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li.has-submenu > a:before {
    color: #999999;
    top: 14px;
    right: 32px;
  }

  /*=========== Menu Level 2 and so on ============*/

  .custom-menu-primary .navigation-primary > ul ul {
    display: none;
  }
  .custom-menu-primary .navigation-primary > ul ul li {}
  .custom-menu-primary .navigation-primary > ul > li > ul > li > a {
    background-color: transparent !important;
  }
  .custom-menu-primary .navigation-primary > ul ul li a {
    padding: 12px 15px 12px 40px;
    border-color: #f9f9f9;
    line-height: 20px;
  }
  .custom-menu-primary .navigation-primary > ul ul li a:hover {}

  .mega-menu {
    padding: 20px 30px !important;
  }
  .mega-menu > li > a {
    display: none !important;
  }
  .mega-menu .submenu.level-3 li a {
    padding: 5px 0;
    line-height: 1.46666667;
  }
  .mega-menu .submenu.level-3 li a:before {
    content: "\f105";
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-left: 5px;
    font-size: 12px;
    width: 20px;
    position: relative;
    top: -1px;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    color: #cdcdcd;
  }
  .mega-menu .submenu.level-3 li a:hover:before {
    color: #459bfc;
  }
  /*=========== Menu Level 3 and so on ============*/

  .custom-menu-primary .navigation-primary > ul ul ul {
    display: block !important;
    height: auto !important;
    transition: none !important;
  }
  .custom-menu-primary .navigation-primary > ul ul ul li {}
  .custom-menu-primary .navigation-primary > ul ul ul li a {
    display: block;
    white-space: nowrap;
  }

  .custom-menu-primary .navigation-primary .submenu.level-1 > li > a.active-branch{
    background-color: #fff;
  }
  .custom-menu-primary .navigation-primary > ul.submenu > li.has-submenu.menu-open > a:before {
    color: #459bfc;
  }

}