/***** Header Menu *****/
#topnav {
	font-family: 'Montserrat', sans-serif; 
	float: right;
	padding: 0;
}

#topnav li {
	display: block;
	float: left;
	position: relative;
	padding-right: 1.2em;
}

#topnav > li > a {
	display: block;
	width: 100%;
	font-size: 1.1em;
	line-height: 1;
	padding: 1.2em .8em;
	z-index: 996;
}

#topnav > li > a:hover, 
#topnav li:hover > a {
	background: #333;
	color: #fff;
}

#topnav li:hover > ul {
	z-index: 997;
	display: block;
}

#topnav > li.active > a,
#topnav > li.current-menu-item > a, 
#topnav > li.current-menu-ancestor > a {
	font-weight: bold;
	color: #333;
}

#topnav li.active:hover > a,
#topnav > li.active > a:hover {
	color: #fff;
}

#topnav a {
	color: #777; /* a9a9a9 */
	font-weight: normal;
	text-decoration: none;
}

/*** 1st-level submenu ***/
#topnav li ul {
	background: #003D7E;
	display: none;
	min-width: 150px;
	left: 0;
	padding: 1em;
	position: absolute;
	text-align: left;
	top: 51px;
}
#topnav li ul li {
	width: 100%;
	white-space: nowrap;
	z-index: 998;
}

#topnav li ul.flip {
	left: auto;
	right: 0;
}

#topnav li ul li a {
	color: #fff;
	display: block;
	font-size: 1em;
	line-height: 40px;
	min-height: 40px;
	border-bottom: solid 1px #002851;
	
	transition: background-color .25s ease-in-out, color .25s ease-in-out, padding .25s ease-in-out;
   	-moz-transition: background-color .25s ease-in-out, color .25s ease-in-out, padding .25s ease-in-out;
   	-webkit-transition: background-color .25s ease-in-out, color .25s ease-in-out, padding .25s ease-in-out;
   	-o-transition: background-color .25s ease-in-out, color .25s ease-in-out, padding .25s ease-in-out;
}
#topnav li ul li.active a {
	font-weight: normal;
	color: #333;
}
#topnav li ul li:last-child a {
	border-bottom: none;
}
#topnav li ul li a:hover, 
#topnav li ul li:hover > a {
	color: #ccc;
}

#topnav li ul li:last-child a {
	padding-bottom: 0;
}

/*** 2nd-level submenu ***/
#topnav li ul li ul {
	margin-left: 95%;
	top: -40px;
	border: 1px solid #002851;
	border-width: 1px 0px 0px 1px;
}

#topnav li ul li ul li {
    margin-bottom: 3px;
	z-index: 999;
}

#topnav li ul li ul li:last-child {
	margin-bottom: 0;
}

#topnav li ul li span:first-child {
	display: none;
}

/*** arrows (for all except IE7) **/
.sf-arrows .sf-with-ul {
	padding-right: 2.5em;
	*padding-right: 1em; /* no CSS arrows for IE7 (lack pseudo-elements) */
}
/* styling for both css and generated arrows */
.sf-arrows .sf-with-ul:after {
	content: '';
	position: absolute;
	top: 1.5em;
	right: 1em;
	height: 0;
	width: 0;
	/* order of following 3 rules important for fallbacks to work */
	border: 5px solid transparent;
	border-top-color: #000; /* edit this to suit design (no rgba in IE8) */
	border-top-color: rgba(0,0,0,.2);
}
.sf-arrows > li > .sf-with-ul:focus:after,
.sf-arrows > li:hover > .sf-with-ul:after,
.sf-arrows > .sfHover > .sf-with-ul:after {
	border-top-color: #fff; /* IE8 fallback colour */
}
/* styling for right-facing arrows */
.sf-arrows ul .sf-with-ul:after {
	margin-top: -5px;
	margin-right: -3px;
	border-color: transparent;
	border-left-color: #fff; /* edit this to suit design (no rgba in IE8) */
	border-left-color: rgba(255,255,255,.5);
}
.sf-arrows ul li > .sf-with-ul:focus:after,
.sf-arrows ul li:hover > .sf-with-ul:after,
.sf-arrows ul .sfHover > .sf-with-ul:after {
	border-left-color: #fff;
}

/***** Mobile Menu Icon *****/
#menu-wrapper button {
	border: none;
	width: 48px;
	height: 45px;
	text-indent: -900em;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	outline: none;
/*	background: #003d7e;
	float: left;
	margin: 0px 3px 5px auto; */
	background: #fff;
	float: right;
	margin: 0px auto 5px 3px; 	
}
#menu-wrapper button:before, 
#menu-wrapper button:after {
	content: '';
	position: absolute;
	width: 68%;
	height: 5px;
/*	background: #fff;*/
	background: #666;
	top: 30px;
	left: 16%;
	
    -webkit-transition: .2s ease-in-out;
    -moz-transition: .2s ease-in-out;
    -o-transition: .2s ease-in-out;
    transition: .2s ease-in-out;	
}
#menu-wrapper button:before { 
	top: 10px;
/*	box-shadow: 0 10px 0 #fff;*/
	box-shadow: 0 10px 0 #666;
}
#menu-wrapper button.active:before {
	top: 20px;
	transform: rotate(45deg);
	box-shadow: none;
}
#menu-wrapper button.active:after {
	top: 20px;
	transform: rotate(-45deg);
}

@media only screen and (min-width : 641px) {
#menu-wrapper button {
	display: none;
}
#topnav li ul {
	-webkit-box-shadow: 9px 9px 0 rgba(34, 34, 34, 0.5);
	box-shadow: 9px 9px 0 rgba(34, 34, 34, 0.5);
}}

/* Smartphones (portrait) ----------- */
@media only screen and (max-width: 640px) {
/* Styles */
#topnav.hidden {
	display: none;
}
#topnav li {
	width: 100%;
	border-bottom: 1px solid #ddd;
	padding: 0;
}
#topnav li:last-child, #topnav li  li {
	border-bottom: 0;
}
#topnav li a {	
	display: block;
	width: auto;
	padding: 1em .5em;
}
#topnav li li a {
	padding: 0 .25em;
}
#topnav li ul,
#topnav li ul li ul {
	position: relative;
	top: 0;
	border: 0;
	margin-left: 0;
	overflow: hidden;
	padding-top: 3px;
}}

