@font-face {
	font-family: "SolaimanLipi";
	src: url("../fonts/solaimanlipi-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "SolaimanLipi";
	src: url("../fonts/solaimanlipi-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--green: #08893b;
	--green-dark: #066c2e;
	--red: #d81010;
	--red-dark: #b00000;
	--ink: #1d1d1f;
	--muted: #5b5f66;
	--line: #dcdcdc;
	--panel: #f1f1f1;
	--panel-2: #e6e6e6;
	--bg: #fff;
	--font: "SolaimanLipi", "Noto Sans Bengali", system-ui, sans-serif;
	--container: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	border-top: 6px solid #2b2d33;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.topbar {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
	padding-top: 12px; padding-bottom: 4px;
}
.today { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; color: #333; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quick-links { display: flex; gap: 4px; background: #e5e5e5; padding: 3px; }
.quick-links a { display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 2px 10px; font-size: 15px; }
.social { display: flex; gap: 8px; }
.social a, .share a {
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 16px;
}
.social a:hover, .share a:hover { color: #fff; opacity: .85; }
.social-facebook { background: #3b5998; }
.social-x { background: #1da1f2; }
.social-youtube { background: #e62117; }
.social-tiktok { background: #111; }

.brandbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 4px; padding-bottom: 14px; }
.brand .custom-logo { max-height: 110px; width: auto; }

.site-logo { display: inline-block; }
.site-logo img { height: 88px; width: auto; max-width: 100%; object-fit: contain; }
.text-logo-name { font-size: 34px; font-weight: 700; color: var(--red); line-height: 1.1; }
.text-logo:hover { color: inherit; }
.footer-brand .site-logo img { height: 64px; }

.header-search { display: flex; background: #dcdcdc; padding: 10px 14px; gap: 8px; width: min(390px, 100%); }
.header-search input { flex: 1; min-width: 0; border: 1px solid #b9b9b9; padding: 6px 8px; background: #fff; }
.header-search button { width: 42px; border: 0; background: #111; color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 18px; }

.header-ad { margin-bottom: 16px; }
.header-ad .widget { margin: 0; text-align: center; }

/* Nav */
.main-nav { border-top: 1px solid #999; border-bottom: 1px solid #999; background: #fff; position: relative; z-index: 20; }
.nav-inner { display: flex; align-items: stretch; }
.nav-home {
	display: inline-flex; align-items: center; gap: 4px; background: var(--red); color: #fff; padding: 0 20px; font-size: 18px; min-height: 52px;
}
.nav-home:hover, .nav-home:focus-visible { color: #fff; background: var(--red-dark); }
.nav-toggle { display: none; margin-left: auto; border: 0; background: none; font-size: 26px; padding: 0 8px; cursor: pointer; color: var(--ink); }
.nav-menu .menu { display: flex; flex-wrap: wrap; }
.nav-menu .menu > li { position: relative; }
.nav-menu .menu > li > a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; font-size: 18px; }
.nav-menu .current-menu-item > a, .nav-menu .current-category-ancestor > a { color: var(--green); }
.nav-menu .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -4px 0 0 8px; }
.nav-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green);
	box-shadow: 0 8px 20px rgba(0,0,0,.08); display: none;
}
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 8px 16px; border-bottom: 1px solid #eee; }

/* Ticker */
.ticker { display: flex; border: 1px solid var(--green); margin: 18px 0 22px; height: 46px; overflow: hidden; }
.ticker-label {
	flex: none; display: flex; align-items: center; background: var(--green); color: #fff; font-size: 21px; font-weight: 600;
	padding: 0 34px 0 22px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
}
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-list { display: flex; white-space: nowrap; }
.ticker-list.is-moving { animation: dnh-ticker 70s linear infinite; }
.ticker:hover .ticker-list, .ticker:focus-within .ticker-list { animation-play-state: paused; }
.ticker-list li { display: inline-flex; align-items: center; font-size: 17px; }
.ticker-list li::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--green); box-shadow: inset 0 0 0 2px #fff; background: var(--green);
	margin: 0 10px 0 14px;
}
@keyframes dnh-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker-list.is-moving { animation: none; }
	.ticker-track { overflow-x: auto; }
}

/* ---------- Section label ---------- */
.section-label { display: inline-flex; font-size: 22px; font-weight: 600; }
.section-label span {
	display: inline-block; background: var(--green); color: #fff; padding: 6px 44px 6px 22px;
	clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
}
.section-label a, .section-label a:hover { color: #fff; }
.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 16px; white-space: nowrap; }
.more-link .icon { font-size: 20px; }

/* ---------- Cards ---------- */
.card-media { display: block; overflow: hidden; background: var(--panel-2); aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.thumb-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e4e4e4, #cfd3d6); }
.card-title { font-weight: 500; }

.card-lead .card-title { font-size: 24px; margin-top: 12px; }
.lead-main .card-lead .card-title { font-size: 26px; }
.card-stack .card-title { font-size: 18px; margin-top: 10px; }

.card-row, .card-row-excerpt, .card-list { display: grid; gap: 12px; align-items: start; }
.card-row { grid-template-columns: 40% 1fr; background: var(--panel); padding: 8px; }
.card-row .card-title { font-size: 17px; }
.card-row-excerpt { grid-template-columns: 34% 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.card-row-excerpt .card-title { font-size: 19px; }
.card-excerpt { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.card-lead .card-excerpt { font-size: 17px; line-height: 1.6; }
.card-list { grid-template-columns: 110px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.card-list .card-title { font-size: 16px; }

/* ---------- Homepage ---------- */
.lead-grid { display: grid; grid-template-columns: 1.5fr 1fr .9fr; gap: 24px; align-items: start; }
.lead-side { display: grid; gap: 22px; }
.lead-aside { display: grid; gap: 18px; }


.tab-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.tab-buttons button {
	border: 0; color: #fff; font-size: 18px; font-weight: 600; padding: 8px 6px; cursor: pointer; position: relative; opacity: .8;
}
.tab-buttons .tab-latest { background: var(--red); border-radius: 6px 0 0 0; }
.tab-buttons .tab-popular { background: var(--green); border-radius: 0 6px 0 0; }
.tab-buttons button.is-active { opacity: 1; }
.tab-buttons button.is-active::after {
	content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: inherit;
}
.tab-buttons .tab-latest.is-active::after { border-top-color: var(--red); }
.tab-buttons .tab-popular.is-active::after { border-top-color: var(--green); }
.tab-panel { max-height: 560px; overflow-y: auto; padding: 4px 4px 0 0; }

/* Equal-height lead row: pictures grow to fill, the tab list scrolls within the row. */
@media (min-width: 641px) {
	.lead-grid { align-items: stretch; }
	.lead-main, .lead-side { display: flex; flex-direction: column; }
	.lead-side { gap: 22px; }
	.lead-main .card, .lead-side .card { flex: 1 1 auto; display: flex; flex-direction: column; }
	.lead-main .card-media, .lead-side .card-media { flex: 1 0 auto; }
	.lead-aside { contain: size; display: flex; flex-direction: column; min-height: 0; }
	.news-tabs { display: flex; flex-direction: column; flex: 1; min-height: 0; }
	.news-tabs .tab-panel { flex: 1; max-height: none; min-height: 0; }
}
.empty-note { color: var(--muted); padding: 12px 0; }

.card-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }

.section-wrap { margin-top: 40px; }
.section-wrap.has-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.section-head {
	display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--green); margin-bottom: 20px; flex-wrap: wrap;
}
.section-head .section-label { margin-bottom: -2px; }
.section-tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-left: auto; font-size: 18px; }
.section-tabs a.is-active { color: var(--green); }
.section-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }

.style-a .section-lead { background: var(--panel); padding: 14px; }
.style-a .section-list { display: grid; gap: 8px; }
.style-b .section-body { grid-template-columns: 1fr 1fr; gap: 40px; }
.style-b .section-list .card-row-excerpt:first-child { padding-top: 0; }

.home-sidebar .widget, .content-sidebar .widget { background: #f4f4f4; padding: 14px; margin-bottom: 20px; }
.home-sidebar .section-label, .content-sidebar .section-label { font-size: 20px; margin-bottom: 8px; }
.widget h2:not(.section-label), .widget .wp-block-search__label {
	display: block; font-size: 19px; font-weight: 600; color: var(--green); border-bottom: 2px solid var(--green); padding-bottom: 4px; margin-bottom: 10px;
}
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget .wp-block-search__button { background: var(--green); color: #fff; border: 0; }

/* ---------- Single / archive ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; margin-top: 8px; }
.breadcrumb { display: flex; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a:last-child { color: var(--green); }
.entry-title { font-size: 36px; font-weight: 600; margin-bottom: 14px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
.entry-date { display: inline-flex; align-items: center; gap: 4px; }
.entry-author { color: var(--ink); font-weight: 600; }
.share { display: flex; gap: 8px; margin: 14px 0; }
.entry-thumb { margin: 0 0 18px; }
.entry-thumb img { width: 100%; }
.entry-thumb figcaption { font-size: 14px; color: var(--muted); background: var(--panel); padding: 6px 10px; }
.entry-content { font-size: 19px; line-height: 1.8; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content img { margin: 1em 0; }
.entry-content blockquote { border-left: 4px solid var(--green); margin: 1.2em 0; padding: 4px 18px; background: #f7f7f7; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.entry-tags a { background: var(--panel); padding: 2px 12px; font-size: 15px; }
.related { margin-top: 32px; }

.archive-head { border-bottom: 2px solid var(--green); margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.archive-head .section-label { margin-bottom: -2px; }
.archive-desc { width: 100%; color: var(--muted); }
.archive-lead { margin-bottom: 8px; }
.card-date { margin: -8px 0 0; padding-bottom: 6px; font-size: 14px; color: var(--muted); }
.archive-item .card-row-excerpt { border-bottom: 0; padding-bottom: 12px; }
.archive-item { border-bottom: 1px solid var(--line); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0; }
.pagination .page-numbers { padding: 6px 14px; border: 1px solid var(--line); }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; }

.search-form { display: flex; gap: 8px; margin-top: 12px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 8px; border: 1px solid #bbb; }
.search-form .search-submit { border: 0; background: var(--green); color: #fff; padding: 8px 18px; cursor: pointer; }

.comments-area { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--panel); color: var(--ink); border-top: 4px solid var(--red); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 48px; padding-top: 44px; padding-bottom: 40px; }
.footer-about { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 400px; }
.footer-title { position: relative; font-size: 20px; font-weight: 700; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 3px; background: var(--red); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 17px; }
.footer-links a::before { content: "›"; color: var(--red); margin-right: 8px; font-weight: 700; }
.footer-links a:hover { color: var(--red); }
.footer-text { font-size: 16px; line-height: 1.9; }
.footer-text p { margin: 0; }
.footer-text a { color: var(--red); }
.footer-text a:hover { color: var(--red-dark); }
.footer-follow-title { margin: 18px 0 10px; font-weight: 700; font-size: 17px; }
.site-footer .social a { width: 40px; height: 40px; font-size: 18px; }
.footer-widgets { margin-top: 20px; }
.footer-widgets .widget { margin-bottom: 18px; }
.footer-widgets .section-label { font-size: 19px; margin-bottom: 8px; }
.copyright { background: var(--red); color: #fff; font-size: 14px; padding: 12px 0; }
.copyright-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.dev-credit { font-family: system-ui, sans-serif; }
.dev-credit a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dev-credit a:hover { color: #ffe2e2; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.lead-grid { grid-template-columns: 1fr 1fr; }
	.lead-main { grid-column: 1 / -1; }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.section-wrap.has-sidebar, .content-grid { grid-template-columns: 1fr; }
	.nav-menu .menu > li > a { padding: 0 11px; font-size: 17px; }
	.footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 2px solid var(--green); box-shadow: 0 10px 20px rgba(0,0,0,.1); }
	.nav-menu.is-open { display: block; }
	.nav-menu .menu { flex-direction: column; padding: 0 16px; }
	.nav-menu .menu > li > a { min-height: 46px; border-bottom: 1px solid #eee; }
	.nav-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding-left: 14px; }
	.section-body, .style-b .section-body { grid-template-columns: 1fr; gap: 16px; }
	.section-tabs { margin-left: 0; width: 100%; order: 3; font-size: 16px; gap: 4px 16px; padding-bottom: 8px; }
	.card-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.copyright-inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.topbar { justify-content: center; }
	.today { width: 100%; justify-content: center; font-size: 14px; }
	.topbar-actions { justify-content: center; width: 100%; }
	.topbar .social a { width: 30px; height: 30px; font-size: 14px; }
	.footer-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 28px; }
	.brandbar { flex-direction: column; align-items: stretch; }
	.brand { text-align: center; }
	.header-search { width: 100%; }
	.site-logo img { height: auto; max-height: 72px; }
	.ticker { height: 40px; }
	.ticker-label { font-size: 17px; padding: 0 26px 0 12px; }
	.lead-grid { grid-template-columns: 1fr; }
	.card-lead .card-title, .lead-main .card-lead .card-title { font-size: 21px; }
	.card-grid, .card-grid-3 { grid-template-columns: 1fr 1fr; gap: 14px; }
	.card-stack .card-title { font-size: 16px; }
	.card-row-excerpt { grid-template-columns: 38% 1fr; gap: 12px; }
	.card-row-excerpt .card-title { font-size: 17px; }
	.card-row-excerpt .card-excerpt { display: none; }
	.section-label { font-size: 20px; }
	.entry-title { font-size: 26px; }
	.entry-content { font-size: 18px; }
}
