/* ==========================================================================
   Bangla News Prime — main stylesheet
   Colors, fonts and sizes come from CSS variables set in Theme Options.
   ========================================================================== */

:root {
	--bnp-primary: #E52D27;
	--bnp-accent: #2BB3A0;
	--bnp-green: #16A34A;
	--bnp-text: #111827;
	--bnp-text2: #4B5563;
	--bnp-muted: #6B7280;
	--bnp-surface: #F3F4F6;
	--bnp-border: #E5E7EB;
	--bnp-ad: #F8F9FB;
	--bnp-button: #4B5563;
	--bnp-bg: #FFFFFF;
	--bnp-header-bg: #FFFFFF;
	--bnp-nav-text: #111827;
	--bnp-footer-bg: #FFFFFF;
	--bnp-footer-text: #374151;
	--bnp-link: #2563EB;
	--bnp-font-head: 'Noto Serif Bengali', 'SolaimanLipi', sans-serif;
	--bnp-font-body: 'Noto Serif Bengali', 'SolaimanLipi', sans-serif;
	--bnp-fs-base: 16px;
	--bnp-fs-lead: 30px;
	--bnp-fs-section: 21px;
	--bnp-fs-feature: 23px;
	--bnp-fs-card: 16.5px;
	--bnp-fs-single: 19px;
	--bnp-fw-head: 600;
	--bnp-container: 1200px;
	--bnp-logo-w: 240px;
	--bnp-logo-w-m: 170px;
	--gap: 20px;
	--sec-space: 52px;
	--radius: 2px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bnp-bg);
	color: var(--bnp-text);
	font-family: var(--bnp-font-body);
	font-size: var(--bnp-fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bnp-primary); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--bnp-font-head); font-weight: var(--bnp-fw-head); line-height: 1.4; margin: 0; color: var(--bnp-text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--bnp-primary); outline-offset: 2px; }
[hidden] { display: none !important; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: var(--bnp-text);
	box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.container { width: 100%; max-width: calc(var(--bnp-container) + 48px); margin: 0 auto; padding: 0 24px; }

.icon-btn { background: none; border: 0; padding: 6px; display: inline-grid; place-items: center; color: var(--bnp-text); border-radius: 4px; }
.icon-btn:hover { color: var(--bnp-primary); }
.only-mobile { display: none !important; }

.btn-dark, .btn-red {
	display: inline-block; border: 0; border-radius: var(--radius); padding: 9px 18px;
	font-family: var(--bnp-font-head); font-size: 17px; color: #fff; text-align: center;
}
.btn-dark { background: var(--bnp-button); }
.btn-red { background: var(--bnp-primary); }
.btn-dark:hover, .btn-red:hover { filter: brightness(1.1); color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--bnp-header-bg); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 16px; }
.site-logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--bnp-text); }
.site-logo:hover { color: var(--bnp-text); }
.logo-img { width: var(--bnp-logo-w); height: auto; }
.logo-text { display: inline-flex; align-items: center; gap: 6px; font-family: var(--bnp-font-head); font-weight: 700; font-size: calc(var(--bnp-logo-w) / 6.2); letter-spacing: -.5px; }
.logo-mark { width: .82em; height: .82em; background: var(--bnp-green); display: inline-grid; place-items: center; }
.logo-mark i { width: .42em; height: .42em; background: var(--bnp-primary); display: block; }
.logo-tagline { font-size: 11px; color: var(--bnp-primary); margin-top: 6px; letter-spacing: .5px; font-weight: 600; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-date { margin: 0; font-size: 13px; font-weight: 600; color: var(--bnp-text); }

.social-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.social-row a { display: block; transition: transform .15s; }
.social-row a:hover { transform: translateY(-2px); }
.bnp-brand { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; }
.bnp-brand svg { width: 13px; height: 13px; }

.search-panel { border-top: 1px solid var(--bnp-border); padding: 14px 0; background: var(--bnp-surface); }
.search-form { display: flex; max-width: 640px; margin: 0 auto; border: 1px solid var(--bnp-border); background: #fff; border-radius: var(--radius); }
.search-field { flex: 1; min-width: 0; border: 0; padding: 10px 14px; font: inherit; font-size: 16px; background: transparent; color: var(--bnp-text); }
.search-field:focus { outline: none; }
.search-form:focus-within { border-color: var(--bnp-primary); }
.search-submit { border: 0; background: var(--bnp-primary); color: #fff; padding: 0 16px; display: grid; place-items: center; }

/* Nav */
.main-nav { border-top: 1px solid #D1D5DB; border-bottom: 1px solid #D1D5DB; background: var(--bnp-header-bg); z-index: 50; }
.has-sticky-nav .main-nav { position: sticky; top: 0; }
.admin-bar.has-sticky-nav .main-nav { top: 32px; }
.main-nav.is-stuck { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.nav-inner { display: flex; align-items: center; gap: 14px; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a { display: block; padding: 11px 0; font-family: var(--bnp-font-head); font-size: 16px; font-weight: 500; color: var(--bnp-nav-text); white-space: nowrap; }
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current-category-ancestor > a { color: var(--bnp-primary); }
.nav-highlight .nav-menu > li:nth-child(1) > a, .nav-menu .nav-red > a { color: var(--bnp-primary); }
.nav-highlight .nav-menu > li:nth-child(2) > a, .nav-menu .nav-teal > a { color: var(--bnp-accent); }

/* Ticker */
.ticker { border-bottom: 1px solid var(--bnp-border); background: #fff; }
.ticker-inner { display: flex; align-items: center; gap: 12px; height: 40px; }
.ticker-label { background: var(--bnp-primary); color: #fff; padding: 4px 12px; font-family: var(--bnp-font-head); font-size: 15px; white-space: nowrap; border-radius: var(--radius); }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-list { list-style: none; display: flex; gap: 40px; width: max-content; animation: bnp-ticker 60s linear infinite; }
.ticker-list li { white-space: nowrap; font-size: 15px; position: relative; }
.ticker-list li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 8px; height: 8px; background: var(--bnp-primary); transform: translateY(-50%); }
.ticker:hover .ticker-list { animation-play-state: paused; }
@keyframes bnp-ticker { to { transform: translateX(-50%); } }

/* Off-canvas */
.offcanvas { position: fixed; inset: 0; z-index: 9999; }
.offcanvas-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,.5); }
.offcanvas-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: #fff; z-index: 1; overflow-y: auto; padding: 16px 20px 30px; animation: bnp-slide .2s ease-out; }
@keyframes bnp-slide { from { transform: translateX(-100%); } }
.offcanvas-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.offcanvas-head .logo-text { font-size: 28px; }
.offcanvas-head .logo-img { width: 170px; }
.offcanvas-head .logo-tagline { display: none; }
.offcanvas .search-form { margin-bottom: 14px; }
.offcanvas-menu { list-style: none; margin-bottom: 20px; }
.offcanvas-menu a { display: block; padding: 10px 2px; border-bottom: 1px solid var(--bnp-border); font-family: var(--bnp-font-head); font-size: 17px; }
.offcanvas-menu .sub-menu { list-style: none; padding-left: 16px; }
.offcanvas-menu .sub-menu a { font-size: 15px; color: var(--bnp-text2); }
body.offcanvas-open { overflow: hidden; }

/* ---------- Ads ---------- */
.ad-row { margin-top: 28px; margin-bottom: 28px; }
.ad-row:empty { display: none; }
.bnp-ad { display: flex; justify-content: center; align-items: center; overflow: hidden; }
.bnp-ad.is-empty { background: var(--bnp-ad); }
.bnp-ad.ad-leader.is-empty { max-width: 728px; height: 90px; margin: 0 auto; }
.bnp-ad.ad-square.is-empty { height: 250px; width: 100%; }
.bnp-ad-inline { margin: 24px 0; }
.no-ad-placeholders .bnp-ad.is-empty { display: none; }

/* ---------- Section titles ---------- */
.sec-title { font-size: var(--bnp-fs-section); font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.sec-title span { display: inline-block; padding-bottom: 4px; border-bottom: 2px solid var(--bnp-primary); }
.sec-title a:hover { color: var(--bnp-primary); }

.home-sec { margin-top: var(--sec-space); }
.ad-row + .home-sec, .most-read + .home-sec { margin-top: 0; }

/* ---------- Cards ---------- */
.card { position: relative; min-width: 0; }
.card-media { display: block; position: relative; overflow: hidden; background: var(--bnp-surface); border-radius: var(--radius); }
.card-media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-title { font-size: var(--bnp-fs-card); line-height: 1.5; font-weight: 500; }
.card-title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title a { color: var(--bnp-primary); }
.card-excerpt { font-size: 14px; color: var(--bnp-text2); line-height: 1.6; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-shoulder { display: block; color: var(--bnp-primary); font-size: 14px; margin-bottom: 2px; font-family: var(--bnp-font-head); }
.bnp-time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 11.5px; color: var(--bnp-muted); margin-top: 8px; line-height: 1; }
.bnp-time .bnp-ico { flex: none; }

.play-badge { position: absolute; top: 8px; right: 8px; width: 30px; height: 22px; background: var(--bnp-primary); color: #fff; display: grid; place-items: center; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.card-big .play-badge, .card-lead .play-badge, .card-feature .play-badge { width: 40px; height: 28px; }

/* Horizontal */
.card-h, .card-h-rev { display: grid; grid-template-columns: 40% 1fr; gap: 12px; align-items: start; }
.card-h-rev { grid-template-columns: 1fr 34%; }
.card-h .card-media img, .card-h-rev .card-media img { aspect-ratio: 16 / 10; }
.card-h .card-body, .card-h-rev .card-body { display: flex; flex-direction: column; min-height: 100%; }
.card-h .bnp-time, .card-h-rev .bnp-time { margin-top: auto; padding-top: 8px; }
.card.on-surface { background: var(--bnp-surface); }
.card-h.on-surface { padding: 0 12px 0 0; gap: 12px; }
.card-h.on-surface .card-body { padding: 10px 0 10px; }
.card-h.on-surface .card-media { border-radius: 0; height: 100%; }
.card-h.on-surface .card-media img { height: 100%; min-height: 84px; }

/* Vertical */
.card-v .card-body { padding-top: 10px; }
.card-v.on-surface .card-body { padding: 12px 12px 12px; }
.card-v.on-surface .card-media { border-radius: 0; }
.card-v.on-surface { display: flex; flex-direction: column; }
.card-v.on-surface .card-body { flex: 1; display: flex; flex-direction: column; }
.card-v.on-surface .bnp-time { margin-top: auto; padding-top: 10px; }

/* Overlay */
.card-overlay .card-media { border-radius: var(--radius); }
.card-overlay .card-media img { aspect-ratio: 16 / 9; }
.card-overlay .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.card-overlay-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; z-index: 1; pointer-events: none; }
.card-overlay .card-title { color: #fff; font-size: calc(var(--bnp-fs-card) + 0.5px); font-weight: var(--bnp-fw-head); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.card-overlay .card-title a { pointer-events: auto; -webkit-line-clamp: 2; }
.card-overlay:hover .card-title a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.time-pill { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: rgba(17,24,39,.75); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 3px; line-height: 1.2; }

/* Video */
.card-video .card-media { border-top: 3px solid var(--bnp-primary); }
.card-video .card-body { padding-top: 8px; }

/* Numbered */
.card-num { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--bnp-border); }
.card-num:last-child { border-bottom: 0; }
.num-mark { font-family: var(--bnp-font-head); font-size: 40px; line-height: 1; color: #C7CAD1; font-weight: 700; }
.card-num .card-title { font-size: 15.5px; }

/* Text (most read) */
.card-text { display: grid; grid-template-columns: 14px 1fr; gap: 10px; }
.card-bullet { width: 12px; height: 12px; background: var(--bnp-primary); margin-top: 7px; }
.card-text .bnp-time { justify-content: flex-start; }

/* Lead */
.card-lead > .card-title { font-size: var(--bnp-fs-lead); text-align: center; line-height: 1.35; margin-bottom: 16px; font-weight: var(--bnp-fw-head); }
.card-lead > .card-shoulder { text-align: center; }
.lead-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.card-lead .card-media img { aspect-ratio: 4 / 3; }
.lead-text { display: flex; flex-direction: column; }
.card-lead .card-excerpt { font-size: 14.5px; -webkit-line-clamp: 9; margin: 0; color: var(--bnp-text2); line-height: 1.75; }

/* Feature (big) */
.card-feature .card-title { font-size: var(--bnp-fs-feature); line-height: 1.4; }
.card-feature .card-body { padding-top: 12px; }
.card-feature .card-excerpt { -webkit-line-clamp: 2; }

/* Feature row */
.card-feature-row { display: grid; grid-template-columns: 48% 1fr; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--bnp-border); margin-bottom: 16px; }
.card-feature-row .card-title { font-size: var(--bnp-fs-feature); line-height: 1.4; }
.card-feature-row .card-media img { aspect-ratio: 16 / 10; }

/* Wide */
.card-wide { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: stretch; }
.card-wide .card-body { padding: 16px 18px; display: flex; flex-direction: column; }
.card-wide .card-title { font-size: var(--bnp-fs-feature); }
.card-wide .bnp-time { justify-content: flex-start; margin-top: auto; padding-top: 10px; }
.card-wide .card-media { border-radius: 0; }
.card-wide .card-media img { height: 100%; aspect-ratio: 16 / 10; }

/* ---------- Grids ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel { background: var(--bnp-surface); padding: 12px 14px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 4px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.2fr); gap: 24px; margin-bottom: 26px; }
.hero-top.no-left { grid-template-columns: 1fr; }
.hero-left .card-title { font-size: 16.5px; }
.hero-left .card-media img { aspect-ratio: 16 / 11; }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.hero-side .bnp-ad { margin-bottom: 14px; }
.side-list .card { padding: 16px 0; border-bottom: 1px solid var(--bnp-border); }
.side-list .card:first-child { padding-top: 4px; }
.side-list .card:last-child { border-bottom: 0; }
.side-list .bnp-time { justify-content: flex-start; }

/* ---------- Most read ---------- */
.most-read { margin-top: 26px; margin-bottom: 28px; }
.most-box { border: 1px solid var(--bnp-border); border-bottom: 3px solid var(--bnp-green); padding: 12px 16px 16px; }
.most-box .sec-title { margin-bottom: 12px; }
.most-scroller { position: relative; }
.most-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.most-track::-webkit-scrollbar { display: none; }
.most-track .card { scroll-snap-align: start; border: 1px solid var(--bnp-border); padding: 12px; background: #fff; }
.most-track .card-title { font-size: 15.5px; }
.scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--bnp-border); background: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.scroll-btn.prev { left: -14px; }
.scroll-btn.next { right: -14px; }
.scroll-btn:disabled { opacity: 0; pointer-events: none; }

/* ---------- Section layouts ---------- */
.tag-bar { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: -4px 0 16px; }
.tag-bar a { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.tag-bar a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bnp-green); }

.sec-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.split-a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-a .card-big .card-title { font-size: calc(var(--bnp-fs-feature) - 2px); }
.stack .card { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--bnp-border); }
.stack .card:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.stack .card-h { grid-template-columns: 38% 1fr; gap: 10px; }
.stack .card-title, .split-b-more .card-title { font-size: 15.5px; }
.split-b-more .card-h { grid-template-columns: 38% 1fr; }

.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.video-layout .card-big .card-title { font-size: var(--bnp-fs-feature); }
.video-layout .card-big .card-media img { aspect-ratio: 16 / 9.2; }

.fp-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-cols-2 .fp-layout { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr); }
.fp-layout .panel { display: grid; gap: 18px 20px; padding: 12px; align-self: stretch; align-content: start; }
.panel-cols-1 .fp-layout .panel { grid-template-columns: 1fr; }
.panel-cols-1 .panel .card-h { grid-template-columns: 46% 1fr; }
.panel-cols-2 .fp-layout .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-cols-2 .panel .card-h { grid-template-columns: 46% 1fr; gap: 10px; }

.nw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.nw-top { margin-bottom: 20px; }
.nw-list .card-h { grid-template-columns: 42% 1fr; }
.nw-side .widget + .widget { margin-top: 10px; }

.world-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.world-main .card-wide { margin-bottom: 20px; }
.world-side { padding: 4px 16px; }

.sec-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.trio-col .card-overlay { margin-bottom: 16px; }
.trio-col .card-h { grid-template-columns: 34% 1fr; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--bnp-border); }
.trio-col .card-h:last-child { border-bottom: 0; }
.trio-col .card-title { font-size: 15.5px; }

/* ---------- Widgets: prayer + local ---------- */
.prayer-box { border: 1px solid var(--bnp-border); background: #fff; font-size: 14px; }
.prayer-head { background: linear-gradient(180deg, #EEF6FD, #D7E9F8); color: #2F80C4; text-align: center; padding: 6px 10px 0; position: relative; }
.prayer-mosque { width: 100%; max-width: 230px; height: auto; display: block; margin: 0 auto -2px; }
.prayer-title { background: #2F80C4; color: #fff; font-size: 20px; padding: 6px 10px 8px; margin: 0 -10px; }
.prayer-date { margin: 0; background: #E8F2FB; text-align: center; padding: 5px; font-weight: 600; font-size: 13.5px; }
.prayer-table { width: 100%; border-collapse: collapse; }
.prayer-table th, .prayer-table td { padding: 5px 10px; border-bottom: 1px solid #DCE7F2; text-align: left; font-weight: 600; font-size: 13.5px; }
.prayer-table td { text-align: right; font-weight: 500; border-right: 1px solid #DCE7F2; }
.prayer-table td:last-child { border-right: 0; }
.prayer-source { margin: 0; text-align: right; padding: 6px 10px; font-size: 12.5px; border-bottom: 1px solid #DCE7F2; }
.prayer-sun { list-style: none; }
.prayer-sun li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; padding: 7px 10px; border-bottom: 1px solid #DCE7F2; font-weight: 600; font-size: 13.5px; }
.prayer-sun li:last-child { border-bottom: 0; }
.prayer-sun b { font-weight: 500; }

.local-finder { border: 1px solid var(--bnp-border); padding: 0 0 4px; display: grid; gap: 8px; background: #fff; }
.local-title { background: var(--bnp-primary); color: #fff; text-align: center; font-size: 17px; padding: 8px; margin: 0; }
.local-finder select { margin: 0 4px; padding: 8px 10px; border: 1px solid #D1D5DB; background: #fff; font: inherit; font-size: 15px; color: var(--bnp-text); border-radius: var(--radius); }
.local-finder select:disabled { color: var(--bnp-muted); background: #FAFAFA; }
.local-finder .btn-dark { margin: 0 4px; }

/* Generic widgets */
.widget { margin-bottom: 26px; }
.widget-posts.style-num .card-num { padding: 12px 0; }
.widget-posts.style-thumb .card { padding: 12px 0; border-bottom: 1px solid var(--bnp-border); }
.widget-posts .card-title { font-size: 15px; }
.widget ul:not(.social-row) { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--bnp-border); }

/* ---------- Single ---------- */
.single-wrap, .archive-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 8px; }
.single-wrap.has-sidebar, .archive-wrap.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.single-wrap:not(.has-sidebar) .single-article { max-width: 860px; margin: 0 auto; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--bnp-muted); margin-bottom: 12px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.entry-cat { display: inline-block; color: var(--bnp-primary); font-family: var(--bnp-font-head); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.entry-shoulder { color: var(--bnp-primary); font-size: 17px; margin: 0 0 4px; font-family: var(--bnp-font-head); }
.entry-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; margin-bottom: 12px; font-weight: var(--bnp-fw-head); }
.entry-lede { font-size: 18px; color: var(--bnp-text2); border-left: 3px solid var(--bnp-primary); padding-left: 12px; }
.entry-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--bnp-border); border-bottom: 1px solid var(--bnp-border); margin: 14px 0 20px; font-size: 14px; color: var(--bnp-muted); }
.meta-left { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.meta-author { display: inline-flex; align-items: center; gap: 6px; color: var(--bnp-text); font-weight: 600; }
.share-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.share-btn { display: inline-grid; place-items: center; background: none; border: 0; padding: 0; }
.share-btn .bnp-brand { width: 32px; height: 32px; }
.share-btn .bnp-brand svg { width: 15px; height: 15px; }
.tool-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bnp-border); font-size: 13px; font-weight: 700; color: var(--bnp-text2); }
.tool-btn:hover { border-color: var(--bnp-primary); color: var(--bnp-primary); }
.share-copy.is-copied .bnp-brand { background: var(--bnp-green) !important; }
.entry-figure { margin: 0 0 22px; }
.entry-figure img { width: 100%; }
.entry-figure figcaption, .wp-caption-text, .wp-element-caption { font-size: 13.5px; color: var(--bnp-muted); padding: 8px 0; border-bottom: 1px solid var(--bnp-border); }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin-bottom: 22px; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry-content { font-size: var(--bnp-fs-single); line-height: 1.85; color: #1F2937; }
.entry-content p { margin-bottom: 1.1em; }
.entry-content a { color: var(--bnp-primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2 { font-size: 1.35em; margin: 1.4em 0 .6em; }
.entry-content h3 { font-size: 1.18em; margin: 1.3em 0 .5em; }
.entry-content blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--bnp-primary); background: var(--bnp-surface); font-size: 1.05em; }
.entry-content img { margin: 1em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: .9em; }
.entry-content th, .entry-content td { border: 1px solid var(--bnp-border); padding: 8px; }
.entry-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--bnp-border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entry-tags a { background: var(--bnp-surface); padding: 4px 12px; font-size: 14px; border-radius: 20px; }
.entry-tags a:hover { background: var(--bnp-primary); color: #fff; }
.related { margin-top: 40px; }
.sidebar-sticky { position: sticky; top: 70px; }
.sidebar .bnp-ad { margin-bottom: 24px; }
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--bnp-border); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--bnp-border); font: inherit; }
.comment-form .submit { background: var(--bnp-primary); color: #fff; border: 0; padding: 10px 22px; font: inherit; }

/* ---------- Archive ---------- */
.archive-title { font-size: calc(var(--bnp-fs-section) + 5px); }
.archive-desc { color: var(--bnp-text2); margin-bottom: 16px; }
.archive-lead { margin-bottom: 24px; }
.archive-lead .card-title { font-size: calc(var(--bnp-fs-feature) + 3px); }
.archive-wrap .bnp-ad { margin-bottom: 22px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 36px 0 10px; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--bnp-border); font-size: 15px; }
.pagination .current { background: var(--bnp-primary); border-color: var(--bnp-primary); color: #fff; }
.pagination a:hover { border-color: var(--bnp-primary); }
.no-results { padding: 40px 0; color: var(--bnp-text2); }
.page-wrap { max-width: 900px; }
.page-404 { text-align: center; padding: 30px 24px 10px; }
.page-404 .code-404 { font-size: 110px; line-height: 1; color: var(--bnp-primary); font-family: var(--bnp-font-head); font-weight: 700; margin: 0; }
.page-404 h1 { font-size: 30px; margin: 8px 0 12px; }
.page-404 .search-form { margin: 20px auto; }
.page-404 .related { text-align: left; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--bnp-footer-bg); color: var(--bnp-footer-text); }
.footer-top { border-top: 2px solid var(--bnp-green); border-bottom: 1px solid var(--bnp-border); }
.footer-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-menu a { font-size: 14.5px; font-weight: 600; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 20px; padding-bottom: 28px; font-size: 14px; line-height: 1.75; }
.footer-main p { margin-bottom: .6em; }
.footer-logo img { width: 180px; margin-bottom: 12px; }
.footer-utility { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--bnp-border); padding-top: 12px; margin-top: 12px; color: var(--bnp-link); }
.utility-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding-left: 10px; border-left: 1px solid var(--bnp-border); }
.utility-menu a { color: var(--bnp-link); }
.footer-bottom { border-top: 1px solid var(--bnp-border); padding: 12px 0; font-size: 13px; text-align: center; color: var(--bnp-muted); }
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bnp-border); background: #fff; color: var(--bnp-primary); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.12); z-index: 60; }
.back-to-top:hover { background: var(--bnp-primary); color: #fff; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky, .gallery-caption, .bypostauthor { outline: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.hero { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
	.hero-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
	.nw-layout, .world-layout { grid-template-columns: minmax(0, 1fr) 270px; }
	.single-wrap.has-sidebar, .archive-wrap.has-sidebar { grid-template-columns: minmax(0, 1fr) 270px; }
	.most-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}

@media (max-width: 1023px) {
	:root { --sec-space: 40px; }
	.hero { grid-template-columns: 1fr; }
	.hero-side { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sec-split { grid-template-columns: 1fr; gap: var(--sec-space); }
	.nw-layout, .world-layout { grid-template-columns: 1fr; }
	.nw-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
	.nw-side .widget + .widget { margin-top: 0; }
	.sec-trio { grid-template-columns: 1fr 1fr; }
	.single-wrap.has-sidebar, .archive-wrap.has-sidebar { grid-template-columns: 1fr; }
	.sidebar-sticky { position: static; }
	.header-social { display: none; }
}

@media (max-width: 767px) {
	:root { --gap: 16px; --sec-space: 34px; }
	.container { padding: 0 16px; }
	.only-mobile { display: inline-grid !important; }
	.only-desktop { display: none !important; }
	.header-top { padding-top: 12px; padding-bottom: 10px; gap: 8px; }
	.header-brand { flex: 1; display: flex; justify-content: center; }
	.logo-img { width: var(--bnp-logo-w-m); }
	.logo-text { font-size: calc(var(--bnp-logo-w-m) / 6.2); }
	.logo-tagline { font-size: 9px; margin-top: 4px; }
	.header-right { gap: 0; }
	.header-date { display: none; }
	.nav-menu { gap: 18px; }
	.nav-menu a { padding: 9px 0; font-size: 15px; }
	.admin-bar.has-sticky-nav .main-nav { top: 0; }

	.ad-row { margin-top: 18px; margin-bottom: 18px; }
	.bnp-ad.ad-leader.is-empty { max-width: 320px; height: 100px; }

	.hero-top { grid-template-columns: 1fr; gap: 20px; }
	.hero-left { order: 2; }
	.card-lead > .card-title { font-size: calc(var(--bnp-fs-lead) * .8); margin-bottom: 12px; }
	.lead-body { grid-template-columns: 1fr; gap: 10px; }
	.card-lead .card-media img { aspect-ratio: 16 / 9; }
	.card-lead .card-excerpt { -webkit-line-clamp: 4; }
	.hero-grid { grid-template-columns: 1fr; gap: 12px; }
	.hero-side { grid-template-columns: 1fr; }
	.hero-side .bnp-ad.is-empty { display: none; }

	.most-track { grid-auto-columns: 78%; }
	.scroll-btn { display: none; }

	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.grid-4 .card-title { font-size: 15px; }
	.grid-4 .card-excerpt { display: none; }
	.split-a-grid { grid-template-columns: 1fr; }
	.card-feature-row { grid-template-columns: 1fr; gap: 10px; }
	.video-layout { grid-template-columns: 1fr; }
	.video-layout .grid-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.video-layout .grid-2 .card-title { font-size: 15px; }
	.fp-layout, .panel-cols-2 .fp-layout { grid-template-columns: 1fr; }
	.panel-cols-2 .fp-layout .panel { grid-template-columns: 1fr; }
	.panel-cols-1 .panel .card-h, .panel-cols-2 .panel .card-h { grid-template-columns: 40% 1fr; }
	.nw-side { grid-template-columns: 1fr; }
	.card-wide { grid-template-columns: 1fr; }
	.card-wide .card-media { order: -1; }
	.sec-trio { grid-template-columns: 1fr; gap: var(--sec-space); }
	.card-feature .card-title, .card-feature-row .card-title, .card-wide .card-title { font-size: calc(var(--bnp-fs-feature) - 3px); }

	.entry-meta { flex-direction: column; align-items: flex-start; }
	.footer-main { grid-template-columns: 1fr; gap: 16px; }
	.footer-top-inner { flex-direction: column; align-items: flex-start; }
	.back-to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .sidebar, .bnp-ad, .share-row, .related, .back-to-top, .breadcrumb, .comments-area { display: none !important; }
	.single-wrap.has-sidebar { grid-template-columns: 1fr; }
	body { font-size: 12pt; }
}
