:root{
  --black:#090909;
  --black-2:#171717;
  --white:#fff;
  --paper:#fafafa;
  --line:#dedede;
  --muted:#777;
  --red:#d71920;
  --red-dark:#a80e13;
  --green:#087a3c;
  --green-dark:#04572b;
  --soft:#f1f1f1;
  --max:1440px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:#111;
  font-family:"Noto Sans Bengali",Arial,sans-serif;
  line-height:1.55;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
button,input{font:inherit}

.container{width:min(calc(100% - 32px),var(--max));margin:auto}

/* Top utility bar */
.topbar{
  background:#fff;border-bottom:1px solid var(--line);font-size:13px;
}
.topbar-inner{
  min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.top-left,.top-right{display:flex;align-items:center;gap:18px}
.top-right a{font-weight:600}
.socials{display:flex;gap:7px}
.socials a{
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  background:#111;color:#fff;font-size:12px;font-weight:700;
}

/* Masthead */
.masthead{background:#fff}
.masthead-inner{
  min-height:150px;display:grid;grid-template-columns:330px 1fr 250px;
  align-items:center;gap:30px;
}
.logo{width:100%;max-width:325px}
.ad-placeholder{
  height:90px;background:linear-gradient(135deg,#f4f4f4,#e8e8e8);
  border:1px solid #e2e2e2;display:grid;place-items:center;color:#444;
  font-size:20px;font-weight:600;overflow:hidden;
}
/* When a real ad is loaded, remove the placeholder styling */
.ad-placeholder.has-ad{
  background:none;border:none;height:auto;padding:0;
}
.ad-placeholder.has-ad img{
  display:block;max-width:100%;height:auto;
}
.ad-slot{display:block;text-align:center;}
.search-box{display:flex;border:1px solid #d5d5d5;height:42px;background:#fff}
.search-box input{border:0;outline:0;min-width:0;flex:1;padding:0 12px}
.search-box button{border:0;background:#111;color:#fff;width:48px;cursor:pointer}

/* Main nav */
.nav-wrap{background:var(--black);border-bottom:4px solid var(--green)}
.nav{
  display:flex;align-items:center;min-height:48px;overflow-x:auto;white-space:nowrap;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none}
.nav a{
  color:#fff;padding:10px 16px;font-size:15px;font-weight:600;border-right:1px solid #292929;
}
.nav a:hover,.nav a.active{background:var(--red)}
.nav .home{font-size:19px;padding-inline:18px}
.nav .more{margin-left:auto;background:var(--green)}

/* Breaking ticker */
.breaking{
  background:#fff;border-bottom:1px solid var(--line);padding:8px 0;
}
.breaking-inner{display:flex;align-items:center;gap:0}
.breaking-label{
  flex:0 0 auto;background:var(--red);color:#fff;font-weight:800;
  padding:7px 25px 7px 16px;clip-path:polygon(0 0,100% 0,88% 100%,0 100%);
}
.ticker{
  overflow:hidden;white-space:nowrap;flex:1;background:#fff;padding-left:16px;
}
.ticker-track{
  display:inline-flex;gap:50px;animation:ticker 28s linear infinite;
}
.ticker:hover .ticker-track{animation-play-state:paused}
.dot{color:var(--red);font-size:22px;vertical-align:-2px}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.ticker-controls{display:flex;border:1px solid #ddd}
.ticker-controls button{width:35px;height:34px;border:0;background:#fff;cursor:pointer}

/* Ads */
.ad-strip{
  margin:18px 0;height:82px;background:#eee;border:1px solid #ddd;
  display:grid;place-items:center;font-size:17px;color:#555;
}

/* Section headings */
.section-head{
  display:flex;align-items:center;justify-content:space-between;
  border-top:3px solid #111;margin-bottom:12px;
}
.section-head h2{
  font-family:"Noto Serif Bengali",serif;font-size:23px;line-height:1.1;
  padding-top:7px;border-top:3px solid var(--red);margin-top:-3px;
}
.section-head a{font-size:13px;color:#555;font-weight:700}

/* Hero */
.hero-grid{
  display:grid;grid-template-columns:minmax(0,1.8fr) minmax(310px,1fr) 260px;gap:16px;
}
.hero{
  position:relative;min-height:440px;overflow:hidden;background:#111;
}
.hero img{width:100%;height:440px;object-fit:cover}
.hero:after{
  content:"";position:absolute;inset:35% 0 0;
  background:linear-gradient(transparent,rgba(0,0,0,.9));
}
.hero-content{position:absolute;z-index:2;bottom:22px;left:22px;right:22px;color:#fff}
.badge{
  display:inline-block;background:var(--red);color:#fff;padding:3px 9px;
  font-size:13px;font-weight:800;margin-bottom:8px;
}
.hero h1{
  font-family:"Noto Serif Bengali",serif;font-size:31px;line-height:1.3;margin-bottom:7px;
}
.meta{font-size:12px;color:#666;display:flex;gap:14px;flex-wrap:wrap}
.hero .meta{color:#eee}

.side-news{display:flex;flex-direction:column;gap:10px}
.side-card{
  display:grid;grid-template-columns:112px 1fr;gap:10px;padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.side-card img{width:112px;height:78px;object-fit:cover}
.side-card h3{
  font-family:"Noto Serif Bengali",serif;font-size:16px;line-height:1.35;font-weight:700;
}
.category{font-size:11px;color:var(--red);font-weight:800;margin-bottom:2px}
.side-card .meta{margin-top:5px;font-size:10px}

/* Generic ad box */
.ad-box{
  background:#eee;border:1px solid #ddd;display:grid;place-items:center;
  color:#555;font-weight:600;text-align:center;
}
.ad-300x250{height:250px}
.ad-970x90{height:90px}

/* Main content grid */
.content-grid{
  display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;margin-top:26px;
}
.category-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
}
.news-section{
  background:#fff;border:1px solid #ddd;padding:12px;
}
.news-section .section-head{margin-bottom:10px}
.news-main img{width:100%;height:210px;object-fit:cover}
.news-main h3{
  font-family:"Noto Serif Bengali",serif;font-size:22px;line-height:1.35;margin:8px 0 4px;
}
.news-list{margin-top:10px;border-top:1px solid #eee}
.news-list a{
  display:flex;justify-content:space-between;gap:12px;padding:8px 0;
  border-bottom:1px dotted #ccc;font-size:13px;
}
.news-list span:last-child{white-space:nowrap;color:#888;font-size:11px}

/* Popular */
.popular{
  background:#fff;border:1px solid #ddd;padding:12px;
}
.tabs{display:flex;gap:6px;border-bottom:1px solid #ddd;margin-bottom:10px}
.tabs button{
  border:1px solid #ddd;border-bottom:0;background:#fff;padding:7px 10px;cursor:pointer;
  font-size:12px;font-weight:700;
}
.tabs button.active{background:var(--red);color:#fff;border-color:var(--red)}
.rank{
  display:grid;grid-template-columns:38px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #eee;
}
.rank-no{
  width:34px;height:34px;background:var(--green);color:#fff;display:grid;place-items:center;
  font-weight:800;font-size:16px;
}
.rank h4{font-family:"Noto Serif Bengali",serif;font-size:14px;line-height:1.4}
.rank small{color:#888;font-size:10px}

/* Four category row */
.four-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px}
.small-section{background:#fff;border:1px solid #ddd;padding:10px}
.small-section img{height:145px;width:100%;object-fit:cover}
.small-section h3{font-family:"Noto Serif Bengali",serif;font-size:17px;line-height:1.35;margin:7px 0}
.small-section ul{padding-left:18px;font-size:12px;color:#444}
.small-section li{margin:4px 0}

/* Latest */
.latest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
.latest-card{background:#fff;border:1px solid #ddd;display:grid;grid-template-columns:150px 1fr}
.latest-card img{width:150px;height:120px;object-fit:cover}
.latest-card .body{padding:9px}
.latest-card h3{font-family:"Noto Serif Bengali",serif;font-size:16px;line-height:1.4}

/* Footer */
footer{margin-top:34px;background:#fff;border-top:1px solid #ccc}
.footer-top{padding:28px 0}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:35px}
.footer-col h3{
  font-family:"Noto Serif Bengali",serif;font-size:18px;border-bottom:2px solid #111;
  padding-bottom:7px;margin-bottom:9px;
}
.footer-col p,.footer-col li{font-size:12px;color:#555;line-height:1.8}
.footer-col ul{list-style:none}
.footer-socials{display:flex;gap:8px;margin-top:12px}
.footer-socials a{
  width:32px;height:32px;background:#111;color:#fff;border-radius:50%;display:grid;place-items:center;
  font-size:12px;font-weight:700;
}
.advertise-btn{
  display:inline-block;background:var(--red);color:#fff;padding:7px 15px;margin-top:10px;font-weight:700;
}
.footer-bottom{background:#111;color:#fff;padding:10px 0;font-size:11px}
.footer-bottom-inner{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}

/* Floating tools */
.to-top{
  position:fixed;right:18px;bottom:18px;width:42px;height:42px;border:0;
  background:var(--red);color:#fff;border-radius:50%;cursor:pointer;display:none;
  box-shadow:var(--shadow);z-index:50;
}

/* Mobile menu */
.menu-toggle{
  display:none;border:0;background:#111;color:#fff;width:42px;height:42px;cursor:pointer;
}
@media(max-width:1100px){
  .masthead-inner{grid-template-columns:280px 1fr;min-height:130px}
  .search-box{grid-column:1/-1;order:3;margin-bottom:12px}
  .masthead-inner .ad-placeholder{display:none}
  .hero-grid{grid-template-columns:minmax(0,1.6fr) 320px}
  .hero-grid>.ad-box{display:none}
  .four-grid{grid-template-columns:repeat(2,1fr)}
  .latest-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:800px){
  .container{width:min(calc(100% - 20px),var(--max))}
  .topbar{font-size:11px}
  .top-left span:nth-child(n+2),.top-right>a{display:none}
  .topbar-inner{min-height:36px}
  .masthead-inner{display:flex;flex-wrap:wrap;gap:10px;padding:14px 0;justify-content:center}
  .logo{max-width:300px}
  .masthead-inner .search-box{width:100%;order:2;margin:0}
  .nav-wrap{border-bottom-width:3px}
  .nav a{padding:9px 13px;font-size:13px}
  .nav .more{display:none}
  .breaking-label{font-size:12px;padding:6px 18px 6px 10px}
  .ticker-controls{display:none}
  .hero-grid{grid-template-columns:1fr}
  .hero{min-height:350px}
  .hero img{height:350px}
  .hero h1{font-size:25px}
  .side-news{display:grid;grid-template-columns:repeat(2,1fr)}
  .content-grid{grid-template-columns:1fr}
  .category-grid{grid-template-columns:1fr}
  .four-grid{grid-template-columns:repeat(2,1fr)}
  .latest-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:repeat(2,1fr);gap:20px}
}
@media(max-width:520px){
  .top-left{font-size:10px}
  .socials a{width:24px;height:24px;font-size:10px}
  .logo{max-width:280px}
  .ad-strip{height:60px;font-size:13px}
  .hero{min-height:300px}
  .hero img{height:300px}
  .hero-content{left:14px;right:14px;bottom:14px}
  .hero h1{font-size:21px}
  .side-news{grid-template-columns:1fr}
  .side-card img{width:100px;height:70px}
  .side-card{grid-template-columns:100px 1fr}
  .four-grid{grid-template-columns:1fr}
  .small-section img{height:180px}
  .latest-card{grid-template-columns:115px 1fr}
  .latest-card img{width:115px;height:105px}
  .latest-card h3{font-size:14px}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom-inner{justify-content:center;text-align:center}
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ticker-track{animation:none}
}
/* DB menu dropdowns */
.nav .has-dropdown{position:relative}
.nav .has-dropdown > a::after{content:" \25BE";font-size:9px}
.nav .submenu{position:absolute;top:100%;left:0;min-width:200px;background:var(--black);display:none;z-index:100;box-shadow:0 8px 16px rgba(0,0,0,.35);white-space:normal}
.nav .has-dropdown:hover .submenu,.nav .has-dropdown:focus-within .submenu{display:block}
.nav .submenu a{display:block;padding:10px 16px;border-right:0;border-bottom:1px solid #292929;font-weight:500}
.nav.nav-dropdowns{overflow:visible}

/* Masthead ad banner */
.masthead-inner .ad-placeholder .ad-slot{margin:0}
.masthead-inner .ad-placeholder .ad-slot img{max-width:100%;max-height:90px;width:auto;height:auto;display:block;margin:0 auto}
