.wp-block-template-part:has(.mega-menu-new:not(.mega-menu-new--composable)),
header.wp-block-template-part:has(.mega-menu-new:not(.mega-menu-new--composable)) {
	margin: 0;
	position: sticky;
	top: 0;
	z-index: 50;
}

.mega-menu-new,
.mega-menu-new * {
	box-sizing: border-box;
}

.mega-menu-new {
	color: #1e1e1e;
	font-family: Poppins, Helvetica, Arial, sans-serif;
	margin: 0;
	max-width: none !important;
	position: relative;
	width: 100%;
}

.mega-menu-new a {
	text-decoration: none;
}

.mega-menu-new:not(.mega-menu-new--composable) {
	background: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__bar {
	background: #fff;
	position: relative;
	z-index: 2;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__inner {
	align-items: center;
	display: flex;
	gap: 24px;
	height: 100px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1240px;
	padding: 0 24px;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__logo {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__logo .custom-logo-link,
.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__logo .mega-menu-new__site-title {
	display: flex;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__logo img {
	display: block;
	height: 44px;
	max-width: 210px;
	object-fit: contain;
	width: auto;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__site-title {
	color: #1e1e1e;
	font-size: 24px;
	font-weight: 700;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__desktop {
	align-items: center;
	display: flex;
	flex: 1;
	gap: 12px;
	min-width: 0;
}

.mega-menu-new__primary {
	align-items: center;
	display: flex;
	flex: 1;
	gap: 42px;
	height: 100px;
	justify-content: flex-end;
	padding: 0 clamp(16px, 2vw, 32px);
	white-space: nowrap;
}

.mega-menu-new__primary a,
.mega-menu-new__primary > .mega-menu-new__plain-label,
.mega-menu-new__services-trigger {
	background: none;
	border: 0;
	color: #1e1e1e;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	margin: 0;
	padding: 0;
	transition: color 0.2s ease;
}

.mega-menu-new__plain-label {
	cursor: default;
}

.mega-menu-new__primary > .mega-menu-new__plain-label,
.mega-menu-new__rail-link.mega-menu-new__plain-label {
	cursor: default;
}

.mega-menu-new__primary a:hover,
.mega-menu-new__primary a:focus-visible,
.mega-menu-new__services-trigger:hover,
.mega-menu-new__services-trigger:focus-visible,
.mega-menu-new__services-trigger[aria-expanded="true"] {
	color: #d92f50;
}

.mega-menu-new__services-trigger {
	align-items: center;
	display: flex;
	gap: 7px;
}

.mega-menu-new__panel-trigger {
	align-self: stretch;
}

.mega-menu-new__caret {
	border-bottom: 1.5px solid currentcolor;
	border-right: 1.5px solid currentcolor;
	height: 6px;
	transform: rotate(45deg) translate(-1px, -1px);
	transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.3, 1);
	width: 6px;
}

.mega-menu-new__services-trigger[aria-expanded="true"] .mega-menu-new__caret {
	transform: rotate(-135deg) translate(-1px, -1px);
}

.mega-menu-new__dropdown-item {
	align-items: center;
	display: flex;
	position: relative;
}

.mega-menu-new__dropdown {
	--bp-dropdown-card-inset: 8px;
	--bp-dropdown-row-border: 1px;
	--bp-dropdown-row-inset: 14px;

	background: transparent;
	border: 0;
	box-shadow: none;
	left: -14px;
	max-height: calc(100dvh - 120px);
	max-width: calc(100vw - 32px);
	min-width: 210px;
	overflow: visible;
	padding: 14px 0 0;
	position: absolute;
	right: auto;
	top: 100%;
	z-index: 4;
}

.mega-menu-new__dropdown[hidden] {
	display: none;
}

.mega-menu-new__dropdown-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 18px 32px -8px rgba(0, 0, 0, 0.22);
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: calc(100dvh - 134px);
	overflow-y: auto;
	padding: 10px var(--bp-dropdown-card-inset) 12px;
}

.mega-menu-new__dropdown-label {
	color: #9a9a9a;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	margin: 0;
	/* Matches the rows' transparent border so both share one text inset. */
	border: var(--bp-dropdown-row-border) solid transparent;
	padding: 4px var(--bp-dropdown-row-inset) 8px;
	text-transform: uppercase;
}

.mega-menu-new__dropdown ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mega-menu-new__dropdown ul ul {
	margin: 2px 0 0 10px;
	padding-left: 12px;
}

.mega-menu-new__dropdown li {
	list-style: none;
	margin: 0;
}

.mega-menu-new__dropdown a,
.mega-menu-new__dropdown-parent,
.mega-menu-new__dropdown .mega-menu-new__plain-label {
	align-items: center;
	border: var(--bp-dropdown-row-border) solid transparent;
	border-radius: 8px;
	color: #1e1e1e;
	display: flex;
	font-size: 15px;
	gap: 14px;
	justify-content: space-between;
	line-height: 1.4;
	padding: 11px var(--bp-dropdown-row-inset);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.mega-menu-new__dropdown a span[aria-hidden="true"] {
	color: #fa4a6a;
	font-size: 13px;
}

.mega-menu-new__dropdown-parent {
	font-weight: 600;
	margin-bottom: 4px;
}

.mega-menu-new__dropdown a:hover,
.mega-menu-new__dropdown a:focus-visible {
	background: #fff1f4;
	border-color: #ffd7de;
	color: #1e1e1e;
	transform: translateX(3px);
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__cta {
	border-radius: 999px;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.25;
	white-space: nowrap;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__cta--outline {
	border: 1.5px solid #d92f50;
	color: #d92f50;
	padding: 9px 18px;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__cta--outline:hover,
.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__cta--outline:focus-visible {
	background: #fff1f4;
	color: #d92f50;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__cta--fill {
	background: #d92f50;
	color: #fff;
	padding: 10px 20px;
}

.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__cta--fill:hover,
.mega-menu-new:not(.mega-menu-new--composable) .mega-menu-new__cta--fill:focus-visible {
	background: #c92547;
	color: #fff;
}

.mega-menu-new__mobile-trigger,
.mega-menu-new__mobile {
	display: none;
}

.mega-menu-new__sheet {
	animation: mega-menu-new-in 0.42s cubic-bezier(0.22, 0.7, 0.3, 1) both;
	background: #fff;
	box-shadow: 0 18px 32px -8px rgba(0, 0, 0, 0.22);
	left: 0;
	position: absolute;
	right: 0;
	top: 100px;
}

.mega-menu-new__sheet[hidden],
.mega-menu-new__mobile[hidden],
.mega-menu-new__dropdown[hidden],
.mega-menu-new__category-panel[hidden] {
	display: none;
}

.mega-menu-new__sheet-inner {
	align-items: start;
	display: grid;
	gap: 40px;
	grid-template-columns: 270px minmax(0, 1fr) 300px;
	margin: 0 auto;
	max-width: 1240px;
	padding: 32px 24px 40px;
}

.mega-menu-new__rail {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mega-menu-new__rail > p,
.mega-menu-new__eyebrow {
	color: #666;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	margin: 0;
	text-transform: uppercase;
}

.mega-menu-new__rail > p,
.mega-menu-new__rail > .mega-menu-new__panel-parent {
	padding: 0 0 12px 14px;
}

.mega-menu-new__panel-parent {
	color: #666;
	display: block;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	margin: 0;
	text-transform: uppercase;
}

a.mega-menu-new__panel-parent:hover,
a.mega-menu-new__panel-parent:focus-visible {
	color: #d92f50;
}

.mega-menu-new__rail button,
.mega-menu-new__rail-link {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #1e1e1e;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 15px;
	gap: 10px;
	justify-content: space-between;
	letter-spacing: 0;
	padding: 12px 14px;
	text-align: left;
	transition: background 0.2s ease, color 0.2s ease;
	width: 100%;
}

.mega-menu-new__rail button span:last-child,
.mega-menu-new__rail-link span:last-child {
	color: #d92f50;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mega-menu-new__rail-link {
	text-decoration: none;
}

.mega-menu-new__rail button[aria-selected="true"],
.mega-menu-new__rail-link[aria-selected="true"] {
	background: #fff1f4;
	color: #9f1734;
	font-weight: 600;
	text-decoration: none;
}

.mega-menu-new__rail-link:hover,
.mega-menu-new__rail-link:focus-visible {
	background: #fff1f4;
	color: #9f1734;
}

.mega-menu-new__rail-link.mega-menu-new__plain-label:hover {
	background: transparent;
	color: #1e1e1e;
}

.mega-menu-new__rail button[aria-selected="true"] span:last-child,
.mega-menu-new__rail-link[aria-selected="true"] span:last-child {
	opacity: 1;
	transform: none;
}

.mega-menu-new__category-panels {
	min-height: 250px;
}

.mega-menu-new__category-panel {
	animation: mega-menu-new-links 0.35s ease both;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.mega-menu-new__category-panel h3 {
	color: #1e1e1e;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0;
}

.mega-menu-new__category-parent {
	color: inherit;
	display: block;
}

a.mega-menu-new__category-parent:hover,
a.mega-menu-new__category-parent:focus-visible {
	color: #9f1734;
}

.mega-menu-new__category-panel > p {
	color: #6a6a6a;
	font-size: 15px;
	line-height: 1.55;
	margin: -12px 0 0;
	max-width: 460px;
}

.mega-menu-new__links {
	display: grid;
	gap: 6px 18px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.mega-menu-new__links a,
.mega-menu-new__links .mega-menu-new__plain-label {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #1e1e1e;
	display: flex;
	font-size: 15px;
	gap: 12px;
	justify-content: flex-start;
	padding: 11px 14px;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mega-menu-new__links a::before {
	background: #d92f50;
	border-radius: 50%;
	content: "";
	flex: 0 0 5px;
	height: 5px;
}

.mega-menu-new__links a:hover,
.mega-menu-new__links a:focus-visible {
	background: #fff1f4;
	border-color: #ffd7de;
	color: #1e1e1e;
	transform: translateX(3px);
}

.mega-menu-new__nested-item {
	position: relative;
}

.mega-menu-new__nested-menu {
	background: #fff;
	border: 1px solid #ffd7de;
	border-radius: 10px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
	display: none;
	left: calc(100% - 2px);
	min-width: 220px;
	padding: 6px;
	position: absolute;
	top: 0;
	z-index: 4;
}

.mega-menu-new__nested-item:hover > .mega-menu-new__nested-menu,
.mega-menu-new__nested-item:focus-within > .mega-menu-new__nested-menu {
	display: grid;
}

.mega-menu-new__nested-menu a {
	white-space: nowrap;
}

.mega-menu-new__featured {
	align-self: stretch;
	background: #f6f6f6;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px;
}

.mega-menu-new__featured-image {
	background: #e6e6e6;
	border-radius: 10px;
	height: 150px;
	margin: 0;
	overflow: hidden;
	width: 100%;
}

.mega-menu-new__featured-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mega-menu-new__featured-summary {
	color: #1e1e1e;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
}

.mega-menu-new__featured .wp-block-buttons {
	margin-top: auto;
}

.mega-menu-new__featured .mega-menu-new__cta,
.mega-menu-new__featured .wp-block-button__link {
	align-self: flex-start;
	background: #d92f50;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.25;
	padding: 10px 20px;
	white-space: nowrap;
	width: auto;
}

.mega-menu-new__featured .mega-menu-new__cta:hover,
.mega-menu-new__featured .mega-menu-new__cta:focus-visible,
.mega-menu-new__featured .wp-block-button__link:hover,
.mega-menu-new__featured .wp-block-button__link:focus-visible {
	background: #c92547;
	color: #fff;
}

@keyframes mega-menu-new-in {
	from { clip-path: inset(0 0 100% 0); }
	to { clip-path: inset(0); }
}

@keyframes mega-menu-new-links {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.wp-block-group.site-main-new,
.site-main-new > .wp-block-post-content {
	margin: 0;
	max-width: none !important;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

@media (max-width: 1249px) {
	.mega-menu-new__desktop,
	.mega-menu-new__primary,
	.mega-menu-new__sheet {
		display: none !important;
	}

	.mega-menu-new__mobile-trigger {
		background: none;
		border: 0;
		cursor: pointer;
		display: block;
		height: 40px;
		padding: 8px;
		position: relative;
		width: 40px;
	}

	.mega-menu-new__mobile-trigger span {
		background: #1e1e1e;
		display: block;
		height: 2px;
		left: 8px;
		position: absolute;
		top: 12px;
		transition: top 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
		width: 24px;
	}

	.mega-menu-new__mobile-trigger span:nth-child(2) {
		top: 19px;
	}

	.mega-menu-new__mobile-trigger span:last-child {
		top: 26px;
	}

	.is-mobile-open .mega-menu-new__mobile-trigger span:first-child {
		top: 19px;
		transform: rotate(45deg);
	}

	.is-mobile-open .mega-menu-new__mobile-trigger span:nth-child(2) {
		opacity: 0;
	}

	.is-mobile-open .mega-menu-new__mobile-trigger span:last-child {
		top: 19px;
		transform: rotate(-45deg);
	}

	.mega-menu-new__mobile {
		background: #fff;
		border-top: 1px solid #eee;
		display: flex;
		flex-direction: column;
		gap: 18px;
		padding: 18px 24px 26px;
	}

	.mega-menu-new__mobile nav {
		display: flex;
		flex-direction: column;
		gap: 18px;
	}

	.mega-menu-new__mobile ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.mega-menu-new__mobile ul ul {
		border-left: 1px solid #ddd;
		margin: 4px 0 4px 8px;
		padding-left: 14px;
	}

	.mega-menu-new__mobile li {
		list-style: none;
		margin: 0;
	}

	.mega-menu-new__mobile a {
		color: #4f4f4f;
		display: block;
		font-size: 14px;
		line-height: 1.4;
		padding: 9px 0;
	}

	.mega-menu-new__mobile .mega-menu-new__plain-label {
		color: #4f4f4f;
		display: block;
		font-size: 14px;
		line-height: 1.4;
		padding: 9px 0;
	}

	.mega-menu-new__mobile-list > li > a,
	.mega-menu-new__mobile-list > li > .mega-menu-new__plain-label {
		color: #1e1e1e;
		font-size: 16px;
		font-weight: 600;
	}

	.mega-menu-new__mobile-services {
		display: none;
	}

	.mega-menu-new__mobile-services a {
		color: #4f4f4f;
		font-size: 13px;
	}

	.mega-menu-new__mobile-actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding-top: 6px;
	}

	.mega-menu-new__mobile .mega-menu-new__cta {
		font-size: 15px;
		padding: 13px 18px;
		text-align: center;
	}
}

@media (max-width: 781px) {
	.admin-bar .wp-block-template-part:has(.mega-menu-new:not(.mega-menu-new--composable)),
	.admin-bar header.wp-block-template-part:has(.mega-menu-new:not(.mega-menu-new--composable)) {
		top: 46px;
	}
}

@media (min-width: 782px) {
	.admin-bar .wp-block-template-part:has(.mega-menu-new:not(.mega-menu-new--composable)),
	.admin-bar header.wp-block-template-part:has(.mega-menu-new:not(.mega-menu-new--composable)) {
		top: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mega-menu-new:not(.mega-menu-new--composable) * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
