.flexnav {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
  display: block;
  overflow: visible;
  width: 100%;
  background: transparent;
}
.flexnav:after {
  content: "";
  display: table;
  clear: both;
}
.menu-button {
  display: none;
  padding: 18px 22px;
  font-size: 16px;
  color: #123b6d;
  line-height: 1;
  background: #082a4a;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}
.flexnav > li {
  float: left;
  display: block;
  position: relative;
  list-style: none;
}
.flexnav li a {
  color: #000;
  -webkit-transition: color 0.2s ease-out;
  -moz-transition: color 0.2s ease-out;
  -ms-transition: color 0.2s ease-out;
  -o-transition: color 0.2s ease-out;
  transition: color 0.2s ease-out;
}
.flexnav > li > a {
  display: block;
  padding: 18px 15px;
  font-weight: 300;
  font-size: 14px;
  text-decoration: none;
  font-weight: 400;
  transform: scaleY(1.3);
}
.flexnav > li:first-child > a {
  padding-left: 0;
}
.flexnav > li:last-child > a {
  padding-right: 0;
}
.flexnav li a:hover {
  color: #000;
}
.flexnav > .item-with-ul > a {
  padding-right: 23px;
}
.touch-button {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: 15px;
  height: 15px;
  z-index: 99;
  cursor: pointer;
  background: transparent;
}
.touch-button::after {
  content: "";
  display: block;
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid #123b6d;
  right: 13px;
  top: 13px;
  border-radius: 23px;
  display: none;
}
.touch-button::before {
  /* content: ""; */
  display: block;
  width: 5px;
  height: 5px;
  position: absolute;
  border-bottom: 1px solid #123b6d;
  border-left: 1px solid #123b6d;
  right: 11px;
  top: 20px;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.flexnav li:hover > .touch-button::before,
.sm-screen .submenu-open::before {
  border-bottom-color: #000;
  border-left-color: #000;
}
.flexnav li:hover > .touch-button::after,
.sm-screen .submenu-open::after {
  border-color: #000;
}
.flexnav ul {
  position: absolute;
  list-style: none;
  left: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
  width: 250px;
  background: #eef4f8;
}
.flexnav ul ul {
  left: 250px;
  top: -1px;
}
.flexnav ul li {
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
  border-top: 1px solid #123b6d;
  border-left: 1px solid #123b6d;
  border-right: 1px solid #123b6d;
}
.flexnav ul li:last-child {
  border-bottom: 1px solid #123b6d;
}
.flexnav ul li a {
  background: #eef4f8;
  padding: 8px 22px;
  display: block;
  width: 100%;
  text-decoration: none;
  transform: scaleY(1);
  line-height: 20px;
}
.flexnav ul .touch-button {
  width: 40px;
  height: 40px;
  border-left: 1px solid #123b6d;
}
.flexnav ul .touch-button::after {
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
}
.flexnav ul .touch-button::before {
  right: 17px;
  top: 16px;
  height: 7px;
  width: 7px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -ms-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

.flexnav ul {
  display: none;
  visibility: hidden;
  opacity: 0;
}
.flexnav li:hover > ul,
.flexnav li.open > ul {
  display: block;
  visibility: visible;
  opacity: 1;
}

@media all and (max-width: 1023px) {
  .flexnav {
    background: #e6f0f7;
  }
  .flexnav ul {
    display: block;
    visibility: visible;
    opacity: 1;
  }
  .flexnav > li > a {
    padding: 18px 15px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transform: scaleY(1);
  }
  .flexnav > li:first-child > a {
    padding-left: 15px;
  }
  .flexnav > li:last-child > a {
    padding-right: 15px;
  }
  .touch-button {
    width: 54px;
    height: 54px;
  }
  .touch-button::after {
    width: 26px;
    height: 26px;
  }
  .touch-button::before {
    width: 10px;
    height: 10px;
    right: 21px;
    top: 20px;
  }
  .flexnav ul li {
    border: none;
    border-top: 1px solid #123b6d;
  }

  .flexnav {
    overflow: hidden;
    max-height: 0;
  }
  .flexnav.show {
    overflow: visible;
    max-height: 3000px;
  }
  .flexnav li {
    float: none;
  }
  .flexnav ul li a {
    width: auto;
  }
  .flexnav > li {
    border-top: 1px solid #e6f0f7;
  }
  .flexnav ul,
  .flexnav ul ul {
    position: relative;
    left: 0;
    width: 100%;
  }
  .flexnav.show .touch-button,
  .menu-button .touch-button {
    border-left: 1px solid #e6f0f7;
    z-index: 999;
  }
  .flexnav ul .touch-button::before {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    right: 16px;
    top: 15px;
  }
  .menu-button {
    padding: 18px 22px;
    font-size: 16px;
    color: #123b6d;
    line-height: 1;
    background: #082a4a;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    display: block;
    background: #eef9fc;
  }
  .menu-button .touch-button::before {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    border-left: 0;
    border-top: 2px solid #123b6d;
    border-bottom: 2px solid #123b6d;
    height: 2px;
    width: 12px;
    top: 22px;
  }
  .menu-button::after {
    display: block;
    width: 12px;
    height: 2px;
    content: "";
    position: absolute;
    background: #123b6d;
    right: 21px;
    top: 30px;
  }
  .flexnav ul li a {
    padding-left: 20px;
  }
  .flexnav ul ul li a {
    padding-left: 30px;
  }
  .flexnav ul ul ul li a {
    padding-left: 40px;
  }
}


.flexnav {
    background: #ffffff !important;
}