/* ==========================================================================
   Mega Menu for Elementor — Frontend Styles
   ========================================================================== */

.mme-wrapper * { box-sizing: border-box; }

.mme-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: transparent;
	border-radius: 14px;
	position: relative;
	z-index: 100;
}

/* Desktop menu */
.mme-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 32px;
	flex: 1;
	justify-content: flex-start;
}

.mme-menu-item { position: relative; }

.mme-menu-item > a {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 400;
	white-space: nowrap;
	padding: 8px 0;
	transition: color .15s ease;
}

.mme-caret {
	transition: transform .2s ease;
	flex-shrink: 0;
}

.mme-menu-item.mme-active > a .mme-caret,
.mme-menu-item:hover > a .mme-caret {
	transform: rotate(180deg);
}

/* Dropdown panel */
.mme-dropdown {
	position: absolute;
	top: calc(100% + 18px);
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(10, 14, 61, 0.25);
	padding: 28px 32px;
	width: 560px;
	max-width: 92vw;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 200;
}

/* Little pointer/arrow above the panel, like the screenshot */
.mme-dropdown::before {
	content: '';
	position: absolute;
	top: -7px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 3px 0 0 0;
}

.mme-menu-item:hover .mme-dropdown,
.mme-menu-item.mme-active .mme-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.mme-dropdown-eyebrow {
	font-size: 11px;
	letter-spacing: 1.5px;
	font-weight: 600;
	color: #9ca3af;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.mme-dropdown-divider {
	height: 1px;
	background: #e5e7eb;
	margin-bottom: 18px;
}

.mme-dropdown-grid {
	display: grid;
	grid-template-columns: repeat(var(--mme-cols, 2), minmax(200px, 1fr));
	gap: 6px 24px;
}

.mme-sub-item {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	padding: 10px 12px;
	border-radius: 10px;
	transition: background-color .15s ease;
}

.mme-sub-item:hover { background-color: #f3f4f6; }

.mme-sub-item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
}
.mme-sub-item-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.mme-sub-item-text { display: flex; flex-direction: column; gap: 2px; }
.mme-sub-item-label { color: #1e3a8a; font-weight: 500; font-size: 15px; line-height: 1.3; }
.mme-sub-item-desc { color: #9ca3af; font-size: 12px; }

/* Right side */
.mme-navbar-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.mme-cta-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #2563eb;
	color: #fff;
	text-decoration: none;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	transition: background-color .15s ease, transform .15s ease;
}
.mme-cta-button:hover { background-color: #1d4ed8; }
.mme-cta-button svg { width: 14px; height: 14px; }

/* Hamburger */
.mme-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}
.mme-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background-color: #fff;
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
}
.mme-hamburger.mme-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mme-hamburger.mme-open span:nth-child(2) { opacity: 0; }
.mme-hamburger.mme-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Mobile Drawer
   ========================================================================== */

.mme-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s;
	z-index: 999998;
}
.mme-drawer-overlay.mme-open { opacity: 1; visibility: visible; }

.mme-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	height: 100vh;
	width: 84%;
	max-width: 360px;
	background-color: #0a0e3d;
	z-index: 999999;
	overflow-y: auto;
	transition: transform .3s ease;
	box-shadow: 0 0 40px rgba(0,0,0,0.3);
}
.mme-drawer-right { right: 0; transform: translateX(100%); }
.mme-drawer-left { left: 0; transform: translateX(-100%); }
.mme-drawer.mme-open { transform: translateX(0); }

.mme-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mme-drawer-title { color: #fff; font-weight: 600; font-size: 16px; }
.mme-drawer-close {
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 6px;
	display: flex;
}

.mme-drawer-list { list-style: none; margin: 0; padding: 12px 10px 30px; }

.mme-drawer-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 15px 12px;
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	cursor: pointer;
}

.mme-drawer-caret { transition: transform .2s ease; flex-shrink: 0; }
.mme-drawer-item.mme-open > a .mme-drawer-caret { transform: rotate(180deg); }

.mme-drawer-submenu {
	list-style: none;
	margin: 0;
	padding: 0 12px;
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
	background: rgba(255,255,255,0.03);
	border-radius: 8px;
}
.mme-drawer-item.mme-open .mme-drawer-submenu { max-height: 800px; padding: 6px 12px; }

.mme-drawer-sub-item a {
	display: block;
	padding: 10px 8px;
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	font-size: 14px;
}
.mme-drawer-sub-item a:hover { color: #7dd3fc; }

.mme-drawer-cta { padding: 18px 12px 0; }
.mme-drawer-cta .mme-cta-button { width: 100%; justify-content: center; }

/* Prevent body scroll when drawer open */
body.mme-drawer-active { overflow: hidden; }

/* ==========================================================================
   Responsive fallback (in case widget-level breakpoint style is missing)
   ========================================================================== */
@media (max-width: 991px) {
	.mme-desktop-menu { display: none; }
	.mme-hamburger { display: flex; }
}
@media (min-width: 992px) {
	.mme-desktop-menu { display: flex; }
	.mme-hamburger { display: none; }
	.mme-drawer,
	.mme-drawer-overlay { display: none; }
}
