/*--------------------------------------------------------------
# Mega Menu Panel
--------------------------------------------------------------*/
.menu-item-has-mega {
	position: static;
}

.lp-mega-panel {
	display: none;
	position: fixed;
	top: 140px;
	left: 0;
	right: 0;
	max-width: var(--content-max-width);
	margin: 0 auto;
	z-index: 100;
	padding: 15px;
	border-radius: 0 0 8px 8px;
	background: rgba(235, 250, 255, 0.95);

	/* Shadow - SM+ */
	box-shadow: 0 3px 4px 0 rgba(106, 106, 106, 0.12);
}

/* fix for wp admin bar */
body.logged-in .lp-mega-panel {
	top: 172px;
}

.menu-item-has-mega.is-open > .lp-mega-panel {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 1.5rem;
	animation: megaPanelReveal 0.25s ease;
}

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

/* When no promo column exists, grid spans full width */
.menu-item-has-mega.is-open > .lp-mega-panel:not(:has(.lp-mega-panel__promo)) {
	grid-template-columns: 1fr;
}

.menu-item-has-children{
	position: relative;
}

.menu-item-has-children.is-open::before{
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: -1;
	height: 76%;
	width: 100%;
	border-radius: 6px 6px 0 0;
	border-top: 1px solid #F0F0F0;
	border-right: 1px solid #F0F0F0;
	border-left: 1px solid #F0F0F0;
	background: var(--color-background-light);
	animation: megaPanelReveal 0.25s ease;
}

#primary-menu .menu-item:not(.menu-item-has-children):not(.nav-cta) > a:hover{
	color: var(--color-accent);
}

/*--------------------------------------------------------------
# Mega Menu - Promo Column
--------------------------------------------------------------*/
.lp-mega-panel__promo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 180px;
	padding: 40px 20px;

	color: #fff;
	border-radius: 8px;
	background: linear-gradient(152deg, #28A8E0 0.88%, #5DC7EE 40.53%, #97D7F6 65.31%, #97D7F6 100%);
}

.lp-mega-panel__promo-heading {
	margin: 0 0 0.75rem;
	font-family: var(--font-family-heading);
	/* font-size: var(--font-size-h4, 1.5rem); */
	/* font-weight: 700; */

	color: #FFF;
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 24px;
}

.lp-mega-panel__promo-body {
	font-family: var(--font-family-body);
	/* font-size: var(--font-size-body, 1rem); */
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	letter-spacing: -0.084px;
	color: #404548;
	margin: 0 0 1.5rem;

}

.lp-mega-panel__promo-btn {
	display: inline-block;
	background: var(--color-accent);
	color: #0F172A;
	font-weight: 700;
	/* font-size: var(--font-size-body, 1rem); */
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	border-radius: 50px;
	align-self: flex-start;

	padding: 8px 16px;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.lp-mega-panel__promo-btn:hover {
	filter: brightness(1.08);
	transform: scale(1.03);
}

.lp-mega-panel__promo-btn:active {
	filter: brightness(0.95);
	transform: scale(0.98);
}

/*--------------------------------------------------------------
# Mega Menu - Card Grid
--------------------------------------------------------------*/
.lp-mega-panel__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.lp-mega-panel__card {
	display: block;
	height: 100%;
	padding: 1.5rem;
	background: #FFF;
	border-radius: 8px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-mega-panel__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lp-mega-panel__card:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.lp-mega-panel__card-title {
	font-family: var(--font-family-heading);
	/* font-size: var(--font-size-body, 1rem); */
	/* font-weight: 700; */
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	color: #343A3D;
}

.lp-mega-panel__card-desc {

	font-family: var(--font-family-body);
	/* font-size: var(--font-size-body, 1rem); */
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	letter-spacing: -0.084px;
	color: #404548;
	margin: 0.5rem 0 0 0;
}

/*--------------------------------------------------------------
# Mega Menu - Dropdown Arrow
--------------------------------------------------------------*/
.lp-mega-arrow {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	vertical-align: middle;
	position: relative;
	top: -2px;
}

.menu-item-has-mega.is-open .lp-mega-arrow {
	transform: rotate(-135deg);
	top: 1px;
}

/*--------------------------------------------------------------
# Mega Menu - Mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
	/* .menu-item-has-mega.is-open > .lp-mega-panel {
		position: static;
		display: flex;
		flex-direction: column;
		grid-template-columns: unset;
		padding: 1rem;
	}

	.lp-mega-panel__grid {
		grid-template-columns: 1fr;
	}

	.lp-mega-panel__promo {
		border-radius: 8px;
		margin-bottom: 1rem;
	} */

	.mega-promo{
		display: none;
	}
}