@import "https://fonts.googleapis.com/css?family=Raleway:400,600|Mukta+Vaani|Lato";

#submenu,
#submenu ul,
#submenu ul li,
#submenu ul li a,
#submenu #menu-button {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
#submenu:after,
#submenu > ul:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
#submenu #menu-button {
  display: none;
}
#submenu {
  width: auto;
  font-family: 'Lato', sans-serif;
  line-height: 1;
  background:transparent;
  
}

#submenu > ul > li {
  float: left;
}
#submenu.align-center > ul {
  font-size: 0;
  text-align: center;
}
#submenu.align-center > ul > li {
  display: inline-block;
  float: none;
}
#submenu.align-center ul ul {
  text-align: left;
}
#submenu.align-right > ul > li {
  float: right;
}
#submenu.align-right ul ul {
  text-align: right;
}
#submenu > ul > li > a {
  padding:23px 20px;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  color: #555;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
  border-right:1px solid #efefef;  border-bottom:2px solid transparent

}
#submenu > ul > li:first-child > a{ 
  border-left:1px solid #efefef}
#submenu > ul > li:hover > a,
#submenu > ul > li.active > a {
  color: #012e87;
  border-bottom:2px solid #0cb9ff
}
#submenu > ul > li.has-sub > a {
  padding-right: 35px;
  top: 0;
  display: inline-table;
    vertical-align: bottom;
}
#submenu > ul > li.has-sub > a::after {
  position: absolute;
  top: 28px;
  right: 15px;
  width: 4px;
  height: 4px;
  margin-top:0;
  border-bottom: 1px solid #012e87;
  border-right: 1px solid #012e87;
  content: "";
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-transition: border-color 0.2s ease;
  -moz-transition: border-color 0.2s ease;
  -ms-transition: border-color 0.2s ease;
  -o-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}
#submenu > ul > li.has-sub:hover > a::after {
  border-color: #012e87;
}
#submenu ul ul {
  position: absolute;
  left: -99999px;
}
#submenu li:hover > ul {
  left: auto;
}
#submenu.align-right li:hover > ul {
  right: 0;
}
#submenu ul ul ul {
  margin-left: 100%;
  top: 0;
}
#submenu.align-right ul ul ul {
  margin-left: 0;
  margin-right: 100%;
}
#submenu ul ul li {
  height: 0;
  -webkit-transition: height .2s ease;
  -moz-transition: height .2s ease;
  -ms-transition: height .2s ease;
  -o-transition: height .2s ease;
  transition: height .2s ease;
}
#submenu ul li:hover > ul > li {
  height: 32px;
}
#submenu ul ul li a {
  padding: 10px 12px;
  width: 250px;
  font-size: 12px;
  background: #0cb9ff;
  text-decoration: none;
  color: #fff; text-transform:uppercase;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;border-bottom:1px solid #fff  

}
#submenu ul ul li:hover > a,
#submenu ul ul li a:hover {
  color: #fff; background:#012E87
}
#submenu ul ul li.has-sub > a::after {
  position: absolute;
  top: 13px;
  right: 10px;
  width: 4px;
  height: 4px;
  border-bottom: 1px solid #fff;
  border-right: 1px solid #fff;
  content: "";
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-transition: border-color 0.2s ease;
  -moz-transition: border-color 0.2s ease;
  -ms-transition: border-color 0.2s ease;
  -o-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}
#submenu.align-right ul ul li.has-sub > a::after {
  right: auto;
  left: 10px;
  border-bottom: 0;
  border-right: 0;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
}
#submenu ul ul li.has-sub:hover > a::after {
  border-color: #ffffff;
}
@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1020px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1020px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1020px), only screen and (min-resolution: 192dpi) and (max-width: 1020px), only screen and (min-resolution: 2dppx) and (max-width: 1020px) {
  #submenu {
    width: 100%;
	border:0px solid #fff; border-radius:5px; margin:5px auto; z-index:99999
  }
  #submenu > ul > li > a {
    padding: 15px;
	}
  #submenu ul {
    width: 100%;
    display: none;
  }
  #submenu.align-center > ul,
  #submenu.align-right ul ul {
    text-align: left;
  }
  #submenu ul li,
  #submenu ul ul li,
  #submenu ul li:hover > ul > li {
    width: 100%;
    height: auto;
    border-top: 1px solid rgba(120, 120, 120, 0.15);
  }
  #submenu ul li a,
  #submenu ul ul li a {
    width: 100%; border-right:0
  }
  #submenu ul li:first-child a,
  #submenu ul ul li:first-child a { border-left:0
  }  
  #submenu > ul > li,
  #submenu.align-center > ul > li,
  #submenu.align-right > ul > li {
    float: none;
    display: block;
  }
  #submenu ul ul li a {
    padding: 10px 20px;
    font-size: 12px;
    color: #012e87;
    background: none;
  }
  #submenu ul ul li:hover > a,
  #submenu ul ul li a:hover {
    color: #fff;
  }
  #submenu ul ul ul li a {
    padding-left: 40px;
  }
  #submenu ul ul,
  #submenu ul ul ul {
    position: relative;
    left: 0;
    right: auto;
    width: 100%;
    margin: 0;
  }
  #submenu > ul > li.has-sub > a::after,
  #submenu ul ul li.has-sub > a::after {
    display: none;
  }
  #menu-line {
    display: none;
  }
  #submenu #menu-button {
    display: block;
    padding: 30px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
  }
  #submenu #menu-button::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
    width: 20px;
    height: 2px;
    background: #012e87;
  }
  #submenu #menu-button::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 20px;
    display: block;
    width: 20px;
    height: 7px;
    border-top: 2px solid #012e87;
    border-bottom: 2px solid #012e87;
  }
  #submenu .submenu-button {
    position: absolute;
    z-index: 10;
    right: 0;
    top: 0;
    display: block;
    border-left: 0px solid rgba(255, 255, 255, 0.15);
    height: 52px;
    width: 52px;
    cursor: pointer;
  }
  #submenu .submenu-button::after {
    content: '';
    position: absolute;
    top: 21px;
    left: 26px;
    display: block;
    width: 1px;
    height: 11px;
    background: #012e87;
    z-index: 99;
  }
  #submenu .submenu-button::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 26px;
    display: block;
    width: 11px;
    height: 1px;
    background: #012e87;
    z-index: 99;
  }
  #submenu .submenu-button.submenu-opened:after {
    display: none;
  }
}
