/* ========================================
   Modern Tech Blog Navbar Design
   Diseño moderno para blog tecnológico
   ======================================== */

/* ========================================
   Main Header Container
   ======================================== */
.header {
	display: flex;
	align-items: center;
	position: sticky !important;
	top: 0;
	padding: 18px 60px;
	max-width: 1400px;
	margin: 0 auto;
	z-index: 99999;
	border-radius: 20px !important;
	overflow: visible !important;
	border: none !important;
}

.header.scrolled {
	padding: 14px 60px;
	background: rgba(255, 255, 255, 0.98) !important;
	box-shadow: none;
	border: none !important;
	top: 10px;
}

/* ========================================
   Logo
   ======================================== */
.header__logo {
	width: clamp(160px, 22vw, 280px);
	max-width: clamp(160px, 22vw, 280px);
	height: auto;
	display: flex;
	align-items: center;
	transition: all 0.3s ease;
	z-index: 100001;
	filter: brightness(1);
	position: relative;
}

.header__logo img,
.header__logo .custom-logo,
.header__logo .custom-logo-link,
.header__logo .custom-logo-link img {
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.header__logo a,
.header__logo .custom-logo-link {
	display: flex;
	align-items: center;
	width: 100%;
	position: relative;
}

.header__logo:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
}

/* Logo glow effect */
.header__logo::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #006aff, #0080ff, #006aff);
	background-size: 200% 100%;
	border-radius: 2px;
	opacity: 0;
	transition: opacity 0.3s ease;
	animation: shimmer 3s linear infinite;
}

.header__logo:hover::after {
	opacity: 0.6;
}

@keyframes shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

/* ========================================
   Header Wrapper & Navigation Container
   ======================================== */
.header__wrapper {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 40px;
}

.header__navigation-wrapper {
	display: flex;
	flex: 0 1 60%;
	max-width: 100%;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: visible !important;
}

.header__navigation {
	display: flex;
	align-items: center;
	width: 100%;
	justify-content: center;
	position: relative;
	overflow: visible !important;
}

/* ========================================
   Main Navigation Menu
   ======================================== */
.header__list {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: nowrap;
	justify-content: center;
	width: 100%;
}

.header__list-item,
.header__list li {
	display: inline-block;
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-shrink: 0;
}

/* Hide overflow items - will be handled by JS */
.header__list-item.overflow-hidden,
.header__list li.overflow-hidden {
	display: none !important;
}

/* Menu Links */
.header__list-item > a,
.header__list li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 20px;
	color: #334155;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	background: transparent;
	letter-spacing: 0.3px;
	overflow: hidden;
}

/* Gradient background on hover */
.header__list-item > a::before,
.header__list li > a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 106, 255, 0.1);
	border-radius: 12px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: -1;
}

.header__list-item > a:hover::before,
.header__list li > a:hover::before {
	opacity: 1;
}

.header__list-item > a:hover,
.header__list li > a:hover {
	color: #006aff;
	transform: translateY(-2px);
	box-shadow: none;
}

/* Bottom line indicator */
.header__list-item > a::after,
.header__list li > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 20px;
	right: 20px;
	height: 3px;
	background: #006aff;
	border-radius: 3px 3px 0 0;
	transform: scaleX(0);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__list-item > a:hover::after,
.header__list li > a:hover::after {
	transform: scaleX(1);
}

/* Active Menu Item */
.header__list-item.current-menu-item > a,
.header__list li.current-menu-item > a,
.header__list-item.current_page_item > a,
.header__list li.current_page_item > a {
	color: #006aff;
	background: rgba(0, 106, 255, 0.12);
	box-shadow: none;
}

.header__list-item.current-menu-item > a::after,
.header__list li.current-menu-item > a::after {
	transform: scaleX(1);
}

/* ========================================
   "More" Button (...)
   ======================================== */
.header__more-menu {
	display: none;
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-shrink: 0;
	z-index: 9999998 !important;
}

.header__more-menu.active {
	display: inline-block;
	z-index: 9999998 !important;
}

/* Bridge area for "More" menu */
.header__more-menu::before {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 15px;
	background: transparent;
	z-index: 100002;
}

.header__more-menu > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 11px 24px !important;
	min-width: 56px;
	min-height: 44px;
	color: #334155;
	font-size: 24px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	background: transparent;
	cursor: pointer;
	line-height: 1;
}

.header__more-menu > a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 106, 255, 0.1);
	border-radius: 12px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: -1;
}

.header__more-menu > a:hover::before {
	opacity: 1;
}

.header__more-menu > a:hover {
	color: #006aff;
	transform: translateY(-2px);
	box-shadow: none;
}

/* More menu dropdown - FORCE SHOW VERSION */
.header__more-menu .sub-menu {
	display: block !important;
	position: absolute !important;
	top: calc(100% + 10px) !important;
	right: 0 !important;
	left: auto !important;
	min-width: 220px !important;
	max-width: 300px !important;
	padding: 10px !important;
	background: rgba(255, 255, 255, 0.98) !important;
	backdrop-filter: blur(20px) !important;
	-webkit-backdrop-filter: blur(20px) !important;
	border: none !important;
	border-radius: 16px !important;
	box-shadow: none !important;
	z-index: 9999999 !important;
	list-style: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transform: translateY(-15px) !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.header__more-menu:hover > .sub-menu,
.header__more-menu.active:hover > .sub-menu,
.header__more-menu:focus-within > .sub-menu,
.header__more-menu .sub-menu:hover {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
	pointer-events: auto !important;
	z-index: 9999999 !important;
}

.header__more-menu .sub-menu li {
	display: block !important;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	opacity: 1 !important;
	visibility: visible !important;
	position: relative !important;
	z-index: 10000000 !important;
}

.header__more-menu .sub-menu li a {
	display: flex !important;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	color: #334155;
	font-size: 14px;
	font-weight: 500;
	border-radius: 10px;
	transition: all 0.25s ease;
	text-decoration: none;
	position: relative;
	white-space: nowrap;
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 10000001 !important;
	pointer-events: auto !important;
}

.header__more-menu .sub-menu li a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 0;
	background: #006aff;
	border-radius: 0 3px 3px 0;
	transition: height 0.25s ease;
}

.header__more-menu .sub-menu li a:hover::before {
	height: 70%;
}

.header__more-menu .sub-menu li a:hover {
	background: rgba(0, 106, 255, 0.1);
	color: #006aff;
	padding-left: 20px;
	box-shadow: none;
}

/* ========================================
   Submenu Indicator Icon
   ======================================== */
.header__list .menu-item-has-children > a {
	padding-right: 34px;
	padding-left: 20px;
	position: relative;
}

.header__list .menu-item-has-children > a::before {
	content: '';
	position: absolute;
	right: 14px;
	left: auto;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 10px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: all 0.3s ease;
	opacity: 0.6;
	z-index: 2;
}

.header__list .menu-item-has-children:hover > a::before {
	opacity: 1;
	transform: translateY(-50%) rotate(180deg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23006aff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ========================================
   Dropdown Submenu
   ======================================== */
.header__list .sub-menu {
	display: block;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: auto;
	min-width: 240px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: none;
	border-radius: 16px;
	box-shadow: none;
	z-index: 100002;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-15px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
    margin-left: 0;
}

.header__list-item:hover > .sub-menu,
.header__list li:hover > .sub-menu,
.header__list .sub-menu:hover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.header__list .sub-menu li {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

.header__list .sub-menu li a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	color: #334155;
	font-size: 14px;
	font-weight: 500;
	border-radius: 10px;
	transition: all 0.25s ease;
	text-decoration: none;
	position: relative;
}

/* Submenu item hover effect */
.header__list .sub-menu li a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 0;
	background: #006aff;
	border-radius: 0 3px 3px 0;
	transition: height 0.25s ease;
}

.header__list .sub-menu li a:hover::before {
	height: 70%;
}

.header__list .sub-menu li a:hover {
	background: rgba(0, 106, 255, 0.1);
	color: #006aff;
	padding-left: 20px;
	box-shadow: none;
}

.header__list .sub-menu li.current-menu-item > a {
	background: rgba(0, 106, 255, 0.15);
	color: #006aff;
	font-weight: 600;
}

/* ========================================
   Theme Toggle Button
   ======================================== */
.theme-toggle {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	margin-left: 20px;
	padding: 0;
	background: rgba(0, 106, 255, 0.1);
	border: none;
	border-radius: 14px;
	cursor: pointer !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.theme-toggle::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 106, 255, 0.2);
	border-radius: 14px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.theme-toggle:hover::before {
	opacity: 1;
}

.theme-toggle:hover {
	border: none;
	transform: translateY(-3px);
	box-shadow: none;
}

.theme-toggle:active {
	transform: translateY(-1px) scale(0.96);
}

/* ========================================
   Search Button
   ======================================== */
.header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: 20px;
}

.header__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	color: #006aff;
	background: rgba(0, 106, 255, 0.12);
	border: none;
	border-radius: 50%;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.header__button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 106, 255, 0.2);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.header__button:hover::before {
	opacity: 1;
}

.header__button:hover {
	border: none;
	transform: scale(1.1);
	box-shadow: none;
}

.header__button:active {
	transform: scale(0.95);
}

.header__button svg {
	width: 22px;
	height: 22px;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.header__button:hover svg {
	transform: scale(1.05);
}

.header__buttons-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: 0;
}

/* ========================================
   Mobile Menu Toggle (Burger) - Modern Icon Design
   ======================================== */
.header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	cursor: pointer;
	z-index: 100001;
	margin-left: auto;
	padding: 11px;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	background: #006aff;
	border-radius: 50%;
	border: none;
	box-shadow: none;
}

.header__burger:hover {
	background: #006aff;
	transform: scale(1.08);
	box-shadow: none;
}

.header__burger:active {
	transform: scale(0.95);
	box-shadow: none;
}

.header__burger i {
	width: 100%;
	height: 2.5px;
	background: #ffffff;
	border-radius: 3px;
	transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
}

.header__burger i:nth-child(1) {
	width: 100%;
}

.header__burger i:nth-child(2) {
	width: 85%;
	margin-left: auto;
}

.header__burger i:nth-child(3) {
	width: 100%;
}

.header__burger:hover i:nth-child(2) {
	width: 100%;
}

/* Active state - Animated X */
.header__burger.active {
	background: #006aff;
	transform: rotate(90deg);
	box-shadow: none;
}

.header__burger.active i {
	background: #ffffff;
}

.header__burger.active i:nth-child(1) {
	transform: rotate(45deg) translate(8px, 8px);
	width: 100%;
}

.header__burger.active i:nth-child(2) {
	opacity: 0;
	transform: scale(0);
}

.header__burger.active i:nth-child(3) {
	transform: rotate(-45deg) translate(8px, -8px);
	width: 100%;
}

/* ========================================
   Responsive Design - Large Tablets
   ======================================== */
@media screen and (max-width: 1280px) {
	.header {
		padding: 16px 40px;
		max-width: calc(100% - 32px);
		margin: 0 16px;
	}
	
	.header__logo {
		width: clamp(140px, 20vw, 240px);
		max-width: clamp(140px, 20vw, 240px);
	}
	
	.header__wrapper {
		gap: 30px;
	}
	
	.header__list {
		gap: 4px;
	}
	
	.header__list-item > a,
	.header__list li > a {
		padding: 10px 18px;
		font-size: 14px;
	}
}

@media screen and (max-width: 1024px) {
	.header {
		padding: 14px 30px;
		max-width: calc(100% - 24px);
		margin: 0 12px;
	}
	
	.header__logo {
		width: clamp(130px, 18vw, 220px);
		max-width: clamp(130px, 18vw, 220px);
	}
	
	.header__list-item > a,
	.header__list li > a {
		padding: 9px 16px;
		font-size: 13.5px;
	}
}

/* ========================================
   Responsive Design - Mobile (991px and below)
   ======================================== */
@media screen and (max-width: 991px) {
	.header {
		padding: 12px 16px !important;
		position: sticky !important;
		top: 12px;
		max-width: calc(100% - 24px);
		margin: 0 12px;
		overflow: visible !important;
	}
	
	/* Dark mode header on mobile */
	[data-theme="dark"] .header {
		background: rgba(15, 23, 42, 0.98) !important;
	}
	
	[data-theme="dark"] .header.scrolled {
		background: rgba(15, 23, 42, 0.98) !important;
	}
	
	.header__wrapper {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 8px !important;
	}

	.header__logo {
		width: clamp(120px, 28vw, 180px) !important;
		max-width: clamp(120px, 28vw, 180px) !important;
		order: 0;
		flex-shrink: 0;
	}
	
	.header__actions {
		display: flex !important;
		order: 1;
		margin-left: auto;
		margin-right: 0;
		gap: 8px;
		flex-shrink: 0;
	}
	
	.header__button {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
	}
	
	.header__button svg {
		width: 20px !important;
		height: 20px !important;
	}
	
	.theme-toggle {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
		margin-left: 0;
		margin-right: 0;
	}

	.header__burger {
		display: flex !important;
		flex-direction: column !important;
		order: 2;
		flex-shrink: 0;
		margin-left: 8px !important;
		z-index: 100001 !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 44px !important;
		height: 44px !important;
		padding: 10px !important;
		background: #006aff !important;
		border: none !important;
		border-radius: 50% !important;
		gap: 4px !important;
		justify-content: center !important;
		align-items: center !important;
		cursor: pointer !important;
	}
	
	.header__burger i {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		height: 3px !important;
		width: 100% !important;
		background: #ffffff !important;
	}
	
	/* Hide old wrapper if exists */
	.header__buttons-wrapper {
		display: none !important;
	}
	
	/* Hide desktop navigation on mobile */
	.header__navigation-wrapper {
		display: none !important;
	}
	
	/* Show mobile menu when active */
	.header__navigation-wrapper.active {
		display: flex !important;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		opacity: 1;
		visibility: visible;
		transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 100000;
		overflow-y: auto;
		padding: 90px 28px 40px;
		flex-direction: column;
		justify-content: flex-start;
	}
	
	/* Dark mode mobile drawer */
	[data-theme="dark"] .header__navigation-wrapper.active {
		background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)) !important;
	}

	.header__navigation {
		width: 100%;
		max-width: 100%;
		margin: 0 auto;
	}

	.header__list {
		flex-direction: column;
		width: 100%;
		gap: 8px;
	}

	.header__list-item,
	.header__list li {
		width: 100%;
		display: block;
		margin: 0;
		padding: 0;
	}

	.header__list-item > a,
	.header__list li > a {
		width: 100%;
		justify-content: space-between;
		padding: 16px 20px;
		font-size: 15.5px;
		background: rgba(0, 106, 255, 0.04);
		border: none;
		margin: 0;
		box-shadow: none;
	}
	
	.header__list-item > a:hover,
	.header__list li > a:hover {
		transform: none;
		background: rgba(0, 106, 255, 0.12);
		border: none;
		box-shadow: none;
	}
	
	/* Dark mode mobile menu items */
	[data-theme="dark"] .header__list-item > a,
	[data-theme="dark"] .header__list li > a {
		background: rgba(99, 102, 241, 0.08);
		color: #e2e8f0;
	}
	
	[data-theme="dark"] .header__list-item > a:hover,
	[data-theme="dark"] .header__list li > a:hover {
		background: rgba(99, 102, 241, 0.15);
		color: #a5b4fc;
	}
	
	[data-theme="dark"] .header__list-item.current-menu-item > a,
	[data-theme="dark"] .header__list li.current-menu-item > a {
		background: rgba(99, 102, 241, 0.2);
		color: #a5b4fc;
	}
	
	/* Force disable pulse animation on mobile */
	.header__list-item.current-menu-item > a,
	.header__list li.current-menu-item > a {
		animation: none !important;
		box-shadow: none !important;
	}
	
	[data-theme="dark"] .header__list-item.current-menu-item > a,
	[data-theme="dark"] .header__list li.current-menu-item > a {
		animation: none !important;
		box-shadow: none !important;
	}
	
	/* Hide "More" button on mobile - show all items */
	.header__more-menu {
		display: none !important;
	}
	
	/* Show all items on mobile */
	.header__list-item.overflow-hidden,
	.header__list li.overflow-hidden {
		display: block !important;
	}
	
	/* Mobile Submenu Toggle */
	.header__list .menu-item-has-children > a {
		pointer-events: auto !important;
		cursor: pointer !important;
	}
	
	/* Hide desktop submenu indicator (::before) on mobile */
	.header__list .menu-item-has-children > a::before {
		display: none !important;
		content: none !important;
	}
	
	/* Use only ::after for mobile arrow */
	.header__list .menu-item-has-children > a::after {
		content: '' !important;
		position: static !important;
		transform: none !important;
		margin-left: auto !important;
		width: 12px !important;
		height: 12px !important;
		transition: transform 0.3s ease !important;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23006aff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
		background-size: contain !important;
		background-repeat: no-repeat !important;
		background-position: center !important;
		pointer-events: none !important;
		opacity: 1 !important;
	}
	
	.header__list .menu-item-has-children.submenu-open > a::after {
		transform: rotate(180deg);
	}
	
	/* Dark mode submenu toggle icon */
	[data-theme="dark"] .header__list .menu-item-has-children > a::before {
		display: none !important;
		content: none !important;
	}
	
	[data-theme="dark"] .header__list .menu-item-has-children > a::after {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
	}
	
	/* Mobile Submenu */
	.header__list .sub-menu {
		position: static !important;
		display: block !important;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		background: rgba(0, 106, 255, 0.08) !important;
		border: none !important;
		margin: 0 !important;
		padding: 0 !important;
		min-width: auto !important;
		max-height: 0 !important;
		overflow: hidden !important;
		transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
		box-shadow: none !important;
		z-index: auto !important;
	}
	
	.header__list .menu-item-has-children.submenu-open > .sub-menu {
		max-height: 600px !important;
		padding: 8px !important;
	}
	
	.header__list .sub-menu li {
		pointer-events: auto !important;
		margin: 0 !important;
		padding: 6px 0 !important;
	}
	
	.header__list .sub-menu li:first-child {
		padding-top: 0 !important;
	}
	
	.header__list .sub-menu li:last-child {
		padding-bottom: 0 !important;
	}
	
	.header__list .sub-menu li a {
		padding: 13px 18px;
		font-size: 14.5px;
		background: rgba(255, 255, 255, 0.7);
		margin: 0;
		border: none;
		box-shadow: none;
		pointer-events: auto !important;
		cursor: pointer !important;
		color: #334155 !important;
		opacity: 1 !important;
		display: block !important;
		visibility: visible !important;
	}
	
	.header__list .sub-menu li a:hover {
		padding-left: 22px;
		background: rgba(0, 106, 255, 0.12);
		border: none;
		box-shadow: none;
		color: #006aff !important;
	}
	
	.header__list .sub-menu li a::before {
		height: 60%;
	}
	
	/* Dark mode mobile submenu */
	[data-theme="dark"] .header__list .sub-menu {
		background: rgba(99, 102, 241, 0.12) !important;
	}
	
	[data-theme="dark"] .header__list .sub-menu li a {
		background: rgba(30, 41, 59, 0.9);
		color: #e2e8f0;
	}
	
	[data-theme="dark"] .header__list .sub-menu li a:hover {
		background: rgba(99, 102, 241, 0.25);
		color: #a5b4fc;
	}
	
	[data-theme="dark"] .header__list .sub-menu li.current-menu-item > a {
		background: rgba(99, 102, 241, 0.3);
		color: #a5b4fc;
	}
}

/* ========================================
   Small Mobile Devices
   ======================================== */
@media screen and (max-width: 480px) {
	.header {
		padding: 10px 14px !important;
		max-width: calc(100% - 16px);
		margin: 0 8px;
		top: 10px;
		border-radius: 16px !important;
	}
	
	/* Dark mode for small mobile */
	[data-theme="dark"] .header {
		background: rgba(15, 23, 42, 0.98) !important;
	}
	
	.header__logo {
		width: clamp(110px, 26vw, 160px) !important;
		max-width: clamp(110px, 26vw, 160px) !important;
	}
	
	.header__actions {
		gap: 6px;
	}
	
	.header__button {
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		min-height: 38px !important;
	}
	
	.header__button svg {
		width: 18px !important;
		height: 18px !important;
	}
	
	.theme-toggle {
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		min-height: 38px !important;
	}
	
	.header__burger {
		width: 42px !important;
		height: 42px !important;
		padding: 9px !important;
		margin-left: 6px !important;
		box-shadow: none !important;
	}
	
	.header__burger i {
		height: 2.5px !important;
	}
	
	.header__navigation-wrapper {
		padding: 75px 20px 30px;
	}
	
	.header__list-item > a,
	.header__list li > a {
		padding: 14px 18px;
		font-size: 14.5px;
	}
	
	.header__list .sub-menu li a {
		padding: 10px 14px;
		font-size: 13.5px;
	}
}

/* ========================================
   Extra Small Devices
   ======================================== */
@media screen and (max-width: 360px) {
	.header {
		padding: 8px 12px !important;
		max-width: calc(100% - 12px);
		margin: 0 6px;
		top: 8px;
		border-radius: 14px !important;
	}
	
	/* Dark mode for extra small devices */
	[data-theme="dark"] .header {
		background: rgba(15, 23, 42, 0.98) !important;
	}
	
	.header__logo {
		width: clamp(100px, 24vw, 140px) !important;
		max-width: clamp(100px, 24vw, 140px) !important;
	}
	
	.header__actions {
		gap: 5px;
	}
	
	.header__button {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
	}
	
	.header__button svg {
		width: 16px !important;
		height: 16px !important;
	}
	
	.theme-toggle {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
	}
	
	.header__burger {
		width: 40px !important;
		height: 40px !important;
		padding: 8px !important;
		margin-left: 5px !important;
		box-shadow: none !important;
	}
	
	.header__list-item > a,
	.header__list li > a {
		padding: 13px 16px;
		font-size: 14px;
	}
	
	.header__list .sub-menu li a {
		padding: 9px 12px;
		font-size: 13px;
	}
}

/* ========================================
   Performance Optimizations
   ======================================== */
@media (prefers-reduced-motion: reduce) {
	.header,
	.header__list-item > a,
	.header__list li > a,
	.header__list .sub-menu,
	.theme-toggle,
	.header__button,
	.header__burger i,
	.header__logo::after {
		transition: none;
		animation: none;
	}
}

/* ========================================
   Smooth Animations
   ======================================== */
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.header__navigation-wrapper.active .header__list-item,
.header__navigation-wrapper.active .header__list li {
	animation: slideIn 0.4s ease forwards;
	opacity: 0;
}

.header__navigation-wrapper.active .header__list-item:nth-child(1),
.header__navigation-wrapper.active .header__list li:nth-child(1) { animation-delay: 0.06s; }
.header__navigation-wrapper.active .header__list-item:nth-child(2),
.header__navigation-wrapper.active .header__list li:nth-child(2) { animation-delay: 0.12s; }
.header__navigation-wrapper.active .header__list-item:nth-child(3),
.header__navigation-wrapper.active .header__list li:nth-child(3) { animation-delay: 0.18s; }
.header__navigation-wrapper.active .header__list-item:nth-child(4),
.header__navigation-wrapper.active .header__list li:nth-child(4) { animation-delay: 0.24s; }
.header__navigation-wrapper.active .header__list-item:nth-child(5),
.header__navigation-wrapper.active .header__list li:nth-child(5) { animation-delay: 0.3s; }
.header__navigation-wrapper.active .header__list-item:nth-child(n+6),
.header__navigation-wrapper.active .header__list li:nth-child(n+6) { animation-delay: 0.36s; }

/* ========================================
   Pulse Animation for Active Items - DESKTOP ONLY
   ======================================== */
@keyframes pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
	}
}

/* Only on desktop (≥ 992px) - NOT on mobile */
@media screen and (min-width: 992px) {
	.header__list-item.current-menu-item > a,
	.header__list li.current-menu-item > a {
		animation: pulse 2s ease-in-out infinite;
	}
}

/* ========================================
   Force Remove All Borders
   ======================================== */
.header,
.header *,
.header__list,
.header__list *,
.header__list-item,
.header__list-item > a,
.header__list li,
.header__list li > a,
.header__navigation,
.header__navigation *,
.header__more-menu,
.header__more-menu *,
.sub-menu,
.sub-menu *,
.theme-toggle,
.header__button,
.header__burger {
	border: none !important;
}
