﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary {
	padding:0;
	display: flex; justify-content: flex-start; align-items: stretch; 
	margin:0;
	width:100%;
	position:relative;
}
nav.primary ul {
	margin:0; 
	padding:0; display: flex; justify-content: flex-start; align-items: stretch; position: relative; 
}
nav.primary ul li {
	display:flex; justify-content: center; align-items: stretch; position: relative; pointer-events: all; 
	margin:0;
	list-style-type:none; 
	width:auto;
}
nav.primary ul li a {
	font-family: 'semplicitapro', sans-serif; position: relative; 
	color:#fff; letter-spacing: .5px; 
	font-size:17px;
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; 
	margin:0;
	text-align:left;
	-webkit-transition:.4s ease-in;  
	-moz-transition:.2s ease-in;  
	-o-transition:.2s ease-in;  
	transition:.2s ease-in;	
	font-weight:500;
	padding:0 20px;
	cursor: pointer; 
}	
nav.primary > ul > li:first-child { padding-left: 8px; }
nav.primary ul li a:hover {
	background: #162964 /*rgba(0, 0, 0, .25)*/;
	color:#fff;
}
/* Appearance of the sub-level links */
nav.primary ul li li a { display: flex; justify-content: flex-start; align-items: center; 
	padding:12px;letter-spacing: .5px; 
	color:#fff;
	background: #000;
	text-align:left;
	border-right:none;
	border-left:none;
	border-bottom: #202020 solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	background: #162964 /*#203b92*/; color: #fff; 
}
nav.primary ul li li li a { border-left: #202020 solid 1px; }

nav.primary > ul > li > ul > li:first-child > a { 
	border-top-left-radius: 8px; border-top-right-radius: 8px; 
}
nav.primary > ul > li > ul > li:last-child > a { 
	border-bottom: none; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; 
}

nav.primary > ul > li > ul > li > ul > li:first-child > a { 
	border-top-left-radius: 8px; border-top-right-radius: 8px; 
}
nav.primary > ul > li > ul > li > ul > li:last-child > a { 
	border-bottom: none; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; 
}

/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul {
    display: none;
    position: absolute; top: calc(100% - 12px); left: -6px; 
	width: unset;
}
nav.primary ul ul ul {
    position: absolute; 
    left: 100%;
    top:0; 
}
nav.primary ul li:hover > ul {  
    display: block;
    line-height:18px; 
    z-index: 100;
}
nav.primary ul ul li {
    float: none; 
	width: 210px;
    position: relative;
    margin:0;
	display: block;
}

@media only screen and (max-width: 1600px) {
	nav.primary > ul > li:first-child { padding-left: 0; }
	nav.primary > ul > li > a { padding: 0 18px; }
}

@media only screen and (max-width: 1520px) {
	nav.primary > ul > li > a { font-size: 16px; }
}

@media only screen and (max-width: 1420px) {
	nav.primary > ul > li:first-child { padding-left: 8px; }
	nav.primary > ul > li > a { padding: 0 16px; }
}

@media only screen and (max-width: 1350px) {
	nav.primary > ul > li > a { font-size: 15px; padding: 0 14px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1281px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1280px)  {
	
	.mobile + .menu-toggle.exit-click{
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 499;
		pointer-events: none;
		background: rgba(36,32,33,0.33);
		opacity: 0;	
		transition: ease opacity 0.3s;
	}
	.mobile.open + .menu-toggle.exit-click{
		pointer-events: auto;
		opacity: 1;
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
	}
/*==============================
	Mobile Nav Styles			
================================*/	
	nav.primary{display:none;} 
	
	#menu-button { 
		display: flex; justify-content: flex-start; align-items: stretch; pointer-events: all; 
		position: relative;
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a {
		color:#fff; display: flex; justify-content: center; align-items: center; column-gap: 12px; pointer-events: all; 
		font-size: 24px; padding: 0 24px; 
		text-decoration: none;
		cursor: pointer; transition: .25s ease all; 
	}
	
	#menu-button a span {font-family: 'semplicitapro', sans-serif; font-size: 17px; }
	#menu-button a:hover { background: #162964; }
	
	nav.mobile {
		display: block; pointer-events: all; 
		position: fixed;
		top: 0;
		right: -340px;
		width: min(100%, 340px);
		height: 100%;
		background: #000;
		z-index: 500; /* needs to be higher than #menu-button, adjust as needed */
		overflow:auto;
	}

	/* MENU HEADER STYLES */
	nav.mobile .mobile_top {
		position: relative;
		display:block;
		padding: 0;
		margin:50px 0 30px 0;
	}

	/* MENU CLOSE 'X' BUTTON */
	nav.mobile .menu-toggle:not(.exit-click) {
		position: absolute;pointer-events: all; 
		padding: 4px 9px;
		font-family: Arial, sans-serif;
		font-size: 24px;
		font-weight: bold;
		line-height: 1;
		background: #444;
		color: #fff;
		text-decoration: none;
		top: -38px;
		right: 13px;
		cursor: pointer; transition: .25s ease all; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
		background: #222;
		color: #fff;
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul li {
		border-top: 1px solid #222;
		border-bottom: 1px solid #151515;
		position:relative;
	}
	nav.mobile ul li:first-child { border-top: none; }
	/*nav.mobile ul li:last-child { border-bottom: none; }*/

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative;
		cursor: pointer; 
		display: flex; justify-content: space-between; align-items: center; min-height: 48px; 
		font-family: 'semplicitapro', sans-serif; 
		font-size: 15px;
		padding: 10px; padding-right: 14px;  
		color: #fff;
		text-decoration: none;
		border-left: 4px #000 solid;
		text-align: left; transition: .25s ease all; 
	}
	nav.mobile ul li a:hover {
		color: #fff; background: #162964; 
		border-left: 4px #162964 solid; /* border highlight - Change to fit match site colors */
	}

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		background: #151515;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 48px; 
		padding: 10px 15px;
		border-left:4px #151515 solid;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		background: #282828;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 48px; 
		padding: 10px 15px 10px 25px;
		color: #fff;
		text-decoration: none;
		border-left: 4px #282828 solid;
	}
	nav.mobile ul li li li a:hover {}

	nav.mobile ul li .click.open i:before{
		content: "\f068";
	}

	.nav-footer {
		color:#777; 
		font-family: 'semplicitapro', sans-serif; letter-spacing: 1px; 
		position:relative; 
		text-align:center; 
		font-size:15px; 
		line-height:20px; 
		padding:20px 12px 40px 12px;
	}
}

@media only screen and (max-width: 300px) {
	#menu-button a span { display: none!important; }
}