/* Reset Styles */
div, a, dl, dt, dd, ol, ul, li {
	margin: 0;
	padding: 0;
}
/* General Styles */
* {box-sizing: border-box;}
/* ------------------------------------------------------------
	Page Styles
------------------------------------------------------------ */
/* -------- Top Level --------- */
.primaryNav {
	font-family: "Arimo", sans-serif;
	font-size: 400;
	line-height: 1;
	padding: 1em 0;

	clear: both;
	margin-top: 6em;
	direction:ltr;
	min-width:1000px;
}
.primaryNav #level_one {
	position: absolute;
	margin-top: -6em;
	margin-bottom: 0;
	width: 100%;
}
.primaryNav #level_one:before {
	display: none;
}
.primaryNav #level_two {
	position: absolute;
	margin-top: -2em;
	margin-bottom: 0;
	width: 100%;
}
.primaryNav ul {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	position: relative;
}
.primaryNav li {
	flex: 1;
	flex-basis: 11.5em;
	padding-right: 1.25em;
	position: relative;
}
.primaryNav > ul > li {
	margin-top: 3em;
}
.primaryNav li a {
	margin: 0;
	padding: .875em .9375em .9375em .9375em;
	display: block;
	font-size: 400;
	font-weight: 600;
	color: white;
	background: #3486BC;
	text-shadow: 0 0 10px rgba(0,0,0,.1);
	border: 1px solid  rgba(0,0,0,.025);
	box-shadow: 0px 2px 1px rgba(0,0,0,0.15);
	text-decoration: none;
	text-align: center;
}
.primaryNav li a:hover {
	background-color: #274584;
}
.primaryNav a:link:after,
.primaryNav a:visited:after,
.utilityNav a:link:after,
.utilityNav a:visited:after {
	/*content: " "attr(href)" ";*/
	display: block;
	font-weight: 600;
	font-size: 400;
	margin-top: .25em;
	word-wrap: break-word;
	color: rgba(255,255,255,.75);
}
#container{width:100%;}
#left{float:left;width:33%;}
#right{float:right;width:33%;}
#center{margin:0 auto;width:33%;}
/* -------- Second Level --------- */
.primaryNav ul ul {
	display: block;
}
.primaryNav ul ul li {
	padding-top: .6875em;
	padding-right: 0;
}
.primaryNav ul ul li a {
	background-color: #16A186;
}
.primaryNav ul ul li a:hover {
	background-color: #274584;
}
/* -------- Third Level --------- */
.primaryNav ul ul ul {
	margin-top: .6em;
	padding-top: .6em;
	padding-bottom: .625em;
}
.primaryNav ul ul ul li {
	padding-top: .3125em;
	padding-bottom: .3125em;
}
.primaryNav ul ul ul li a {
	background-color: #F48221;
	font-size: 400;
	padding: .75em;
	width: 90%;
	margin-right: 0;
	margin-left: auto;
}
.primaryNav ul ul ul li a:hover {
	background-color: #274584;
}
.primaryNav ul ul ul li:first-child {
	padding-top: 1em;
}
.primaryNav ul ul ul li a:link:after,
.primaryNav ul ul ul li a:visited:after {
	font-size: 400;
}

/* --------	Fourth Level --------- */
.primaryNav ul ul ul ul {
	margin-top: 0;
	padding-top: .3125em;
	padding-bottom: .3125em;
}
.primaryNav ul ul ul ul li a {
	background-color: #de003a;
	padding: .75em ;
	width: 80%;
}
.primaryNav ul ul ul ul li a:hover {
	background-color: #274584;
}
.primaryNav ul ul ul ul li a:link:after,
.primaryNav ul ul ul ul li a:visited:after {
	display: none;
}

/* ------------------------------------------------------------
	Connecting Lines:
	Uncomment 'border-color: red' for debugging
------------------------------------------------------------ */

.primaryNav ul:before,
.primaryNav ul:after,
.primaryNav ul li:before,
.primaryNav ul li:after {
	display: block;
	content: '';
	position: absolute;
	border-width: 0;
	border-color: #e3e3e3;
	border-style: solid;
	z-index: -1;
	/* border-color: red; */
}
.primaryNav > ul > li:before {
	height: 1.375em;
	top: -1.2em;
	right: calc(50% + .625em);
	width: calc(100% - 2px);
	border-top-width: 2px;
	border-right-width: 2px;
	/* border-color: red; */
}
.primaryNav > ul > li:first-child + li:before {
	border-top-width: 0;
	height: 5em;
	/*top: -5em;*/
	/* border-color: red; */
}
.primaryNav ul ul li:after {
	width: 50%;
	height: .6875em;
	top: 0;
	right: 1px;
	border-left-width: 2px;
	/* border-color: red */;
}
.primaryNav ul ul li:first-child:before {
	width: 50%;
	height: 1.3125em;
	top: .6875em;
	right: 1px;
	border-left-width: 2px;
	/* border-color: red; */
}
.primaryNav > ul > li:last-child:after {
	border-bottom-width: 0;
}
.primaryNav > ul > li:nth-child(3):before {
	border-top-width: 0px;
}
.primaryNav ul ul ul li:before {
	width: calc(50% - 5px) !important;
	height: calc(100% - 2px);
	top: -50%;
	left: 0;
	border-left-width: 2px;
	border-bottom-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul ul li:first-child:before {
	height: 2.125em;
	top: -1px;
	border-top-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul ul:before {
	width: 50%;
	height: 1.25em;
	top: -10px;
	right: 1px;
	border-left-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul ul li:after {
	border-width: 0;
}
.primaryNav ul ul ul ul li:before,
.primaryNav ul ul ul ul li:first-child:before {
	display: none;
}
.primaryNav ul ul ul ul:before {
	width: 1px;
	height: calc(100% + 2.5em);
	top: -2.5em;
	left: 0;
	border-left-width: 2px;
	/* border-color: red; */
}

/* By EraWeb */
.primaryNav > ul li:nth-child(5) > ul:nth-child(1) > li:nth-child(1):after,
.primaryNav > ul li:nth-child(7) > ul:nth-child(1) > li:nth-child(1):after {
    border-left-width: 2px;
}
.primaryNav > ul > li:nth-child(4) > a:first-child,
.primaryNav > ul > li:nth-child(6) > a:first-child {
	width: calc(200% + 20px);
}
.primaryNav > ul > li:nth-child(5),
.primaryNav > ul > li:nth-child(7){
	padding-top: 3em;
}
/* ------------------------------------------------------------
	Utility Navigation
------------------------------------------------------------ */
.utilityNav {
	float: right;
	margin-top: 0;
	margin-bottom: -.25em;
	margin-right: 1.25em;
	max-width: 48%;
	list-style-type: none;
}
.utilityNav li {
	padding: 0 0 .625em .625em;
	display: inline-block;
}
.utilityNav li:first-child {
}
.utilityNav li a {
	display: block;
	font-size: 400;
	font-weight: 600;
	padding: .75em 1em;
	font-weight: 600;
	text-align: left;
	color: white;
	background-color: #F48221;
	border: 1px solid  rgba(0,0,0,.025);
	box-shadow: 0px 2px 0 rgba(0,0,0,0.15);
	text-shadow: 0 0 10px rgba(0,0,0,.15);
	text-decoration: none;
}
.utilityNav li a:hover {
	background-color: #274584;
}
.utilityNav li a:link:after,
.utilityNav li a:visited:after {
	color: rgba(255,255,255,.75);
	font-size: 400;
	font-weight: 600;
	margin-top: .25em;
}

/* ------------------------------------------------------------
	Responsive Styles
------------------------------------------------------------ */
@media screen and (max-width: 30em) {
	.primaryNav ul {
		display: block;
	}
	.primaryNav li {
		width: 100%;
		padding-right: 0;
	}
	.primaryNav #level_two {
		width: 100%;
		position: relative;
		margin-bottom: -1em;
		margin-top: 0;
	}
	.utilityNav {
		float: none;
		display: block;
		width: 100%;
		text-align: right;
		margin-bottom: 2.5em;
		max-width: 100%;
	}
}