/*
Theme Name: POASBD News
Theme URI: https://www.poasbd.it/
Author: Mahabubul Alam
Author URI: https://www.poasbd.it/
Description: Tema magazine/notizie per POASBD: striscia Highlight con foto, video in popup, "Mi sono perso", banner promo, colonne con filtri, ultime notizie con paginazione, sidebar con autore, WhatsApp, scadenze, schede e trending, menu laterale su mobile, modalità scura. Tutto da Aspetto > Personalizza > POASBD News.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.8
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: poasbd
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ================= Tokens ================= */
:root {
	--bg: #f3f5f2;
	--surface: #ffffff;
	--ink: #14231d;
	--ink-soft: #4d5d55;
	--line: #d5ded8;
	--green: #0b5d45;
	--green-deep: #08402f;
	--mint: #e2eee7;
	--red: #c8102e;
	--wa: #1e8e4e;
	--topbar: #14231d;
	--topbar-ink: #c9d4ce;
	--nav: #08402f;
	--shadow: 0 1px 2px rgba(20, 35, 29, .06), 0 4px 14px rgba(20, 35, 29, .06);

	--font-head: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
	--font-body: "Hind Siliguri", "Anek Bangla", system-ui, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 3vw, 28px);
	--r: 8px;
	color-scheme: light;
}
:root[data-theme="dark"] {
	--bg: #0f1714;
	--surface: #17221d;
	--ink: #e6efe9;
	--ink-soft: #a5b6ad;
	--line: #2b3a33;
	--green: #4cc39a;
	--green-deep: #0b3d2d;
	--mint: #1d3329;
	--red: #ff5a6e;
	--topbar: #0a110e;
	--topbar-ink: #9fb0a7;
	--nav: #0b3d2d;
	--shadow: none;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0f1714;
		--surface: #17221d;
		--ink: #e6efe9;
		--ink-soft: #a5b6ad;
		--line: #2b3a33;
		--green: #4cc39a;
		--green-deep: #0b3d2d;
		--mint: #1d3329;
		--red: #ff5a6e;
		--topbar: #0a110e;
		--topbar-ink: #9fb0a7;
		--nav: #0b3d2d;
		--shadow: none;
		color-scheme: dark;
	}
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--surface); color: var(--ink); padding: 8px 14px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 700; padding: .65em 1.2em; border-radius: var(--r); text-decoration: none; border: 0; cursor: pointer; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17733f; color: #fff; }
.btn-light { background: #fff; color: #08402f; }
.btn-light:hover { background: #e2eee7; color: #08402f; }

/* ================= Top bar ================= */
.topbar { background: var(--topbar); color: var(--topbar-ink); font-size: .88rem; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.today { display: inline-flex; align-items: center; gap: 6px; }
.today svg { width: 15px; height: 15px; }
.top-nav ul { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.top-nav a { color: var(--topbar-ink); text-decoration: none; }
.top-nav a:hover { color: #fff; }
.topbar .social { margin-left: auto; display: flex; gap: 4px; }
.topbar .social a { width: 30px; height: 30px; display: grid; place-items: center; color: var(--topbar-ink); border-radius: 50%; }
.topbar .social a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.topbar .social svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 640px) { .top-nav { display: none; } }

/* ================= Header row ================= */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; transition: transform .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: .02em; color: var(--ink); text-decoration: none; line-height: 1; }
.brand-name.small { font-size: 1.5rem; }
.brand .custom-logo { max-height: 58px; width: auto; }
.brand-tag { margin: 4px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.3; }
.primary-nav { flex: 1; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; flex-wrap: wrap; justify-content: center; }
.primary-nav a { display: block; padding: 26px 13px 23px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 600; border-bottom: 3px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--green); border-bottom-color: var(--red); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu { visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .14); border-top: 3px solid var(--red); border-radius: 0 0 var(--r) var(--r); z-index: 60; }
.primary-nav .sub-menu a { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.primary-nav .sub-menu li:last-child a { border-bottom: 0; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.nav-tools { display: flex; gap: 4px; margin-left: auto; flex: none; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu-toggle { display: none; }
@media (max-width: 1024px) {
	.primary-nav { display: none; }
	.menu-toggle { display: grid; }
	.brand-tag { display: none; }
	.header-row { min-height: 64px; }
}

/* Off-canvas */
body.no-scroll { overflow: hidden; }
.offcanvas-backdrop { position: fixed; inset: 0; background: rgba(5, 15, 10, .55); z-index: 90; }
.offcanvas { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); z-index: 100; overflow-y: auto; padding: 18px 20px 28px; transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 30px rgba(0, 0, 0, .2); }
.offcanvas.is-open { transform: none; }
.offcanvas-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.offcanvas-nav ul, .offcanvas-links { list-style: none; margin: 0 0 22px; padding: 0; }
.offcanvas-nav a, .offcanvas-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.offcanvas-nav a:hover, .offcanvas-links a:hover { color: var(--green); }
.offcanvas-nav .sub-menu { margin: 0; padding-left: 14px; }
.offcanvas-nav .sub-menu a { font-weight: 500; }
.offcanvas-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.offcanvas-wa { width: 100%; justify-content: center; }
@media (min-width: 1025px) { .offcanvas, .offcanvas-backdrop { display: none !important; } }

/* Highlight strip */
.highlight { background: var(--surface); border-bottom: 1px solid var(--line); }
.highlight .wrap { display: flex; align-items: center; gap: 14px; min-height: 74px; }
.highlight-label { flex: none; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 4px; }
.highlight-window { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.highlight-track { list-style: none; margin: 0; padding: 10px 0; display: flex; width: max-content; animation: poasbd-marquee 48s linear infinite; }
.highlight-track li { padding-right: 26px; }
.highlight-track a { display: flex; align-items: center; gap: 10px; width: 280px; color: var(--ink); text-decoration: none; }
.hl-thumb { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--mint); border: 2px solid var(--line); }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hl-thumb .thumb-fallback { font-size: .62rem; padding: 4px; line-height: 1.1; }
.hl-title { font-family: var(--font-head); font-weight: 600; font-size: .93rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.highlight-track a:hover .hl-title { color: var(--green); text-decoration: underline; }
.highlight-window:hover .highlight-track, .highlight-window:focus-within .highlight-track, .highlight-track.is-paused { animation-play-state: paused; }
.highlight-pause { flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-soft); font-size: .6rem; cursor: pointer; }
.highlight-pause[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
@keyframes poasbd-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.highlight-track { animation: none; }
	.highlight-window { overflow-x: auto; }
	.highlight-pause { display: none; }
}
@media (max-width: 640px) { .highlight-label { display: none; } .highlight-track a { width: 240px; } }

/* Reading progress */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 120; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }

/* ================= Shared bits ================= */
.badge { display: inline-block; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .78rem; line-height: 1; padding: 6px 9px 5px; border-radius: 4px; text-decoration: none; }
:root[data-theme="dark"] .badge { color: #0f1714; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #0f1714; } }
a.badge:hover { background: var(--red); color: #fff; }
.meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--ink-soft); }
.meta-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.thumb { display: block; position: relative; overflow: hidden; background: var(--mint); border-radius: var(--r); aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--green); background: var(--mint); }

.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
.section-title h2 { margin: 0; font-size: 1.35rem; }
.section-title h2 span { display: inline-block; padding-bottom: 8px; border-bottom: 3px solid var(--red); margin-bottom: -2px; }
.section-title .more { font-weight: 600; font-size: .9rem; text-decoration: none; padding-bottom: 8px; }
.section-title .more:hover { text-decoration: underline; }

/* ================= Overlay card ================= */
.overlay { position: relative; border-radius: var(--r); overflow: hidden; background: var(--mint); min-height: 220px; height: 100%; }
.overlay .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.overlay .thumb-fallback { background: linear-gradient(135deg, #0b5d45, #08402f); color: rgba(255, 255, 255, .22); font-size: 2.4rem; place-items: start end; }
.overlay-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: linear-gradient(to top, rgba(6, 20, 14, .94), rgba(6, 20, 14, .55) 60%, transparent); }
.overlay-title { color: #fff; margin: 8px 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.overlay-title a { color: #fff; text-decoration: none; }
.overlay-title a::after { content: ""; position: absolute; inset: 0; }
.overlay-title a:hover { text-decoration: underline; }
.overlay .meta { color: #d6e2db; }
.overlay .badge { position: relative; z-index: 1; color: #fff; background: #0b5d45; }
.overlay:hover .thumb img { transform: scale(1.04); }

/* ================= Video band ================= */
.video-band { background: #0d1813; padding: 38px 0 44px; }
.video-band .section-title { border-bottom-color: #2b3a33; }
.video-band .section-title h2 { color: #fff; }
.video-band .section-title .more { color: #8fd8bb; }
.video-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.video-layout.single { grid-template-columns: minmax(0, 860px); }
.video-list { display: flex; flex-direction: column; gap: 14px; }
.vtile-link { display: block; color: #fff; text-decoration: none; }
.vtile-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.vtile-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s; }
.vtile-link:hover .vtile-thumb img { opacity: 1; transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(200, 16, 46, .25); }
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.vtile-title { display: block; margin-top: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.vtile-big .vtile-title { font-size: 1.35rem; }
.video-list .vtile-link { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.video-list .vtile-title { margin: 0; font-size: .98rem; }
.video-list .play { width: 38px; height: 38px; margin: -19px 0 0 -19px; box-shadow: none; }
.video-list .play svg { width: 18px; height: 18px; }
.vtile-link:hover .vtile-title { text-decoration: underline; }
@media (max-width: 860px) { .video-layout { grid-template-columns: 1fr; } }
.video-modal { position: fixed; inset: 0; z-index: 130; background: rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 20px; }
.video-modal[hidden] { display: none; }
.video-modal-inner { position: relative; width: min(960px, 100%); }
.video-frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close { position: absolute; top: -52px; right: 0; background: #fff; color: #111; border: 0; }

/* ================= You may have missed ================= */
.missed { padding: 34px 0 8px; }
.missed-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.missed-main { grid-row: span 2; }
.missed-main .overlay { min-height: 460px; }
.missed .card { background: var(--surface); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .missed-grid { grid-template-columns: 1fr 1fr; } .missed-main { grid-column: span 2; grid-row: auto; } .missed-main .overlay { min-height: 340px; } }
@media (max-width: 560px) { .missed-grid { grid-template-columns: 1fr; } .missed-main { grid-column: auto; } }

/* ================= Promo ================= */
.promo-wrap { padding: 26px 0; }
.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 4vw, 38px); border-radius: var(--r); color: #fff; background: #0b5d45 radial-gradient(circle at 92% 20%, rgba(200, 16, 46, .9) 0 70px, transparent 71px); }
.promo h2 { color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); margin: 0 0 6px; }
.promo p { margin: 0; color: #d7ebe1; max-width: 60ch; }

/* ================= Three columns ================= */
.columns { padding: 6px 0 4px; }
.columns-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; }
.columns-grid.two { grid-template-columns: 1fr 1.4fr; }
.col-box { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.featured-box .section-title { flex-wrap: wrap; }
.pill-tabs { border: 0; margin: 0 0 8px; gap: 4px; }
.pill-tabs button { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; margin: 0; font-size: .85rem; }
.pill-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.featured-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.featured-panel[hidden] { display: none; }
@media (max-width: 1024px) { .columns-grid, .columns-grid.two { grid-template-columns: 1fr 1fr; } .featured-box { grid-column: span 2; } }
@media (max-width: 640px) { .columns-grid, .columns-grid.two { grid-template-columns: 1fr; } .featured-box { grid-column: auto; } .featured-panel { grid-template-columns: 1fr; } }

/* ================= Feed ================= */
.feed-list { display: flex; flex-direction: column; gap: 22px; }
.feed-item { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.feed-title { font-size: 1.25rem; margin: 0; }
.feed-title a { color: var(--ink); text-decoration: none; }
.feed-title a:hover { color: var(--green); text-decoration: underline; }
.feed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; }
.read-more { margin-left: auto; font-weight: 700; font-family: var(--font-head); text-decoration: none; font-size: .92rem; }
.read-more::after { content: " ›"; }
.read-more:hover { text-decoration: underline; }
.feed-item:hover .thumb img { transform: scale(1.04); }
@media (max-width: 640px) { .feed-item { grid-template-columns: 1fr; } .read-more { margin-left: 0; } }

/* ================= Services strip ================= */
.services-strip { padding: 18px 0 6px; }
.services-strip .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.services-title { font-size: 1rem; margin: 0; color: var(--ink-soft); }
.services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.services a { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.services a:hover { border-color: var(--green); color: var(--green); }
.svc-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.svc-icon svg { width: 17px; height: 17px; }

/* ================= Main layout ================= */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; padding: 24px 0 56px; }
.main-col > section { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 28px; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

/* Cards */
.card { display: flex; flex-direction: column; gap: 8px; }
.card .thumb { margin-bottom: 4px; }
.card .badge { align-self: flex-start; }
.card-title { font-size: 1.12rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green); text-decoration: underline; }
.card-excerpt { margin: 0; color: var(--ink-soft); font-size: .97rem; line-height: 1.6; }
.card:hover .thumb img { transform: scale(1.04); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .card-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid, .card-grid.three { grid-template-columns: 1fr; } }

/* Category block: lead + list */
.cat-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.cat-lead .card-title { font-size: 1.35rem; }
.cat-list { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 680px) { .cat-grid { grid-template-columns: 1fr; } }

.mini { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.mini .thumb { aspect-ratio: 4 / 3; border-radius: 6px; }
.mini .thumb-fallback { font-size: .8rem; padding: 6px; }
.mini-title { font-size: .98rem; margin: 0 0 4px; line-height: 1.4; }
.mini-title a { color: var(--ink); text-decoration: none; }
.mini-title a:hover { color: var(--green); text-decoration: underline; }
.mini .meta { font-size: .8rem; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.video { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Useful links */
.links-area { padding: 8px 0 48px; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.links-grid .widget { margin: 0; }
.links-grid img { border-radius: 6px; }

/* ================= Sidebar ================= */
.sidebar .widget { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.widget-title { font-size: 1.12rem; border-bottom: 2px solid var(--line); margin: 0 0 14px; }
.widget-title span { display: inline-block; padding-bottom: 8px; border-bottom: 3px solid var(--red); margin-bottom: -2px; }
.sidebar ul { padding-left: 1.1em; margin: 0; }
.box-wa { border-top: 4px solid var(--wa); }
.box-wa p { color: var(--ink-soft); font-size: .97rem; }
.tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 8px; font: 700 1rem var(--font-head); color: var(--ink-soft); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }

.box-author { text-align: center; }
.author-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--mint); }
.author-initial { display: grid; place-items: center; background: var(--green); color: #fff; font: 800 2.4rem var(--font-head); }
.author-name { font-size: 1.2rem; margin: 0 0 6px; }
.box-author p { color: var(--ink-soft); font-size: .95rem; }
.social-dark { display: flex; justify-content: center; gap: 8px; }
.social-dark a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green); }
.social-dark a:hover { background: var(--green); color: #fff; }
.social-dark svg { width: 16px; height: 16px; fill: currentColor; }
.channel-link { display: block; margin-top: 12px; font-weight: 600; font-size: .92rem; }
.comment-mini { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.comment-mini li { border-bottom: 1px dashed var(--line); padding-bottom: 10px; font-size: .93rem; }
.comment-mini a { display: block; color: var(--ink); text-decoration: none; }
.comment-mini a:hover { color: var(--green); }
.trend-list { list-style: none; padding: 0 !important; margin: 0; counter-reset: trend; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trend-list li { counter-increment: trend; position: relative; }
.trend-list .thumb { aspect-ratio: 4 / 3; margin-bottom: 6px; }
.trend-list .thumb-fallback { font-size: .9rem; }
.trend-list li::before { content: counter(trend, bengali); position: absolute; top: 6px; left: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font: 700 .85rem/26px var(--font-head); text-align: center; }
.box-cats ul { list-style: none; padding: 0 !important; }
.box-cats a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.box-cats li:last-child a { border-bottom: 0; }
.box-cats a:hover { color: var(--green); }
.box-cats .count { min-width: 30px; text-align: center; background: var(--mint); color: var(--green); border-radius: 999px; font-size: .82rem; padding: 1px 8px; }
.panel { display: flex; flex-direction: column; gap: 14px; }
.panel[hidden] { display: none; }

/* ================= Search form ================= */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--r); font: inherit; background: var(--surface); color: var(--ink); }
.search-form input[type="search"]:focus { border-color: var(--green); outline: none; }
.search-form .search-submit { font: 600 1rem var(--font-head); padding: 10px 16px; border: 0; border-radius: var(--r); background: var(--green); color: #fff; cursor: pointer; }

/* ================= Archive ================= */
.archive-head { padding: 28px 0 0; }
.archive-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); border-bottom: 2px solid var(--line); }
.archive-head h1 span { display: inline-block; padding-bottom: 10px; border-bottom: 3px solid var(--red); margin-bottom: -2px; }
.archive-desc { color: var(--ink-soft); }
.head-search { max-width: 520px; margin-top: 12px; }
.layout > .main-col > .card-grid { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.pagination { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { padding: 6px 13px; border-radius: 6px; text-decoration: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ================= Single ================= */
.single-post { background: var(--surface); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.entry-head .badge { margin-bottom: 10px; }
.entry-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--ink-soft); font-size: .92rem; margin-bottom: 14px; }
.entry-meta > span:first-child { font-weight: 600; color: var(--ink); }
.updated-note { background: rgba(200, 16, 46, .1); color: var(--red); font-weight: 600; padding: 2px 10px; border-radius: 4px; }
.entry-thumb { margin: 20px 0; border-radius: var(--r); overflow: hidden; }
.entry-thumb img { width: 100%; }
.entry-content { font-size: 1.1rem; max-width: 72ch; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.55rem; }
.entry-content h3 { margin-top: 1.4em; font-size: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img, .entry-content figure { border-radius: var(--r); }
.entry-content figure { margin: 1.5em 0; }
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: .97rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content th { background: var(--mint); }
.entry-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--green); background: var(--mint); border-radius: 0 var(--r) var(--r) 0; }
.entry-content a { font-weight: 500; }
.tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: .85rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.tags a:hover { border-color: var(--green); color: var(--green); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; font-size: .92rem; }
.share > span { font-weight: 600; color: var(--ink-soft); }
.share a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; color: #fff; text-decoration: none; font-weight: 600; }
.share svg { width: 16px; height: 16px; fill: currentColor; }
.share-wa { background: #1e8e4e; }
.share-wa svg { fill: none; stroke: currentColor; }
.share-fb { background: #1f5fc4; }
.share-x { background: #222; }
.share a:hover { opacity: .9; color: #fff; }
.help-box { margin: 28px 0; padding: 22px; background: var(--surface); border-radius: var(--r); border-left: 5px solid var(--wa); box-shadow: var(--shadow); }
.help-box h2 { font-size: 1.3rem; }
.help-box p { color: var(--ink-soft); }
.post-navigation { margin: 28px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-navigation a { display: block; height: 100%; background: var(--surface); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.post-navigation a:hover { color: var(--green); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.related { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 28px; }
@media (max-width: 560px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { text-align: left; } }

/* Comments */
.comments-area { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { border-bottom: 1px solid var(--line); padding: 14px 0; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px; border: 2px solid var(--line); border-radius: var(--r); font: inherit; background: var(--surface); color: var(--ink); }
.comment-form .submit { background: var(--green); color: #fff; border: 0; padding: 10px 18px; border-radius: var(--r); cursor: pointer; font: 600 1rem var(--font-head); }
.not-found { padding: 24px 0 64px; }

/* ================= Channel + footer ================= */
.channel { background: var(--green-deep); color: #fff; padding: 34px 0; }
.channel .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.channel h2 { color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 4px; }
.channel p { margin: 0; color: #cfe3d9; }
.site-footer { background: #101b16; color: #b9c7bf; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .widget-title { color: #fff; border-bottom-color: #2b3a33; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-brand { color: #fff; display: inline-block; margin-bottom: 14px; }
.site-footer .social { display: flex; gap: 8px; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #33443c; display: grid; place-items: center; }
.site-footer .social a:hover { background: var(--green); border-color: var(--green); }
.site-footer .social svg { width: 16px; height: 16px; fill: currentColor; }
.site-footer .mini-title a { color: #fff; }
.site-footer .mini .meta { color: #93a59b; }
.footer-links li { border-bottom: 1px solid #2b3a33; }
.footer-links a { display: block; padding: 8px 0; text-decoration: none; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.disclaimer { border-top: 1px solid #2b3a33; margin-top: 32px; padding-top: 16px; font-size: .85rem; color: #93a59b; }
.disclaimer p { margin: 0 0 6px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); color: var(--red); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.to-top > svg:not(.to-top-ring) { position: relative; }
.to-top-ring { position: absolute; inset: 0; width: 100% !important; height: 100% !important; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--red); stroke-width: 3; }
.poasbd-anim .to-top.is-shown { animation: poasbd-pop .35s ease; }
.to-top:hover { background: var(--red); color: #fff; }
.to-top[hidden] { display: none; }
.to-top svg { width: 22px; height: 22px; }
.wa-float { display: none; }
@media (max-width: 900px) {
	.wa-float { display: flex; align-items: center; gap: 8px; position: fixed; left: 16px; bottom: 16px; z-index: 55; background: var(--wa); color: #fff; text-decoration: none; font: 700 1rem var(--font-head); padding: 11px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
	.wa-float svg { width: 22px; height: 22px; }
}

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--ink-soft); }
.sticky, .bypostauthor, .gallery-caption { }


/* ================= Animations ================= */
/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--surface); display: grid; place-items: center; pointer-events: none; transition: opacity .45s ease, visibility .45s; animation: poasbd-preloader-out .45s ease 1.6s forwards; }
@keyframes poasbd-preloader-out { to { opacity: 0; visibility: hidden; } }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { display: grid; place-items: center; gap: 14px; }
.preloader-ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--mint); border-top-color: var(--red); border-right-color: var(--green); animation: poasbd-spin .8s linear infinite; }
.preloader-name { font: 800 1.3rem var(--font-head); letter-spacing: .08em; color: var(--ink); animation: poasbd-pulse 1.2s ease-in-out infinite; }
@keyframes poasbd-spin { to { transform: rotate(360deg); } }
@keyframes poasbd-pulse { 50% { opacity: .45; } }
@keyframes poasbd-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Reveal on scroll (added by script only when animations are on) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease var(--reveal-delay, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.section-title.reveal { transform: translateX(-24px); }
.section-title.reveal.is-in { transform: none; }
.section-title.reveal h2 span { transition: border-color .6s ease .3s; border-bottom-color: transparent; }
.section-title.reveal.is-in h2 span { border-bottom-color: var(--red); }

/* Light sweep over feature images */
.poasbd-anim .overlay::before, .poasbd-anim .card .thumb::before, .poasbd-anim .feed-item .thumb::before {
	content: ""; position: absolute; top: 0; left: -75%; z-index: 2; width: 50%; height: 100%;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28));
	transform: skewX(-25deg); pointer-events: none;
}
.poasbd-anim .overlay:hover::before, .poasbd-anim .card:hover .thumb::before, .poasbd-anim .feed-item:hover .thumb::before { animation: poasbd-shine .8s; }
@keyframes poasbd-shine { to { left: 125%; } }

/* Slider */
.slider { position: relative; border-radius: var(--r); overflow: hidden; }
.slides { position: relative; height: 100%; min-height: 460px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide .overlay { height: 100%; min-height: 0; border-radius: 0; }
.slide.is-active .thumb img { animation: poasbd-kenburns 7s ease-out both; }
.slide.is-active .overlay-body > * { animation: poasbd-up .6s ease both; }
.slide.is-active .overlay-body > *:nth-child(2) { animation-delay: .1s; }
.slide.is-active .overlay-body > *:nth-child(3) { animation-delay: .2s; }
@keyframes poasbd-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes poasbd-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slide-btn { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #14231d; font: 700 1.5rem/1 var(--font-head); cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; }
.slide-btn.prev { left: 12px; transform: translateX(-8px); }
.slide-btn.next { right: 12px; transform: translateX(8px); }
.slider:hover .slide-btn, .slide-btn:focus-visible { opacity: 1; transform: none; }
.slide-dots { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 6px; }
.slide-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .3s ease, background .3s; }
.slide-dots button[aria-current="true"] { width: 26px; background: var(--red); }
@media (hover: none) { .slide-btn { opacity: 1; transform: none; } }
@media (max-width: 900px) { .slides { min-height: 340px; } }
.missed-main .overlay { min-height: 0; }

/* Search overlay */
.search-panel { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; background: rgba(8, 20, 14, .92); opacity: 0; transition: opacity .25s ease; }
.search-panel.is-open { opacity: 1; }
.search-box { width: min(720px, 100%); transform: translateY(24px); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.search-panel.is-open .search-box { transform: none; }
.search-hint { color: #fff; font: 700 clamp(1.4rem, 4vw, 2.2rem) var(--font-head); margin-bottom: 18px; }
.search-panel .search-form input[type="search"] { padding: 16px 18px; font-size: 1.15rem; background: #fff; color: #14231d; border-color: #fff; }
.search-close { position: absolute; top: 20px; right: 20px; background: #fff; color: #14231d; border: 0; }

/* Tabs and off-canvas */
.poasbd-anim .panel:not([hidden]) { animation: poasbd-up .35s ease both; }
.poasbd-anim .offcanvas.is-open .offcanvas-nav li { animation: poasbd-slide-in .4s ease both; }
.poasbd-anim .offcanvas.is-open .offcanvas-nav li:nth-child(2) { animation-delay: .05s; }
.poasbd-anim .offcanvas.is-open .offcanvas-nav li:nth-child(3) { animation-delay: .1s; }
.poasbd-anim .offcanvas.is-open .offcanvas-nav li:nth-child(4) { animation-delay: .15s; }
.poasbd-anim .offcanvas.is-open .offcanvas-nav li:nth-child(n+5) { animation-delay: .2s; }
@keyframes poasbd-slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.poasbd-anim .play { animation: poasbd-ping 2s ease-out infinite; }
@keyframes poasbd-ping { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .55); } 100% { box-shadow: 0 0 0 16px rgba(200, 16, 46, 0); } }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
	.preloader { display: none; }
	.slide, .slide.is-active .thumb img, .slide.is-active .overlay-body > *, .poasbd-anim .play, .poasbd-anim .panel:not([hidden]) { animation: none !important; transition: none !important; }
}

/* ================= Deadlines ================= */
.dl-title { font-size: 1.05rem; margin: 2px 0 12px; }
.dl-title span { color: var(--red); font-weight: 600; font-size: .9rem; }
.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.dl-date { display: grid; place-items: center; height: 56px; border-radius: 6px; background: var(--green); color: #fff; line-height: 1.1; }
.dl-day { font: 800 1.35rem var(--font-head); }
.dl-mon { font-size: .72rem; text-transform: capitalize; }
.dl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-text a, .dl-text > span:first-child { color: var(--ink); font-weight: 600; line-height: 1.4; text-decoration: none; }
.dl-text a:hover { color: var(--green); text-decoration: underline; }
.dl-left { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.dl-item.is-urgent { border-color: var(--red); }
.dl-item.is-urgent .dl-date { background: var(--red); }
.dl-item.is-urgent .dl-left { color: var(--red); }
.poasbd-anim .dl-item.is-urgent .dl-date { animation: poasbd-ping 2s ease-out infinite; }
.dl-note { margin: 12px 0; font-size: .82rem; color: var(--ink-soft); }
.btn-sm { padding: .5em 1em; font-size: .92rem; }
:root[data-theme="dark"] .dl-date { color: #0f1714; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dl-date { color: #0f1714; } }
