﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary {
	padding:0;
	display:flex;
	margin:0;
	width:100%;
	position:relative;
}
nav.primary ul {
	margin:0; height: 100%; width: 100%;
	padding:0; flex-direction: row; position: relative; 
	display:flex;justify-content: space-between; align-items: stretch; 
}
nav.primary ul li { flex-grow: 1; 
	display:flex;align-items: stretch; flex-direction: row; 
	margin:0;position: relative; 
	list-style-type:none; 
	width:auto;
}
nav.primary ul li a {
	color:#000; position: relative; 
	font-size:15px; width: 100%;
	line-height:1.2;
	text-decoration:none;flex-direction: row; 
	display:flex;justify-content: center; align-items: center; 
	margin:0;
	text-align:center;
	-webkit-transition:.2s ease-in;  
	-moz-transition:.2s ease-in;  
	-o-transition:.2s ease-in;  
	transition:.2s ease-in;	
	font-weight:500;
	padding:0 18px;
	cursor: pointer; 
}	
nav.primary ul li a:hover {
	color:#0e0369; 
}

nav.primary > ul > li > a:before { position: absolute; content: ""; background: #0e0369; width: 80%; left: 50%; transform: translateX(-50%); bottom: 0; height: 0px; transition: .25s ease all; opacity: 0; }
nav.primary > ul > li:hover > a:before { opacity: 1; height: 3px; }

/* Appearance of the sub-level links */
nav.primary ul li li a { 
	font-size:16px;
	line-height:16px;
	padding:10px;
	color:#fff;
	background: #0e0369;
	text-align:left;
	border-right:none;
	border-left:none;
	border-bottom: #45428f solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	background: #45428f; color: #fff;
}

nav.primary ul li li:first-child a { border-top: #45428f solid 1px; border-top-left-radius: 5px; border-top-right-radius: 5px; }
nav.primary ul li li:last-child a { border-bottom: none; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }

/* 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: 100%; left: 50%; transform: translateX(-50%);
	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: 160px;
    position: relative;
    margin:0;
	display: block;
}

@media only screen and (max-width: 1550px) {
	nav.primary ul li a { font-size: 14px; padding: 0 12px; }
	nav.primary > ul > li > a:before { width: 90%; }
}

/******** 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-end; align-items: stretch; 
		position: relative;
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a {
		color:#000; display: flex; justify-content: center; align-items: center; column-gap: 12px; padding: 0 24px; 
		font-size: 24px;
		text-decoration: none;
		cursor: pointer; transition: .25s ease all; 
	}
	#menu-button a:before { position: absolute; content: ""; background: #0e0369; width: 100%; left: 0; bottom: 0; height: 0px; transition: .25s ease all; opacity: 0; }
	#menu-button a span { font-size: 16px; }
	#menu-button a:hover, #menu-button a:hover i, #menu-button a:hover span { color:#0e0369!important; }
	#menu-button a:hover:before { opacity: 1; height: 3px; }
	
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		left: -340px;
		width: min(100%, 320px);
		height: 100%;
		background: #f2f2f2;
		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:flex; height: 20px; 
		padding: 0;
		margin:50px 0 10px 0;
		color: #999;
		font-size: 18px;
		font-weight: 400;
	}

	/* MENU CLOSE 'X' BUTTON */
	nav.mobile .menu-toggle:not(.exit-click) {
		position: absolute;
		display: flex; width: 50px; height: 50px; justify-content: center; align-items: center; 
		font-family: Arial, sans-serif;
		font-size: 40px;
		line-height: 1;
		background: #0e0369;
		color: #fff;
		text-decoration: none;
		top: -38px;
		right: 13px;
		cursor: pointer; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
		background: #45428f;
		color: #fff;
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul { border-top: 1px solid #bbb; }
	nav.mobile ul li {
		border-bottom: 1px solid #bbb;
		position:relative;
	}
	nav.mobile ul ul li:last-child {
		border-bottom: none;
		position:relative;
	}

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative;
		cursor: pointer; 
		display: flex; justify-content: space-between; align-items: center; min-height: 50px; 
		font-size: 15px;
		padding: 10px 20px 10px 10px;
		color: #000;
		text-decoration: none;
		border-left: 4px #f2f2f2 solid;
		text-align: left;
	}
	
	nav.mobile ul li a:hover {
		color: #0e0369; background: #fff; 
		border-left: 4px #0e0369 solid; /* border highlight - Change to fit match site colors */
	}
	
	nav.mobile ul li a, nav.mobile ul li a span, nav.mobile ul li a * { color: #000; }
	nav.mobile ul li a:hover, nav.mobile ul li a:hover span, nav.mobile ul li a:hover * { color: #0e0369; }

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		background: #ddd;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 50px; 
		padding: 10px 20px 10px 15px;
		border-left:4px #ddd solid;
		color: #000;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover { background: #e8e8e8; }

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		background: #d0d0d0;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 50px; 
		padding: 10px 20px 10px 25px;
		color: #000;
		text-decoration: none;
		border-left: 4px #d0d0d0 solid;
	}
	nav.mobile ul li li li a:hover { background: #ddd; }

	nav.mobile ul li .click.open i:before{
		content: "\f068";
	}

	.nav-footer {
		color:#444!important; 
		position:relative; 
		text-align:center; 
		font-size:14px; 
		line-height:1.25; 
		padding:24px 20px;
	}
	.nav-footer, .nav-footer span { color: #444!important; }
}

@media only screen and (max-width: 700px) {
	#menu-button a { padding: 0 6vw; min-width: 50px; }
	#menu-button a span { display: none!important; }
}