.main-nav {
	background: #fff;
	position: relative;
	max-width: 950px;
	margin: auto;
}

.main-nav:after {
  clear: both;
  content: "\00a0";
  display: block;
  height: 0;
  font: 0px/0 serif;
  overflow: hidden;
}

.nav-brand {
	float: left;
	margin: 0;
	width: 300px;
	max-width: 70%;
}

.nav-brand a {
  display: block;
  padding: 10px;
  color: #333;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: normal;
  line-height: 17px;
  text-decoration: none;
}
.nav-brand a img{
	width: 100%;
}

#main-menu {
  clear: both;
  border-bottom: 0;
}

@media (min-width: 768px) {
  #main-menu {
    float: right;
    clear: none;
  }
.nav-brand {
	margin: 0;
	width: 300px;
}

}
@media (min-width: 950px) {
  #main-menu {
    clear: none;
  }
}


/* Mobile menu toggle button */

.main-menu-btn {
  float: right;
  margin: 5px 10px;
  position: relative;
  display: inline-block;
  width: 29px;
  height: 29px;
  text-indent: 29px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/* hamburger icon */

.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
  position: absolute;
  top: 50%;
  left: 2px;
  height: 2px;
  width: 24px;
  background: #333;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}

.main-menu-btn-icon:before {
  content: '';
  top: -7px;
  left: 0;
}

.main-menu-btn-icon:after {
  content: '';
  top: 7px;
  left: 0;
}


/* x icon */

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
  height: 0;
  background: transparent;
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
  top: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
  top: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* hide menu state checkbox (keep it visible to screen readers) */

#main-menu-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}


/* hide the menu in mobile view */

#main-menu-state:not(:checked) ~ #main-menu {
  display: none;
}

#main-menu-state:checked ~ #main-menu {
  display: block;
}

@media (min-width: 768px) {
  /* hide the button in desktop view */
  .main-menu-btn {
    position: absolute;
    top: -99999px;
  }
	#main-menu-state:not(:checked) ~ #main-menu,
	#main-menu-state:checked ~ #main-menu {
		display: flex;
		position: relative;
		justify-content: space-between;
		width: 100%;
		clear: both;
	}
	.sm-simple > li {
		border-top: 0;
		width: 16.6%;
	}
}
#gmenu{
	position: relative;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
    z-index: 10000;
}
#gmenu::after{
	content: "";
	display: block;
}

#gmenu .pcnav{
	float: right;
	margin: 0 auto;
	right: 0;
	display: inline-block;
}

@media (min-width: 1040px) {
  /* always show the menu in desktop view */
	#main-menu-state:not(:checked) ~ #main-menu,
	#main-menu-state:checked ~ #main-menu {
		display: flex;
		width: 100%;
	}
	#gmenu::after{
		content: "";
		display: block;
		clear: both;
	}
	.sm-simple > li {
		border-top: 0;
		width: 16.6%;
	}

}
#gmenu .pcnav p{
	display: block;
    font-size: 12px;
    line-height: 40px;
    padding: 0 10px;
    margin: 0 0 0 0;
    height: 40px;
    background:#2b5796;
	color: #fff;
	position: relative;
    float: left;
}
#gmenu .pcnav p::after{
	content: "";
	display: block;
	width: 1px;
	height: 24px;
	background: #fff;
	color: #fff;
	margin: auto;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
}
#gmenu .pcnav a{
	display: block;
    font-size: 12px;
    line-height: 40px;
    padding: 0 10px;
    margin: 0 1px 0 0;
    height: 40px;
    background:#6c96ca;
	color: #fff;
    float: right;
	text-decoration: none;
}


.select-hidden {
  display: none;
  visibility: hidden;
  padding-right: 10px;
}

.select {
  cursor: pointer;
  display: inline-block;
  position: relative;
  font-size: 15px;
  color: #fff;
  width: 4em;
  height: 40px;
	float: left;
	margin: 0 1px 0 0; 
}

.select-styled {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #2b5796;
  padding: 8px 15px;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.select-styled:after {
  content: "";
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-color: #fff transparent transparent transparent;
  position: absolute;
  top: 16px;
  right: 10px;
}
.select-styled:hover {
  background-color: #6c96ca;
}
.select-styled:active, .select-styled.active {
  background-color: #2b5796;
}
.select-styled:active:after, .select-styled.active:after {
  top: 9px;
  border-color: transparent transparent #fff transparent;
}

.select-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 999;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #2b5796;
}
.select-options li {
  margin: 0;
  padding: 8px 0;
  text-indent: 15px;
  border-top: 1px solid #30629e;
  -moz-transition: all 0.15s ease-in;
  -o-transition: all 0.15s ease-in;
  -webkit-transition: all 0.15s ease-in;
  transition: all 0.15s ease-in;
}
.select-options li:hover {
  color: #fff;
  background: #6c96ca;
}
.select-options li[rel="hide"] {
  display: none;
}
