
/* overall containers for the navigation */

#nav-container {
	height: 140px;
	width: 920px;
	background-color: #4a5c3a;
	margin: 0 auto;
	position: relative;
}

/* Top row elements */

#nav-toplevel {
	background-color: #4a5c3a;
	height: 95px;
	width: 100%;
	text-align: center;
	padding-top: 10px;
}

/* "major" describes the larger links */

#navblock-major {
	float: left;
}

.navitem-major {
	font-family: Sedan, "Palatino Linotype", "Book Antiqua", Palatino, serif;
	color: #C1D7B1;
	text-align: center;
	font-size: 20px;
	font-weight: normal;
	line-height: 18px;
	display: table-cell;
	background-image: url(/images/blackblock.gif);
	width: 125px;
}

.navitem-major a {
	color: #C2D5B0;
	height: 65px;
	width: 130px;
	display: table-cell;
	vertical-align: middle;
	text-decoration: none;
	}

.navitem-major a:hover {
	color: #FFF;
	background-color: #446034;
	}



/* "minor" describes the smaller links to the right of the logo */

#navblock-minor {
	float: right;
	display: table;
	height: 60px;
	background-color: #000;
	vertical-align: middle;
}
.navitem-minor {
	font-family: "Signika Negative", Verdana, Geneva, sans-serif;
	color: #FFF;
	font-size: 12px;
	font-weight: 300;
	width: 50px;
	padding-right: 5px;
	padding-left: 5px;
	height: 65px;
	vertical-align: middle;
	text-align: center;
	display: table-cell;
	background-color: #000;
	background-image: url(/images/blackblock.gif);
}

.navitem-minor a {
	color: #C2D5B0;
	height: 65px;
	width: 130px;
	display: table-cell;
	vertical-align: middle;
	text-decoration: none;
}

.navitem-minor a:hover {
	color: #FFF;
	background-color: #446034;
}



#navblock-logo {
	background-color: transparent;
	height: 50px;
	width: 100%;
	text-align: center;
	margin-bottom: 10px;
}

#navblock-logo img {
	height: 50px;
	width: auto;
}

/* New main navigation block */
#navblock-main {
	text-align: center;
	width: 100%;
	display: inline-block;
}

.navitem-main {
	display: inline-block;
	color: #ffffff;
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: normal;
	padding: 0 15px;
	line-height: 30px;
}

.navitem-main a {
	color: #ffffff;
	text-decoration: none;
}

.navitem-main a:hover {
	text-decoration: underline;
}


/* Second row elements - these become active when a top row link has been selected */

#nav-bottomlevel {
	background-color: #4a5c3a;
	width: 100%;
	clear: both;
	text-align: center;
	padding: 10px 0;
	margin-top: 0;
	height: 35px;
}
/* Bottom navigation block */
#navblock-bottom {
	text-align: center;
	width: 100%;
	display: block;
	position: relative;
}

.navitem-bottom {
	display: inline-block;
	color: #ffffff;
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: normal;
	padding: 0 15px;
	line-height: 25px;
	border-right: 1px solid #ffffff;
}

.navitem-bottom:last-child {
	border-right: none;
}
.navitem-bottom a {
	color: #ffffff;
	text-decoration: none;
}

.navitem-bottom a:hover {
	text-decoration: underline;
}

/* Hide mobile menu elements on desktop */
.mobile-menu-toggle {
	display: none;
}

.mobile-menu-button {
	display: none;
}

/* Mobile Optimization for Header */
@media screen and (max-width: 768px) {
	
	/* Navigation container - responsive width */
	#nav-container {
		width: 100%;
		height: auto;
		min-height: 120px;
		background-color: #4a5c3a;
	}
	
	/* Top level navigation adjustments */
	#nav-toplevel {
		width: 100%;
		height: auto;
		padding: 10px;
		text-align: center;
		position: relative;
	}
	
	/* Logo adjustments for mobile */
	#navblock-logo {
		width: 100%;
		height: auto;
		margin-bottom: 15px;
		display: flex;
		justify-content: center;
		align-items: center;
		min-height: 60px;
	}
	
	#navblock-logo img {
		height: 40px;
		width: auto;
		max-width: 200px;
	}
	
	/* Mobile hamburger menu button */
	.mobile-menu-button {
		display: block;
		position: absolute;
		top: 15px;
		right: 25px;
		width: 30px;
		height: 30px;
		cursor: pointer;
		z-index: 1000;
		padding: 5px;
		background-color: rgba(255, 255, 255, 0.1);
		border-radius: 4px;
	}
	
	.mobile-menu-button span {
		display: block;
		width: 20px;
		height: 2px;
		background-color: #ffffff;
		margin: 4px auto;
		transition: 0.3s;
		transform-origin: center;
	}
	
	/* Hamburger animation when menu is open */
	.mobile-menu-toggle:checked + .mobile-menu-button span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}
	
	.mobile-menu-toggle:checked + .mobile-menu-button span:nth-child(2) {
		opacity: 0;
	}
	
	.mobile-menu-toggle:checked + .mobile-menu-button span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -6px);
	}
	
	/* Main navigation - hidden by default on mobile */
	#navblock-main {
		width: 100%;
		text-align: center;
		line-height: 1.2;
		display: none;
		background-color: #4a5c3a;
		padding: 10px 0;
		margin-top: 10px;
	}
	
	/* Show navigation when hamburger menu is checked */
	.mobile-menu-toggle:checked ~ #navblock-main {
		display: block;
	}
	
	.navitem-main {
		display: block;
		font-size: 14px;
		padding: 12px 15px;
		margin: 0;
		line-height: 20px;
		white-space: nowrap;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
	
	.navitem-main:last-child {
		border-bottom: none;
	}
	
	.navitem-main a {
		color: #ffffff;
		text-decoration: none;
		display: block;
		padding: 8px 0;
	}
	
	.navitem-main a:hover {
		text-decoration: underline;
		background-color: rgba(255, 255, 255, 0.1);
		border-radius: 4px;
	}
	
	/* Bottom level navigation */
	#nav-bottomlevel {
		width: 100%;
		height: auto;
		padding: 10px 5px;
		text-align: center;
	}
	
	#navblock-bottom {
		width: 100%;
		text-align: center;
	}
	
	.navitem-bottom {
		display: inline-block;
		font-size: 16px;
		font-weight: bold;
		padding: 8px 15px;
		margin: 2px;
		line-height: 20px;
	}
	
	.navitem-bottom a {
		color: #ffffff;
		text-decoration: none;
		display: block;
	}
	
	.navitem-bottom a:hover {
		text-decoration: underline;
	}
	
	/* Ensure navigation text wraps properly on very small screens */
	@media screen and (max-width: 480px) {
		.navitem-main {
			font-size: 12px;
			padding: 6px 8px;
		}
		
		.navitem-bottom {
			font-size: 12px;
			padding: 6px 10px;
		}
		
		#navblock-logo img {
			height: 35px;
		}
	}
}

