/* ==========================================================================
   Custom Bilingual Header Menu
   ========================================================================== */

.cbh-nav {
	width: 100%;
	background-color: #1857c4; /* adjust to match your exact brand blue */
}

.cbh-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: stretch;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.cbh-menu-item {
	position: relative;
	display: flex;
}

.cbh-menu-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px 16px;
	text-decoration: none;
	color: #ffffff;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.cbh-menu-link:hover,
.cbh-menu-link:focus {
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	text-decoration: none;
}

.cbh-label-en {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1.4;
}

.cbh-label-zh {
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	opacity: 0.9;
}

.cbh-caret {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid #ffffff;
	border-bottom: 1.5px solid #ffffff;
	transform: rotate(45deg);
	margin-top: 4px;
}

/* ---------------- Dropdown ---------------- */

.cbh-sub-menu {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background-color: #1857c4;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 999;
}

.cbh-sub-menu .cbh-menu-item {
	display: block;
	width: 100%;
}

.cbh-sub-menu .cbh-menu-link {
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	text-align: left;
}

.cbh-sub-menu .cbh-label-en {
	font-size: 12px;
}

.cbh-sub-menu .cbh-label-zh {
	font-size: 11px;
}

.cbh-menu-item.cbh-has-dropdown:hover > .cbh-sub-menu,
.cbh-menu-item.cbh-has-dropdown.cbh-open > .cbh-sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Nested (3rd level) dropdowns open to the side */
.cbh-sub-menu .cbh-sub-menu {
	top: 0;
	left: 100%;
}

/* ---------------- Responsive ----------------
   Below 999px, this custom bar hides completely so Salient's own
   off-canvas mobile menu (hamburger icon) takes over as usual.
   Make sure Salient's "Mobile Breakpoint" (Theme Options > Header)
   is also set to 999px so the two hand off cleanly.
------------------------------------------------ */
@media only screen and (max-width: 999px) {
	.cbh-nav {
		display: none !important;
	}
}
