/*
Theme Name: BanglaNews Pro
Theme URI: https://example.com/
Author: Custom News Theme
Description: A professional, responsive Bangla news portal theme inspired by modern Bangladesh news layouts. Includes featured news, category blocks, breaking ticker, single-post layout, sidebar, widgets and customizer options.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: banglanews-pro
License: GPLv2 or later
*/

:root{
  --bn-red:#e61e25;
  --bn-dark:#171717;
  --bn-text:#222;
  --bn-muted:#777;
  --bn-border:#e7e7e7;
  --bn-bg:#fff;
  --bn-soft:#f7f7f7;
  --bn-container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bn-bg);color:var(--bn-text);font-family:"Noto Sans Bengali","Hind Siliguri",Arial,sans-serif;font-size:16px;line-height:1.75}
a{color:inherit;text-decoration:none}a:hover{color:var(--bn-red)}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--bn-container),calc(100% - 30px));margin-inline:auto}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}

.topbar{border-bottom:1px solid var(--bn-border);font-size:13px;background:#fff}
.topbar-inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.topbar-right a{font-weight:600}
.lang-switch{font-weight:700;color:var(--bn-red)}

.site-header{background:#fff}
.brand-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;padding:18px 0}
.brand-left,.brand-right{display:flex;align-items:center;gap:10px}
.brand-right{justify-content:flex-end}
.brand-logo{display:inline-flex;align-items:center;justify-content:center;min-width:230px}
.custom-logo{max-height:74px;width:auto}
.brand-wordmark{font-size:31px;line-height:1;font-weight:900;letter-spacing:-1.5px;color:var(--bn-dark)}
.brand-wordmark span{color:var(--bn-red)}
.brand-tagline{display:block;text-align:center;font-size:12px;color:#777;margin-top:6px}
.header-icon{width:38px;height:38px;border:1px solid var(--bn-border);border-radius:50%;display:grid;place-items:center;background:#fff;font-size:17px;cursor:pointer}

.main-nav{border-top:1px solid var(--bn-border);border-bottom:1px solid #dcdcdc;background:#fff;position:sticky;top:0;z-index:50}
.nav-inner{display:flex;align-items:center;gap:12px;min-height:47px}
.menu-toggle{display:none;border:0;background:transparent;font-size:23px;cursor:pointer}
.main-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:0;overflow-x:auto;scrollbar-width:none;width:100%}
.main-menu::-webkit-scrollbar{display:none}
.main-menu li{flex:0 0 auto}
.main-menu a{display:block;padding:9px 12px;font-size:15px;font-weight:700;white-space:nowrap}
.main-menu .current-menu-item>a,.main-menu a:hover{background:var(--bn-red);color:#fff}

.trendbar{background:#fafafa;border-bottom:1px solid var(--bn-border)}
.trend-inner{display:flex;align-items:center;gap:12px;min-height:42px;overflow:hidden}
.trend-label{font-weight:800;color:var(--bn-red);white-space:nowrap}
.trend-links{display:flex;gap:7px;overflow:auto;scrollbar-width:none}
.trend-links::-webkit-scrollbar{display:none}
.trend-links a{white-space:nowrap;font-size:14px;padding:2px 7px}

.breaking{border-bottom:1px solid var(--bn-border);background:#fff}
.breaking-inner{display:flex;align-items:center;min-height:42px;gap:10px}
.breaking-label{flex:0 0 auto;background:var(--bn-dark);color:#fff;padding:5px 10px;font-size:13px;font-weight:800}
.breaking-text{overflow:hidden;white-space:nowrap}
.breaking-text a{font-size:14px;font-weight:700}

.ad-wrap{margin:18px 0;text-align:center;min-height:30px}
.ad-box{min-height:30px;background:linear-gradient(90deg,#fafafa,#fff,#fafafa);border:1px dashed #e5e5e5;color:#aaa;font-size:12px;display:flex;align-items:center;justify-content:center}

.home-hero{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(280px,1fr);gap:22px;margin-top:20px}
.hero-main{border-bottom:2px solid var(--bn-red);padding-bottom:12px}
.hero-main .thumb{aspect-ratio:16/9;overflow:hidden;background:#eee}
.hero-main .thumb img{width:100%;height:100%;object-fit:cover}
.hero-main h1{font-size:30px;line-height:1.35;margin:11px 0 0;font-weight:850}
.hero-main .excerpt{font-size:14px;color:#666;margin:7px 0 0}
.hero-side{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.news-card{min-width:0}
.news-card .thumb{aspect-ratio:16/9;background:#eee;overflow:hidden}
.news-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.news-card:hover .thumb img{transform:scale(1.04)}
.news-card h3{font-size:18px;line-height:1.45;margin:8px 0 0;font-weight:800}
.news-card .meta{font-size:12px;color:#888;margin-top:3px}

.section{margin-top:28px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:2px solid var(--bn-dark);margin-bottom:15px}
.section-title{position:relative;margin:0;padding:0 0 7px;font-size:22px;font-weight:900}
.section-title:after{content:"";position:absolute;left:0;bottom:-2px;height:2px;width:70px;background:var(--bn-red)}
.section-more{font-size:13px;font-weight:800;color:var(--bn-red)}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}

.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:start}
.sidebar{position:sticky;top:70px}
.widget{border:1px solid var(--bn-border);padding:15px;background:#fff;margin-bottom:18px}
.widget-title{margin:0 0 12px;padding-bottom:8px;border-bottom:2px solid var(--bn-dark);font-size:19px;font-weight:900;position:relative}
.widget-title:after{content:"";position:absolute;bottom:-2px;left:0;width:55px;height:2px;background:var(--bn-red)}
.widget ul{margin:0;padding:0;list-style:none}
.widget li+li{border-top:1px solid var(--bn-border);margin-top:10px;padding-top:10px}
.widget li a{font-size:15px;font-weight:700;line-height:1.55}

.latest-list{display:grid;gap:14px}
.latest-item{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;border-bottom:1px solid var(--bn-border);padding-bottom:14px}
.latest-item:last-child{border-bottom:0}
.latest-item .thumb{aspect-ratio:16/10;background:#eee;overflow:hidden}
.latest-item .thumb img{width:100%;height:100%;object-fit:cover}
.latest-item h3{font-size:17px;line-height:1.5;margin:0;font-weight:800}
.latest-item .meta{font-size:12px;color:#8a8a8a;margin-top:3px}

.archive-title{margin:20px 0;border-left:5px solid var(--bn-red);padding-left:12px;font-size:27px;font-weight:900}

.single-post .entry-header{margin-bottom:15px}
.single-post .cat{font-size:13px;color:var(--bn-red);font-weight:900}
.single-post .entry-title{font-size:39px;line-height:1.35;margin:4px 0 7px;font-weight:900}
.single-post .post-meta{display:flex;gap:15px;flex-wrap:wrap;color:#777;font-size:13px}
.single-post .featured-image{margin:18px 0 10px}
.single-post .featured-image img{width:100%;max-height:650px;object-fit:cover}
.single-post .caption{font-size:12px;color:#888;margin-top:5px}
.entry-content{font-size:18px;line-height:2;max-width:820px}
.entry-content p{margin:0 0 17px}
.entry-content h2,.entry-content h3{line-height:1.45;margin:28px 0 10px}
.entry-content blockquote{border-left:4px solid var(--bn-red);margin:20px 0;padding:12px 18px;background:#fafafa}
.entry-content ul,.entry-content ol{padding-left:25px}
.entry-content img{margin:18px auto}

.share-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0 20px;padding:12px 0;border-top:1px solid var(--bn-border);border-bottom:1px solid var(--bn-border)}
.share-btn{border:1px solid var(--bn-border);padding:6px 10px;font-size:13px;font-weight:800;background:#fff;cursor:pointer}
.share-btn:hover{border-color:var(--bn-red);color:var(--bn-red)}
.tags{display:flex;gap:7px;flex-wrap:wrap;margin:24px 0}
.tag{background:#f4f4f4;padding:4px 8px;font-size:12px}

.related{margin-top:30px}
.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}

.pagination{display:flex;gap:7px;justify-content:center;margin:28px 0}
.pagination .page-numbers{border:1px solid var(--bn-border);padding:6px 10px;font-size:13px;font-weight:800}
.pagination .current{background:var(--bn-red);border-color:var(--bn-red);color:#fff}

.site-footer{margin-top:45px;background:#1b1b1b;color:#fff}
.footer-main{padding:32px 0}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:25px}
.footer-title{font-size:18px;font-weight:900;margin:0 0 10px}
.footer-text{color:#c8c8c8;font-size:14px}
.footer-menu{list-style:none;margin:0;padding:0}
.footer-menu li+li{margin-top:6px}
.footer-menu a{color:#d4d4d4;font-size:14px}
.footer-bottom{border-top:1px solid #333;padding:13px 0;font-size:12px;color:#bdbdbd}
.footer-bottom-inner{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}

#scroll-top{position:fixed;right:18px;bottom:18px;width:42px;height:42px;border:0;border-radius:50%;background:var(--bn-red);color:#fff;cursor:pointer;display:none;z-index:100}

@media (max-width: 980px){
  .brand-row{grid-template-columns:1fr auto}
  .brand-left{display:none}
  .brand-right{justify-content:flex-end}
  .home-hero{grid-template-columns:1fr}
  .content-layout{grid-template-columns:1fr}
  .sidebar{position:static}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 700px){
  .container{width:min(var(--bn-container),calc(100% - 20px))}
  .topbar-inner{justify-content:center}
  .topbar-left{display:none}
  .brand-row{padding:12px 0;display:flex;justify-content:space-between}
  .brand-wordmark{font-size:25px}
  .brand-logo{min-width:auto}
  .brand-right{margin-left:auto}
  .main-nav{position:relative}
  .nav-inner{min-height:48px}
  .menu-toggle{display:block}
  .main-menu{display:none;position:absolute;top:48px;left:0;right:0;background:#fff;border:1px solid var(--bn-border);flex-direction:column;align-items:stretch;max-height:70vh;box-shadow:0 7px 24px rgba(0,0,0,.08)}
  .main-menu.is-open{display:flex}
  .main-menu a{padding:10px 14px;border-bottom:1px solid var(--bn-border)}
  .trend-inner{min-height:39px}
  .breaking-inner{min-height:40px}
  .hero-main h1{font-size:25px}
  .hero-side,.news-grid,.related-grid{grid-template-columns:1fr 1fr}
  .section-title{font-size:20px}
  .single-post .entry-title{font-size:30px}
  .entry-content{font-size:17px}
  .latest-item{grid-template-columns:95px 1fr}
}
@media (max-width: 480px){
  .hero-side,.news-grid,.related-grid,.footer-grid{grid-template-columns:1fr}
  .brand-wordmark{font-size:23px}
  .single-post .entry-title{font-size:26px}
  .latest-item{grid-template-columns:90px 1fr}
  .latest-item h3{font-size:15px}
}
.footer-bottom .footer-menu{display:flex;gap:14px;list-style:none;margin:0;padding:0}
.footer-bottom .footer-menu li{margin:0!important}
