/* Flexnav Base Styles */
.flexnav {
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  transition: none;
  -webkit-transform-style: preserve-3d;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-height: 0; }
.flexnav.opacity {
  opacity: 0; }
.flexnav.flexnav-show {
  max-height: 2000px;
  opacity: 1;
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  -ms-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out; }
.flexnav.one-page {
  position: fixed;
  top: 50px;
  right: 5%;
  max-width: 200px; }
.flexnav li {
  font-size: 100%;
  position: relative;
  overflow: hidden; }
.flexnav li a {
  position: relative;
  display: block;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  z-index: 2;
  overflow: hidden;
  /* color: #325e83; */
  color: #325e83;
  font-size: 14px;
  padding-bottom: 10px; }
.flexnav li a:hover {
  color: #0c703a;}
.flexnav > li.active > a { color: #0c703a; border-bottom: 2px solid #0c703a;  }

.flexnav li ul {
  width: 12vw; }
.flexnav li ul li {
  font-size: 100%;
  position: relative;
  overflow: hidden; 
  border-bottom-color:#3e4b8f; }
.flexnav li ul.flexnav-show li {
  overflow: visible; }
.flexnav li ul li a {
  display: block; }
.flexnav ul li ul li a {
  background: #f3f3f3; padding: 12px 24px 12px 34px; }
.flexnav ul li ul li ul li a {
  background: #cbcbc9; }
.flexnav .touch-button {
  position: absolute;
  z-index: 999;
  top: 7px;
  right: 0;
  width: 13px;
  height: 7px;
  display: inline-block;
  background: url("../images/menu-arrow.png") no-repeat;
  text-align: center; }
.flexnav .touch-button:hover {
  cursor: pointer; }
.flexnav .touch-button .navicon {
  position: relative;
  top: 1.4em;
  font-size: 0;
  color: #666; }
.menu-button {
  position: relative;
  display: block;
  padding: 15px;
  background: #325e83;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase; }
.menu-button.one-page {
  position: fixed;
  top: 0;
  right: 5%;
  padding-right: 45px; }
.menu-button .touch-button {
  background: transparent;
  position: absolute;
  z-index: 999;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  display: inline-block;
  text-align: center; }
.menu-button .touch-button .navicon {
  font-size: 0;
  position: relative;
  top: 14px;
  color: #666; 
  vertical-align: middle;
  background: url("../images/menu-arrow-white.png") no-repeat center center; 
  display: inline-block; width: 13px; height: 7px; }
.menu-button .touch-button.active .navicon { background: url("../images/menu-arrow-up-white.png") no-repeat center center; }
       
@media all and (min-width: 1024px) {
  body.one-page {
    padding-top: 70px; }

.flexnav {
  overflow: visible; }
.flexnav.opacity {
  opacity: 1; }
.flexnav.one-page {
  top: 0;
  right: auto;
  max-width: 1080px; }
.flexnav li {
  position: relative;
  list-style: none;
  float: left;
  display: block;
  overflow: visible;
  margin-left: 22px;
  padding:53px 0 28px;  }
.flexnav li:last-child { background: #0b9248; }
.flexnav li:last-child a { padding-right: 18px; padding-left: 18px; color: #fff; }
.flexnav li:last-child a:hover { opacity: 0.65; }
.flexnav li.item-with-ul { padding-right: 22px;}

.flexnav li > ul {
  background: rgba(255, 255, 255, 1) none repeat scroll 0 0;
  border-top: 3px solid #29367a;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  display: none;
  left: 0;
  position: absolute;
  top: 35px;
  width: 302px;
  z-index: 9; }
.flexnav li > ul:before { border-bottom: 13px solid #29367a;  border-left: 13px solid rgba(0, 0, 0, 0);    border-right: 13px solid rgba(0, 0, 0, 0); content: "";  height: 0;  left: 41px;  position: absolute;    top: -13px;  width: 0; }
.flexnav li > ul li {
  width: 100%; margin: 0; }
.flexnav li ul li > ul {
  margin-left:0;
  top: 0; 
  position: relative; }
.flexnav li ul li a {
  border-bottom: 1px solid #e5e5e5; 
  padding-bottom: 0;
  color: #333;
  text-transform: inherit;
  padding: 12px 24px;
  font-size: 14px; }
.flexnav li ul.open {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 1; }
.flexnav li ul.open li {
  overflow: visible;
  max-height: 100px; }
.flexnav li ul.open ul.open {
  margin-left: 100%;
  top: 0; }
.menu-button {  display: none; } 

.flexnav .item-with-ul .item-with-ul > ul{ border:none; }
.flexnav .item-with-ul .item-with-ul > ul:before{ border:none; }
.flexnav .item-with-ul .item-with-ul > .touch-button {   height: 42px; right: 0; top: 0;  width: 42px; background-position:center center; }
.flexnav .item-with-ul .item-with-ul:hover > .touch-button { background: url("../images/menu-arrow-up.png") no-repeat center center; }
.flexnav .item-with-ul .item-with-ul { padding-right: 0;}

}

@media all and (max-width: 1023px) {

 .flexnav li a { font-size: 14px;}
 .flexnav li { margin-left: 22px;}
 header .menu { margin-top: 24px;}

}

@media all and (max-width: 1023px) {

 header .menu { margin-top: 15px; width: 100%;}
 .flexnav li { margin-left: 0; border-bottom: 1px solid #e5e5e5;}
 .flexnav li a { padding: 15px;}
 .flexnav li ul { width: 100%;}
 .flexnav li.item-with-ul > a { border-bottom: 1px solid #e5e5e5; }
 .flexnav li.item-with-ul .item-with-ul > a { color: #333;}

 .flexnav li.item-with-ul { border-bottom: none;}
 .flexnav li.item-with-ul > ul  { background:#f1f1f1; }
 .flexnav ul li ul li a { background:#29367a; color: #fff; padding: 12px 24px 12px 24px; }
 .flexnav .touch-button { width: 48px; height: 48px; background: url("../images/menu-arrow-white.png") no-repeat center center #29367a; top: 0; }
 .flexnav .touch-button.active {  background: url("../images/menu-arrow-up-white.png") no-repeat center center #29367a; }
 .flexnav li.item-with-ul .item-with-ul .touch-button { background-color: #d4d4d4;}
    
}
