/*-------------------------------------------------------------------------------------------*/
/* HEADER         ||---------------------------- */
/*-------------------------------------------------------------------------------------------*/
.header {
  background: #fff;
  position: fixed;
  /* left: 0; */
  top: 0;
  width: 100%;
  z-index: 999;
  -webkit-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
}

.header:after {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  /* width: 37%; */
  height: 100%;
  background: #fff;
  z-index: -1;
  margin-left: -250px;
}

.header:before {
  position: absolute;
  top: 0;
  left: 37%;
  content: "";
  width: 60px;
  height: 100%;
  background: #fff;
  z-index: -1;
  margin-left: -281px;
  transform: skew(-23deg);
}

.menu-bg {
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.navigation {
  width: 100%;
  letter-spacing: 1px;
}

.menu-bg .navigation>ul>li>a {
  padding: 10px 10px;
}

.menu-bg .logo a {
  padding: 5px 0;
}

.logo a {
  display: inline-block;
  padding: 5px 0;
}

.menu {
  border: none;
  border-bottom: 4px solid #ffa500;
  border-top: 4px solid #ffa500;
  height: 29px;
  position: absolute;
  right: 29px;
  top: 20px;
  width: 44px;
  background: none;
}

.menu:after {
  position: absolute;
  top: 9px;
  right: 0;
  content: "";
  width: 100%;
  height: 4px;
  background: #ffa500;
}

.header ul {
  float: right;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header ul li {
  float: left;
  position: relative;
}

.navigation ul li a {
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
}

@media(max-width:1200px) {
  .navigation ul li a {
    font-size: 13px;
  }
}

.navigation>ul>li>a {
  display: block;
  /* padding: 10px 16px; */
  padding: 10px 10px;
  color: #14469f;
  transition: all 0.25s ease 0s;
  -webkit-transition: all 0.25s ease 0s;
  -moz-transition: all 0.25s ease 0s;
  -o-transition: all 0.25s ease 0s;
  outline: none;
}

.navigation>ul>li:last-child a {
  padding-right: 0;
}

.navigation .sub-nav {
  left: -54px;
  border-top: 20px solid transparent;
  position: absolute;
  /* top: 175%; */
  top: 80%;
  width: 200px;
  z-index: 3;
  background-clip: padding-box;
  padding: 0;
  /* transition: top 0.3s ease 0s, visibility 0.2s ease 0.2s,
    opacity 0.2s ease 0.1s; */
  -webkit-transition: top 0.3s ease 0s, visibility 0.2s ease 0.2s,
    opacity 0.2s ease 0.1s;
  -moz-transition: top 0.3s ease 0s, visibility 0.2s ease 0.2s,
    opacity 0.2s ease 0.1s;
  -ms-transition: top 0.3s ease 0s, visibility 0.2s ease 0.2s,
    opacity 0.2s ease 0.1s;
  -o-transition: top 0.3s ease 0s, visibility 0.2s ease 0.2s,
    opacity 0.2s ease 0.1s;
  opacity: 0;
  visibility: hidden;
  background-color: #ffffff;
}

.navigation .sub-nav li {
  display: block;
  float: none;
  margin: 0;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0;
  position: relative;
}

.navigation li:hover .sub-nav {
  opacity: 1;
  top: 80%;
  /* transition: top 0.3s ease 0s; */
  visibility: visible;
}

.navigation li.sub-menu .sub-nav {
  border: none;
  opacity: 0;
  top: 0;
  transition: top 0.3s ease 0s;
  visibility: visible;
  left: auto;
  right: 110%;
  visibility: hidden;
  transition: all 0.3s ease 0s;
}

.navigation li.sub-menu:hover .sub-nav {
  visibility: visible;
  opacity: 1;
  right: 100%;
  transition: all 0.3s ease 0s;
}

.navigation .sub-nav li:last-child {
  border-bottom: 0;
}

.navigation .sub-nav li a {
  padding: 8px 20px;
  display: block;
  color: #222;
}

.navigation .sub-nav li a {
  padding: 8px 17px;
  font-size: 15px;
  display: block;
  color: #222 !important;
}

@media(max-width:991px) {
  #header .navigation {
    background: rgba(255, 255, 255, 0) !important;
  }

  @media(max-width:991px) {
    #header .navigation {
      background: #14469f !important;
    }
  }

  #header .navigation>ul>li>a {
    color: #fff;
    /* padding: 43px 10px; */
  }
}

@media (min-width: 991px) and (max-width: 991px) {
  #header .navigation {
    margin-left: 0;
  }

  .navigation>ul>li>a {

    /* padding: 43px 10px; */
  }

  .menu-bg .navigation>ul>li>a {
    padding: 15px 10px;
  }

  .navigation .sub-nav {
    left: -27px;
  }

  .header:before {
    margin-left: -218px;
  }

  .header:after {
    margin-left: -187px;
  }
}


/* ======Mobile media Query =========*/
@media (max-width: 991px) {
  #header.container {
    margin: 0 auto;
    max-width: 480px;
    width: 100%;
  }

  .header:before,
  .header::after {
    display: none;
  }

  .header {
    background: #3475e9;
  }

  .menu {
    border-bottom: 4px solid #fff;
    border-top: 4px solid #fff;
  }

  .menu:after {
    background: #fff;
  }

  .menu-bg .navigation>ul>li>a {
    padding: 10px 15px;
  }

  .header ul,
  .header ul li {
    float: none !important;
  }

  .logo a {
    padding: 10px 10px !important;
  }

  .navigation {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9;
    background: #06f;
  }

  .navigation ul li {
    border-bottom: 1px solid #fff;
  }

  .navigation>ul>li>a {
    padding: 10px 15px;
    color: #fff;
  }

  .navigation .sub-nav,
  .navigation li.sub-menu .sub-nav,
  .navigation li.sub-menu:hover .sub-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    width: 100%;
    border-top: none;
    transition: inherit;
    -webkit-transition: inherit;
    padding: 0;
  }

  .navigation ul li i {
    color: #fff;
    font-size: 25px;
    position: absolute;
    right: 15px;
    top: 9px;
    cursor: pointer;
    pointer-events: none;
  }

  .navigation ul li ul {
    display: none;
  }

  .navigation .on>.ion-ios-plus-empty:before {
    content: "\f462";
    font-family: "Ionicons";
  }

  .hidden-md-up {
    display: block !important;
    float: right !important;
  }

}

@media (min-width:1366px) {
  .header:before {
    left: 35%;
  }

  .header:after {
    /* width: 35%; */
  }
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 768px) {
  .header {
    background: #fff;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 999;
    -webkit-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
  }

  .menu-bg {
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    background: #06f;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  }

  .header {
    background: #14469f;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 999;
    -webkit-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
  }

  .nav-wrap::after {
    position: relative;
    top: 0;
    left: 0;
    /* content: ""; */
    width: 50%;
    height: 100%;
    background: #14469f;
    z-index: -1;
    margin-left: 20px;
  }

  .nav-wrap::before {
    position: absolute;
    top: 0;
    left: 34%;
    content: "";
    width: 348px;
    height: 100%;
    background: #fff;
    z-index: -1;
    margin-left: -291px;
    transform: skew(-23deg);
  }

  .menu {
    border-bottom: 4px solid #fff;
    border-top: 4px solid #fff;
  }

  .menu:after {
    background: #fff;
  }

  .navigation {
    background: #14469f;
  }

  .navigation .sub-nav li a {
    padding: 8px 30px;
    display: block;
    color: #222;
  }

}

.header ul li .active {
  border-bottom: 3px solid #ED1B24;
}