.bn-header {
	background: var(--bg-primary, #fff);
	color: var(--text-primary, #17222b);
}

.bn-sticky-compact-header {
	display: none;
}

@media (min-width: 1024px) {
	body.has-sticky-header .bn-sticky-compact-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1090;
		display: block;
		width: 100%;
		opacity: 0;
		box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
		transform: translateY(-100%);
		visibility: hidden;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	}

	body.has-sticky-header .bn-sticky-compact-header .bn-h1-inner {
		grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 42px;
		gap: 18px;
		min-height: 58px;
		overflow: visible;
	}

	body.has-sticky-header .bn-sticky-compact-header .bn-h1-logo {
		min-width: 0;
		overflow: hidden;
	}

	body.has-sticky-header .bn-sticky-compact-header .bn-h1-logo a {
		display: inline-flex;
		align-items: center;
		max-width: 100%;
	}

	body.has-sticky-header .bn-sticky-compact-header .custom-logo {
		display: block;
		width: auto;
		max-width: 220px;
		max-height: 42px;
		object-fit: contain;
	}

	body.has-sticky-header .bn-sticky-compact-header .bn-site-title-link {
		overflow: hidden;
		max-width: 100%;
		font-size: 30px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	body.has-sticky-header .bn-sticky-compact-header .bn-h1-nav {
		min-width: 0;
		overflow: hidden;
	}

	body.has-sticky-header .bn-sticky-compact-header .bn-menu {
		flex-wrap: nowrap;
		justify-content: center;
		min-width: 0;
		overflow: hidden;
	}

	body.has-sticky-header .bn-sticky-compact-header .bn-menu > li > a {
		min-height: 58px;
		padding: 0 12px;
	}

	body.admin-bar.has-sticky-header .bn-sticky-compact-header {
		top: 32px;
	}

	body.has-sticky-header.is-sticky-header-active .bn-sticky-compact-header {
		opacity: 1;
		transform: translateY(0);
		visibility: visible;
	}
}

.bn-header .custom-logo {
	max-height: 76px;
	width: auto;
}

.bn-header .bn-site-title-link {
	color: inherit;
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.bn-header .bn-menu {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bn-header .bn-menu > li > a {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0 15px;
	color: inherit;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.bn-header button,
.bn-header a {
	font: inherit;
}

.bn-h1-bar {
	background: var(--bn-header-style-1-bg, #124b65);
	color: var(--bn-header-style-1-text, #fff);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.bn-h1-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 26px;
	min-height: 60px;
}

.bn-h1-logo .custom-logo {
	max-height: 42px;
}

.bn-h1-logo .bn-site-title-link {
	font-size: 36px;
	letter-spacing: 0.02em;
}

.bn-h1-nav .bn-menu {
	justify-content: center;
}

.bn-h1-nav .bn-menu > li > a {
	color: var(--bn-header-style-1-menu, #fff);
}

.bn-h1-logo .bn-site-title-link {
	color: var(--bn-header-style-1-text, #fff);
}

.bn-h2-actions,
.bn-h4-left,
.bn-h4-right,
.bn-h4-nav,
.bn-social {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bn-header-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	min-width: 42px;
	border: 1px solid rgba(148, 163, 184, 0.32);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bn-header-search-toggle svg {
	display: block;
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.bn-header-search-toggle:hover,
.bn-header-search-toggle:focus-visible {
	border-color: var(--bn-primary, #124b65);
	background: rgba(18, 75, 101, 0.08);
	color: var(--bn-primary, #124b65);
	outline: 0;
}

.bn-header-search-toggle:hover {
	transform: translateY(-1px);
}

.bn-h1-bar .bn-header-search-toggle {
	border-color: var(--bn-header-style-1-icon, #fff);
	color: var(--bn-header-style-1-icon, #fff);
}

.bn-h1-bar .bn-header-search-toggle:hover,
.bn-h1-bar .bn-header-search-toggle:focus-visible {
	border-color: var(--bn-header-style-1-icon, #fff);
	background: rgba(255, 255, 255, 0.12);
	color: var(--bn-header-style-1-icon, #fff);
}

.bn-header-style-2 {
	border-top: 1px solid var(--border-color, #e5e7eb);
}

.bn-h2-main {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	align-items: center;
	gap: 34px;
	min-height: 118px;
}

.bn-h2-logo .custom-logo {
	max-height: 74px;
}

.bn-h2-logo .bn-site-title-link {
	color: #222;
	font-size: 50px;
}

.bn-h2-latest {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.bn-header-mini-card {
	display: grid;
	grid-template-columns: 9px 64px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	color: var(--text-primary, #222);
	text-decoration: none;
}

.bn-header-mini-card::before {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #e8192c;
	content: "";
}

.bn-header-mini-card img,
.bn-header-mini-placeholder {
	width: 64px;
	height: 64px;
	border-radius: 2px;
	object-fit: cover;
	background: var(--bg-secondary, #f1f1f1);
}

.bn-header-mini-placeholder {
	display: grid;
	place-items: center;
	color: #999;
}

.bn-header-mini-card strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.bn-h2-tools {
	border-top: 1px solid var(--border-color, #e5e7eb);
	border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.bn-h2-tools-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
}

.bn-h2-actions {
	justify-content: flex-end;
}

.bn-header-style-3 {
	border-top: 1px solid var(--border-color, #e5e7eb);
}

.bn-h3-top {
	border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.bn-h3-top-inner {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px;
	min-height: 80px;
}

.bn-h3-top-inner .bn-header-search-toggle {
	grid-column: 3;
	justify-self: end;
}

.bn-h3-logo .custom-logo {
	max-height: 60px;
}

.bn-h3-logo .bn-site-title-link {
	color: #111;
	font-size: 44px;
}

.bn-h3-tools {
	display: flex;
	justify-content: center;
	gap: 34px;
	color: #222;
	font-weight: 700;
}

.bn-h3-tools a,
.bn-h3-tools span {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.bn-h3-nav {
	border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.bn-h3-nav .bn-menu {
	justify-content: center;
}

.bn-h3-nav .bn-menu > li > a {
	min-height: 50px;
}

.bn-header-style-4 {
	box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
}

.bn-h4-mast {
	display: grid;
	grid-template-columns: minmax(230px, 1fr) auto minmax(330px, 1fr);
	align-items: center;
	gap: 24px;
	min-height: 92px;
}

.bn-h4-left {
	color: var(--text-secondary, #667085);
}

.bn-h4-logo {
	text-align: center;
}

.bn-h4-logo .custom-logo {
	max-height: 72px;
}

.bn-h4-logo .bn-site-title-link {
	color: #111;
	font-size: 52px;
}

.bn-h4-right {
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;
}

.bn-h4-right .bn-social {
	gap: 4px;
}

.bn-h4-nav {
	justify-content: center;
	border-top: 1px solid var(--border-color, #e5e7eb);
	border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.bn-h4-nav nav {
	min-width: 0;
}

.bn-h4-nav .bn-menu {
	justify-content: center;
}

.bn-h4-nav .bn-menu > li > a {
	min-height: 54px;
	font-size: 20px;
}

@media (max-width: 1023px) {
	.bn-h1-inner,
	.bn-h2-tools-inner,
	.bn-h3-top-inner,
	.bn-h4-mast {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 14px 0;
	}

	.bn-h2-main {
		grid-template-columns: 1fr;
		padding: 18px 0;
	}

	.bn-h2-latest {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bn-h1-nav .bn-menu,
	.bn-h2-menu .bn-menu,
	.bn-h3-nav .bn-menu,
	.bn-h4-nav .bn-menu {
		justify-content: flex-start;
		flex-wrap: wrap;
		overflow: visible;
		white-space: nowrap;
	}

	.bn-header .bn-menu > li > a {
		min-height: 46px;
		padding: 0 12px;
		font-size: 15px;
	}

	.bn-header .bn-menu .sub-menu,
	.bn-header .bn-menu .children {
		min-width: 200px;
	}

	.bn-header .bn-menu .sub-menu a,
	.bn-header .bn-menu .children a {
		font-size: 14px;
	}

	.bn-h3-tools,
	.bn-h4-right,
	.bn-h1-actions {
		justify-content: center;
		overflow-x: auto;
	}
}

@media (max-width: 767px) {
	.bn-header {
		display: none;
	}
}
