@charset "utf-8";
/* Shared public header, main menu and news ticker.
   Rendered by resources/views/partials/party-header.blade.php on every public
   page (layouts.party and layouts.public) so the menu is identical everywhere.
   Self-contained: no Bootstrap grid, no jQuery, no JavaScript — the mobile menu
   is the same checkbox toggle the design files used. Loaded last so it wins over
   the header/nav/ticker rules in custom.css, menu.css and party.css. */

@font-face {
	font-family: "solaimanlipi";
	src: url("font/solaimanlipi-normal-v1.0.woff2") format("woff2"),
	     url("font/solaimanlipi-normal-v1.0.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "solaimanlipi";
	src: url("font/solaimanlipi-bold-v1.0.woff2") format("woff2"),
	     url("font/solaimanlipi-bold-v1.0.ttf") format("truetype");
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

:root {
	--brand-green: #046A38;
	--brand-green-dark: #024D28;
	--brand-red: #D21034;
	--brand-yellow: #FCD116;
}

/* ==========================================================================
   Header — fixed white bar with the logo, party name, language switch and
   social links. The layout is flexbox so it does not need Bootstrap's grid.
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background: #fff;
	z-index: 9999;
}
.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 100%;
	padding: 0 15px;
}
.site-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 60px;
	min-width: 0;
	font-family: var(--font-bangla);
	text-decoration: none;
}
.site-brand:hover,
.site-brand:focus {
	text-decoration: none;
}
.site-brand img {
	flex: 0 0 auto;
	max-height: 46px;
	max-width: 100%;
	width: auto;
}
.site-brand-text {
	font-size: 22px;
	font-weight: bold;
	line-height: 1.15;
	color: var(--brand-green);
}
.site-header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex: 0 0 auto;
	padding-top: 7px;
}
.lang-switch {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.35;
}
.lang-switch a {
	color: #333;
	text-decoration: none;
}
.lang-switch a:hover {
	color: var(--brand-green);
}
.lang-switch a.active {
	color: var(--brand-red);
	font-weight: bold;
}
.social-top {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 19px;
	line-height: 1.2;
}
.social-top a {
	color: #666;
	text-decoration: none;
}
.social-top a:hover {
	color: var(--brand-green);
}

/* ==========================================================================
   Main menu — fixed green bar below the header.
   ========================================================================== */
.nav-wrapper {
	position: fixed;
	top: 60px;
	left: 0;
	margin-top: 0;
	width: 100%;
	height: 40px;
	z-index: 99999;
	font-family: var(--font-bangla);
}
.nav-wrapper > nav {
	padding-left: 20px;
	background: var(--brand-green);
}
.nav-wrapper > nav:after {
	content: "";
	display: table;
	clear: both;
}
.nav-wrapper ul.menu {
	float: left;
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-wrapper ul.menu > li {
	float: left;
	display: inline-block;
	margin: 0;
	background: var(--brand-green);
}
.nav-wrapper ul.menu > li > a {
	display: block;
	padding: 7px 14px;
	line-height: 26px;
	font-size: 18px;
	color: #fff;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.nav-wrapper ul.menu > li > a:hover,
.nav-wrapper ul.menu > li > a.active-menu {
	background: #fff;
	color: var(--brand-green);
}
/* menu.css appends a FontAwesome arrow to every "li > a:after"; the caret is
   drawn with borders instead so it renders identically without that file. */
.nav-wrapper ul.menu > li.has-sub > a:after {
	content: none;
}
.nav-wrapper .caret {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 8px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	vertical-align: 2px;
}

/* Dropdown */
.nav-wrapper ul.menu ul {
	display: none;
	position: absolute;
	top: 40px;
	left: 0;
	min-width: 190px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--brand-green-dark);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
	z-index: 100000;
}
.nav-wrapper ul.menu li:hover > ul {
	display: block;
}
.nav-wrapper ul.menu ul li {
	display: list-item;
	float: none;
	width: 100%;
	margin: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
	background: var(--brand-green-dark);
}
.nav-wrapper ul.menu ul li:last-child {
	border-bottom: none;
}
.nav-wrapper ul.menu ul li a {
	display: block;
	padding: 10px 16px;
	line-height: 1.4;
	font-size: 17px;
	color: #fff;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.nav-wrapper ul.menu ul li a:hover {
	background: #fff;
	color: var(--brand-green);
}

/* The hamburger and the mobile-only drop labels are never shown on desktop. */
.nav-wrapper .toggle,
.nav-wrapper [id^="drop"] {
	display: none;
}

/* ==========================================================================
   News ticker — the scrolling "সর্বশেষ" strip under the menu.
   ========================================================================== */
.news-ticker-wrapper {
	position: relative;
	margin-top: 100px;
	overflow: hidden;
	border-bottom: 2px solid var(--brand-yellow);
	background: var(--brand-green);
	color: #fff;
	font-family: var(--font-bangla);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.news-ticker-inner {
	display: flex;
	align-items: center;
	height: 34px;
}
.news-ticker-label {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 18px 0 14px;
	background: var(--brand-yellow);
	color: #111;
	font-size: 15px;
	font-weight: bold;
	letter-spacing: .2px;
}
/* Flag-shaped notch on the right edge of the label */
.news-ticker-label:after {
	content: "";
	position: absolute;
	top: 0;
	right: -10px;
	width: 10px;
	height: 100%;
	background: var(--brand-yellow);
	clip-path: polygon(0 0, 0 100%, 100% 50%);
}
.news-ticker-text {
	flex: 1 1 auto;
	margin: 0;
	padding: 0 14px;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	letter-spacing: .2px;
}

/* Keeps the first piece of content clear of the 100px fixed header + menu when
   no ticker text has been configured. */
.party-chrome-spacer {
	height: 100px;
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media all and (max-width: 768px) {
	.site-header {
		height: 50px;
	}
	.site-header-inner {
		padding: 0 10px;
	}
	.site-brand {
		height: 50px;
		gap: 8px;
	}
	.site-brand img {
		max-height: 36px;
	}
	.site-brand-text {
		font-size: 15px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.site-header-right {
		display: none;
	}

	.nav-wrapper {
		top: 50px;
		height: auto;
	}
	.nav-wrapper > nav {
		padding-left: 0;
	}

	.nav-wrapper .toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 16px;
		line-height: 21px;
		font-size: 16px;
		color: #fff;
		background: var(--brand-green);
		cursor: pointer;
	}
	.nav-wrapper .toggle:hover,
	.nav-wrapper .toggle:active {
		color: var(--brand-green);
		background: #fff;
	}
	.nav-wrapper .toggle-icon {
		font-size: 20px;
		line-height: 1;
	}

	.nav-wrapper ul.menu {
		display: none;
		float: none;
		width: 100%;
		background: var(--brand-green);
		border-top: 1px solid rgba(255, 255, 255, .25);
		box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
	}
	.nav-wrapper #drop:checked + ul.menu {
		display: block;
	}
	.nav-wrapper ul.menu > li {
		display: block;
		float: none;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, .14);
	}
	.nav-wrapper ul.menu > li > a {
		padding: 13px 16px;
		line-height: 21px;
		font-size: 16px;
	}
	/* The parent link is replaced by its drop label on narrow screens */
	.nav-wrapper ul.menu > li.has-sub > a,
	.nav-wrapper ul.menu > li.has-sub > a:after {
		display: none;
	}
	.nav-wrapper ul.menu ul {
		position: static;
		display: none;
		width: 100%;
		min-width: 0;
		box-shadow: none;
	}
	/* Submenus are opened by their drop label only — a tap must not count as a
	   hover, otherwise the panel would open without the checkbox. */
	.nav-wrapper ul.menu li:hover > ul {
		display: none;
	}
	.nav-wrapper #drop-1:checked + ul {
		display: block;
	}
	.nav-wrapper ul.menu ul li {
		width: 100%;
	}
	.nav-wrapper ul.menu ul li a {
		padding: 12px 16px 12px 32px;
		font-size: 16px;
	}

	.news-ticker-wrapper {
		margin-top: 95px;
	}
	.news-ticker-label {
		padding: 0 14px 0 10px;
		font-size: 13px;
	}
	.news-ticker-text {
		font-size: 14px;
	}
	.party-chrome-spacer {
		height: 95px;
	}
}
