/**
 * EduNexa — ادونکسا
 * Main Desktop Header Widget Styles (سربرگ اصلی آموزشگاه خواجه نصیر)
 *
 * Designed with precision to replicate the Khajeh Nasir technical academy header:
 * - Top Row: Brand Logo (with GPU-accelerated CSS Light Sweep Animation), Isfahan City Skyline Artwork, Action Buttons (CTA Exam, Auth, Search)
 * - Bottom Row: Deep Navy Navigation Capsule with Golden Home Pill, Icons, Dividers, Dynamic Multilevel Dropdowns
 * - Responsive Fluid Sizing & Density: Fits 10+ items cleanly without horizontal overflow
 * - Live AJAX Search Modal: Real-time search across WooCommerce products (courses) and blog articles with tabs and instant previews
 *
 * @package EduNexa
 * @since   1.2.0
 */

/* ==========================================================================
   1. MAIN WRAPPER & CONTAINER
   ========================================================================== */
.edunexa-main-header-wrap {
	width: 100%;
	direction: rtl;
	font-family: inherit;
	box-sizing: border-box;
	position: relative;
	background: #ffffff;
	z-index: 990;
}

/* Hide on mobile & tablet when enabled */
@media (max-width: 1024px) {
	.edunexa-main-header-wrap.hide-on-mobile {
		display: none !important;
	}
}

/* Sticky Header Mode */
.edunexa-main-header-wrap.is-sticky {
	position: sticky;
	top: 0;
	z-index: 996;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
	transition: all 0.3s ease;
}

body.admin-bar .edunexa-main-header-wrap.is-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .edunexa-main-header-wrap.is-sticky {
		top: 46px;
	}
}

/* Container */
.edunexa-mh-container {
	max-width: 1380px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px 14px 20px;
	box-sizing: border-box;
}

.edunexa-mh-container.mode-full_width {
	max-width: 100% !important;
	padding-right: 32px;
	padding-left: 32px;
}

/* ==========================================================================
   2. TOP ROW: BRAND LOGO + ISFAHAN SKYLINE + ACTIONS
   ========================================================================== */
.edunexa-mh-top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0 10px 0;
	position: relative;
	box-sizing: border-box;
	gap: 16px;
}

/* Right: Logo & Brand */
.edunexa-mh-brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	z-index: 3;
}

.edunexa-mh-brand-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 1;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.edunexa-mh-brand-logo img {
	display: block;
	width: 250px;
	max-height: 75px;
	height: auto;
	object-fit: contain;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.edunexa-mh-brand-logo:hover img {
	transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Logo Pure CSS Light Sweep / Shine Animation (Zero JS Overhead, 60fps)
   -------------------------------------------------------------------------- */
.edunexa-mh-brand-logo.has-shine::after {
	content: '';
	position: absolute;
	top: -60%;
	left: -120%;
	width: 65%;
	height: 220%;
	background: linear-gradient(
		115deg,
		transparent 0%,
		rgba(255, 255, 255, 0.08) 30%,
		var(--edunexa-logo-shine-color, rgba(255, 255, 255, 0.45)) 50%,
		rgba(255, 255, 255, 0.08) 70%,
		transparent 100%
	);
	transform: skewX(-25deg);
	pointer-events: none;
	z-index: 5;
	will-change: transform;
}

/* Periodic Sweep */
.edunexa-mh-brand-logo.shine-sweep_periodic::after {
	animation: edunexaLogoSweep var(--edunexa-logo-shine-speed, 3.5s) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Continuous Sweep */
.edunexa-mh-brand-logo.shine-sweep_continuous::after {
	animation: edunexaLogoSweep var(--edunexa-logo-shine-speed, 3.5s) linear infinite;
}

/* Hover Sweep */
.edunexa-mh-brand-logo.shine-sweep_hover::after {
	transform: skewX(-25deg) translateX(-180%);
	transition: transform 0.8s ease;
}

.edunexa-mh-brand-logo.shine-sweep_hover:hover::after {
	transform: skewX(-25deg) translateX(360%);
}

@keyframes edunexaLogoSweep {
	0% {
		transform: skewX(-25deg) translateX(-200%);
	}
	32%, 100% {
		transform: skewX(-25deg) translateX(380%);
	}
}

/* Center: Isfahan City Skyline Artwork */
.edunexa-mh-skyline-wrap {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	pointer-events: none;
	opacity: 0.9;
	z-index: 2;
	overflow: hidden;
	max-height: 105px;
}

.edunexa-mh-skyline-img {
	display: block;
	width: 460px;
	max-width: 100%;
	max-height: 98px;
	height: auto;
	object-fit: contain;
}

/* Soft Mask Effect Feathering Bottom of Skyline into Background */
.edunexa-mh-skyline-wrap.has-mask .edunexa-mh-skyline-img {
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 75%, rgba(0,0,0,0) 100%);
	mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 75%, rgba(0,0,0,0) 100%);
}

/* Skyline Floating Animation */
.edunexa-mh-skyline-wrap.anim-float_soft .edunexa-mh-skyline-img {
	animation: edunexaSkylineFloat 6s ease-in-out infinite;
}

.edunexa-mh-skyline-wrap.anim-pulse .edunexa-mh-skyline-img {
	animation: edunexaSkylinePulse 4s ease-in-out infinite;
}

@keyframes edunexaSkylineFloat {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-4px);
	}
}

@keyframes edunexaSkylinePulse {
	0%, 100% {
		opacity: 0.82;
		filter: drop-shadow(0 0 0px transparent);
	}
	50% {
		opacity: 1;
		filter: drop-shadow(0 4px 12px rgba(27, 30, 75, 0.12));
	}
}

/* Left: Action Buttons (Search, Auth, CTA) */
.edunexa-mh-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 3;
}

/* 1. CTA Button (درخواست آزمون) */
.edunexa-mh-btn-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	background-color: #ffffff;
	color: #1e293b;
	border: 1.6px solid #FAB237;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1.2;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(250, 178, 55, 0.15);
}

.edunexa-mh-btn-cta .edunexa-mh-btn-icon {
	color: #FAB237;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	transition: transform 0.25s ease;
}

.edunexa-mh-btn-cta .edunexa-mh-btn-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.edunexa-mh-btn-cta:hover {
	background-color: #FAB237;
	color: #0f172a;
	box-shadow: 0 4px 14px rgba(250, 178, 55, 0.35);
	transform: translateY(-1px);
}

.edunexa-mh-btn-cta:hover .edunexa-mh-btn-icon {
	color: #0f172a;
	transform: rotate(-10deg) scale(1.1);
}

/* 2. User Account / Login Button */
.edunexa-mh-btn-auth {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	background-color: #ffffff;
	color: #1e293b;
	border: 1.2px solid #e2e8f0;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1.2;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.edunexa-mh-btn-auth .edunexa-mh-btn-icon {
	color: #475569;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	transition: color 0.25s ease;
}

.edunexa-mh-btn-auth .edunexa-mh-btn-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.edunexa-mh-btn-auth:hover {
	border-color: #FAB237;
	color: #FAB237;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	transform: translateY(-1px);
}

.edunexa-mh-btn-auth:hover .edunexa-mh-btn-icon {
	color: #FAB237;
}

/* 3. Search Button */
.edunexa-mh-btn-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	min-width: 42px;
	background-color: #ffffff;
	color: #334155;
	border: 1.2px solid #e2e8f0;
	border-radius: 50%;
	cursor: pointer;
	text-decoration: none;
	outline: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	-webkit-tap-highlight-color: transparent;
	padding: 0;
}

.edunexa-mh-btn-search .edunexa-mh-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
}

.edunexa-mh-btn-search .edunexa-mh-btn-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.edunexa-mh-btn-search:hover {
	border-color: #FAB237;
	color: #FAB237;
	box-shadow: 0 2px 10px rgba(250, 178, 55, 0.2);
	transform: scale(1.05);
}

/* ==========================================================================
   3. BOTTOM ROW: NAV BAR CAPSULE (نوار منوی سرمه‌ای)
   ========================================================================== */
.edunexa-mh-navbar {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background-color: #1c1d47;
	border-radius: 20px;
	padding: 5px 6px 5px 14px;
	box-shadow: 0 6px 20px rgba(28, 29, 71, 0.25);
	position: relative;
	z-index: 10;
	overflow: visible;
}

/* 1. Golden Home Pill (صفحه اصلی) */
.edunexa-mh-home-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background-color: #FAB237;
	color: #1c1d47;
	font-size: clamp(0.78rem, 0.88vw, 0.94rem);
	font-weight: 800;
	padding: clamp(7px, 0.7vw, 10px) clamp(10px, 1.1vw, 20px);
	border-radius: 15px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(250, 178, 55, 0.3);
	line-height: 1.2;
}

.edunexa-mh-pill-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: inherit;
}

.edunexa-mh-pill-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.edunexa-mh-home-pill:hover {
	background-color: #f59e0b;
	color: #0f172a;
	transform: scale(1.02);
	box-shadow: 0 4px 14px rgba(250, 178, 55, 0.45);
}

/* 2. Nav List */
.edunexa-mh-nav-list {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
	margin: 0;
	padding: 0 4px;
	width: 100%;
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	gap: clamp(1px, 0.4vw, 8px);
}

.edunexa-mh-nav-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
}

/* Vertical Divider Lines Between Items */
.edunexa-main-header-wrap.has-dividers .edunexa-mh-nav-item:not(:last-child)::after {
	content: '';
	position: absolute;
	left: -2px;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 14px;
	background-color: rgba(255, 255, 255, 0.16);
	pointer-events: none;
}

.edunexa-mh-nav-link {
	display: inline-flex;
	align-items: center;
	gap: clamp(3px, 0.35vw, 6px);
	color: #ffffff;
	text-decoration: none;
	font-size: clamp(0.74rem, 0.81vw, 0.88rem);
	font-weight: 700;
	padding: clamp(6px, 0.6vw, 10px) clamp(3px, 0.5vw, 9px);
	border-radius: 10px;
	white-space: nowrap;
	transition: all 0.2s ease;
	line-height: 1.2;
	position: relative;
}

.edunexa-mh-nav-icon {
	color: #FAB237;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(14px, 1.1vw, 18px);
	height: clamp(14px, 1.1vw, 18px);
	font-size: clamp(14px, 1.1vw, 18px);
	flex-shrink: 0;
	transition: transform 0.22s ease, color 0.22s ease;
}

.edunexa-mh-nav-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.edunexa-mh-nav-text {
	color: inherit;
}

.edunexa-mh-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 12px;
	height: 12px;
	color: rgba(255, 255, 255, 0.6);
	transition: transform 0.25s ease;
	margin-right: 1px;
}

.edunexa-mh-arrow svg {
	width: 100%;
	height: 100%;
	display: block;
}

.edunexa-mh-badge {
	font-size: 0.65rem;
	font-weight: 800;
	background-color: #ef4444;
	color: #ffffff;
	padding: 1px 6px;
	border-radius: 999px;
	margin-right: 4px;
	line-height: 1.2;
}

/* Nav Item Hover States */
.edunexa-mh-nav-link:hover,
.edunexa-mh-nav-item:hover > .edunexa-mh-nav-link,
.edunexa-mh-nav-item.is-dropdown-open > .edunexa-mh-nav-link {
	color: #FAB237;
}

.edunexa-mh-nav-link:hover .edunexa-mh-nav-icon,
.edunexa-mh-nav-item:hover > .edunexa-mh-nav-link .edunexa-mh-nav-icon,
.edunexa-mh-nav-item.is-dropdown-open > .edunexa-mh-nav-link .edunexa-mh-nav-icon {
	transform: scale(1.12);
}

.edunexa-mh-nav-item:hover > .edunexa-mh-nav-link .edunexa-mh-arrow,
.edunexa-mh-nav-item.is-dropdown-open > .edunexa-mh-nav-link .edunexa-mh-arrow {
	transform: rotate(180deg);
	color: #FAB237;
}

/* --------------------------------------------------------------------------
   Density Presets
   -------------------------------------------------------------------------- */
.edunexa-mh-navbar.density-compact .edunexa-mh-nav-link {
	padding: 7px 5px;
	font-size: 0.81rem;
	gap: 4px;
}
.edunexa-mh-navbar.density-compact .edunexa-mh-home-pill {
	padding: 8px 14px;
	font-size: 0.86rem;
}
.edunexa-mh-navbar.density-compact .edunexa-mh-nav-icon {
	width: 15px;
	height: 15px;
	font-size: 15px;
}

.edunexa-mh-navbar.density-spacious .edunexa-mh-nav-link {
	padding: 10px 14px;
	font-size: 0.92rem;
	gap: 8px;
}
.edunexa-mh-navbar.density-spacious .edunexa-mh-home-pill {
	padding: 11px 24px;
	font-size: 0.96rem;
}

/* ==========================================================================
   4. MULTILEVEL DROPDOWN MENUS (Zero-Gap Hover Bridge & 2-Col Grid)
   ========================================================================== */
.edunexa-mh-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 220px;
	background-color: #ffffff;
	border-radius: 14px;
	box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
	border: 1px solid rgba(226, 232, 240, 0.9);
	padding: 8px;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
	pointer-events: none;
	z-index: 100;
}

/* CRITICAL: Transparent hover bridge to completely eliminate cursor dead-zone */
.edunexa-mh-dropdown::before {
	content: '';
	position: absolute;
	top: -16px;
	right: 0;
	left: 0;
	height: 16px;
	background: transparent;
	pointer-events: auto;
}

.edunexa-mh-nav-item:hover > .edunexa-mh-dropdown,
.edunexa-mh-nav-item.is-dropdown-open > .edunexa-mh-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.edunexa-mh-dropdown-item {
	display: block;
	width: 100%;
}

.edunexa-mh-dropdown-item a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 0.86rem;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.edunexa-mh-dropdown-item a .sub-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: #cbd5e1;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.edunexa-mh-dropdown-item a:hover {
	color: #1c1d47;
	background-color: #fffbeb;
	padding-right: 15px;
}

.edunexa-mh-dropdown-item a:hover .sub-dot {
	background-color: #FAB237;
	transform: scale(1.4);
}

/* 2-Column Grid Layout for Large Dropdowns (15+ Items like Technical & Calendar) */
.edunexa-mh-dropdown.has-many-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(210px, 1fr));
	gap: 4px 10px;
	min-width: 460px;
	max-width: 540px;
	padding: 12px;
}

/* ==========================================================================
   5. LIVE AJAX SEARCH MODAL (دوره‌ها، محصولات ووکامرس و مقالات)
   ========================================================================== */
.edunexa-mh-search-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 20px;
	box-sizing: border-box;
}

.edunexa-mh-search-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.edunexa-mh-search-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.edunexa-mh-search-dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 680px;
	background: #ffffff;
	border-radius: 24px;
	padding: 32px 28px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.93) translateY(20px);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}

.edunexa-mh-search-modal.is-open .edunexa-mh-search-dialog {
	transform: scale(1) translateY(0);
}

.edunexa-mh-search-close {
	position: absolute;
	top: 18px;
	left: 18px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
	padding: 0;
	z-index: 3;
}

.edunexa-mh-search-close svg {
	width: 18px;
	height: 18px;
	display: block;
}

.edunexa-mh-search-close:hover {
	background: #ef4444;
	border-color: #ef4444;
	color: #ffffff;
	transform: rotate(90deg);
}

.edunexa-mh-search-box {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	max-height: 100%;
}

.edunexa-mh-search-header {
	margin-bottom: 20px;
}

.edunexa-mh-search-header h3 {
	margin: 0 0 6px 0;
	font-size: 1.3rem;
	font-weight: 800;
	color: #0f172a;
}

.edunexa-mh-search-header p {
	margin: 0;
	font-size: 0.88rem;
	color: #64748b;
}

.edunexa-mh-search-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 14px;
}

.edunexa-mh-search-lead-icon {
	position: absolute;
	right: 16px;
	color: #94a3b8;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.edunexa-mh-search-lead-icon svg {
	width: 100%;
	height: 100%;
}

.edunexa-mh-search-field {
	width: 100%;
	padding: 14px 48px 14px 115px;
	font-size: 0.98rem;
	font-family: inherit;
	border: 2px solid #e2e8f0;
	border-radius: 16px;
	background-color: #f8fafc;
	color: #0f172a;
	outline: none;
	box-sizing: border-box;
	transition: all 0.25s ease;
}

.edunexa-mh-search-field:focus {
	border-color: #FAB237;
	background-color: #ffffff;
	box-shadow: 0 0 0 4px rgba(250, 178, 55, 0.15);
}

.edunexa-mh-search-clear-btn {
	position: absolute;
	left: 95px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e2e8f0;
	border: none;
	color: #64748b;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: all 0.2s ease;
}

.edunexa-mh-search-clear-btn svg {
	width: 13px;
	height: 13px;
}

.edunexa-mh-search-clear-btn:hover {
	background: #ef4444;
	color: #ffffff;
}

.edunexa-mh-search-submit {
	position: absolute;
	left: 6px;
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	background-color: #FAB237;
	color: #0f172a;
	font-size: 0.9rem;
	font-weight: 700;
	font-family: inherit;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.edunexa-mh-search-submit:hover {
	background-color: #f59e0b;
}

/* Search Filter Tabs */
.edunexa-mh-search-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 10px;
}

.edunexa-mh-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.edunexa-mh-tab-btn:hover {
	color: #1e293b;
	border-color: #cbd5e1;
}

.edunexa-mh-tab-btn.is-active {
	background: #1c1d47;
	color: #ffffff;
	border-color: #1c1d47;
}

.edunexa-mh-tab-btn .tab-badge {
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	font-size: 0.72rem;
	padding: 1px 7px;
	border-radius: 999px;
}

.edunexa-mh-tab-btn.is-active .tab-badge {
	background: #FAB237;
	color: #1c1d47;
}

/* Results Wrap */
.edunexa-mh-search-results-wrap {
	overflow-y: auto;
	max-height: 400px;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 #f8fafc;
}

.edunexa-search-section-title {
	font-size: 0.85rem;
	font-weight: 800;
	color: #64748b;
	margin: 14px 0 8px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.edunexa-search-section-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.edunexa-search-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border-radius: 14px;
	text-decoration: none;
	color: #1e293b;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	margin-bottom: 8px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.edunexa-search-item:hover,
.edunexa-search-item.is-selected {
	background: #f8fafc;
	border-color: #FAB237;
	transform: translateX(-3px);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.edunexa-search-thumb {
	width: 54px;
	height: 54px;
	min-width: 54px;
	border-radius: 10px;
	object-fit: cover;
	background: #f1f5f9;
}

.edunexa-search-thumb.no-img {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e2e8f0;
	color: #94a3b8;
}

.edunexa-search-info {
	flex: 1 1 auto;
	min-width: 0;
}

.edunexa-search-item-title {
	font-size: 0.92rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 5px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.edunexa-search-item:hover .edunexa-search-item-title {
	color: #d97706;
}

.edunexa-search-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.78rem;
	color: #64748b;
}

.edunexa-search-category {
	background: #f1f5f9;
	color: #475569;
	padding: 2px 8px;
	border-radius: 6px;
	font-weight: 600;
}

.edunexa-search-price {
	color: #059669;
	font-weight: 800;
	font-size: 0.85rem;
}

.edunexa-search-price .woocommerce-Price-amount {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.edunexa-search-date {
	color: #94a3b8;
}

/* Search Loading Spinner */
.edunexa-mh-search-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 34px 10px;
	color: #64748b;
	font-size: 0.9rem;
	font-weight: 600;
}

.edunexa-mh-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid #e2e8f0;
	border-top-color: #FAB237;
	border-radius: 50%;
	animation: edunexaSpin 0.7s linear infinite;
}

@keyframes edunexaSpin {
	to { transform: rotate(360deg); }
}

/* Empty State / Hints */
.edunexa-mh-search-empty-state {
	text-align: center;
	padding: 30px 15px;
	color: #64748b;
}

.edunexa-mh-search-empty-state h4 {
	margin: 0 0 6px 0;
	font-size: 1.05rem;
	color: #0f172a;
}

.edunexa-mh-search-empty-state p {
	margin: 0;
	font-size: 0.86rem;
}

/* Search Footer */
.edunexa-mh-search-footer {
	border-top: 1px solid #f1f5f9;
	padding-top: 14px;
	margin-top: 10px;
	text-align: center;
}

.edunexa-mh-all-results-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1c1d47;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.edunexa-mh-all-results-link:hover {
	color: #d97706;
	background: #fffbeb;
}

/* Quick Tag Suggestions */
.edunexa-mh-search-intro-hints {
	padding: 16px 0;
}
.hint-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	color: #64748b;
	margin-bottom: 10px;
}
.hint-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.edunexa-search-tag {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 0.82rem;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}
.edunexa-search-tag:hover {
	background: #fffbeb;
	border-color: #FAB237;
	color: #d97706;
}

/* ==========================================================================
   6. RESPONSIVE REFINEMENTS
   ========================================================================== */
@media (max-width: 1200px) {
	.edunexa-mh-nav-link {
		padding: 7px 5px;
		font-size: 0.8rem;
		gap: 4px;
	}
	.edunexa-mh-nav-icon {
		width: 15px;
		height: 15px;
		font-size: 15px;
	}
	.edunexa-mh-home-pill {
		padding: 8px 14px;
		font-size: 0.85rem;
	}
	.edunexa-mh-skyline-img {
		width: 360px;
	}
	.edunexa-mh-brand-logo img {
		width: 210px;
	}
}

@media (max-width: 1024px) {
	/* When hide-on-mobile is turned off and displayed on tablets: */
	.edunexa-mh-top-row {
		flex-wrap: wrap;
	}
	.edunexa-mh-skyline-wrap {
		display: none;
	}
	.edunexa-mh-navbar {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.edunexa-mh-navbar::-webkit-scrollbar {
		display: none;
	}
	.edunexa-mh-nav-list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 8px;
	}
}
