/*
Theme Name: Bangla News Portal
Theme URI: https://example.com/bangla-news-portal
Author: Custom Build
Description: A fast, responsive, bilingual (Bangla + English) blog and news portal theme with built-in Google AdSense support, SEO schema, cookie notice and all policy pages created automatically.
Version: 1.0.0
Requires at least: 5.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: bnp
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, bengali
*/

:root {
	--bnp-primary: #c1121f;
	--bnp-primary-dark: #9c0e19;
	--bnp-dark: #111827;
	--bnp-text: #1f2937;
	--bnp-muted: #6b7280;
	--bnp-border: #e5e7eb;
	--bnp-bg: #f3f4f6;
	--bnp-card: #fff;
	--bnp-radius: 8px;
	--bnp-font: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--bnp-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--bnp-text);
	background: var(--bnp-bg);
	overflow-wrap: break-word;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--bnp-primary); text-decoration: none; }
a:hover { color: var(--bnp-primary-dark); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; color: var(--bnp-dark); }
ul, ol { padding-left: 1.3em; }
.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; left: 8px; top: 8px; z-index: 9999; clip: auto; width: auto; height: auto; background: #fff; padding: 8px 14px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Topbar */
.topbar { background: var(--bnp-dark); color: #d1d5db; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.lang-switch a { color: #d1d5db; padding: 2px 8px; border-radius: 3px; }
.lang-switch a.active, .lang-switch a:hover { background: var(--bnp-primary); color: #fff; }
.social-links { display: flex; gap: 6px; }
.social-links a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 11px; font-weight: 700; }
.social-links a:hover { background: var(--bnp-primary); color: #fff; }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.header-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand .site-title { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.2; }
.brand .site-title a { color: var(--bnp-primary); }
.brand .site-desc { margin: 2px 0 0; color: var(--bnp-muted); font-size: 14px; }
.brand img { max-height: 70px; width: auto; }
.header-ad { flex: 1; max-width: 728px; }
.header-ad .bnp-ad { margin: 0; }

.main-nav { background: var(--bnp-primary); position: relative; }
.nav-in { display: flex; align-items: center; justify-content: space-between; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; color: #fff; padding: 12px 14px; font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a { background: var(--bnp-primary-dark); color: #fff; }
.main-nav .sub-menu, .main-nav .children {
	display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff;
	box-shadow: 0 6px 18px rgba(0,0,0,.15); z-index: 50; flex-direction: column; border-radius: 0 0 var(--bnp-radius) var(--bnp-radius);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu,
.main-nav li:hover > .children, .main-nav li:focus-within > .children { display: flex; }
.main-nav .sub-menu a, .main-nav .children a { color: var(--bnp-text); border-bottom: 1px solid var(--bnp-border); }
.main-nav .sub-menu a:hover, .main-nav .children a:hover { background: var(--bnp-bg); color: var(--bnp-primary); }
.nav-toggle, .search-toggle { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 12px 14px; }
.nav-toggle { display: none; }
.nav-search { background: var(--bnp-primary-dark); padding: 10px 0; }

/* Search form */
.search-form { display: flex; gap: 6px; }
.search-field { flex: 1; padding: 10px 12px; border: 1px solid var(--bnp-border); border-radius: var(--bnp-radius); font: inherit; min-width: 0; }
.search-submit, .btn, .comment-form .submit {
	background: var(--bnp-primary); color: #fff; border: 0; padding: 10px 18px; border-radius: var(--bnp-radius);
	font: inherit; font-weight: 600; cursor: pointer; display: inline-block;
}
.search-submit:hover, .btn:hover, .comment-form .submit:hover { background: var(--bnp-primary-dark); color: #fff; }

/* Ticker */
.ticker { background: #fff; border-bottom: 1px solid var(--bnp-border); }
.ticker-in { display: flex; align-items: center; gap: 12px; height: 42px; overflow: hidden; }
.ticker-label { background: var(--bnp-primary); color: #fff; padding: 2px 12px; border-radius: 4px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.ticker-track { overflow: hidden; flex: 1; white-space: nowrap; }
.ticker-move { display: inline-block; padding-left: 100%; animation: bnp-ticker 45s linear infinite; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: var(--bnp-text); margin-right: 40px; font-size: 14px; }
.ticker-move a::before { content: "\25CF"; color: var(--bnp-primary); margin-right: 8px; font-size: 9px; vertical-align: middle; }
@keyframes bnp-ticker { to { transform: translateX(-100%); } }

/* Layout */
.site-content { padding: 22px 0 10px; min-height: 50vh; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.primary { min-width: 0; }
.block { margin-bottom: 34px; }

/* Hero */
.hero { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; margin-bottom: 28px; }
.ov { position: relative; overflow: hidden; border-radius: var(--bnp-radius); background: #1f2937; }
.ov.h0 { grid-row: 1 / 3; }
.ov-link { position: absolute; inset: 0; display: block; color: #fff; }
.ov img, .ov .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ov:hover img { transform: scale(1.05); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); display: block; }
.cap-cat { display: inline-block; background: var(--bnp-primary); font-size: 12px; padding: 0 8px; border-radius: 3px; margin-bottom: 6px; }
.cap-cat:empty { display: none; }
.cap-title { display: block; font-weight: 600; line-height: 1.4; font-size: 15px; }
.ov.h0 .cap-title { font-size: 1.6rem; }

/* Section titles */
.sec-title { display: flex; justify-content: space-between; align-items: center; font-size: 1.25rem; margin: 0 0 16px; border-bottom: 2px solid var(--bnp-border); }
.sec-title span { display: inline-block; background: var(--bnp-primary); color: #fff; padding: 4px 16px; margin-bottom: -2px; border-radius: 4px 4px 0 0; }
.sec-title .more { font-size: 14px; font-weight: 500; }

/* Cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--bnp-card); border: 1px solid var(--bnp-border); border-radius: var(--bnp-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.card .thumb { display: block; aspect-ratio: 16 / 10; background: #e5e7eb; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #d1d5db, #9ca3af); }
.card-body { padding: 14px 16px 16px; }
.card-title { font-size: 1.1rem; margin: 6px 0 6px; }
.card-title a { color: var(--bnp-dark); }
.card-title a:hover { color: var(--bnp-primary); }
.excerpt { color: var(--bnp-muted); font-size: 14.5px; margin: 8px 0 0; }
.meta { font-size: 13px; color: var(--bnp-muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cat-label { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; background: var(--bnp-primary); padding: 0 8px; border-radius: 3px; }
.cat-label:hover { color: #fff; background: var(--bnp-primary-dark); }
.lang-badge { font-size: 11px; padding: 0 6px; border-radius: 3px; border: 1px solid var(--bnp-border); color: var(--bnp-muted); line-height: 1.6; }

.cat-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* Mini lists */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bnp-border); }
.mini:last-child { border-bottom: 0; }
.mini-thumb { flex: 0 0 90px; height: 64px; border-radius: 6px; overflow: hidden; background: #e5e7eb; display: block; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-title { display: block; color: var(--bnp-dark); font-weight: 600; font-size: 15px; line-height: 1.4; }
.mini-title:hover { color: var(--bnp-primary); }

/* Sidebar & widgets */
.widget { background: var(--bnp-card); border: 1px solid var(--bnp-border); border-radius: var(--bnp-radius); padding: 16px; margin-bottom: 22px; }
.widget-title { font-size: 1.1rem; margin: 0 0 12px; border-bottom: 2px solid var(--bnp-border); }
.widget-title span { display: inline-block; border-bottom: 2px solid var(--bnp-primary); padding-bottom: 4px; margin-bottom: -2px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--bnp-border); }
.widget li:last-child { border-bottom: 0; }
.widget .mini-list { margin: 0; }
.widget .mini { border-bottom: 1px solid var(--bnp-border); padding: 10px 0; }

/* Ads */
.bnp-ad { margin: 20px auto; text-align: center; overflow: hidden; max-width: 100%; }
.bnp-ad-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; margin-bottom: 2px; }
.bnp-ad-placeholder { border: 2px dashed #cbd5e1; background: #f8fafc; color: #64748b; font-size: 13px; padding: 22px 10px; }

/* Breadcrumbs & archive */
.breadcrumbs { font-size: 13.5px; color: var(--bnp-muted); margin-bottom: 14px; }
.breadcrumbs .sep { margin: 0 6px; }
.archive-header { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--bnp-border); }
.archive-title { margin: 0; font-size: 1.6rem; }
.archive-title span { color: var(--bnp-primary); }
.archive-desc { color: var(--bnp-muted); margin-top: 6px; }

/* Single post */
.single-post { background: var(--bnp-card); border: 1px solid var(--bnp-border); border-radius: var(--bnp-radius); padding: 24px; margin-bottom: 24px; }
.entry-title { font-size: 2rem; margin: 10px 0 12px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13.5px; color: var(--bnp-muted); padding-bottom: 14px; border-bottom: 1px solid var(--bnp-border); }
.entry-meta .by { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta .by img { border-radius: 50%; }
.entry-thumb { margin: 18px 0 0; }
.entry-thumb img { width: 100%; border-radius: var(--bnp-radius); display: block; }
.entry-thumb figcaption { font-size: 13px; color: var(--bnp-muted); text-align: center; margin-top: 6px; }
.entry-content { font-size: 1.1rem; line-height: 1.95; margin-top: 18px; }
.entry-content h2 { font-size: 1.55rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content img { border-radius: 6px; }
.entry-content blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 4px solid var(--bnp-primary); background: var(--bnp-bg); border-radius: 0 6px 6px 0; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin-bottom: 1.2em; }
.entry-content th, .entry-content td { border: 1px solid var(--bnp-border); padding: 8px 10px; text-align: left; }
.entry-content th { background: var(--bnp-bg); }
.entry-content pre { background: #111827; color: #f3f4f6; padding: 14px; border-radius: 6px; overflow-x: auto; }
.entry-footer { margin-top: 20px; }
.tags { margin-bottom: 14px; font-size: 14px; }
.tags a { display: inline-block; background: var(--bnp-bg); color: var(--bnp-text); padding: 1px 10px; border-radius: 20px; margin: 0 4px 4px 0; }
.tags a:hover { background: var(--bnp-primary); color: #fff; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.share-label { font-weight: 600; }
.share-btn { border: 0; cursor: pointer; font: inherit; font-size: 13px; color: #fff !important; padding: 3px 12px; border-radius: 4px; background: #475569; }
.share-facebook { background: #1877f2; } .share-x { background: #111; } .share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; } .share-linkedin { background: #0a66c2; }
.author-box { display: flex; gap: 14px; align-items: center; background: var(--bnp-bg); padding: 14px; border-radius: var(--bnp-radius); }
.author-box img { border-radius: 50%; }
.author-name { margin: 0; font-weight: 700; }
.author-bio { margin: 2px 0 0; font-size: 14px; color: var(--bnp-muted); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.post-navigation .nav-links a { display: block; background: var(--bnp-card); border: 1px solid var(--bnp-border); border-radius: var(--bnp-radius); padding: 12px 14px; color: var(--bnp-dark); }
.post-navigation .nav-next { text-align: right; }
.nav-sub { display: block; font-size: 12px; color: var(--bnp-primary); }
.nav-title { font-weight: 600; font-size: 14.5px; }
.page-links { margin: 1em 0; }

/* Pagination */
.pagination { margin: 26px 0; }
.pagination ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; padding: 0; margin: 0; justify-content: center; }
.pagination a, .pagination span { display: block; min-width: 38px; text-align: center; padding: 6px 12px; background: var(--bnp-card); border: 1px solid var(--bnp-border); border-radius: 6px; color: var(--bnp-text); }
.pagination .current, .pagination a:hover { background: var(--bnp-primary); color: #fff; border-color: var(--bnp-primary); }

/* Comments */
.comments-area { background: var(--bnp-card); border: 1px solid var(--bnp-border); border-radius: var(--bnp-radius); padding: 22px; margin-bottom: 24px; }
.comments-title, .comment-reply-title { font-size: 1.25rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 22px; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--bnp-border); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: 12.5px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea,
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: var(--bnp-radius); font: inherit; }
.comment-policy { font-size: 13px; }

/* Forms/notices */
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: var(--bnp-radius); margin: 14px 0; font-weight: 500; }
.notice-ok { background: #dcfce7; color: #166534; }
.notice-err { background: #fee2e2; color: #991b1b; }
.not-found { text-align: center; padding: 60px 0; }
.not-found h1 { font-size: 6rem; color: var(--bnp-primary); margin: 0; }
.not-found .search-form { max-width: 460px; margin: 18px auto; }

/* Footer */
.site-footer { background: var(--bnp-dark); color: #cbd5e1; margin-top: 30px; }
.site-footer a { color: #e5e7eb; }
.site-footer a:hover { color: #fff; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 6px; }
.site-footer .widget { background: transparent; border: 0; padding: 0; color: #cbd5e1; }
.site-footer .widget-title, .site-footer .widget-title span { color: #fff; border-color: #374151; }
.site-footer .widget li { border-color: #374151; }
.site-footer .mini-title { color: #fff; }
.footer-bottom { text-align: center; padding-top: 26px; padding-bottom: 26px; border-top: 1px solid #1f2937; margin-top: 20px; }
.footer-menu { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14px; }
.footer-bottom .social-links { justify-content: center; margin-bottom: 12px; }
.copyright { margin: 0; font-size: 13.5px; color: #9ca3af; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bnp-primary); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 90; }

/* Cookie notice */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #111827; color: #e5e7eb; z-index: 9999; padding: 12px 16px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 14px; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar button { background: var(--bnp-primary); color: #fff; border: 0; padding: 6px 18px; border-radius: 6px; cursor: pointer; font: inherit; }

/* WP core classes */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--bnp-muted); }
.sticky .card-title::before { content: "\2605 "; color: var(--bnp-primary); }
.bypostauthor { }

/* Responsive */
@media (max-width: 980px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.header-ad { display: none; }
	.header-in { justify-content: center; text-align: center; }
	.footer-widgets { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav ul { display: none; width: 100%; flex-direction: column; order: 3; }
	.main-nav ul.open { display: flex; }
	.nav-in { flex-wrap: wrap; }
	.main-nav .sub-menu, .main-nav .children { position: static; display: flex; box-shadow: none; background: rgba(0,0,0,.12); border-radius: 0; }
	.main-nav .sub-menu a, .main-nav .children a { color: #fff; border-color: rgba(255,255,255,.15); padding-left: 28px; }
	.hero { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 150px 150px; }
	.ov.h0 { grid-column: 1 / 3; grid-row: 1; }
}
@media (max-width: 640px) {
	.g2, .g3, .cat-wrap { grid-template-columns: 1fr; }
	.entry-title { font-size: 1.55rem; }
	.single-post { padding: 16px; }
	.topbar-in { justify-content: center; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.ov.h0 .cap-title { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
	.ticker-move { animation: none; padding-left: 0; }
	html { scroll-behavior: auto; }
}
