/*
JQuery Simple MobileMenu Slide
https://github.com/Position2/jQuery-Simple-MobileMenu
*/
/*Main style*/
body.mmactive {
  overflow: hidden;
}
.mobile_menu {
  display: none;
  position: relative;
}
.sm_menu_outer.active .mobile_menu {
  display: block;
}
.sm_menu_outer {
  /*height: calc(100vh - 100px);*/
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -9;
  width: 100%;
  opacity: 0;
  /*   background-color: #1B365F; */
  background-color:#fff;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  transition: opacity 0.2s;
  display:none;
}
.sm_menu_outer.active {
  opacity: 1;
  z-index: 9999;
  display:block;
}
.sm_menu_outer .mobile_menu li.back a {
  padding: 15px 20px 15px 35px;
  background-color:#EBF3FF;
  /*
  background: url(../../../images/prev-arrow-blue.png) no-repeat scroll 7px center / 5% auto;
  background-size: 7px 11px;
  */
}
.sm_menu_outer.slide .mobile_menu li.back a:hover{
  background-color:#E0E6EE;
}
.sm_menu_outer .mobile_menu li.back a::after{
  content: url("../../../images/prev-arrow-blue.png");
  position:absolute;
  left:15px;
}


.sm_menu_outer .mobile_menu a {
  color: #1B365F;
  display: block;
  font: 300 18px/140% "Lato", sans-serif;
  letter-spacing: 1px;
  padding: 15px 20px;
  text-transform: none;
  text-decoration: none;
}

/*Sub Menu anim */
.sm_menu_outer.slide .mobile_menu .sub-menu,
.sm_menu_outer.slide .mobile_menu .submenu {
  background-color: #fff;
  position: absolute;
  right: -100%;
  top: 0;
  transition: all 0.5s ease 0s;
  width: 100%;
  z-index: 999;
  height: calc(100vh - 127px);
}
.sm_menu_outer.slide .mobile_menu li.active > .sub-menu,
.sm_menu_outer.slide .mobile_menu li.active > .submenu {
  right: 0;
  padding-left:0;
  height: calc(100vh - 127px);
}
.sm_menu_outer .mobile_menu li {
  list-style-type: none;
  border-bottom:1px solid #8D9AAE;
  /*border-bottom: 1px solid rgba(0, 0, 0, 0);
  border-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #2a2a2a 20%, #2a2a2a 50%, #2a2a2a 80%, rgba(0, 0, 0, 0) 100%) 0 0 1 0;
  color: #ffffff;*/
}
.sm_menu_outer.slide .mobile_menu li.menu-item-has-children > a::after,
.sm_menu_outer.slide .mobile_menu li.hasChild > a::after {
  /*background: url("../../../images/next-arrow-blue.png") no-repeat scroll 95% center / 5% auto;
  background: url("../../../images/next-arrow-blue.png") 0 0 no-repeat;
  
  background-size: 7px 11px;
  */
  content: url("../../../images/next-arrow-blue.png");
  position:absolute;
  right:15px;
}
.sm_menu_outer.slide .mobile_menu li.menu-item-has-children > a:hover, 
.sm_menu_outer.slide .mobile_menu li.hasChild > a:hover,
.sm_menu_outer.slide .mobile_menu li a:hover{
  background:none;
  background-color:#FBF8F6;
}
/*Hamburger Animation */
#sm_menu_ham {
  cursor: pointer;
  float: left;
  height: 25px;
  position: absolute;
  top:25px;
  left: 15px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.5s ease-in-out 0s;
  -moz-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
  width: 30px;
  right: auto;
  z-index: 99999;
}
.shrink-header #sm_menu_ham{
  top:25px;
  position:fixed;
}


#sm_menu_ham span {
  background-color: #1B365F;
  border-radius: 5px;
  display: block;
  height: 2px;
  left: 0;
  opacity: 1;
  position: absolute;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.25s ease-in-out 0s;
  -moz-transition: all 0.25s ease-in-out 0s;
  -o-transition: all 0.25s ease-in-out 0s;
  transition: all 0.25s ease-in-out 0s;
  width: 30px;
}

#sm_menu_ham.open span{
  background-color:#fff;
}

#sm_menu_ham span:nth-child(1) {
  top: 0;
}
#sm_menu_ham span:nth-child(2),
#sm_menu_ham span:nth-child(3) {
  top: 10px;
}
#sm_menu_ham span:nth-child(4) {
  top: 20px;
}
#sm_menu_ham.open span:nth-child(1) {
  left: 50%;
  top: 18px;
  width: 0;
}
#sm_menu_ham.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}
#sm_menu_ham.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#sm_menu_ham.open span:nth-child(4) {
  left: 50%;
  top: 18px;
  width: 0;
}
@media (min-width: 992px) {
  #sm_menu_ham,
  .sm_menu_outer {
    display: none;
  }
}