:root {
	--np-red: #c0121a;
	--np-red-dark: #970d13;
	--np-black: #1c1c1c;
	--np-navy: #1b1b2f;
	--np-text: #222;
	--np-muted: #6b6b6b;
	--np-border: #e6e6e6;
	--np-bg: #ffffff;
	--np-bg-alt: #f4f4f4;
	--np-font: 'SolaimanLipi', 'Siyam Rupali', Arial, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--np-font); color: var(--np-text); background: var(--np-bg); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }

.npbd-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------------- Header ---------------- */
.npbd-header { border-bottom: 1px solid var(--np-border); background: var(--np-bg); position: relative; }
.npbd-header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 16px; }
.npbd-header-left { display: flex; align-items: center; gap: 10px; }
.npbd-header-center { text-align: center; }
.npbd-header-right { display: flex; justify-content: flex-end; }

.npbd-hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 6px; }
.npbd-hamburger span { width: 22px; height: 2px; background: var(--np-text); display: block; }

.npbd-nav-menu { display: flex; flex-wrap: wrap; gap: 2px; }
.npbd-nav-menu li { position: relative; }
.npbd-nav-menu > li > a {
	display: block; padding: 8px 12px; font-size: 14.5px; font-weight: 600; color: var(--np-text); border-radius: 4px;
}
.npbd-nav-menu > li > a:hover { color: #fff; background: var(--np-red); }
.npbd-caret { font-size: 10px; }
.npbd-submenu { position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--np-navy); box-shadow: 0 8px 20px rgba(0,0,0,.2); display: none; z-index: 40; border-top: 2px solid var(--np-red); }
.npbd-nav-menu li:hover > .npbd-submenu { display: block; }
.npbd-submenu li a { display: block; padding: 10px 16px; color: #eee; font-size: 13.5px; }
.npbd-submenu li a:hover { background: var(--np-red); color: #fff; }

.npbd-logo img { max-height: 60px; margin: 0 auto; }
.npbd-logo-text { font-size: 26px; font-weight: 800; font-family: Georgia, serif; color: var(--np-red); }

.npbd-search-toggle { background: var(--np-bg-alt); border: 1px solid var(--np-border); width: 38px; height: 38px; border-radius: 50%; font-size: 15px; }

.npbd-header-search { display: none; border-top: 1px solid var(--np-border); padding: 12px 0; background: var(--np-bg); }
.npbd-header-search.npbd-search-open { display: block; }
.npbd-search-form { display: flex; border: 1px solid var(--np-border); border-radius: 4px; overflow: hidden; max-width: 480px; }
.npbd-search-input { flex: 1; border: 0; padding: 9px 12px; font-size: 14px; background: var(--np-bg); color: var(--np-text); }
.npbd-search-input:focus { outline: none; }
.npbd-search-btn { border: 0; background: var(--np-red); color: #fff; padding: 9px 16px; }

/* ---------------- Trending tags ---------------- */
.npbd-trending { background: var(--np-bg-alt); border-bottom: 1px solid var(--np-border); }
.npbd-trending-inner { display: flex; align-items: center; gap: 14px; padding: 8px 16px; overflow-x: auto; }
.npbd-trending-label { background: var(--np-red); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.npbd-trending-list { display: flex; gap: 8px; flex-wrap: nowrap; }
.npbd-trending-list li a {
	display: block; white-space: nowrap; background: #fff; border: 1px solid var(--np-border); border-radius: 20px;
	padding: 6px 14px; font-size: 12.5px; font-weight: 600;
}
.npbd-trending-list li a:hover { background: var(--np-red); color: #fff; border-color: var(--np-red); }

/* ---------------- Latest hero (5 across all categories) ---------------- */
.npbd-latest-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin: 26px 0; }
.npbd-hero-thumb { position: relative; display: block; border-radius: 4px; overflow: hidden; }
.npbd-hero-thumb img { width: 100%; height: 420px; object-fit: cover; }
.npbd-hero-caption {
	position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.85));
	color: #fff; padding: 60px 20px 18px; font-size: 19px; font-weight: 700; line-height: 1.4;
}
.npbd-latest-hero-list { display: flex; flex-direction: column; gap: 4px; }
.npbd-latest-hero-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--np-border); align-items: center; }
.npbd-latest-hero-item-thumb { flex-shrink: 0; width: 84px; height: 60px; border-radius: 3px; overflow: hidden; }
.npbd-latest-hero-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.npbd-latest-hero-item-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.npbd-latest-hero-item:hover .npbd-latest-hero-item-title { color: var(--np-red); }

/* ---------------- Category sections ---------------- */
.npbd-cat-section { padding: 30px 0 6px; }
.npbd-section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--np-black); padding-bottom: 8px; margin-bottom: 16px; }
.npbd-section-head h2 { font-size: 24px; font-weight: 800; border-bottom: 3px solid var(--np-red); padding-bottom: 8px; margin-bottom: -10px; display: inline-block; }
.npbd-more { font-size: 24px; color: var(--np-muted); white-space: nowrap; }

.npbd-cat-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 20px; }
.npbd-card-featured-thumb { display: block; border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.npbd-card-featured-thumb img { width: 100%; height: 220px; object-fit: cover; }
.npbd-card-featured-title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.npbd-card-featured-title:hover { color: var(--np-red); }

.npbd-card-small { display: block; margin-bottom: 14px; }
.npbd-card-small-thumb { display: block; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.npbd-card-small-thumb img { width: 100%; height: 110px; object-fit: cover; }
.npbd-card-small-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.npbd-card-small-title:hover { color: var(--np-red); }

/* ---------------- Ad box ---------------- */
.npbd-ad-box { text-align: center; margin: 14px 0 4px; }
.npbd-ad-label { display: block; font-size: 11px; color: var(--np-muted); margin-bottom: 6px; letter-spacing: .5px; }
.npbd-ad-box img { margin: 0 auto; border-radius: 6px; max-height: 220px; width: auto; }

/* ---------------- Video gallery ---------------- */
.npbd-video-gallery { padding: 30px 0 6px; }
.npbd-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.npbd-video-card { position: relative; display: block; border-radius: 4px; overflow: hidden; }
.npbd-video-card img { width: 100%; height: 160px; object-fit: cover; }
.npbd-play-btn {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 46px; height: 46px; border-radius: 50%; background: var(--np-red); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 16px; border: 3px solid #fff;
}
.npbd-video-title { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.65); color: #fff; padding: 8px 10px; font-size: 12.5px; font-weight: 600; }

/* ---------------- Latest/Popular tabs ---------------- */
.npbd-latest-popular { padding: 34px 0 10px; background: var(--np-bg-alt); margin-top: 20px; }
.npbd-tab-nav { display: flex; max-width: 320px; margin: 0 auto 20px; border-radius: 4px; overflow: hidden; }
.npbd-tab-btn { flex: 1; padding: 10px; border: 0; background: #fff; font-weight: 700; font-size: 14.5px; color: var(--np-muted); }
.npbd-tab-btn.active { background: var(--np-red); color: #fff; }
.npbd-tab-panel { display: none; }
.npbd-tab-panel.active { display: block; }
.npbd-tab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.npbd-tab-card-thumb { position: relative; display: block; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.npbd-tab-card-thumb img { width: 100%; height: 100px; object-fit: cover; }
.npbd-tab-num-badge {
	position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--np-red); color: #fff; font-size: 12px; font-weight: 700; display: flex;
	align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.npbd-tab-card-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; }
.npbd-tab-card:hover .npbd-tab-card-title { color: var(--np-red); }

/* ---------------- Footer ---------------- */
.npbd-footer { background: var(--np-bg-alt); border-top: 3px solid var(--np-red); margin-top: 40px; padding: 40px 16px; }
.npbd-footer-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.npbd-footer-logo img { max-height: 60px; margin: 0 auto 14px; }
.npbd-footer-editors p { font-size: 13.5px; font-weight: 700; margin: 4px 0; }
.npbd-footer-address { font-size: 13.5px; color: var(--np-muted); margin: 14px 0; }
.npbd-footer-contact { display: flex; justify-content: center; gap: 20px; margin: 10px 0; font-size: 13.5px; font-weight: 600; }
.npbd-footer-contact a:hover { color: var(--np-red); }
.npbd-footer-social { display: flex; justify-content: center; gap: 10px; margin: 16px 0; }
.npbd-social-icon {
	width: 34px; height: 34px; border-radius: 50%; background: var(--np-black); color: #fff;
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.npbd-social-icon:hover { background: var(--np-red); }
.npbd-footer-copyright { font-size: 12.5px; color: var(--np-muted); margin-top: 16px; border-top: 1px solid var(--np-border); padding-top: 14px; }

/* ---------------- Single post ---------------- */
.npbd-single-layout { display: grid; grid-template-columns: 2.3fr 1fr; gap: 34px; margin: 26px auto; align-items: start; }
.npbd-breadcrumb { font-size: 13px; color: var(--np-muted); margin-bottom: 14px; }
.npbd-breadcrumb a { color: var(--np-red); }
.npbd-single-title { font-size: 26px; font-weight: 800; line-height: 1.45; margin-bottom: 10px; }
.npbd-single-meta { display: flex; gap: 16px; font-size: 13px; color: var(--np-muted); margin-bottom: 16px; }
.npbd-single-thumb { margin-bottom: 20px; border-radius: 4px; overflow: hidden; }
.npbd-single-content { font-size: 16px; line-height: 1.95; }
.npbd-single-content p { margin: 0 0 18px; }
.npbd-single-content img { border-radius: 4px; margin: 16px auto; display: block; }
.npbd-single-tags { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.npbd-tag { background: var(--np-bg-alt); padding: 6px 12px; border-radius: 3px; font-size: 12.5px; }

/* ---------------- Sidebar widgets ---------------- */
.npbd-sidebar { display: flex; flex-direction: column; gap: 26px; }
.npbd-widget { border: 1px solid var(--np-border); border-radius: 4px; padding: 16px; }
.npbd-widget-title { font-size: 16px; font-weight: 800; border-bottom: 2px solid var(--np-red); padding-bottom: 10px; margin-bottom: 12px; }
.npbd-numbered-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--np-border); font-size: 14px; }
.npbd-numbered-list li:last-child { border-bottom: 0; }
.npbd-num { width: 26px; height: 26px; border-radius: 50%; background: var(--np-red); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------------- Archive/category/search/index ---------------- */
.npbd-archive-head { margin: 26px 0 20px; }
.npbd-archive-head h1 { font-size: 24px; font-weight: 800; border-bottom: 3px solid var(--np-red); padding-bottom: 10px; display: inline-block; }
.npbd-archive-desc { font-size: 13px; color: var(--np-muted); margin-top: 8px; }
.npbd-archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.npbd-archive-card { display: flex; gap: 14px; border-bottom: 1px dashed var(--np-border); padding-bottom: 16px; }
.npbd-archive-card-thumb { flex-shrink: 0; width: 160px; height: 110px; border-radius: 4px; overflow: hidden; }
.npbd-archive-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.npbd-archive-card-body h2 { font-size: 15.5px; margin-bottom: 6px; }
.npbd-archive-card-body p { font-size: 13px; color: var(--np-muted); margin: 0 0 6px; }
.npbd-archive-card-date { font-size: 11.5px; color: var(--np-muted); }
.npbd-pagination { margin: 30px 0; display: flex; justify-content: center; gap: 8px; }
.npbd-pagination a, .npbd-pagination span { padding: 8px 14px; border: 1px solid var(--np-border); border-radius: 3px; font-size: 13px; }

.npbd-btn { display: inline-block; background: var(--np-red); color: #fff; padding: 10px 22px; border-radius: 4px; font-weight: 700; margin-top: 14px; }
.npbd-404 { text-align: center; padding: 80px 20px; }
.npbd-404 h1 { font-size: 60px; color: var(--np-red); }

/* ---------------- Comments ---------------- */
.npbd-comments-area { margin-top: 30px; border-top: 2px solid var(--np-border); padding-top: 20px; }
.npbd-comments-title { font-size: 18px; margin-bottom: 16px; }
.npbd-comment-list { padding: 0; }
.npbd-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--np-border); }
.npbd-comment-avatar img { border-radius: 50%; }
.npbd-comment-meta { display: flex; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.npbd-comment-author { font-weight: 700; }
.npbd-comment-date { color: var(--np-muted); }
.npbd-comment-textarea { width: 100%; min-height: 100px; padding: 10px; border: 1px solid var(--np-border); border-radius: 4px; font-family: inherit; }
#commentform input[type="text"], #commentform input[type="email"], #commentform input[type="url"] {
	padding: 9px; border: 1px solid var(--np-border); border-radius: 4px; margin-bottom: 10px; width: 100%; max-width: 320px;
}
#commentform input[type="submit"] { background: var(--np-red); color: #fff; border: 0; padding: 10px 24px; border-radius: 4px; font-weight: 700; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
	.npbd-cat-grid { grid-template-columns: repeat(2, 1fr); }
	.npbd-latest-hero { grid-template-columns: 1fr; }
	.npbd-video-grid { grid-template-columns: repeat(2, 1fr); }
	.npbd-tab-grid { grid-template-columns: repeat(2, 1fr); }
	.npbd-single-layout { grid-template-columns: 1fr; }
	.npbd-archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.npbd-header-row { grid-template-columns: auto 1fr auto; padding: 10px 14px; }
	.npbd-hamburger { display: flex; }
	.npbd-nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--np-navy); flex-direction: column; z-index: 50; padding: 8px 0; }
	.npbd-nav-open .npbd-nav-menu { display: flex; }
	.npbd-nav-menu > li > a { color: #f2f2f2; padding: 12px 18px; }
	.npbd-submenu { position: static; box-shadow: none; }
	.npbd-logo img { max-height: 42px; }
	.npbd-logo-text { font-size: 20px; }
	.npbd-cat-grid { grid-template-columns: repeat(2, 1fr); }
	.npbd-video-grid { grid-template-columns: 1fr; }
	.npbd-tab-grid { grid-template-columns: repeat(2, 1fr); }
	.npbd-hero-thumb img { height: 240px; }
	.npbd-single-title { font-size: 20px; }
}
