﻿.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;
	position: relative; 
	display:flex; justify-content: flex-start; align-items: stretch; 
}
nav.primary ul li {
	display:flex; justify-content: center; align-items: stretch; 
	margin:0;position: relative; 
	list-style-type:none; 
	width:auto;
}
nav.primary ul li a {
	color:#000;position: relative; 
	font-size:17px; letter-spacing: .5px; 
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; 
	margin:0;
	text-align:center; font-family: 'aleo', sans-serif; 
	-webkit-transition:.3s ease-in;  
	-moz-transition:.3s ease-in;  
	-o-transition:.3s ease-in;  
	transition:.3s ease-in;	
	font-weight:700;
	padding:0 18px 4px 18px;
	cursor: pointer; 
}	
nav.primary ul li a:hover {
	background: #e8e8e8;
	color:#071886;
}

nav.primary > ul > li > a:before {
	position: absolute; content: ""; bottom: 0; left: 0; width: 100%; height: 0px; opacity: 0; 
	background: #071886; 
	transition: .25s ease all; 
}

nav.primary > ul > li > a:hover:before { 
	height: 3px; opacity: 1; 
}
nav.primary > ul > li:hover > a, 
nav.primary > ul > li ul:hover ~ a { 
	background: #e8e8e8;
	color:#071886;
}

/* Appearance of the sub-level links */
nav.primary ul li li a { 
	font-size:17px;
	line-height:1.2;
	padding:14px;
	color:#000;display:flex; justify-content: flex-start; align-items: center; 
	background: #f4f4f4;
	text-align:left;
	border-right:none;
	border-left:none;
	border-bottom: #bbb solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	background: #071886; color: #fff; 
}
nav.primary ul li li:first-child > a { 
	border-top-left-radius: 8px; border-top-right-radius: 8px; 
}
nav.primary ul li li:last-child > a { 
	border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; 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: 100%; left: -8px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); 
	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: 220px;
    position: relative;
    margin:0;
	display: block;
}

@media only screen and (max-width: 1350px) {
	nav.primary ul li a { font-size: 16px; padding: 0px 12px 2px 12px; }
}

@media only screen and (max-width: 1120px) {
	nav.primary ul li a { font-size: 15px; padding: 0px 10px 2px 10px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1021px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1020px)  {
	
	.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 {
		cursor: pointer; 
		color:#000;position: relative; 
	font-size:23px;  
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; column-gap: 12px; 
	margin:0;
	text-align:center; font-family: 'aleo', sans-serif; 
	-webkit-transition:.3s ease-in;  
	-moz-transition:.3s ease-in;  
	-o-transition:.3s ease-in;  
	transition:.3s ease-in;	
	font-weight:700;
	padding:0 24px;
	}
	#menu-button a span {
		font-weight:700;font-family: 'aleo', sans-serif; letter-spacing: .5px; line-height:1.2; font-size: 17px; padding-bottom: 2px;
	}
	
	#menu-button a:before {
		position: absolute; content: ""; bottom: 0; left: 0; width: 100%; height: 0px; opacity: 0; 
		background: #071886; 
		transition: .25s ease all; 
	}	
#menu-button a:hover { 
	background: #e8e8e8;
	color:#071886;
}
#menu-button a:hover:before { 
	height: 3px; opacity: 1; 
}

	
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		left: -300px;
		width: min(100%, 300px);
		height: 100%;
		background: #f4f4f4;
		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: 6px; 
		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; width: 42px; height: 42px; 
		display: flex; justify-content: center; align-items: center; 
		font-family: Arial, sans-serif;
		font-size: 32px;
		line-height: 1;
		background: #202020;
		color: #ccc;
		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: #071886;
		color: #fff;
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul li {
		border-bottom: 1px solid #151515;
		position:relative;
	}

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative;
		cursor: pointer; 
		display: flex; justify-content: flex-start; align-items: center; column-gap: 12px; min-height: 54px; 
		font-size: 17px;
		padding: 12px 10px;
		color: #000;
		font-weight:700;font-family: 'aleo', sans-serif; letter-spacing: .5px; line-height:1.2;
		text-decoration: none;
		border-bottom: 2px #f4f4f4 solid;
		text-align: left;transition: .25s ease all; 
	}
	nav.mobile ul li a:hover {
		color: #071886; background: #e8e8e8;
		border-bottom: 2px #071886 solid; /* border highlight - Change to fit match site colors */
	}
	
	nav.mobile ul li a.sister-link { width: 100%!important; align-items: flex-start!important; }
	nav.mobile ul li a.sister-link:before, nav.mobile ul li a.sister-link:hover:before { display: none!important; }
	nav.mobile ul li a.sister-link .sister-title { font-size: 13px!important; }
	nav.mobile ul li a.sister-link img { max-width: 350px!important; }

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		background: #e0e0e0;
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 12px; min-height: 54px; 
		padding: 12px 10px 12px 15px;
		border-bottom:2px #e0e0e0 solid;
		color: #000;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover { background: #ccc;}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		background: #d0d0d0;
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 12px; min-height: 54px; 
		padding: 12px 10px 12px 25px;
		color: #000;
		text-decoration: none;
		border-bottom: 2px #d0d0d0 solid;
	}
	nav.mobile ul li li li a:hover { background: #bbb;}

	nav.mobile ul li .click.open i:before{
		content: "\f068";
	}

	.nav-footer {
		color:#444; 
		position:relative; 
		text-align:center; 
		font-size:16px; 
		line-height:16px; 
		padding:32px 16px; letter-spacing: 1px; 
		font-family: 'aleo', sans-serif; 
	}
}

@media only screen and (max-width: 520px) {
	#menu-button a span { display: none!important; }
}

@media only screen and (max-width: 200px) {
	#menu-button, #menu-button a { width: 100%!important; }
}