/* =========================================================
   BHARAT NEWS JOURNAL
   HEADER
========================================================= */


/* =========================================================
   HEADER BASE
========================================================= */

.bnj-header {
	position: relative;
	z-index: 99999;
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
}


/* =========================================================
   TOP INFO BAR
========================================================= */

.bnj-info-bar {
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid #edf0f5;
}

.bnj-info-inner {
	min-height: 36px;
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 11px;
}

.bnj-date {
	white-space: nowrap;
	font-weight: 700;
	color: #343b48;
}

.bnj-breaking {
	min-width: 0;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	overflow: hidden;
}

.bnj-breaking strong {
	flex: 0 0 auto;
	padding: 6px 11px;
	border-radius: 5px;
	background: #ef1d52;
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.bnj-breaking span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #273142;
}

.bnj-top-links {
	display: flex;
	align-items: center;
	gap: 17px;
	white-space: nowrap;
}

.bnj-top-links a {
	color: #4b5565;
	text-decoration: none;
}

.bnj-top-links a:hover {
	color: #1558d6;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.bnj-topbar {
	width: 100%;
	background: #ffffff;
}

.bnj-header-inner {
	min-height: 108px;
	display: flex;
	align-items: center;
	gap: 25px;
}


/* =========================================================
   BRAND
========================================================= */

.bnj-brand {
	display: inline-flex;
	flex-direction: column;
	flex: 0 0 auto;
	line-height: 1;
	text-decoration: none !important;
}

.bnj-brand-main {
	font-size: 42px;
	font-weight: 950;
	letter-spacing: -0.06em;

	background: linear-gradient(
		90deg,
		#1558d6 0%,
		#1558d6 58%,
		#f08a16 59%,
		#f08a16 100%
	);

	-webkit-background-clip: text;
	background-clip: text;

	-webkit-text-fill-color: transparent;
	color: transparent;
}

.bnj-brand-sub {
	margin-top: 5px;

	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.27em;

	color: #111827;
}

.bnj-brand .custom-logo-link {
	display: block;
}

.bnj-brand .custom-logo-link img {
	display: block;
	width: auto;
	max-height: 70px;
}


/* =========================================================
   HEADER PROMO
========================================================= */

.bnj-header-promo {
	flex: 1;
	max-width: 470px;
	margin-left: auto;

	padding: 13px 25px;

	text-align: center;

	border: 1px solid #f0f2f6;
	border-radius: 8px;

	background: linear-gradient(
		90deg,
		#ffffff,
		#f9fbff
	);
}

.bnj-header-promo strong {
	display: block;

	font-size: 22px;
	line-height: 1.2;

	color: #14213d;
}

.bnj-header-promo .promo-small {
	display: block;

	font-size: 9px;
	font-weight: 800;

	color: #718096;

	letter-spacing: 0.1em;
}


/* =========================================================
   DESKTOP SEARCH
========================================================= */

.bnj-header-search {
	width: 250px;
	flex: 0 0 250px;
}


/* =========================================================
   MOBILE BUTTONS
========================================================= */

/*
   IMPORTANT:
   !important is intentionally used here so Astra
   or another theme/plugin CSS cannot hide these buttons.
*/

.bnj-menu-toggle,
.bnj-search-toggle {

	display: none !important;

	width: 40px !important;
	height: 40px !important;

	min-width: 40px !important;
	min-height: 40px !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 1px solid #dce3ec !important;
	border-radius: 9px !important;

	background: #ffffff !important;

	color: #111827 !important;

	box-shadow: none !important;

	cursor: pointer !important;

	position: relative;

	align-items: center !important;
	justify-content: center !important;

	-webkit-appearance: none !important;
	appearance: none !important;

	opacity: 1 !important;
	visibility: visible !important;
}


/* =========================================================
   MOBILE HAMBURGER
========================================================= */

.bnj-menu-toggle {

	flex-direction: column !important;

	gap: 4px !important;
}

.bnj-menu-toggle > span:not(.screen-reader-text) {

	display: block !important;

	width: 20px !important;
	height: 2px !important;

	margin: 0 !important;
	padding: 0 !important;

	background: #111827 !important;

	border-radius: 3px !important;
}


/* =========================================================
   SEARCH TOGGLE ICON
========================================================= */

.bnj-search-toggle {
	position: relative !important;

	display: none !important;

	align-items: center !important;
	justify-content: center !important;

	width: 40px !important;
	height: 40px !important;

	min-width: 40px !important;
	min-height: 40px !important;

	padding: 0 !important;
	margin: 0 !important;

	border: 1px solid #dce3ec !important;
	border-radius: 9px !important;

	background: #ffffff !important;

	color: #111827 !important;

	cursor: pointer !important;

	-webkit-appearance: none !important;
	appearance: none !important;

	box-shadow: none !important;
}

.bnj-search-svg {
	display: block !important;

	width: 20px !important;
	height: 20px !important;

	min-width: 20px !important;
	min-height: 20px !important;

	color: #111827 !important;

	fill: none !important;

	visibility: visible !important;
	opacity: 1 !important;

	pointer-events: none !important;
}

.bnj-search-toggle:hover {
	background: #f4f7fb !important;
	border-color: #cbd5e1 !important;
	color: #1558d6 !important;
}

.bnj-search-toggle:hover .bnj-search-svg {
	color: #1558d6 !important;
}


/* MOBILE */

@media screen and (max-width: 760px) {

	.bnj-search-toggle {
		display: flex !important;

		flex: 0 0 40px !important;

		order: 3 !important;

		visibility: visible !important;

		opacity: 1 !important;

		z-index: 1000000 !important;

		background: #ffffff !important;

		color: #111827 !important;
	}

	.bnj-search-svg {
		display: block !important;

		width: 20px !important;
		height: 20px !important;

		color: #111827 !important;

		visibility: visible !important;

		opacity: 1 !important;
	}

}


/* SMALL PHONES */

@media screen and (max-width: 380px) {

	.bnj-search-toggle {
		width: 37px !important;
		height: 37px !important;

		min-width: 37px !important;
		min-height: 37px !important;

		flex-basis: 37px !important;
	}

	.bnj-search-svg {
		width: 18px !important;
		height: 18px !important;
	}

}

.bnj-menu-toggle:hover,
.bnj-search-toggle:hover {

	background: #f5f8fc !important;

	border-color: #cbd5e1 !important;
}

.bnj-menu-toggle:hover > span:not(.screen-reader-text) {

	background: #1558d6 !important;
}

.bnj-search-toggle:hover .bnj-search-icon {

	border-color: #1558d6 !important;
}

.bnj-search-toggle:hover .bnj-search-icon::after {

	background: #1558d6 !important;
}


/* =========================================================
   PRIMARY NAVIGATION
========================================================= */

.bnj-primary-nav {
	width: 100%;

	background: linear-gradient(
		90deg,
		#071f56,
		#082f78
	);
}

.bnj-menu {
	display: flex;
	align-items: stretch;

	margin: 0;
	padding: 0;

	list-style: none;

	gap: 2px;

	overflow-x: auto;
	overflow-y: hidden;

	scrollbar-width: none;
}

.bnj-menu::-webkit-scrollbar {
	display: none;
}

.bnj-menu > li {
	margin: 0;
	padding: 0;
}

.bnj-menu > li > a {
	display: block;

	padding: 13px 15px;

	color: #ffffff !important;

	font-size: 13px;
	font-weight: 800;

	line-height: 1.2;

	white-space: nowrap;

	text-decoration: none !important;

	transition: background 0.2s ease;
}

.bnj-menu > li > a:hover {
	background: rgba(255, 255, 255, 0.12);
}

.bnj-menu .bnj-home-link {
	padding-left: 17px;
	padding-right: 17px;

	font-size: 19px;

	background: #1258db;
}

.bnj-menu .bnj-home-link:hover {
	background: #0d4ebf;
}


/* =========================================================
   MOBILE SEARCH AREA
========================================================= */

.bnj-mobile-search {
	display: none;

	width: 100%;

	padding: 10px 0;

	background: #f8faff;

	border-top: 1px solid #e6ebf3;
	border-bottom: 1px solid #e6ebf3;
}

.bnj-mobile-search[hidden] {
	display: none !important;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.bnj-mobile-menu {
	display: none;

	position: absolute;

	top: 100%;
	left: 0;
	right: 0;

	z-index: 999999;

	background: #ffffff;

	border-top: 1px solid #e5e9f0;

	box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.bnj-mobile-menu[hidden] {
	display: none !important;
}

.bnj-mobile-menu-inner {
	padding: 18px 22px 24px;
}

.bnj-mobile-menu-title {
	margin-bottom: 10px;

	font-size: 15px;
	font-weight: 900;

	color: #111827;
}

.bnj-mobile-menu-list {
	margin: 0;
	padding: 0;

	list-style: none;
}

.bnj-mobile-menu-list li {
	margin: 0;

	border-bottom: 1px solid #edf0f5;
}

.bnj-mobile-menu-list li:last-child {
	border-bottom: 0;
}

.bnj-mobile-menu-list a {
	display: block;

	padding: 12px 0;

	color: #1f2937 !important;

	font-size: 14px;
	font-weight: 700;

	text-decoration: none !important;
}

.bnj-mobile-menu-list a:hover {
	color: #1558d6 !important;
}


/* =========================================================
   FOOTER
========================================================= */

.bnj-footer {
	padding: 55px 0 25px;

	background: #09162e;

	color: #d9e1ef;
}

.bnj-footer-grid {
	display: grid;

	grid-template-columns:
		1.5fr
		1fr
		1fr;

	gap: 50px;
}

.bnj-footer h3 {
	margin: 0 0 15px;

	color: #ffffff;

	font-size: 16px;
}

.bnj-footer p {
	max-width: 430px;

	color: #aebbd0;
}

.bnj-footer ul {
	margin: 0;
	padding: 0;

	list-style: none;
}

.bnj-footer li {
	margin: 8px 0;
}

.bnj-footer a:hover {
	color: #ffffff;
}

.bnj-footer-brand {
	color: #ffffff;

	font-size: 24px;
	font-weight: 900;
}

.bnj-footer-brand span {
	color: #9eb9e8;

	font-size: 13px;

	letter-spacing: 0.08em;
}

.bnj-footer-bottom {
	display: flex;

	justify-content: space-between;

	gap: 20px;

	margin-top: 35px;
	padding-top: 18px;

	border-top: 1px solid rgba(255, 255, 255, 0.1);

	color: #9baac0;

	font-size: 12px;
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 760px) {


	/* TOP BAR */

	.bnj-info-inner {
		min-height: 34px;
	}

	.bnj-date {
		display: none !important;
	}

	.bnj-top-links {
		display: none !important;
	}

	.bnj-breaking {
		width: 100%;
		flex: 1 1 100%;
	}

	.bnj-breaking strong {
		padding: 5px 8px;

		font-size: 9px;
	}

	.bnj-breaking span {
		font-size: 10px;
	}


	/* HEADER */

	.bnj-header-inner {

		min-height: 67px;

		display: flex !important;

		align-items: center !important;

		gap: 8px !important;

		padding-top: 5px !important;
		padding-bottom: 5px !important;
	}


	/* HAMBURGER */

	.bnj-menu-toggle {

		display: flex !important;

		flex: 0 0 40px !important;

		order: 1 !important;

		position: relative !important;

		z-index: 1000000 !important;
	}


	/* LOGO */

	.bnj-brand {

		display: inline-flex !important;

		flex: 1 1 auto !important;

		order: 2 !important;

		min-width: 0 !important;

		margin: 0 !important;
	}

	.bnj-brand-main {
		font-size: 23px;
	}

	.bnj-brand-sub {
		margin-top: 4px;

		font-size: 8px;

		letter-spacing: 0.17em;
	}


	/* PROMO HIDDEN */

	.bnj-header-promo {
		display: none !important;
	}


	/* DESKTOP SEARCH HIDDEN */

	.bnj-header-search {
		display: none !important;
	}


	/* SEARCH BUTTON */

	.bnj-search-toggle {

		display: flex !important;

		flex: 0 0 40px !important;

		order: 3 !important;

		position: relative !important;

		z-index: 1000000 !important;

		visibility: visible !important;

		opacity: 1 !important;

		background: #ffffff !important;
		color: #111827 !important;
	}


	/* SEARCH ICON */

	.bnj-search-toggle .bnj-search-icon {

		display: block !important;

		visibility: visible !important;

		opacity: 1 !important;
	}


	/* DESKTOP NAV HIDDEN */

	.bnj-primary-nav {
		display: none !important;
	}


	/* MOBILE SEARCH */

	.bnj-mobile-search {

		display: block;

		padding: 10px 0;
	}

	.bnj-mobile-search[hidden] {
		display: none !important;
	}


	/* MOBILE MENU */

	.bnj-mobile-menu {
		display: block;
	}

	.bnj-mobile-menu[hidden] {
		display: none !important;
	}


	/* FOOTER */

	.bnj-footer {
		padding-bottom: 85px;
	}

	.bnj-footer-grid {
		grid-template-columns: 1fr;

		gap: 25px;
	}

	.bnj-footer-bottom {
		display: block;
	}

	.bnj-footer-bottom span {
		display: block;

		margin: 4px 0;
	}
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 380px) {

	.bnj-header-inner {
		gap: 5px !important;
	}

	.bnj-menu-toggle,
	.bnj-search-toggle {

		width: 37px !important;
		height: 37px !important;

		min-width: 37px !important;

		flex-basis: 37px !important;
	}

	.bnj-brand-main {
		font-size: 20px;
	}

	.bnj-brand-sub {
		font-size: 7px;
	}
}