/**
 * Header + drawer — parity with YouMind_Final_Design (1).html (scoped to .mscore-widget-shell).
 * Loaded after shell + typography bridge.
 */

.mscore-widget-shell .site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	max-width: var(--ms-maxw, 1280px);
	margin-left: auto;
	margin-right: auto;
}

.mscore-widget-shell .site-header .menu-toggle {
	display: none !important;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	border: none !important;
	color: var(--ym-white, #f0f8ff);
	cursor: pointer;
	box-shadow: none !important;
}

.mscore-widget-shell .site-header .menu-toggle svg {
	display: block;
	flex-shrink: 0;
}

.mscore-widget-shell .site-header .menu-toggle:focus-visible {
	outline: 2px solid var(--ym-teal, #66fcf1);
	outline-offset: 2px;
}

@media (max-width: 860px) {
	.mscore-widget-shell .site-header .main-nav,
	.mscore-widget-shell .site-header .nav-cta .btn {
		display: none !important;
	}

	.mscore-widget-shell .site-header .menu-toggle {
		display: inline-flex !important;
	}
}

.mscore-widget-shell .brand .mark {
	flex-shrink: 0;
}

.mscore-widget-shell .site-header .brand .mark svg {
	color: var(--ym-teal, #66fcf1);
}

.mscore-widget-shell .brand .mark img.brand-logo-img {
	display: block;
	height: auto;
	max-height: 28px;
	width: auto;
	object-fit: contain;
}

.mscore-widget-shell .drawer-header .brand .mark img.brand-logo-img {
	max-height: 24px;
}

.mscore-widget-shell .mega-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mscore-widget-shell .mega-item-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 6px;
	background: rgba(102, 252, 241, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mscore-widget-shell .mega-item-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* Elementor Icons control: Font Awesome + uploaded SVG */
.mscore-widget-shell .mega-item-icon i.mscore-mega-icon-el {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	width: 100%;
	height: 100%;
	color: var(--ym-teal, #66fcf1);
}

.mscore-widget-shell .mega-item-icon img {
	width: 16px;
	height: 16px;
	display: block;
	object-fit: contain;
}

.mscore-widget-shell .mega-item-icon .elementor-icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.mscore-widget-shell .mega-item-icon .elementor-icon-wrapper svg {
	width: 16px;
	height: 16px;
	display: block;
}

.mscore-widget-shell .mega-item-title {
	display: block;
	margin-bottom: 1px;
}

.mscore-widget-shell .mega-item-desc {
	display: block;
}

.mscore-widget-shell .site-header .main-nav .nav-link.is-current,
.mscore-widget-shell .site-header .main-nav .nav-link[aria-current="page"] {
	color: var(--ms-accent, #66fcf1) !important;
}

.mscore-widget-shell .btn.btn--primary {
	background: #147e93;
	color: #fff;
	box-shadow: 0 0 0 0 rgba(20, 126, 147, 0.4);
}

.mscore-widget-shell .btn.btn--primary:hover {
	background: #1a9cb5;
	box-shadow: 0 0 0 8px rgba(20, 126, 147, 0.15);
	transform: translateY(-1px);
}

.mscore-widget-shell .btn .arrow {
	transition: transform 0.25s ease;
}

.mscore-widget-shell .btn:hover .arrow {
	transform: translateX(3px);
}

.mscore-widget-shell .drawer-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.mscore-widget-shell .drawer-cta svg {
	flex-shrink: 0;
}

/* Elementor: fixed drawer lives inside columns/sections — avoid clipping & low stacking */
.elementor-widget-mindscale_header,
.elementor-widget-mindscale_header .elementor-widget-container {
	overflow: visible !important;
}

.mscore-widget-shell .mobile-overlay {
	z-index: 99998 !important;
}

/* ── Mobile drawer — full parity with YouMind_Final_Design (1).html (theme-safe) ── */
.mscore-widget-shell .mobile-drawer {
	z-index: 99999 !important;
	display: flex !important;
	flex-direction: column !important;
	width: min(360px, 90vw) !important;
	max-width: min(360px, 90vw) !important;
	background: linear-gradient(160deg, #031728 0%, #041f35 60%, #031728 100%) !important;
	border-left: 1px solid rgba(102, 252, 241, 0.1) !important;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45) !important;
	overflow-y: auto !important;
	padding: 0 !important;
	transform: translateX(100%);
	transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.mscore-widget-shell .mobile-drawer.is-open {
	transform: translateX(0) !important;
}

.mscore-widget-shell .drawer-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-shrink: 0 !important;
	padding: 20px 24px !important;
	border-bottom: 1px solid rgba(102, 252, 241, 0.1) !important;
}

/* Reset theme / Elementor primary-button styling on close control */
.mscore-widget-shell button.drawer-close {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	cursor: pointer !important;
	border-radius: 50% !important;
	background: rgba(102, 252, 241, 0.06) !important;
	border: 1px solid rgba(102, 252, 241, 0.1) !important;
	color: #f0f8ff !important;
	box-shadow: none !important;
	line-height: 0 !important;
	font-size: 0 !important;
}

.mscore-widget-shell .drawer-close:hover {
	background: rgba(102, 252, 241, 0.12) !important;
	border-color: rgba(102, 252, 241, 0.35) !important;
}

.mscore-widget-shell .drawer-close svg {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	flex-shrink: 0 !important;
	overflow: visible !important;
	pointer-events: none !important;
}

.mscore-widget-shell .drawer-close svg path {
	stroke: #f0f8ff !important;
	stroke-width: 2 !important;
	vector-effect: non-scaling-stroke;
}

.mscore-widget-shell .drawer-nav {
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	padding: 24px 20px !important;
}

.mscore-widget-shell .drawer-solutions-label {
	flex-shrink: 0 !important;
	display: block !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	color: var(--ym-teal, #66fcf1) !important;
	padding: 4px 16px 8px !important;
	opacity: 0.85 !important;
}

.mscore-widget-shell .drawer-nav-item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 14px !important;
	padding: 14px 16px !important;
	border-radius: 10px !important;
	border: 1px solid transparent !important;
	text-decoration: none !important;
	color: var(--ym-muted, #9cb1c9) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	box-sizing: border-box !important;
}

.mscore-widget-shell .drawer-nav-item:hover {
	background: rgba(102, 252, 241, 0.05) !important;
	border-color: rgba(102, 252, 241, 0.1) !important;
	color: var(--ms-accent, #66fcf1) !important;
}

.mscore-widget-shell .drawer-nav-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	flex-shrink: 0 !important;
	border-radius: 8px !important;
	background: rgba(102, 252, 241, 0.06) !important;
	border: 1px solid rgba(102, 252, 241, 0.1) !important;
	box-sizing: border-box !important;
}

.mscore-widget-shell .drawer-nav-icon svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0 !important;
	overflow: visible !important;
}

.mscore-widget-shell .drawer-nav-icon i.mscore-mega-icon-el {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 18px !important;
	line-height: 1 !important;
	width: 100% !important;
	height: 100% !important;
	color: var(--ym-teal, #66fcf1) !important;
}

.mscore-widget-shell .drawer-nav-icon img {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	object-fit: contain !important;
}

.mscore-widget-shell .drawer-nav-icon .elementor-icon-wrapper {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
}

.mscore-widget-shell .drawer-nav-icon .elementor-icon-wrapper svg {
	width: 18px !important;
	height: 18px !important;
	display: block !important;
}

.mscore-widget-shell .drawer-divider {
	flex-shrink: 0 !important;
	height: 1px !important;
	background: rgba(102, 252, 241, 0.1) !important;
	margin: 12px 16px !important;
	border: 0 !important;
}

.mscore-widget-shell .drawer-footer {
	flex-shrink: 0 !important;
	padding: 20px 20px 32px !important;
	border-top: 1px solid rgba(102, 252, 241, 0.1) !important;
}

.mscore-widget-shell .drawer-cta {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	width: 100% !important;
	padding: 16px !important;
	background: #147e93 !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	border-radius: 10px !important;
	text-decoration: none !important;
	border: none !important;
	box-sizing: border-box !important;
}

.mscore-widget-shell .drawer-cta svg {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	stroke: #fff !important;
	flex-shrink: 0 !important;
}

.mscore-widget-shell .drawer-footer-links {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 16px !important;
	justify-content: center !important;
	margin-top: 12px !important;
}

.mscore-widget-shell .drawer-footer-links a {
	font-size: 12px !important;
	color: var(--ym-muted-deep, #6b8cae) !important;
	text-decoration: none !important;
}

