﻿.wpf-menu {
	position: relative;
	width: 100%;
	font-size:1.2em;
}

.wpf-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	margin: 0.5rem;
	cursor: pointer;
}

.wpf-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	line-height: 1;
}

.wpf-menu.vertical .wpf-menu-list {
	flex-direction: column;
}

.wpf-menu-item {
	position: relative;
	margin: 0;
	padding: 0;
}

	.wpf-menu-item > a {
		display: block;
		padding: 0.5rem 0.75rem;
		text-decoration: none;
		color: #333;
		line-height: 1.2;
		transition: color 0.2s ease, background-color 0.2s ease;
	}

		/* HOVER STATE FOR TOP-LEVEL ITEMS */
		.wpf-menu-item > a:hover {
			color: #0066cc; /* change top-level text color */
		}

	/* For top-level items with children, you may want a slightly stronger hover */
	.wpf-menu-item.has-children > a:hover {
		color: #004c99;
	}

	.wpf-menu-item.has-children > a::after {
		content: " ▾";
		font-size: 0.75em;
	}

.wpf-submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	min-width: 200px;
	list-style: none;
	margin: 0;
	padding: 0;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	z-index: 10;
}

	.wpf-submenu li a {
		padding: 0.4rem 0.75rem;
		display: block;
		color: #333;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

		/* HOVER STATE FOR CHILD ITEMS */
		.wpf-submenu li a:hover {
			background-color: #f0f0f0; /* light gray background on hover */
			color: #000; /* slightly darker text */
		}

.wpf-menu-item:hover > .wpf-submenu {
	display: block;
}

@media (max-width: 768px) {
	.wpf-menu-toggle {
		display: block;
	}

	.wpf-menu-list {
		flex-direction: column;
		display: none;
	}

	.wpf-menu.open .wpf-menu-list {
		display: flex;
	}

	.wpf-submenu {
		position: static;
		box-shadow: none;
	}

	.wpf-menu-item.has-children > a::after {
		content: " ▸";
	}

	.wpf-menu-item:hover > .wpf-submenu {
		display: block;
	}
}
