/* Hand-built header, styled to match the production header (colors/values
   taken from the live site's generated Elementor CSS: post-5835.css / post-8.css). */

.nbp-site-header {
	width: 100%;
	background: #fff;
	position: relative;
	z-index: 100;
}

.nbp-site-header .ct-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Top bar */

.nbp-top-bar {
	background: #fff;
}

.nbp-top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 40px;
	padding: 7px 0;
}

.nbp-top-bar-pill {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #ececec;
	border-radius: 0 0 0 100px;
	padding: 6px 18px;
}

.nbp-lang-switcher {
	display: flex;
	align-items: center;
	font-size: 14px;
}

/* Hide the flag icon on the GTranslate trigger button - only the "Language"
   label and dropdown arrow should show. The per-language flags inside the
   opened popup list are untouched. */
.nbp-lang-switcher .gtranslate_wrapper > a.gt_switcher-popup > img {
	display: none;
}

.nbp-top-search {
	display: flex;
	align-items: center;
	padding-left: 14px;
	border-left: 1px solid #d5d5d5;
}

.nbp-top-search .search-form {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nbp-top-search .search-field {
	background: transparent;
	border: 0;
	padding: 4px 0;
	font-size: 14px;
	min-width: 140px;
	color: #444;
}

.nbp-top-search .search-field::placeholder {
	color: #888;
}

.nbp-top-search .search-submit {
	border: 0;
	background: none;
	cursor: pointer;
	padding: 0;
	width: 16px;
	height: 16px;
	position: relative;
	color: transparent;
	font-size: 0;
}

.nbp-top-search .search-submit::before {
	content: "\1F50D";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #666;
}

.nbp-top-search .search-submit:hover::before {
	color: #1e4d9b;
}

/* Main row */

.nbp-main-row {
	background: #fff;
}

.nbp-main-row-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
	gap: 24px;
	position: relative;
}

.nbp-logo {
	/* Production overlaps one logo badge across both the top bar and the
	   main row (it's absolutely positioned over the whole header). Keep it
	   on the left, inset a bit from the edge instead of flush against it,
	   and pull it up so it still visually bridges the two rows. */
	position: relative;
	z-index: 10;
	margin-top: -42px;
	margin-left: 16px;
}

.nbp-logo img,
.nbp-logo .custom-logo {
	/* The source logo file is a square icon with the company name printed
	   underneath it; production crops it into a circular icon-only badge,
	   so we crop the same way instead of shrinking the whole square. */
	width: 100px;
	height: 100px;
	object-fit: cover;
	object-position: top center;
	border-radius: 50%;
	display: block;
	box-shadow: 0 0 0 4px #fff;
}

.nbp-site-title {
	font-size: 20px;
	font-weight: 700;
	color: #1e4d9b;
	text-decoration: none;
}

/* Primary nav */

.nbp-main-nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

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

.nbp-main-menu > li {
	position: relative;
}

.nbp-main-menu > li > a {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #050000;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 0;
}

.nbp-main-menu > li > a:hover,
.nbp-main-menu > li.current-menu-item > a,
.nbp-main-menu > li.current_page_item > a {
	color: #d12228;
}

.nbp-dropdown-arrow {
	display: inline-block;
	width: 0;
	height: 0;
	margin-top: 2px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

/* Dropdown submenus */

.nbp-main-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border-top: 3px solid #1e4d9b;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	z-index: 20;
}

.nbp-main-menu li.menu-item-has-children:hover > .sub-menu,
.nbp-main-menu li.menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.nbp-main-menu .sub-menu li a {
	display: block;
	padding: 10px 18px;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.nbp-main-menu .sub-menu li a:hover {
	color: #d12228;
	background: #f5f7fb;
}

/* Mobile toggle */

.nbp-mobile-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
}

.nbp-mobile-toggle span {
	width: 24px;
	height: 2px;
	background: #333;
	display: block;
}

@media (max-width: 900px) {
	.nbp-mobile-toggle {
		display: flex;
	}

	.nbp-main-nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.nbp-main-row-inner {
		flex-wrap: wrap;
		min-height: auto;
		padding: 14px 0;
	}

	.nbp-main-row-inner.is-open .nbp-main-nav {
		display: block;
	}

	.nbp-main-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.nbp-main-menu > li {
		width: 100%;
	}

	.nbp-main-menu > li > a {
		width: 100%;
		padding: 12px 0;
		border-bottom: 1px solid #eee;
	}

	.nbp-main-menu .sub-menu {
		display: none;
		position: static;
		box-shadow: none;
		border-top: 0;
		padding-left: 16px;
	}

	.nbp-main-menu li.menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.nbp-top-search .search-field {
		min-width: 90px;
	}

	.nbp-logo img,
	.nbp-logo .custom-logo {
		width: 72px;
		height: 72px;
	}
}
