/* Nav Menu Widget */
.nm-wrap {
	position: relative;
	width: 100%;
}

/* ========== DESKTOP ========== */
.nm-desktop {
	display: flex;
	align-items: center;
	width: 100%;
	background: #fff;
}

.nm-mobile {
	display: none;
}

/* Logo */
.nm-logo {
	flex-shrink: 0;
	align-self: stretch;
}

.nm-logo a {
	display: block;
	line-height: 0;
	height: 100%;
}

.nm-logo img {
	width: 80px;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* Navigation */
.nm-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nm-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 28px;
}

.nm-menu li {
	position: relative;
	list-style: none;
}

.nm-menu a {
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	transition: color 0.2s ease;
	white-space: nowrap;
	display: block;
	padding: 8px 0;
}

.nm-menu a:hover {
	color: #000;
}

/* Dropdown submenu */
.nm-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 200px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 8px 0;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.25s ease;
	z-index: 1000;
}

.nm-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nm-menu .sub-menu li {
	list-style: none;
}

.nm-menu .sub-menu a {
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 400;
}

.nm-menu .sub-menu a:hover {
	background: #f5f5f5;
}

.nm-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

/* Right Actions */
.nm-actions,
.nm-mobile-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

/* Search Toggle */
.nm-search-wrap {
	position: relative;
}

.nm-search-toggle,
.nm-search-toggle:hover,
.nm-search-toggle:focus,
.nm-search-toggle:active {
	background: none !important;
	background-color: transparent !important;
	border: none;
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	transition: color 0.2s ease;
	box-shadow: none !important;
	outline: none;
}

.nm-search-toggle svg {
	width: 18px;
	height: 18px;
}

/* Search Dropdown */
.nm-search-dropdown {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	background: rgba(51, 51, 51, 0.92);
	z-index: 99999;
	padding: 14px 20px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nm-search-dropdown.nm-active {
	display: block;
}

.nm-search-bar-inner {
	display: flex;
	align-items: center;
	max-width: 600px;
	margin: 0 auto;
}

.nm-search-input {
	flex: 1;
	height: 40px;
	padding: 0 16px;
	border: none;
	border-radius: 0;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: #333;
	outline: none;
}

.nm-search-input::placeholder {
	color: #999;
}

.nm-search-submit {
	width: 44px;
	height: 40px;
	background: #222;
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.nm-search-submit:hover {
	background: #000;
}

/* Language Switcher */
.nm-lang-wrap {
	position: relative;
}

.nm-lang-toggle,
.nm-lang-toggle:hover,
.nm-lang-toggle:focus,
.nm-lang-toggle:active {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #fff !important;
	background-color: #fff !important;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	font-family: inherit;
	transition: border-color 0.2s ease;
	white-space: nowrap;
	box-shadow: none !important;
	outline: none;
}

.nm-lang-flag {
	font-size: 18px;
	line-height: 1;
}

.nm-lang-code {
	font-size: 14px;
	font-weight: 600;
}

.nm-lang-arrow {
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.nm-lang-wrap.nm-open .nm-lang-arrow {
	transform: rotate(180deg);
}

.nm-lang-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
	z-index: 10000;
	padding: 8px;
	min-width: 140px;
	max-height: 280px;
	overflow-y: auto;
}

.nm-lang-wrap.nm-open .nm-lang-dropdown {
	display: block;
}

.nm-lang-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
}

.nm-lang-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	text-decoration: none;
	color: #333;
	font-size: 13px;
	font-weight: 500;
	border-radius: 4px;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.nm-lang-item:hover {
	background: #f0f0f0;
}

.nm-lang-item .nm-lang-flag {
	font-size: 16px;
}

.nm-lang-item .nm-lang-code {
	font-size: 13px;
	font-weight: 500;
}

/* ========== MOBILE ========== */
.nm-mobile-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: #333;
}

.nm-hamburger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}

.nm-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 1px;
	transition: all 0.3s ease;
}

.nm-mobile-actions {
	gap: 12px;
}

.nm-mobile-actions .nm-search-toggle {
	color: #fff;
}

.nm-mobile-actions .nm-search-toggle svg {
	width: 22px;
	height: 22px;
}

.nm-mobile-actions .nm-lang-toggle {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.nm-mobile-logo {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px 16px;
	background: #f5f5f5;
}

.nm-mobile-logo a {
	display: block;
	line-height: 0;
}

.nm-mobile-logo img {
	width: 60px;
	height: auto;
	display: block;
}

/* Mobile menu panel */
.nm-mobile-menu {
	display: none;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nm-mobile-menu.nm-open {
	display: block;
}

.nm-menu-mobile {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.nm-menu-mobile li {
	list-style: none;
}

.nm-menu-mobile a {
	display: block;
	padding: 12px 24px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	transition: background 0.15s ease;
}

.nm-menu-mobile a:hover {
	background: #f5f5f5;
}

.nm-menu-mobile .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 0 20px;
}

.nm-menu-mobile .sub-menu a {
	font-size: 14px;
	font-weight: 400;
	color: #666;
}

/* Mobile submenu toggle arrow button */
.nm-menu-mobile li.nm-has-children {
	position: relative;
}

.nm-menu-mobile li.nm-has-children > a {
	padding-right: 44px;
}

.nm-sub-toggle {
	position: absolute;
	right: 0;
	top: 0;
	width: 44px;
	height: 44px;
	background: none !important;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	padding: 0;
	z-index: 1;
	box-shadow: none !important;
	outline: none;
	transition: color 0.2s ease;
}

.nm-sub-toggle:hover {
	color: #333;
}

.nm-sub-toggle svg {
	width: 16px;
	height: 16px;
	pointer-events: none;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.nm-menu-mobile li.nm-has-children.nm-open > .nm-sub-toggle svg {
	transform: rotate(180deg);
}

/* Responsive */
@media (min-width: 1025px) {
	.nm-mobile {
		display: none !important;
	}
	.nm-desktop {
		display: flex !important;
	}
}

@media (max-width: 1024px) {
	.nm-desktop {
		display: none !important;
	}
	.nm-mobile {
		display: block !important;
	}

	.nm-search-dropdown {
		padding: 12px 16px;
	}

	.nm-search-bar-inner {
		max-width: 100%;
	}
}
