/*
Theme Name: HelloBarta News
Theme URI: https://hellobarta.com/
Author: HelloBarta
Description: Custom Bengali newspaper-style news portal theme for HelloBarta.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: hellobarta
*/
:root{--hb-red:#d9000d;--hb-navy:#08265b;--hb-ink:#171717;--hb-muted:#666;--hb-line:#ddd;--hb-bg:#fff;--hb-soft:#f4f4f4}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--hb-ink);font-family:"Noto Serif Bengali","Hind Siliguri",Arial,sans-serif;font-size:17px;line-height:1.65}
a{color:inherit;text-decoration:none}a:hover{color:var(--hb-red)}img{max-width:100%;height:auto;vertical-align:middle}.hb-container{width:min(1320px,calc(100% - 36px));margin:auto}
.hb-topbar{background:#f1f2f4;border-bottom:1px solid #e1e1e1;font-size:13px;color:#333}.hb-topinner{min-height:34px;display:flex;justify-content:space-between;align-items:center;gap:12px}.hb-toplinks{display:flex;gap:18px}
.hb-masthead{display:grid;grid-template-columns:minmax(230px,330px) 1fr auto;align-items:center;gap:28px;padding:18px 0}.hb-brand{min-width:0}.custom-logo{max-height:94px;width:auto}.hb-site-title{font-size:42px;font-weight:800;line-height:1.1;color:var(--hb-red);margin:0}.hb-tagline{text-align:center;font-size:21px;color:#444}.hb-social{display:flex;align-items:center;gap:12px}.hb-social a{border:1px solid #aaa;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font:600 14px Arial}
.hb-nav-wrap{border-top:1px solid var(--hb-line);border-bottom:3px solid var(--hb-red);background:#fff}.hb-nav{display:flex;align-items:center;gap:0;min-height:48px;overflow-x:auto;white-space:nowrap}.hb-nav a{padding:8px 13px;font-size:17px;font-weight:600}.hb-nav a:hover,.hb-nav .current-menu-item>a{background:var(--hb-red);color:#fff}.hb-home-icon{background:var(--hb-red);color:#fff!important;font-size:20px!important}
.hb-breaking{display:flex;align-items:center;gap:12px;margin:18px 0 20px;border:1px solid #e2e2e2;background:#fafafa;min-height:42px;overflow:hidden}.hb-breaking-label{background:var(--hb-red);color:#fff;padding:5px 16px;font-weight:700;white-space:nowrap}.hb-breaking-track{display:flex;gap:26px;overflow:hidden;white-space:nowrap;font-size:15px}.hb-breaking-track a:before{content:"●";color:var(--hb-red);font-size:10px;margin-right:9px}
.hb-home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr) minmax(250px,.92fr);gap:18px;align-items:start}.hb-col{min-width:0}.hb-left-list .hb-small-card{padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid var(--hb-line);display:grid;grid-template-columns:1fr 112px;gap:12px}.hb-small-card h3{font-size:19px;line-height:1.4;margin:0 0 7px;font-weight:700}.hb-small-card p,.hb-excerpt{font-size:14px;line-height:1.55;color:#444;margin:0}.hb-small-card img{width:112px;height:78px;object-fit:cover}
.hb-lead{border-bottom:1px solid var(--hb-line);padding-bottom:14px;margin-bottom:14px}.hb-lead img{width:100%;aspect-ratio:16/9;object-fit:cover}.hb-lead h1{font-size:30px;line-height:1.35;margin:9px 0 7px;font-weight:800}.hb-meta{font-size:12px;color:var(--hb-muted);margin:4px 0}.hb-secondary-card{display:grid;grid-template-columns:34% 1fr;gap:13px;border-bottom:1px solid var(--hb-line);padding:0 0 13px;margin-bottom:13px}.hb-secondary-card img{width:100%;height:105px;object-fit:cover}.hb-secondary-card h3{font-size:19px;line-height:1.4;margin:0 0 5px}
.hb-ad{background:#f1f1f1;min-height:160px;display:flex;align-items:center;justify-content:center;text-align:center;margin-bottom:14px;padding:12px;color:#777;border:1px solid #eee}.hb-ad img{max-height:220px;object-fit:contain}.hb-widget-title{background:#333;color:#fff;padding:6px 12px;font-size:18px;font-weight:700;margin:0}.hb-video-placeholder{background:#161616;color:white;min-height:155px;display:grid;place-items:center;text-align:center;padding:16px;margin-bottom:15px}.hb-video-placeholder span{display:block;background:var(--hb-red);border-radius:8px;padding:5px 17px;font:700 16px Arial}
.hb-section{margin:28px 0}.hb-section-title{border-bottom:2px solid var(--hb-red);font-size:22px;font-weight:800;margin:0 0 14px;padding:0 0 7px}.hb-section-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.hb-story-card{border-bottom:1px solid var(--hb-line);padding-bottom:12px}.hb-story-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.hb-story-card h3{font-size:18px;line-height:1.4;margin:7px 0}
.hb-footer{background:#151515;color:#eee;margin-top:40px;padding:28px 0}.hb-footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.hb-footer a{color:#eee}.hb-pagination{margin:22px 0}.hb-pagination .page-numbers{display:inline-block;padding:7px 12px;border:1px solid #ddd;margin-right:4px}.hb-pagination .current{background:var(--hb-red);color:#fff}
.hb-article{max-width:850px;margin:auto}.hb-article h1{font-size:34px;line-height:1.35;margin:8px 0}.hb-article .hb-featured{width:100%;margin:15px 0}.hb-article-content{font-size:19px;line-height:1.9}.hb-article-content p{margin:0 0 1.2em}
@media(max-width:1000px){.hb-home-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}.hb-right-col{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px}.hb-masthead{grid-template-columns:240px 1fr auto}.hb-tagline{display:none}}
@media(max-width:650px){body{font-size:16px}.hb-container{width:min(100% - 22px,600px)}.hb-topinner{justify-content:center}.hb-toplinks{display:none}.hb-masthead{grid-template-columns:1fr auto;gap:10px;padding:12px 0}.hb-site-title{font-size:32px}.custom-logo{max-height:65px;max-width:220px}.hb-social{gap:6px}.hb-social a{width:29px;height:29px}.hb-nav a{padding:8px 11px;font-size:15px}.hb-breaking{margin:12px 0}.hb-home-grid{grid-template-columns:1fr;gap:10px}.hb-middle-col{grid-row:1}.hb-left-col{grid-row:2}.hb-right-col{grid-row:3;display:block}.hb-lead h1{font-size:24px}.hb-small-card h3,.hb-secondary-card h3{font-size:17px}.hb-small-card{grid-template-columns:1fr 100px!important}.hb-small-card img{width:100px;height:72px}.hb-section-grid{grid-template-columns:1fr 1fr;gap:12px}.hb-article h1{font-size:26px}.hb-article-content{font-size:17px}}

/* v1.0.1: gracefully collapse unused news column when there are too few posts */
.hb-home-grid.hb-no-left{grid-template-columns:minmax(0,1.65fr) minmax(250px,.92fr)}
@media(max-width:1000px){.hb-home-grid.hb-no-left{grid-template-columns:minmax(0,1fr)}}

/* v1.0.2: bundled original HelloBarta logo */
.hb-brand .hb-default-logo{display:block;width:min(100%,330px);height:auto;max-height:94px;object-fit:contain;object-position:left center}
@media(max-width:650px){.hb-brand .hb-default-logo{width:min(100%,220px);max-height:65px}}
