/* =========================================================
   খবরঘর — Design tokens (সংবাদপত্র-অনুপ্রাণিত সম্পাদকীয় ডিজাইন)
   ========================================================= */
:root{
  --ink:        #1A1712;
  --maroon:     #A61C2E;
  --maroon-deep:#7D1522;
  --gold:       #B9903C;
  --paper:      #FAF7F0;
  --paper-dim:  #F1ECDF;
  --line:       #E3DDCC;
  --slate:      #3A3530;
  --slate-soft: #756C5E;
  --white:      #FFFFFF;

  --cat-maroon:#A61C2E; --cat-indigo:#3B4A8B; --cat-teal:#0E7C86; --cat-gold:#B9903C;
  --cat-green:#2E7D4F; --cat-plum:#8A3B6B; --cat-slate:#54504A; --cat-terracotta:#C1602E;
  --cat-blue:#2B5AA0; --cat-brown:#6B4A2E;

  --shadow-sm: 0 3px 12px -6px rgba(26,23,18,.15);
  --shadow:    0 14px 34px -14px rgba(26,23,18,.25);
}

*,*::before,*::after{ box-sizing:border-box; }
body{
  margin:0; background:var(--paper); color:var(--slate);
  font-family:'Hind Siliguri','Noto Sans Bengali',sans-serif;
  font-size:16px; line-height:1.7;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }

h1,h2,h3,h4{
  font-family:'Tiro Bangla', serif;
  color:var(--ink); margin:0 0 .45em; line-height:1.35; font-weight:700;
}
h1{ font-size:clamp(1.7rem,3.6vw,2.5rem); }
h2{ font-size:1.4rem; }
h3{ font-size:1.05rem; }
p{ margin:0 0 1em; }

.mono{ font-family:'JetBrains Mono',monospace; }

.container{ width:100%; max-width:1180px; margin:0 auto; padding:0 20px; }

/* ---------- হেডার টপ বার (তারিখ) ---------- */
.top-bar{
  background:var(--ink); color:rgba(255,255,255,.72);
  font-size:.8rem; padding:8px 0;
}
.top-bar .container{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px; }
.top-bar .date-line{ font-family:'JetBrains Mono',monospace; letter-spacing:.01em; }
.top-bar .social a{ margin-left:14px; color:rgba(255,255,255,.6); }
.top-bar .social a:hover{ color:var(--gold); }

/* ---------- মাস্টহেড ---------- */
.masthead{ background:var(--paper); padding:22px 0 14px; border-bottom:4px double var(--ink); }
.masthead .container{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.brand{ display:flex; flex-direction:column; }
.brand .name{
  font-family:'Tiro Bangla',serif; font-weight:700;
  font-size:clamp(2rem,5vw,3rem); color:var(--ink); letter-spacing:.01em;
}
.brand .tagline{ font-size:.82rem; color:var(--slate-soft); margin-top:2px; letter-spacing:.03em; }
.masthead-search{ display:flex; align-items:center; gap:8px; }
.masthead-search input{
  border:1.5px solid var(--line); background:var(--white);
  padding:9px 14px; border-radius:4px; font-family:inherit; font-size:.9rem;
  width:210px;
}
.masthead-search button{
  border:none; background:var(--maroon); color:#fff; padding:9px 16px;
  border-radius:4px; font-weight:700; cursor:pointer;
}
.masthead-search button:hover{ background:var(--maroon-deep); }

/* ---------- প্রধান নেভিগেশন ---------- */
.main-nav{ background:var(--ink); position:sticky; top:0; z-index:50; }
.nav-list{ display:flex; align-items:center; flex-wrap:wrap; }
.nav-list li a{
  display:block; padding:13px 16px; color:rgba(255,255,255,.85);
  font-weight:600; font-size:.92rem; white-space:nowrap;
}
.nav-list li a:hover{ background:rgba(255,255,255,.08); color:#fff; }
.nav-list li a.active{ background:var(--maroon); color:#fff; }
.nav-toggle{ display:none; background:none; border:none; color:#fff; padding:12px 16px; cursor:pointer; font-size:1.2rem; }
@media (max-width:920px){
  .nav-list{ display:none; flex-direction:column; align-items:stretch; }
  .nav-list.open{ display:flex; }
  .nav-toggle{ display:block; }
}

/* ---------- ব্রেকিং নিউজ টিকার ---------- */
.ticker-wrap{
  background:var(--maroon); color:#fff;
  display:flex; align-items:stretch; overflow:hidden;
}
.ticker-label{
  flex-shrink:0; background:var(--maroon-deep);
  display:flex; align-items:center; gap:6px;
  padding:10px 18px; font-weight:800; font-size:.85rem; letter-spacing:.04em;
}
.ticker-label .dot{
  width:7px; height:7px; border-radius:50%; background:#fff;
  animation:blink 1.3s ease-in-out infinite;
}
@keyframes blink{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
.ticker-viewport{ overflow:hidden; flex-grow:1; position:relative; }
.ticker-track{
  display:flex; align-items:center; gap:56px;
  white-space:nowrap; padding:10px 0;
  animation:ticker-scroll 32s linear infinite;
  width:max-content;
}
.ticker-track a{ color:#fff; font-size:.9rem; font-weight:500; }
.ticker-track a:hover{ text-decoration:underline; }
@keyframes ticker-scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion:reduce){ .ticker-track{ animation:none; } .ticker-label .dot{ animation:none; } }

/* ---------- ক্যাটাগরি ব্যাজ ---------- */
.cat-chip{
  display:inline-block; font-size:.72rem; font-weight:800;
  padding:3px 10px; border-radius:3px; letter-spacing:.02em;
  color:#fff; text-transform:uppercase;
}
.cat-chip.maroon{ background:var(--cat-maroon); }
.cat-chip.indigo{ background:var(--cat-indigo); }
.cat-chip.teal{ background:var(--cat-teal); }
.cat-chip.gold{ background:var(--cat-gold); }
.cat-chip.green{ background:var(--cat-green); }
.cat-chip.plum{ background:var(--cat-plum); }
.cat-chip.slate{ background:var(--cat-slate); }
.cat-chip.terracotta{ background:var(--cat-terracotta); }
.cat-chip.blue{ background:var(--cat-blue); }
.cat-chip.brown{ background:var(--cat-brown); }

/* ---------- কভার প্লেসহোল্ডার (ছবির বদলে) ---------- */
.cover{
  position:relative; aspect-ratio:16/10; border-radius:4px; overflow:hidden;
  display:flex; align-items:flex-end; padding:14px;
  background:linear-gradient(155deg, var(--c1,#A61C2E), var(--c2,#7D1522));
}
.cover::before{
  content:""; position:absolute; inset:0;
  background-image:repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 22px);
}
.cover span{ position:relative; z-index:1; color:#fff; font-weight:700; font-size:.85rem; text-shadow:0 1px 4px rgba(0,0,0,.3); }
.cover.sm{ aspect-ratio:4/3; padding:10px; }
.cover.sm span{ font-size:.72rem; }

.accent-maroon{ --c1:#C22740; --c2:#7D1522; }
.accent-indigo{ --c1:#4F63B8; --c2:#2E3A6B; }
.accent-teal{ --c1:#149AA6; --c2:#0A5A62; }
.accent-gold{ --c1:#D6AB56; --c2:#8C6B26; }
.accent-green{ --c1:#3E9E67; --c2:#215B37; }
.accent-plum{ --c1:#B0518A; --c2:#63274C; }
.accent-slate{ --c1:#726B60; --c2:#3A3530; }
.accent-terracotta{ --c1:#DE7B45; --c2:#8C4319; }
.accent-blue{ --c1:#3E76C9; --c2:#1E3E70; }
.accent-brown{ --c1:#8C6440; --c2:#4A331E; }

/* ---------- হোমপেজ লেআউট ---------- */
.page-wrap{ padding:28px 0 60px; }
.layout{ display:grid; grid-template-columns:2.1fr 1fr; gap:34px; align-items:start; }
@media (max-width:960px){ .layout{ grid-template-columns:1fr; } }

.section-title{
  display:flex; align-items:center; gap:10px;
  font-family:'Tiro Bangla',serif; font-weight:700; font-size:1.15rem; color:var(--ink);
  padding-bottom:10px; margin-bottom:18px; border-bottom:2px solid var(--ink);
}
.section-title .bar{ width:5px; height:18px; background:var(--maroon); border-radius:2px; }

/* --- হিরো (প্রধান খবর) --- */
.hero-story{ margin-bottom:36px; }
.hero-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:26px; }
@media (max-width:700px){ .hero-grid{ grid-template-columns:1fr; } }
.hero-grid .cover{ aspect-ratio:16/11; }
.hero-story h1{ margin:12px 0 8px; }
.hero-story h1 a:hover{ color:var(--maroon); }
.hero-story .excerpt{ color:var(--slate-soft); font-size:.98rem; }
.meta-line{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-size:.78rem; color:var(--slate-soft); margin-top:10px;
}
.meta-line .mono{ font-size:.76rem; }

.side-stories{ display:flex; flex-direction:column; gap:16px; }
.side-story{ display:flex; gap:12px; align-items:flex-start; padding-bottom:16px; border-bottom:1px solid var(--line); }
.side-story:last-child{ border-bottom:none; padding-bottom:0; }
.side-story .cover{ width:96px; flex-shrink:0; aspect-ratio:4/3; }
.side-story h3{ font-size:.95rem; margin-bottom:5px; }
.side-story h3 a:hover{ color:var(--maroon); }

/* --- ক্যাটাগরি গ্রিড --- */
.cat-block{ margin-bottom:38px; }
.cat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:22px; }
.story-card h3{ font-size:1rem; margin:10px 0 6px; }
.story-card h3 a:hover{ color:var(--maroon); }
.story-card .excerpt{ font-size:.86rem; color:var(--slate-soft); margin-bottom:0; }

/* --- আর্টিকেল লিস্ট রো (ক্যাটাগরি পেজ) --- */
.story-row{
  display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--line);
}
.story-row .cover{ width:150px; flex-shrink:0; aspect-ratio:4/3; }
.story-row h3{ font-size:1.05rem; margin-bottom:6px; }
.story-row h3 a:hover{ color:var(--maroon); }
@media (max-width:560px){ .story-row .cover{ width:100px; } .story-row h3{ font-size:.95rem; } }

/* ---------- সাইডবার ---------- */
.widget{ background:var(--white); border:1px solid var(--line); border-radius:6px; padding:20px; margin-bottom:24px; }
.widget h3.wtitle{
  font-family:'Tiro Bangla',serif; font-size:1.02rem; margin-bottom:16px;
  padding-bottom:10px; border-bottom:2px solid var(--ink);
}
.most-read-item{ display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; }
.most-read-item:last-child{ margin-bottom:0; }
.most-read-item .rank{
  font-family:'Tiro Bangla',serif; font-weight:700; font-size:1.4rem; color:var(--line);
  width:28px; flex-shrink:0; line-height:1;
}
.most-read-item h4{ font-size:.9rem; font-weight:600; color:var(--ink); margin:0; line-height:1.5; }
.most-read-item h4 a:hover{ color:var(--maroon); }

.widget-ad{
  background:var(--paper-dim); border:1px dashed var(--line); border-radius:6px;
  padding:34px 16px; text-align:center; color:var(--slate-soft); font-size:.82rem;
}

/* ---------- বিজ্ঞাপন স্লট ---------- */
.ad-slot{
  background:var(--paper-dim); border:1.5px dashed var(--line); border-radius:6px;
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:4px;
  color:var(--slate-soft); text-align:center; margin:0 auto;
}
.ad-slot .ad-tag{
  font-family:'JetBrains Mono',monospace; font-size:.68rem; letter-spacing:.08em;
  text-transform:uppercase; color:var(--slate-soft); opacity:.7;
}
.ad-slot .ad-size{ font-size:.78rem; font-weight:600; }
.ad-leaderboard{ width:100%; max-width:970px; min-height:90px; margin:18px auto; }
.ad-incontent{ width:100%; min-height:250px; margin:26px 0; }
.ad-rectangle{ width:100%; aspect-ratio:300/250; margin-bottom:24px; }
.ad-square{ width:100%; aspect-ratio:1/1; margin-bottom:24px; }
.ad-mid-list{ width:100%; min-height:120px; margin:14px 0; }
.ad-dual-row{ display:flex; gap:14px; margin:18px 0; align-items:stretch; }
.ad-dual-row .ad-leaderboard{ margin:0; flex-grow:1; max-width:none; min-height:80px; }
.ad-dual-row .ad-small{ flex-shrink:0; width:220px; min-height:80px; }
@media (max-width:700px){ .ad-dual-row{ flex-direction:column; } .ad-dual-row .ad-small{ width:100%; } }

/* ---------- ট্রেন্ডিং টপিক বার ---------- */
.trending-bar{ background:var(--paper-dim); border-bottom:1px solid var(--line); }
.trending-bar .container{ display:flex; align-items:center; gap:12px; padding:9px 20px; overflow-x:auto; white-space:nowrap; }
.trending-bar .tlabel{ font-weight:800; font-size:.82rem; color:var(--maroon); flex-shrink:0; }
.trending-bar a{ font-size:.82rem; color:var(--slate); flex-shrink:0; padding:3px 0; }
.trending-bar a:hover{ color:var(--maroon); text-decoration:underline; }
.trending-bar .sep{ color:var(--line); flex-shrink:0; }

/* ---------- ঘন হেডলাইন-অনলি লিস্ট ---------- */
.headline-list{ columns:2; column-gap:28px; }
.headline-list .hl-item{ break-inside:avoid; display:flex; gap:8px; padding:9px 0; border-bottom:1px solid var(--line); }
.headline-list .hl-item .dot{ color:var(--maroon); flex-shrink:0; font-weight:700; }
.headline-list .hl-item a{ font-size:.92rem; font-weight:500; color:var(--ink); line-height:1.5; }
.headline-list .hl-item a:hover{ color:var(--maroon); }
@media (max-width:700px){ .headline-list{ columns:1; } }

/* ---------- থাম্বনেইল গ্রিড (ঘন) ---------- */
.thumb-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.thumb-grid .cover{ aspect-ratio:4/3; margin-bottom:8px; }
.thumb-grid h4{ font-size:.86rem; font-weight:600; color:var(--ink); line-height:1.5; margin:0; }
.thumb-grid h4 a:hover{ color:var(--maroon); }
@media (max-width:860px){ .thumb-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- জেলা/বিভাগ ফাইন্ডার উইজেট ---------- */
.district-widget{ background:var(--ink); border-radius:8px; padding:26px 28px; margin-bottom:38px; }
.district-widget h3{ color:#fff; margin-bottom:14px; }
.district-pills{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.district-pills a{
  font-size:.84rem; padding:6px 14px; border-radius:999px; background:rgba(255,255,255,.1);
  color:rgba(255,255,255,.85); font-weight:500;
}
.district-pills a:hover{ background:var(--maroon); color:#fff; }
.district-form{ display:flex; gap:10px; flex-wrap:wrap; }
.district-form select, .district-form input{
  padding:9px 12px; border-radius:4px; border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.08); color:#fff; font-family:inherit; font-size:.85rem;
}
.district-form button{ background:var(--maroon); color:#fff; border:none; padding:9px 20px; border-radius:4px; font-weight:700; cursor:pointer; }

/* ---------- ছবিঘর স্ট্রিপ ---------- */
.gallery-strip{ display:flex; gap:16px; overflow-x:auto; padding-bottom:8px; }
.gallery-strip .g-item{ flex-shrink:0; width:220px; }
.gallery-strip .cover{ aspect-ratio:4/3; margin-bottom:8px; }
.gallery-strip h4{ font-size:.86rem; margin:0; }

/* ---------- ভিডিও প্লেসহোল্ডার ---------- */
.video-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.video-thumb{
  position:relative; aspect-ratio:16/9; border-radius:6px; overflow:hidden;
  background:linear-gradient(155deg,#2A241C,#1A1712); display:flex; align-items:center; justify-content:center;
}
.video-thumb .play{
  width:48px; height:48px; border-radius:50%; background:rgba(166,28,46,.9);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.1rem;
}
.video-grid h4{ font-size:.86rem; margin:8px 0 0; }
@media (max-width:860px){ .video-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- অ্যাপ ব্যাজ (ফুটার) ---------- */
.app-badges{ display:flex; gap:10px; margin-top:14px; }
.app-badge{
  display:flex; align-items:center; gap:6px; padding:8px 14px; border-radius:6px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); font-size:.78rem; color:rgba(255,255,255,.75);
}

/* ---------- সাইডবার — নিউজলেটার / ট্যাগ / ফলো ---------- */
.newsletter-widget{ background:var(--ink); color:rgba(255,255,255,.85); }
.newsletter-widget .wtitle{ color:#fff; border-bottom-color:rgba(255,255,255,.25); }
.newsletter-widget p{ font-size:.86rem; color:rgba(255,255,255,.6); margin-bottom:14px; }
.newsletter-widget input{
  width:100%; padding:10px 12px; border-radius:4px; border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.08); color:#fff; font-family:inherit; margin-bottom:10px;
}
.newsletter-widget input::placeholder{ color:rgba(255,255,255,.4); }

.tag-cloud{ display:flex; flex-wrap:wrap; gap:8px; }
.tag-pill{
  font-size:.8rem; padding:6px 13px; border-radius:999px; background:var(--paper-dim);
  color:var(--slate); border:1px solid var(--line); font-weight:500;
}
.tag-pill:hover{ border-color:var(--maroon); color:var(--maroon); }

.follow-list{ display:flex; flex-direction:column; gap:10px; }
.follow-item{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-radius:6px; background:var(--paper-dim);
  font-size:.86rem; font-weight:600;
}
.follow-item span.count{ font-weight:400; color:var(--slate-soft); font-size:.78rem; }

/* ---------- ব্রেডক্রাম্ব / পেজ হিরো ---------- */
.page-hero{ background:var(--ink); color:rgba(255,255,255,.85); padding:38px 0; }
.page-hero h1{ color:#fff; margin-bottom:6px; }
.page-hero p{ color:rgba(255,255,255,.6); margin:0; }

/* ---------- সিঙ্গেল আর্টিকেল ---------- */
.article-header{ max-width:800px; margin:0 auto 24px; }
.article-header .cat-chip{ margin-bottom:12px; }
.article-header h1{ margin-bottom:14px; }
.article-body{ max-width:800px; margin:0 auto; font-size:1.05rem; line-height:1.9; color:var(--slate); }
.article-body p{ margin-bottom:1.3em; }
.article-cover{ max-width:800px; margin:0 auto 26px; }
.article-cover .cover{ aspect-ratio:16/9; border-radius:8px; }
.article-share{ max-width:800px; margin:30px auto 0; padding-top:20px; border-top:1px solid var(--line); display:flex; gap:10px; align-items:center; }
.share-btn{
  padding:8px 16px; border:1.5px solid var(--line); border-radius:999px; font-size:.85rem; font-weight:600;
}
.share-btn:hover{ border-color:var(--maroon); color:var(--maroon); }

/* ---------- ফুটার ---------- */
.site-footer{ background:var(--ink); color:rgba(255,255,255,.65); padding:48px 0 22px; margin-top:20px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:30px; padding-bottom:30px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-grid h4{ color:#fff; font-size:.98rem; margin-bottom:14px; font-family:'Tiro Bangla',serif; }
.footer-grid li{ margin-bottom:9px; font-size:.88rem; }
.footer-grid a:hover{ color:var(--gold); }
.footer-brand .name{ font-family:'Tiro Bangla',serif; font-size:1.5rem; color:#fff; font-weight:700; }
.footer-brand p{ color:rgba(255,255,255,.5); font-size:.85rem; margin-top:8px; max-width:280px; }
.footer-legal{ padding-top:18px; font-size:.78rem; color:rgba(255,255,255,.45); display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

/* ---------- পলিসি/স্ট্যাটিক কনটেন্ট ---------- */
.policy-content{ max-width:760px; margin:0 auto; }
.policy-content h2{ margin-top:1.6em; font-size:1.2rem; }
.policy-content h2:first-child{ margin-top:0; }
.policy-content ul{ margin:0 0 1.2em; padding-left:22px; list-style:disc; }
.policy-content li{ margin-bottom:8px; }

/* ---------- বাটন ---------- */
.btn{ display:inline-flex; align-items:center; gap:6px; padding:11px 22px; border-radius:4px; font-weight:700; font-size:.9rem; border:1.5px solid transparent; cursor:pointer; }
.btn-maroon{ background:var(--maroon); color:#fff; }
.btn-maroon:hover{ background:var(--maroon-deep); }
.btn-outline{ background:transparent; border-color:var(--ink); color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:#fff; }
