/* NewsBihar header: sticky navbar — logo · menu · search · subscribe */
:root {
	--nb-brand: #4f53a3;
	--nb-brand-dark: #3d4086;
	--nb-ink: #111;
	--nb-muted: #6b6f76;
	--nb-line: #ececf1;
	--nb-header-h: 68px;
	--nb-top: 0px; /* admin-bar offset */
}
.admin-bar { --nb-top: 32px; }
@media (max-width: 782px) { .admin-bar { --nb-top: 46px; } }
/* Site "Additional CSS" pins #wpadminbar on phones, so the 46px offset applies there too. */

/* Old Additional CSS padded <body> for the previous fixed mobile header — not needed now. */
@media (max-width: 700px) { body { padding-top: 0 !important; } }

.nb-header {
	position: -webkit-sticky;
	position: sticky;
	top: var(--nb-top);
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid var(--nb-line);
	transition: box-shadow .2s ease;
}
.nb-header.is-stuck { box-shadow: 0 4px 18px rgba(17, 17, 17, .08); }

.nb-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--nb-header-h);
}
.nb-header__inner::before, .nb-header__inner::after { display: none; } /* bootstrap clearfix */

/* Logo */
.nb-logo { flex: 0 0 auto; display: flex; align-items: center; }
.nb-logo img { height: 38px; width: auto; display: block; }
.nb-logo__text { font-size: 22px; font-weight: 700; color: var(--nb-ink); }

/* Menu (desktop) */
.nb-nav { flex: 1 1 auto; min-width: 0; height: 100%; }
.nb-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; height: 100%; gap: 2px; }
.nb-menu > li { position: relative; height: 100%; display: flex; align-items: center; margin: 0; }
.nb-menu > li > a {
	display: flex; align-items: center; gap: 4px; height: 100%;
	padding: 0 10px;
	font-size: 15.5px; font-weight: 600; color: var(--nb-ink);
	white-space: nowrap; text-decoration: none;
	position: relative;
}
.nb-menu > li > a::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
	background: var(--nb-brand); border-radius: 3px 3px 0 0;
	transform: scaleX(0); transition: transform .2s ease;
}
.nb-menu > li:hover > a, .nb-menu > li:focus-within > a,
.nb-menu > li.current-menu-item > a, .nb-menu > li.current-menu-ancestor > a { color: var(--nb-brand); }
.nb-menu > li:hover > a::after, .nb-menu > li.current-menu-item > a::after, .nb-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.nb-menu > li.menu-item-has-children > a::before {
	content: ""; order: 2; width: 6px; height: 6px; margin-left: 2px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
}

/* Dropdowns */
.nb-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 200px;
	background: #fff; border: 1px solid var(--nb-line); border-radius: 0 0 10px 10px;
	box-shadow: 0 16px 32px rgba(17, 17, 17, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nb-menu > li:hover > .sub-menu, .nb-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nb-menu .sub-menu.nb-sub--wide { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); width: 460px; }
.nb-menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
.nb-menu .sub-menu li { margin: 0; }
.nb-menu .sub-menu a {
	display: block; padding: 8px 12px; border-radius: 6px;
	font-size: 14.5px; font-weight: 500; color: var(--nb-ink); text-decoration: none; white-space: nowrap;
}
.nb-menu .sub-menu a:hover, .nb-menu .sub-menu a:focus { background: #f3f3fa; color: var(--nb-brand); }
.nb-sub-toggle { display: none; }

/* Actions */
.nb-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nb-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px;
	background: #f4f4f7; color: var(--nb-ink); cursor: pointer;
	transition: background .15s ease;
}
.nb-icon-btn:hover, .nb-icon-btn[aria-expanded="true"] { background: #e9e9f3; color: var(--nb-brand); }
.nb-subscribe {
	display: inline-flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 18px; border-radius: 999px;
	background: var(--nb-brand); color: #fff !important;
	font-size: 14.5px; font-weight: 700; text-decoration: none !important; white-space: nowrap;
	box-shadow: 0 6px 16px rgba(79, 83, 163, .28);
	transition: background .15s ease, transform .15s ease;
}
.nb-subscribe:hover { background: var(--nb-brand-dark); transform: translateY(-1px); }
.nb-burger { display: none; flex-direction: column; gap: 4px; }
.nb-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Search panel */
.nb-search { border-top: 1px solid var(--nb-line); background: #fff; padding: 14px 0; }
.nb-search[hidden] { display: none; }
.nb-search form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.nb-search input[type="search"], .nb-search input[type="text"] {
	flex: 1; height: 44px; padding: 0 14px; border: 1px solid #d9d9e3; border-radius: 10px; font-size: 16px;
}
.nb-search input[type="submit"], .nb-search button { height: 44px; border-radius: 10px; }

/* ---------- Tablet / mobile: burger menu ---------- */
@media (max-width: 1099px) {
	:root { --nb-header-h: 60px; }
	.nb-header__inner { gap: 12px; }
	.nb-logo img { height: 32px; }
	.nb-burger { display: inline-flex; }
	.nb-nav {
		position: absolute; left: 0; right: 0; top: 100%; height: auto;
		max-height: calc(100vh - var(--nb-header-h) - var(--nb-top));
		overflow-y: auto; -webkit-overflow-scrolling: touch;
		background: #fff; border-top: 1px solid var(--nb-line);
		box-shadow: 0 18px 30px rgba(17, 17, 17, .12);
		display: none;
	}
	.nb-header.nav-open .nb-nav { display: block; animation: nb-drop .2s ease; }
	.nb-menu { flex-direction: column; align-items: stretch; height: auto; padding: 8px 16px 16px; gap: 0; }
	.nb-menu > li { height: auto; flex-wrap: wrap; border-bottom: 1px solid var(--nb-line); }
	.nb-menu > li > a { flex: 1; height: auto; padding: 14px 4px; font-size: 16px; }
	.nb-menu > li > a::after, .nb-menu > li.menu-item-has-children > a::before { display: none; }
	.nb-sub-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 0; background: none; color: var(--nb-muted); cursor: pointer;
	}
	.nb-sub-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .2s ease; }
	.nb-sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: 4px; }
	.nb-menu .sub-menu, .nb-menu .sub-menu.nb-sub--wide {
		position: static; width: 100%; min-width: 0; display: none;
		opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0;
		padding: 0 0 10px 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.nb-menu li.sub-open > .sub-menu { display: grid; }
	.nb-menu .sub-menu a { padding: 9px 8px; font-size: 15px; white-space: normal; }
}
@media (max-width: 480px) {
	.nb-subscribe { padding: 0 12px; height: 36px; font-size: 13.5px; }
	.nb-subscribe svg { display: none; }
	.nb-icon-btn { width: 36px; height: 36px; }
	.nb-logo img { height: 28px; }
	.nb-actions { gap: 6px; }
}
@keyframes nb-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* The theme's own banner wrapper around NxtAds header slot: tighten spacing */
.inhype-bb-block-below_header { margin-top: 0; }
