/* Header Menu Extension - Prosilver Header Seamless Extension */

/* Connect headerbar directly to vinny-header-menu */
.headerbar {
	margin-bottom: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.vinny-header-menu {
	background-repeat: repeat-x;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	border-bottom: 1px solid #005f93;
	border-radius: 0 0 7px 7px;
	padding: 0;
	margin-top: 0;
	margin-bottom: 6px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
	clear: both;
}

.vinny-header-menu .inner {
	display: flex;
	align-items: center;
	padding: 0 6px;
}

.vinny-header-menu .nav-main {
	display: flex;
	flex: 1;
	flex-wrap: nowrap;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vinny-header-menu .header-menu-item {
	display: flex;
	align-items: center;
	position: relative;
	margin: 0;
	padding: 0;
	border-right: 1px solid rgba(255,255,255,.22);
	border-left: 1px solid rgba(0,0,0,.15);
}

.vinny-header-menu .header-menu-item:first-child { border-left: none }
.vinny-header-menu .header-menu-item:last-child { border-right: none }

.vinny-header-menu .header-menu-item > a.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	color: #fff;
	font-size: 1.1em;
	font-weight: 600;
	text-decoration: none;
	text-shadow: 0 1px 1px rgba(0,0,0,.25);
	transition: background-color .15s ease,color .15s ease;
}

.vinny-header-menu .header-menu-item:hover > a.nav-link {
	background: rgba(255,255,255,.18);
	color: #fff;
	text-decoration: none;
}

.vinny-header-menu .header-menu-item > a.nav-link i.menu-arrow {
	margin-left: 4px;
	font-size: 1em;
	opacity: .85;
	transition: transform .2s ease,opacity .2s ease;
}

.vinny-header-menu .header-menu-item:hover > a.nav-link i.menu-arrow,
.vinny-header-menu .header-menu-item.open > a.nav-link i.menu-arrow {
	transform: rotate(180deg);
	opacity: 1;
}

.vinny-header-menu .vinny-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1050;
	min-width: 200px;
	background: #fff;
	border: 1px solid #c5d4e2;
	border-radius: 0 0 6px 6px;
	box-shadow: 0 6px 16px rgba(0,0,0,.15);
	margin: 0;
	padding: 4px 0;
	list-style: none;
	animation: vinnyMenuSlideDown .18s ease forwards;
}

@keyframes vinnyMenuSlideDown {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.vinny-header-menu .header-menu-item:hover > .vinny-dropdown-menu { display: block }

.vinny-header-menu .vinny-dropdown-item {
	position: relative;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #f2f5f8;
}

.vinny-header-menu .vinny-dropdown-item:last-child { border-bottom: none }

.vinny-header-menu .vinny-dropdown-item > a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	padding: 8px 14px;
	color: #333;
	font-size: 1em;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s ease,color .15s ease,padding-left .15s ease;
}

.vinny-header-menu .vinny-dropdown-item > a .item-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-align: left;
}

.vinny-header-menu .vinny-dropdown-item > a i.icon { color: #0076b1 }

.vinny-header-menu .vinny-dropdown-item > a i.submenu-arrow {
	margin-left: auto;
	font-size: 1em;
	color: #888;
	transition: color .15s ease,transform .15s ease;
}

.vinny-header-menu .vinny-dropdown-item:hover > a {
	background: #eaf4fd;
	color: #0076b1;
	padding-left: 18px;
	text-decoration: none;
}

.vinny-header-menu .vinny-dropdown-item:hover > a i.submenu-arrow,
.vinny-header-menu .vinny-dropdown-item.open > a i.submenu-arrow {
	color: #0076b1;
	transform: rotate(90deg);
}

.vinny-header-menu .vinny-subdropdown-menu {
	display: none;
	position: absolute;
	top: -4px;
	left: 100%;
	z-index: 1060;
	min-width: 180px;
	background: #fff;
	border: 1px solid #c5d4e2;
	border-radius: 6px;
	box-shadow: 0 6px 16px rgba(0,0,0,.15);
	margin-left: 1px;
	padding: 4px 0;
	list-style: none;
	animation: vinnyMenuSlideRight .18s ease forwards;
}

@keyframes vinnyMenuSlideRight {
	from {
		opacity: 0;
		transform: translateX(-4px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.vinny-header-menu .vinny-dropdown-item.has-submenu:hover > .vinny-subdropdown-menu { display: block }

/* Mobile Responsiveness */
.vinny-header-menu .vinny-mobile-bar {
	display: none;
}

@media (max-width: 700px) {
	/* Structure */
	.vinny-header-menu .inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		padding: 0;
	}

	/* Hide the search box */
	.vinny-header-menu #searchbox { display: none !important }

	/* Menu Button */
	.vinny-header-menu .vinny-mobile-bar {
		display: block;
		width: 100%;
		padding: 0;
	}

	.vinny-header-menu .vinny-mobile-toggle {
		display: flex;
		width: 100%;
		box-sizing: border-box;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 12px 14px;
		color: #fff;
		font-weight: 700;
		font-size: 1.1em;
		text-decoration: none;
		text-align: center;
		background: rgba(0,0,0,.12);
		border-radius: 0;
		transition: background-color .2s ease;
	}

	.vinny-header-menu .vinny-mobile-toggle:hover {
		background: rgba(0,0,0,.22);
		color: #fff;
		text-decoration: none;
	}

	/* Menu */
	.vinny-header-menu .nav-main {
		display: flex;
		flex-direction: column;
		width: 100%;
		flex: none;
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		align-items: stretch;
		justify-content: flex-start;
		padding: 0;
		margin: 0;
		transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
	}

	.vinny-header-menu.responsive-open .nav-main {
		max-height: 1200px;
		opacity: 1;
		padding-bottom: 0;
	}

	/* Level 1 */
	.vinny-header-menu .header-menu-item {
		width: 100%;
		display: block;
		border-left: none;
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,.15);
	}

	.vinny-header-menu .header-menu-item > a.nav-link {
		display: flex;
		width: 100%;
		box-sizing: border-box;
		align-items: center;
		justify-content: center;
		padding: 12px 14px;
		text-align: center;
	}

	/* Disable desktop menus */
	.vinny-header-menu .header-menu-item:hover > .vinny-dropdown-menu { display: none }

	/* Level 2 */
	.vinny-header-menu .vinny-dropdown-menu {
		position: static;
		display: none;
		width: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: rgba(255,255,255,.95);
		animation: none;
	}

	.vinny-header-menu .header-menu-item.open > .vinny-dropdown-menu {
		display: block;
		animation: vinnyMenuSlideDown .25s ease forwards;
	}

	.vinny-header-menu .vinny-dropdown-item { width: 100% }

	.vinny-header-menu .vinny-dropdown-item > a {
		display: flex;
		width: 100%;
		box-sizing: border-box;
		align-items: center;
		justify-content: center;
		padding: 10px 14px;
		text-align: center;
		color: #1a365d;
		border-bottom: 1px solid #e2e8f0;
	}

	.vinny-header-menu .vinny-dropdown-item > a .item-label {
		justify-content: center;
		text-align: center;
	}

	.vinny-header-menu .vinny-dropdown-item:hover > a {
		background: #e2e8f0;
		padding-left: 14px;
	}

	/* Level 3 */
	.vinny-header-menu .vinny-dropdown-item.has-submenu:hover > .vinny-subdropdown-menu { display: none }

	.vinny-header-menu .vinny-subdropdown-menu {
		position: static;
		display: none;
		width: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: #edf2f7;
		animation: none;
	}

	.vinny-header-menu .vinny-dropdown-item.open > .vinny-subdropdown-menu {
		display: block;
		animation: vinnyMenuSlideDown .25s ease forwards;
	}

	.vinny-header-menu .vinny-subdropdown-menu .vinny-dropdown-item > a {
		padding-left: 14px;
		text-align: center;
		justify-content: center;
	}
}
