.apa-modern-header-active #site-header {
	display: none !important;
}

.apa-modern-header-active .apa-mh {
	position: sticky;
	top: 0;
	z-index: 10002;
	background: var(--apa-mh-header-bg, #05080e);
	backdrop-filter: saturate(130%) blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-bar .apa-modern-header-active .apa-mh {
	top: 32px;
}

.apa-modern-header-active .apa-mh__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.9rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.apa-modern-header-active .apa-mh__brand img {
	max-height: 44px;
	width: auto;
	display: block;
}

.apa-modern-header-active .apa-mh__brandText {
	color: var(--apa-mh-header-link, #f2f4f8);
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.apa-modern-header-active .apa-mh__nav {
	flex: 1;
}

.apa-modern-header-active .apa-mh.apa-mh--menu-none .apa-mh__nav,
.apa-modern-header-active .apa-mh.apa-mh--menu-none .apa-mh__toggle,
.apa-modern-header-active .apa-mh.apa-mh--menu-none .apa-mh__mobile {
	display: none !important;
}

.apa-modern-header-active .apa-mh__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.apa-modern-header-active .apa-mh__menu li {
	margin: 0;
	position: relative;
}

.apa-modern-header-active .apa-mh__menu a {
	color: var(--apa-mh-header-link, #f2f4f8);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.015em;
	padding: 0.45rem 0.2rem;
	transition: color 160ms ease;
}

.apa-modern-header-active .apa-mh__menu a:hover,
.apa-modern-header-active .apa-mh__menu a:focus {
	color: var(--apa-mh-header-hover, #ffbb00);
}

.apa-modern-header-active .apa-mh__menu .current-menu-item > a,
.apa-modern-header-active .apa-mh__menu .current-menu-ancestor > a,
.apa-modern-header-active .apa-mh__menu .current_page_item > a,
.apa-modern-header-active .apa-mh__menu .current_page_parent > a {
	color: var(--apa-mh-header-active, #ffbb00);
}

/* Desktop dropdowns */
.apa-modern-header-active .apa-mh__nav .apa-mh__menu > .menu-item-has-children > a {
	padding-right: 1.05rem;
}

.apa-modern-header-active .apa-mh__nav .apa-mh__menu > .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	right: 0.1rem;
	top: 50%;
	width: 0.42rem;
	height: 0.42rem;
	margin-top: -0.36rem;
	border-right: 2px solid var(--apa-mh-header-link, #f2f4f8);
	border-bottom: 2px solid var(--apa-mh-header-link, #f2f4f8);
	transform: rotate(45deg);
}

.apa-modern-header-active .apa-mh__nav .apa-mh__menu .sub-menu {
	position: absolute;
	left: 0;
	top: calc(100% + 10px);
	min-width: 230px;
	margin: 0;
	padding: 0.5rem 0.65rem;
	list-style: none;
	background: var(--apa-mh-submenu-bg, #0f1724);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
	z-index: 10003;
}

.apa-modern-header-active .apa-mh__nav .apa-mh__menu .sub-menu li {
	display: block;
}

.apa-modern-header-active .apa-mh__nav .apa-mh__menu .sub-menu a {
	display: block;
	padding: 0.5rem 0.4rem;
	font-size: 0.9rem;
	line-height: 1.3;
}

.apa-modern-header-active .apa-mh__nav .apa-mh__menu > li:hover > .sub-menu,
.apa-modern-header-active .apa-mh__nav .apa-mh__menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.apa-modern-header-active .apa-mh__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.apa-modern-header-active .apa-mh__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--apa-mh-cta-text, #111111);
	background: var(--apa-mh-cta-bg, #ffbb00);
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 0.7rem 0.95rem;
	border-radius: 999px;
}

.apa-modern-header-active .apa-mh__toggle {
	display: none;
	background: transparent !important;
	border: 0;
	padding: 0.35rem;
	border-radius: 0;
	margin: 0;
}

.apa-modern-header-active .apa-mh__toggle span {
	display: block;
	width: 24px;
	height: 3px;
	margin: 4px 0;
	background: var(--apa-mh-header-link, #f2f4f8);
	border-radius: 2px;
}

.apa-modern-header-active .apa-mh__mobile {
	background: var(--apa-mh-header-bg, #05080e);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.apa-modern-header-active .apa-mh__mobileInner {
	padding: 0.75rem 1rem 1.2rem;
}

.apa-modern-header-active .apa-mh__mobile .apa-mh__menu {
	display: grid;
	gap: 0.15rem;
	justify-content: stretch;
}

.apa-modern-header-active .apa-mh__mobile .apa-mh__menu a {
	display: block;
	padding: 0.65rem 0;
}

/* Mobile dropdowns */
.apa-modern-header-active .apa-mh__mobile .apa-mh__menu > li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apa-modern-header-active .apa-mh__mobile .apa-mh__menu > li:last-child {
	border-bottom: 0;
}

.apa-modern-header-active .apa-mh__mobile .apa-mh__menu .sub-menu {
	display: none;
	list-style: none;
	margin: 0.15rem 0 0.65rem;
	padding: 0.2rem 0 0.1rem 0.85rem;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.apa-modern-header-active .apa-mh__mobile .apa-mh__menu .sub-menu a {
	font-size: 0.92rem;
	color: var(--apa-mh-header-link, #f2f4f8);
	padding: 0.45rem 0;
}

.apa-modern-header-active .apa-mh__mobile .apa-mh__menu .current-menu-item > a,
.apa-modern-header-active .apa-mh__mobile .apa-mh__menu .current-menu-ancestor > a,
.apa-modern-header-active .apa-mh__mobile .apa-mh__menu .current_page_item > a,
.apa-modern-header-active .apa-mh__mobile .apa-mh__menu .current_page_parent > a {
	color: var(--apa-mh-header-active, #ffbb00);
}

.apa-modern-header-active .apa-mh__mobile .apa-mh__menu li.is-open > .sub-menu {
	display: block;
}

.apa-modern-header-active .apa-mh__submenuToggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0 0 0 8px;
	padding: 0;
	border: 0;
	background: transparent !important;
	color: var(--apa-mh-header-link, #f2f4f8);
}

.apa-modern-header-active .apa-mh__submenuToggle::before {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 140ms ease;
}

.apa-modern-header-active .apa-mh__mobile .apa-mh__menu li.is-open > .apa-mh__submenuToggle::before {
	transform: rotate(225deg);
	margin-top: 6px;
}

.apa-modern-header-active .apa-mh__mobile .apa-mh__menu .menu-item-has-children > a {
	display: inline-block;
	width: calc(100% - 44px);
}

.apa-modern-header-active .apa-mh__cta--mobile {
	margin-top: 0.85rem;
}

@media (max-width: 1024px) {
	.admin-bar .apa-modern-header-active .apa-mh {
		top: 46px;
	}

	.apa-modern-header-active .apa-mh__nav {
		display: none;
	}

	.apa-modern-header-active .apa-mh__cta {
		display: none;
	}

	.apa-modern-header-active .apa-mh__toggle {
		display: block;
	}
}
