﻿.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; 
}
nav.primary ul li {
	pointer-events: all; 
	display:flex; justify-content: center; align-items: stretch; 
	margin:0; position: relative; 
	list-style-type:none; 
	width:auto;
}
nav.primary ul li a {
	font-family: 'effra', sans-serif; 
	color:#000;
	font-size:15px;
	line-height:20px;
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; 
	margin:0;
	text-align:center;
	text-transform:uppercase;
	-webkit-transition:.25s ease-in;  
	-moz-transition:.25s ease-in;  
	-o-transition:.25s ease-in;  
	transition:.25s ease-in;	
	font-weight:600;
	padding:0 10px; letter-spacing: .5px; 
	cursor: pointer; 
	position: relative; 
}	
nav.primary ul li a:hover, nav.primary ul li:hover a, nav.primary ul li ul:hover ~ a {
	color:#1d367d; 
}

nav.primary > ul > li > a:before, nav.primary > ul > li > a:after {
	position: absolute; content: ""; left: 50%; right: 50%; height: 2px; 
	background: #1d367d; opacity: 0; transition: .25s ease all; 
}
nav.primary > ul > li > a:before { top: 18px; }
nav.primary > ul > li > a:after { bottom: 18px; }
nav.primary > ul > li:hover > a:after, nav.primary > ul > li ul:hover ~ a:after, nav.primary > ul > li > a:hover:before, nav.primary > ul > li > a:hover:after { 
	left: 0; right: 0; opacity: 1; transition: .25s ease all .05s ease opacity .3s ease left .3s ease right; 
}

nav.primary ul li a i { margin-bottom: 2px; }

/* Appearance of the sub-level links */
nav.primary ul li li a { 
	font-size:16px;
	line-height:20px; min-height: 36px; 
	padding:12px;
	color:#fff!important;
	background: #0d1938;
	text-align:left; justify-content: flex-start; 
	border-right:none;
	border-left:none;
	border-bottom: #555 solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	background: #1d367d; color: #fff!important; 
}

nav.primary ul li li:first-child a { border-top-left-radius: 15px; border-top-right-radius: 15px; }
nav.primary ul li li:last-child a { border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; border-bottom: none; }

/* 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: -15px; 
	width: unset; border-radius: 15px; 
}
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; 
	min-width: 160px;
    position: relative;
    margin:0;
	display: block;
}

@media only screen and (max-width: 1670px) {
	nav.primary ul li a { padding: 0 12px; }
	nav.primary ul ul { left: -14px; }
}

@media only screen and (max-width: 1610px) {
	nav.primary ul li a { padding: 0 10px; }
	nav.primary ul ul { left: -12px; }
}

@media only screen and (max-width: 1580px) {
	n av.primary ul li a { padding: 0 8px; font-size: 15px; font-weight: 500; line-height: 18px; }
	n av.primary ul ul { left: -10px; }
}

@media only screen and (max-width: 1500px) {
	n av.primary ul li a { padding: 0 8px; font-size: 15px; font-weight: 500; line-height: 18px; }
	n av.primary ul ul { left: -10px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1301px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1300px)  {
	
	.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; 
		position: relative;
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a {
		color:#000; padding: 0 24px; pointer-events: all; 
		text-decoration: none;
		cursor: pointer; transition: .25s ease all; 
		display: flex; justify-content: flex-start; align-items: center; column-gap: 12px; 
	}
	#menu-button a i { font-size: 25px; margin-bottom: 5px; }
	#menu-button a span { text-transform: uppercase; text-align: left; font-size: 19px; }
	#menu-button a:hover {color:#1d367d;}
	
	
	nav.mobile {
		display: block;pointer-events: all; 
		position: fixed;
		top: 0;
		right: -300px;
		width: min(100%, 300px);
		height: 100%;
		background: #0d1938;
		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 10px 0;
		color: #999;
		font-size: 18px;
		font-weight: 400;
	}

	/* MENU CLOSE 'X' BUTTON */
	nav.mobile .menu-toggle:not(.exit-click) {
		position: absolute;
		padding: 3px 8px 3px;
		font-family: Arial, sans-serif;
		font-size: 24px;
		font-weight: bold;
		line-height: 1;
		background: #c92626;
		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: #9f1e1e;
		color: #fff;
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul li {
		border-bottom: 1px solid #555;
		position:relative;
	}
	nav.mobile ul li li:first-child a{
		border-top: 1px solid #555;
		position:relative;
	}

	/* FIRST LEVEL */
	nav.mobile ul li a {
		font-family: 'effra', sans-serif; 
		position: relative;
		cursor: pointer; 
		display: flex; justify-content: flex-start; align-items: center; column-gap: 8px; min-height: 50px; 
		font-size: 16px; text-transform: uppercase; 
		padding: 12px; transition: .25s ease all; 
		color: #fff;
		text-decoration: none;
		border-left: 4px #0d1938 solid;
		text-align: left;
	}
	nav.mobile ul li a:hover {
		color: #fff; background: #132553 /*#1a2b3c*/; 
		border-left: 4px #fff solid; /* border highlight - Change to fit match site colors */
	}
	
	nav.mobile ul li a i { font-size: 14px; margin-bottom: 2px; }

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		background: rgba(0, 0, 0, .2);
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 8px; min-height: 50px; 
		padding: 10px 10px 10px 15px;
		border-left:4px rgba(0, 0, 0, .15) solid;
		color: #eee;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		background: rgba(0, 0, 0, .4);
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 8px; min-height: 50px; 
		padding: 10px 10px 10px 25px;
		color: #ddd;
		text-decoration: none;
		border-left: 4px rgba(0, 0, 0, .3) solid;
	}
	nav.mobile ul li li li a:hover {}

	nav.mobile ul li .click.open i:before{
		content: "\f068";
	}

	.nav-footer {
		color:#ccc; 
		position:relative; 
		text-align:center; 
		font-size:16px; letter-spacing: .5px; 
		line-height:16px; 
		padding:32px 15px;
	}
}

@media only screen and (max-width: 800px) {
	#menu-button { justify-content: flex-end; }
	#menu-button a { flex-direction: row-reverse; }
}

@media only screen and (max-width: 240px) {
	#menu-button { justify-content: center; width: 100%; }
	#menu-button a { width: 100%; padding-top: 8px; }
}