/**
====================================================================
  Navigation
====================================================================
*/

header.menu-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  &.no-banner {
    position: initial;
    background: $blue-dark;
  }
}

body.admin-bar {
  header.menu-wrapper {
    top: 32px;
  }
}

header.menu-wrapper.style-2 {
  position: relative;
}

header.menu-wrapper .container-fluid {
  padding: 0 70px;
}

header.menu-wrapper .logo {
  margin-top: 5px;
}

header nav {
  float: right;
}

header.menu-wrapper nav > ul > li {
  display: inline-block;
  margin: 0 5px;
  position: relative;
}

header.menu-wrapper nav ul li .fa {
  color: #fff;
  margin-left: -5px;
  cursor: pointer;
  line-height: 50px;
}

header.menu-wrapper {
  nav ul li a {
    font-size: 15px;
    color: #fff;
    line-height: 50px;
    padding: 5px 10px;
  }
  &.no-banner {
    nav ul {
      li {
        a {
          line-height: 87px;
        }
      }
      &.dropdown-menu {

        li {
          a {
            line-height: 50px;
          }
        }
      }
    }
  }

}

header.menu-wrapper.style-2 nav ul li a {
  color: inherit;
}

/*=================== Sub Menu ==============*/

header.menu-wrapper nav ul > li.dropdown-holder .sub-menu {
  position: absolute;
  left: 0;
  top: 120%;
  width: 250px;
  background: #262626;
  opacity: 0;
  visibility: hidden;
  margin-top: 5px;
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  -ms-transition: all .5s ease-in-out;
  -o-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  -webkit-box-shadow: 0px 13px 25px -12px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 13px 25px -12px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 13px 25px -12px rgba(0, 0, 0, 0.25);
}

header.theme-menu-wrapper nav ul > li.dropdown-holder:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

header.theme-menu-wrapper nav ul > li.dropdown-holder .sub-menu li a {
  font-size: 16px;
  text-transform: uppercase;
  color: #f3f3f3;
  line-height: 55px;
  display: block;
  padding: 0 0 0 25px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .nav > li > a:hover, header .nav > li > a:focus {
  background: none;
}

header.theme-menu-wrapper nav ul > li.dropdown-holder .sub-menu li:last-child a {
  border: none;
}

header .navbar-collapse li {
  padding: 10px 0;
}

header .navbar-collapse li .sub-menu {
  padding-left: 20px;
  padding-top: 20px;
}

header .res-menu::-webkit-scrollbar {
  width: 7px;
}

header .res-menu::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

header .res-menu::-webkit-scrollbar-thumb {
  background-color: #c7c7c7;
}

/*================= Sticky Menu ===============*/

@keyframes menu_sticky {
  0% {
    margin-top: -120px;
    opacity: 0;
  }
  50% {
    margin-top: -64px;
    opacity: 0;
  }
  100% {
    margin-top: 0;
    opacity: 1;
  }
}

header.menu-wrapper.fixed {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1001;
  background: #fff;
  animation: menu_sticky 0.7s ease-in-out;
  border-bottom: 1px solid #f5f5f5;
  box-shadow: -3px -4px 5px 5px;
  -webkit-box-shadow: -3px -4px 5px 5px;
  -webkit-box-shadow: -3px -4px 5px 5px;

}

header.menu-wrapper.fixed a {
  color: #555;
}

header.menu-wrapper {
  .navbar-toggle {
    color: #fff;
    position: absolute;
    right: 0;
    top: 5px;
  }
  &.no-banner {
    .navbar-toggle {


    }
  }
}

header.menu-wrapper.style-2 .navbar-toggle {
  color: inherit;
}

header.menu-wrapper.fixed .navbar-toggle {
  color: #555;
}

header.menu-wrapper.fixed nav ul > li.dropdown-holder .sub-menu:before {
  display: none;
}

header.menu-wrapper.fixed nav ul > li.dropdown-holder .sub-menu {
  margin-top: 10px;
}

header .custom-logo-link img {
  width: auto;
  max-height: 60px;
  margin: 25px 0 0 0;
}

header #logo-alt {
  display: none;
}

header #logo-alt img {
  max-height: 50px;
  margin-top: 10px;
}
header.no-banner #logo-alt img{
  margin: 25px 0 0 0;
}
header.menu-wrapper.fixed nav ul li a {
  padding: 10px 10px;
  font-weight: 400;
}

h1.site-title {
  line-height: 1.0;
  margin: 0;
  padding: 30px 0px 0;
  font-size: 20px;
}

header.menu-wrapper.fixed h1.site-title {
  padding-top: 10px;
}

.site-title a {
  color: #fff;
  font-size: 25px;
}

header.menu-wrapper.style-2 .site-title a {
  color: inherit;
}

.site-title a:hover, .site-title a:focus, .site-title a:visited {
  color: #fff;
}

p.site-description {
  color: #fff;
  font-size: 13px;
}

header.menu-wrapper.style-2 p.site-description {
  color: inherit;
}

.fixed p.site-description {
  color: #000;
}

/* dropddown */

.nav .open > a, .nav .open > a:hover, .nav .open > a:focus {
  background: none;
}

header.menu-wrapper nav ul li ul li a {
  padding: 3px 20px;
}

header.menu-wrapper.fixed nav ul li ul li a {
  padding: 3px 20px;
}

.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
  color: #fff !important;
  background: #444444;
}

.navbar-nav > li > .dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-menu > li > a {
  padding: 12px 24px;
  color: #555;
  text-transform: none;
}

.navbar-default .navbar-nav > .open > a {
  background: none;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover {
  background: none;
}

.nav ul ul {
  position: absolute;
  top: -3px;
  left: 180px;
  display: none !important;
}

.nav li:last-child ul ul, .nav li:nth-last-child(2) ul ul {
  position: absolute;
  top: -3px;
  left: -180px;
  display: none !important;
}

.dropdown-menu {
  background-color: rgba(255, 255, 255, 1);
  padding: 0;
  min-width: 180px;
  border-radius: 0;
  margin: 0;
}

header.menu-wrapper.fixed .dropdown-menu {
  margin: 0;
}

.dropdown-menu li:hover ul, .nav li:last-child .dropdown-menu li:hover ul, .nav li:nth-last-child(2) .dropdown-menu li:hover ul {
  display: block !important;
}

.bread-crumb, .bread-crumb span {
  color: #fff;
  padding-top: 10px;
}

body .dropdown-menu > li > a:hover, body .dropdown-menu > li > a:focus {
  background: #444444;
  color: #fff;
}

/* stroke */
header.menu-wrapper {
  nav.main-menu {

    > ul:not(.dropdown-menu) {
      > li {
        a {
          &:before {
            transition: all .5s;
            content: '';
          }
          &:after {
            transition: all .5s;
            position: absolute;
            //bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
            width: 0%;
            content: '.';
            color: transparent;
            background: #fff;
            height: 2px;
            bottom: 0px;
          }

        }
        &:hover {
          a {
            &:after {
              content: '';
              width: 100%;
            }
          }
        }
        &.active {
          a {
            &:after {
              content: '';
              width: 100%;
            }
          }
        }
      }
    }
    ul.dropdown-menu {
      li {
        a {
          color: #555;
        }
        &:hover {
          > a {
            color: #fff;
            background: #555;
          }
        }
      }
    }
  }
}

header.fixed {
  nav.main-menu {

    ul {
      li {
        a {
          &:after {

            background: #191616;

          }

        }

      }
    }
  }
}