/*
Theme Name: Banglar Chobi
Theme URI: https://banglarchobi.com
Author: Banglar Chobi
Author URI: https://banglarchobi.com
Description: Custom lightweight WordPress theme for Banglar Chobi (বাংলার ছবি), a Bengali online news portal.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: banglar-chobi
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
	--color-primary: #0a7a44;   /* deep green */
	--color-primary-dark: #044f2c;
	--color-secondary: #e8112d; /* red */
	--color-ink: #1c2530;
	--color-muted: #6b7683;
	--color-line: #e6e9ee;
	--color-bg: #f2f4f6;
	--color-card: #ffffff;

	--font-body: 'Noto Sans Bengali', 'Nirmala UI', 'SolaimanLipi', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-heading: 'Noto Serif Bengali', 'Noto Sans Bengali', 'Nirmala UI', Georgia, serif;

	--wrap: clamp(1200px, 92vw, 1600px);
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	margin: 0 0 0.5em;
	line-height: 1.3;
}

p {
	margin: 0 0 1em;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.container {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 16px;
}

/* ==========================================================================
   4. Base site structure (expanded in later steps)
   ========================================================================== */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Top bar -------------------------------------------------------- */

.top-bar {
	background: var(--color-card);
	color: var(--color-ink);
	border-bottom: 1px solid var(--color-line);
	font-size: 0.8125rem;
}

/* Three-zone single row: date/location/weather (left), logo
   (mathematically centered - grid, not flex spacing, so it stays
   centered regardless of how wide the left/right content is), info
   links + social icons (right). */
.top-bar__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 10px 16px;
}

.top-bar__left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-self: start;
}

.top-bar__logo {
	justify-self: center;
	text-align: center;
}

.top-bar__logo img {
	width: clamp(180px, 14vw, 220px);
	max-width: 100%;
	height: auto;
}

/* The wide logo leaves too little room for date/location/weather on one
   line, so break them into two even lines (dates | location + weather)
   instead of letting the weather wrap alone. */
.top-bar__left {
	row-gap: 3px;
}

.top-bar__left::before {
	content: "";
	flex-basis: 100%;
	order: 1;
}

.top-bar__location,
.top-bar__weather {
	order: 2;
}

.top-bar__logo .site-title {
	margin: 0;
	font-size: 1.5rem;
}

.top-bar__logo .site-title a {
	color: var(--color-primary);
	font-weight: 700;
}

.top-bar__logo .site-tagline {
	margin: 2px 0 0;
	color: var(--color-muted);
	font-size: 0.8125rem;
}

.top-bar__right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	justify-self: end;
}

.top-bar__links {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.top-bar__bn-date,
.top-bar__location,
.top-bar__weather {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.top-bar__bn-date svg,
.top-bar__location svg,
.top-bar__weather svg {
	color: var(--color-muted);
	flex: 0 0 auto;
}

.top-bar a {
	color: var(--color-ink);
}

.top-bar a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.top-bar__sep {
	color: var(--color-line);
}

.top-bar__social {
	display: flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 900px) {

	.top-bar__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.top-bar__left,
	.top-bar__right {
		justify-self: center;
		justify-content: center;
	}

	.top-bar__logo {
		order: -1;
	}

	.top-bar__logo img {
		width: 200px;
	}
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #fff;
}

.social-icon:hover {
	filter: brightness(1.12);
}

/* Brand-recognizable colors, per request - used only on this small
   icon element, not introduced as general theme colors. */
.social-icon--facebook {
	background: #1877f2;
}

.social-icon--youtube {
	background: #ff0000;
}

.social-icon--twitter {
	background: #1da1f2;
}

.social-icon--instagram {
	background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

/* ---- Breaking news ticker --------------------------------------------- */

.breaking-news {
	background: var(--color-card);
	border-bottom: 1px solid var(--color-line);
}

.breaking-news__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 7px 16px;
}

.breaking-news__label {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	background: var(--color-secondary);
	color: #fff;
	font-weight: 700;
	font-size: 0.8125rem;
	padding: 6px 12px;
	border-radius: 4px;
	white-space: nowrap;
}

.breaking-news__viewport {
	flex: 1 1 auto;
	overflow: hidden;
}

.breaking-news__list {
	display: flex;
	gap: 48px;
	white-space: nowrap;
	width: max-content;
	animation: banglar-chobi-ticker-scroll 30s linear infinite;
}

.breaking-news__viewport:hover .breaking-news__list,
.breaking-news__viewport:focus-within .breaking-news__list {
	animation-play-state: paused;
}

.breaking-news__item a {
	font-weight: 500;
	color: var(--color-ink);
}

.breaking-news__item a:hover {
	color: var(--color-secondary);
}

@keyframes banglar-chobi-ticker-scroll {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(-100%);
	}
}

@media (prefers-reduced-motion: reduce) {

	.breaking-news__list {
		animation: none;
	}

	.breaking-news__viewport {
		overflow-x: auto;
	}
}

.site-main {
	flex: 1 0 auto;
}

/* ---- Shared: thumbnails, ad slots, widget titles ---------------------- */

.thumbnail-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--color-line), #dfe3e7);
}

/* Logo-on-white fallback (logo image is set inline); sized per slot. */
.thumbnail-placeholder--logo {
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center 40%;
	background-size: 40% auto;
}

.thumbnail-placeholder--logo.thumbnail-placeholder--banglar-chobi-card {
	background-size: 55% auto;
}

.thumbnail-placeholder--logo.thumbnail-placeholder--banglar-chobi-thumb {
	background-position: center;
	background-size: 78% auto;
}

.widget-title {
	font-size: 1.125rem;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-primary);
}

.bc-promo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 70px;
	background: var(--color-line);
	border: 1px dashed var(--color-muted);
	border-radius: 6px;
	padding: 12px;
	/* Deliberately darker than --color-muted: at this size/weight,
	   --color-muted only reaches 3.8:1 against --color-line, below
	   the WCAG AA 4.5:1 minimum for normal text. This shade reaches
	   5.6:1. */
	color: #525c69;
	text-align: center;
}

.bc-promo__label {
	font-weight: 700;
}

.bc-promo__size {
	font-size: 0.8125rem;
}

.bc-top-promo {
	display: flex;
	justify-content: center;
	padding: 10px 16px 0;
}

.bc-promo--mobile-only {
	display: none;
}

@media (max-width: 600px) {

	.bc-promo--desktop-only {
		display: none;
	}

	.bc-promo--mobile-only {
		display: flex;
		width: 100%;
	}
}

/* ---- Featured news area ------------------------------------------------ */

.featured-news {
	padding: 16px 0 24px;
}

.featured-news__grid {
	display: grid;
	grid-template-columns: 2.2fr 1fr 1fr;
	gap: 20px;
	align-items: start;
}

.hero-post__thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
	background: var(--color-line);
}

.hero-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

/* Headline + category badge overlay the lower portion of the hero
   image (newspaper style) instead of sitting in separate text below
   it - keeps the dominant story compact while staying legible over a
   photo via the gradient. */
.hero-post__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	padding: 32px 16px 14px;
	background: linear-gradient(to top, rgba(4, 15, 10, 0.88) 0%, rgba(4, 15, 10, 0.45) 60%, rgba(4, 15, 10, 0) 100%);
}

.hero-post__category {
	display: inline-block;
	background: var(--color-secondary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 4px;
}

.hero-post__title {
	display: block;
	margin: 8px 0 0;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1.35;
}

.hero-post__excerpt {
	margin: 12px 0 0;
	color: var(--color-muted);
}

.hero-post__more {
	display: inline-block;
	margin-top: 10px;
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 4px;
}

.hero-post__more:hover {
	background: var(--color-primary-dark);
}

.latest-news-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.latest-news-list__item {
	display: flex;
	gap: 10px;
}

.latest-news-list__thumb {
	flex: 0 0 auto;
	display: block;
	width: 84px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--color-line);
}

.latest-news-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.latest-news-list__title {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.latest-news-list__title a {
	color: var(--color-ink);
}

.latest-news-list__time {
	font-size: 0.75rem;
	color: var(--color-muted);
}

.featured-news__side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ---- Video news (featured area, right column) --------------------------- */

.video-news-row {
	padding: 0 0 24px;
}

.video-news {
	background: var(--color-card);
	border-radius: 6px;
	padding: 16px;
}

/* Full-width row: big lead video on the left, the rest listed on the
   right (stacks on narrow screens). */
@media (min-width: 993px) {

	.video-news {
		display: grid;
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		column-gap: 24px;
		align-items: start;
	}

	.video-news .widget-title,
	.video-news__empty {
		grid-column: 1 / -1;
	}

	.video-news__lead {
		grid-column: 1;
		grid-row: 2 / span 2;
	}

	.video-news__list {
		grid-column: 2;
		grid-row: 2;
		margin: 0;
		padding: 0;
		border-top: 0;
	}

	.video-news__more {
		grid-column: 2;
		grid-row: 3;
		justify-self: start;
	}
}

.video-news__frame {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	background: #111;
}

/* YouTube's hqdefault is 4:3 with black bars; cover crops them away. */
.video-news__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.video-news__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: -26px 0 0 -26px;
	border-radius: 50%;
	background: rgba(204, 0, 0, 0.92);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.video-news__play--small {
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
}

.video-news__play--small svg {
	width: 14px;
	height: 14px;
}

.video-news__lead {
	display: block;
	color: var(--color-ink);
}

.video-news__lead-title {
	display: block;
	margin-top: 8px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.video-news__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 14px 0 0;
	padding: 14px 0 0;
	list-style: none;
	border-top: 1px solid var(--color-line);
}

.video-news__item {
	display: flex;
	gap: 10px;
	color: var(--color-ink);
}

.video-news__frame--small {
	flex: 0 0 auto;
	width: 112px;
}

.video-news__item-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.video-news__lead:hover img,
.video-news__item:hover img,
.video-news__lead:focus img,
.video-news__item:focus img {
	transform: scale(1.04);
}

.video-news__lead:hover .video-news__lead-title,
.video-news__item:hover .video-news__item-title {
	color: var(--color-primary);
}

.video-news__empty {
	margin: 0;
	color: #525c69; /* see .bc-promo comment: --color-muted fails AA on light backgrounds */
	font-size: 0.875rem;
}

.video-news__more {
	display: inline-block;
	margin-top: 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-primary);
}

.video-news__more:hover {
	color: var(--color-primary-dark);
}

@media (max-width: 992px) {

	.featured-news__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Category news sections ------------------------------------------- */

.category-section {
	padding: 28px 0;
	border-bottom: 1px solid var(--color-line);
}

.category-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-primary);
}

.category-section__title {
	margin: 0;
	font-size: 1.25rem;
}

.category-section__title a {
	color: var(--color-ink);
}

.category-section__more {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-secondary);
	white-space: nowrap;
}

.category-section__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
}

.category-section__featured-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: var(--color-line);
}

.category-section__featured-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.category-section__featured-title {
	margin: 12px 0 6px;
	font-size: 1.3rem;
}

.category-section__featured-title a {
	color: var(--color-ink);
}

.category-section__featured-excerpt {
	margin: 0;
	color: var(--color-muted);
}

.category-section__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.category-section__list-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.category-section__list-thumb {
	flex: 0 0 auto;
	display: block;
	width: 84px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--color-line);
}

.category-section__list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.category-section__list-title {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.category-section__list-title a {
	color: var(--color-ink);
}

@media (max-width: 768px) {

	.category-section__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Popular news ------------------------------------------------------ */

.popular-news {
	padding: 28px 0;
}

.popular-news__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 640px;
}

.popular-news__item {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--color-line);
}

.popular-news__item:last-child {
	border-bottom: 0;
}

.popular-news__rank {
	flex: 0 0 auto;
	min-width: 32px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--color-secondary);
}

.popular-news__title {
	color: var(--color-ink);
	font-weight: 600;
}

.popular-news__title:hover {
	color: var(--color-primary);
}

/* ---- Feature & special reports ----------------------------------------- */

.featured-reports__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.featured-reports__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: var(--color-line);
}

.featured-reports__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.featured-reports__title {
	margin: 10px 0 0;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.featured-reports__title a {
	color: var(--color-ink);
}

@media (max-width: 992px) {

	.featured-reports__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {

	.featured-reports__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Weather widget + newsletter row ------------------------------------ */

.widgets-row {
	padding: 28px 0 40px;
}

.widgets-row__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.widget-card {
	background: var(--color-card);
	border: 1px solid var(--color-line);
	border-radius: 8px;
	padding: 20px;
}

.weather-widget__location {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.875rem;
}

.weather-widget__temp {
	margin: 4px 0;
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-primary);
	font-family: var(--font-heading);
}

.weather-widget__condition {
	margin: 0 0 12px;
	color: var(--color-ink);
}

.weather-widget__stats {
	display: flex;
	gap: 16px;
	border-top: 1px solid var(--color-line);
	padding-top: 12px;
}

.weather-widget__stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.8125rem;
}

.weather-widget__stat-label {
	color: var(--color-muted);
}

.weather-widget__stat-value {
	font-weight: 600;
	color: var(--color-ink);
}

.newsletter__form {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.newsletter__input {
	flex: 1 1 auto;
	padding: 10px 12px;
	border: 1px solid var(--color-line);
	border-radius: 4px;
	background: var(--color-bg);
	color: #525c69; /* see .bc-promo comment: --color-muted fails AA on this background */
}

.newsletter__submit {
	flex: 0 0 auto;
	padding: 10px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--color-line);
	color: #525c69; /* see .bc-promo comment: --color-muted fails AA on this background */
	font-weight: 600;
	cursor: not-allowed;
}

.newsletter__note {
	margin: 10px 0 0;
	font-size: 0.8125rem;
	color: var(--color-muted);
}

@media (max-width: 768px) {

	.widgets-row__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Primary navigation ---------------------------------------------- */

.primary-navigation {
	background: var(--color-primary);
}

.primary-navigation__inner {
	display: flex;
	align-items: stretch;
	/* No overflow clipping here: navigation.js's layout() guarantees the
	   menu row itself never actually overflows once it runs (trailing
	   items are relocated into .nav-more, not hidden). Clipping this
	   element - even on the x-axis alone, since mixed x/y overflow values
	   compute the "visible" one to "auto", which still traps content -
	   would also clip .nav-more__list, which needs to escape this row
	   downward when opened. */
}

.nav-home-link {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 14px;
	color: #fff;
}

.primary-navigation__admin-notice {
	margin: 0;
	padding: 12px 16px;
	color: #fff;
	font-size: 0.875rem;
}

.primary-navigation__admin-notice a {
	color: #fff;
	text-decoration: underline;
}

.primary-menu {
	display: flex;
	flex-wrap: nowrap;
	/* Flex items default to min-width: auto, which for a nowrap row
	   resolves to the full content width - that stops this item from
	   ever shrinking, so it can never register as overflowing (its
	   scrollWidth and clientWidth would always be equal) and the
	   priority-nav overflow check in navigation.js could never fire. */
	min-width: 0;
}

.primary-menu li {
	position: relative;
	flex: 0 0 auto;
}

.primary-menu a {
	display: block;
	padding: 10px 12px;
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	white-space: nowrap;
}

.primary-menu li:hover > a,
.primary-menu a:focus {
	background: var(--color-primary-dark);
}

.primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--color-card);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
	z-index: 50;
}

.primary-menu li.menu-item-has-children:hover > .sub-menu,
.primary-menu li.menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.primary-menu .sub-menu a {
	color: var(--color-ink);
	font-weight: 400;
	padding: 10px 16px;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
	background: var(--color-bg);
}

/* "More" overflow menu (desktop priority nav) - populated by
   assets/js/navigation.js when the category list doesn't fit on one
   row. Hidden until JS finds overflow and reveals it. */
.nav-more {
	display: none;
	flex: 0 0 auto;
	/* Positioning context for .nav-more__list's `top: 100%` - without
	   this, the list has no positioned ancestor and anchors to the
	   page root instead of the toggle button. */
	position: relative;
}

.nav-more.has-items {
	display: block;
}

.nav-more__toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 100%;
	padding: 10px 14px;
	background: transparent;
	border: 0;
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
}

.nav-more__toggle:hover,
.nav-more.is-open .nav-more__toggle {
	background: var(--color-primary-dark);
}

.nav-more__list {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 200px;
	background: var(--color-card);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
	z-index: 50;
}

.nav-more.is-open .nav-more__list {
	display: block;
}

.nav-more__list a {
	display: block;
	color: var(--color-ink);
	font-weight: 400;
	font-size: 0.9375rem;
	padding: 10px 16px;
	white-space: normal;
}

.nav-more__list a:hover,
.nav-more__list a:focus {
	background: var(--color-bg);
}

.nav-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-left: auto;
	width: 44px;
	background: transparent;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
}

.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: 48px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
}

.hamburger-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
}

@media (max-width: 768px) {

	.mobile-menu-toggle {
		display: flex;
	}

	.primary-navigation__inner {
		flex-wrap: wrap;
		overflow: visible;
	}

	/* The desktop "more" overflow menu is irrelevant once the mobile
	   hamburger shows every item in a full vertical list - navigation.js
	   also moves any items it had collected back before this width. */
	.nav-more {
		display: none !important;
	}

	.primary-menu {
		display: none;
		flex-direction: column;
		width: 100%;
	}

	.primary-navigation.is-menu-open .primary-menu {
		display: flex;
	}

	.primary-menu li {
		width: 100%;
	}

	.primary-menu .sub-menu {
		display: block;
		position: static;
		box-shadow: none;
		padding-left: 16px;
	}
}

.site-footer {
	background: var(--color-primary-dark);
	color: #fff;
	padding: 24px 0 0;
	margin-top: 32px;
}

.site-footer a {
	color: #fff;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__title {
	margin: 0;
	font-weight: 700;
	font-size: 1.125rem;
}

.site-footer__tagline {
	margin: 2px 0 0;
	font-size: 0.8125rem;
	opacity: 0.85;
}

.site-footer__social {
	display: flex;
	gap: 8px;
}

.site-footer .site-info {
	padding: 14px 0;
}

.site-footer .site-info p {
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
	opacity: 0.85;
}

/* Focus visibility (accessibility baseline) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 2px;
}

/* ==========================================================================
   10. Responsive refinement pass (Step 12)
   Targets the spec's test widths: 360, 390, 414, 768, 1024, 1280, 1440.
   Most sections already collapse correctly via their own per-component
   media queries added in earlier steps; this section covers the
   remaining small-screen typography, tap-target, and stacking fixes.
   ========================================================================== */

@media (max-width: 480px) {

	/* Newsletter: side-by-side input+button gets too cramped under
	   ~480px with Bengali button text - stack for a full-width,
	   easier-to-tap button instead. */
	.newsletter__form {
		flex-direction: column;
	}

	.newsletter__submit {
		width: 100%;
	}
}

@media (max-width: 414px) {

	.top-bar__logo img {
		width: 180px;
	}

	.hero-post__title {
		font-size: 1.375rem;
	}

	.category-section__featured-title {
		font-size: 1.125rem;
	}

	.weather-widget__temp {
		font-size: 1.625rem;
	}
}

/* ==========================================================================
   Single post (full article)
   ========================================================================== */

.single-wrap {
	padding-block: 24px 40px;
}

.article-full {
	max-width: 860px;
	margin-inline: auto;
	background: var(--color-card);
	padding: 28px 32px 36px;
	border-radius: 8px;
}

.article-full__category {
	display: inline-block;
	background: var(--color-secondary);
	color: #fff;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 2px 12px;
	border-radius: 4px;
	text-decoration: none;
}

.article-full__title {
	font-family: var(--font-heading);
	font-size: 2rem;
	line-height: 1.35;
	margin: 12px 0 8px;
}

.article-full__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	color: #525c69;
	font-size: 0.9375rem;
}

.article-full__image {
	margin: 0 0 24px;
}

.article-full__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.article-full__image figcaption {
	margin-top: 6px;
	color: #525c69;
	font-size: 0.875rem;
}

.article-full__content {
	font-size: 1.125rem;
	line-height: 1.9;
	overflow-wrap: anywhere;
}

.article-full__content p {
	margin: 0 0 1.2em;
}

.article-full__content img,
.article-full__content iframe,
.article-full__content video {
	max-width: 100%;
	height: auto;
}

.article-full__tags {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.article-full__tags a {
	background: var(--color-bg);
	color: var(--color-ink);
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 0.875rem;
	text-decoration: none;
}

@media (max-width: 600px) {

	.article-full {
		padding: 18px 16px 24px;
	}

	.article-full__title {
		font-size: 1.5rem;
	}

	.article-full__content {
		font-size: 1rem;
	}
}

/* ---- Advertisement slots with real content ---------------------------- */

.bc-promo--filled {
	min-height: 0;
	padding: 0;
	background: none;
	border: 0;
	overflow: hidden;
}

.bc-promo--filled img {
	display: block;
	max-width: 100%;
	height: auto;
}

.bc-promo--4x5.bc-promo--filled img {
	width: 100%;
}

/* ==========================================================================
   Search (nav panel, form, results page)
   ========================================================================== */

.nav-search-panel {
	background: var(--color-primary-dark);
	padding: 12px 0;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin-inline: auto;
}

.search-form__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 14px;
	font-size: 1rem;
	border: 1px solid var(--color-line);
	border-radius: 6px;
	background: #fff;
	color: var(--color-ink);
}

.search-form__submit {
	flex: 0 0 auto;
	padding: 10px 20px;
	font-size: 1rem;
	font-weight: 700;
	background: var(--color-secondary);
	color: #fff;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.results-wrap {
	padding-block: 24px 40px;
}

.results-header {
	max-width: 860px;
	margin: 0 auto 20px;
}

.results-header__title {
	font-size: 1.5rem;
	margin-bottom: 14px;
}

.results-header .search-form {
	max-width: none;
	margin: 0;
}

.results-list {
	max-width: 860px;
	margin-inline: auto;
	display: grid;
	gap: 14px;
}

.result-item {
	display: flex;
	gap: 16px;
	background: var(--color-card);
	border-radius: 8px;
	padding: 14px;
}

.result-item__thumb {
	flex: 0 0 200px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: var(--color-line);
}

.result-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.result-item__body {
	min-width: 0;
}

.result-item__title {
	font-size: 1.25rem;
	margin: 0 0 4px;
}

.result-item__title a:hover {
	color: var(--color-primary);
}

.result-item__meta {
	margin: 0 0 6px;
	color: #525c69;
	font-size: 0.875rem;
}

.result-item__excerpt {
	margin: 0;
}

.results-empty {
	max-width: 860px;
	margin-inline: auto;
	background: var(--color-card);
	border-radius: 8px;
	padding: 24px;
}

.navigation.pagination {
	max-width: 860px;
	margin: 20px auto 0;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.navigation.pagination .page-numbers {
	background: var(--color-card);
	padding: 6px 12px;
	border-radius: 4px;
}

.navigation.pagination .page-numbers.current {
	background: var(--color-primary);
	color: #fff;
}

@media (max-width: 600px) {

	.result-item {
		flex-direction: column;
	}

	.result-item__thumb {
		flex-basis: auto;
	}
}

/* ==========================================================================
   Comments
   ========================================================================== */

.article-full--comments {
	margin-top: 20px;
}

.comments-title,
.comment-reply-title {
	font-size: 1.25rem;
	margin-bottom: 14px;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	margin-left: 24px;
}

.comment-body {
	display: grid;
	gap: 6px;
	padding: 14px 0;
	border-bottom: 1px solid var(--color-line);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: #525c69;
}

.comment-author .avatar {
	display: inline-block;
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comment-content p {
	margin: 0 0 0.6em;
}

.comment-awaiting-moderation,
.comment-notes {
	color: #525c69;
	font-size: 0.9375rem;
}

.comment-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: 1rem;
	border: 1px solid var(--color-line);
	border-radius: 6px;
	background: #fff;
	color: var(--color-ink);
}

.comment-form .submit {
	padding: 10px 24px;
	font-size: 1rem;
	font-weight: 700;
	background: var(--color-primary);
	color: #fff;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}
