/* ============================================
   দৈনিক সংবাদ — মূল স্টাইলশিট
   প্যালেট: কাগজ #FAF9F6 · কালি #1C1917 · লাল #B3121F
   ============================================ */

:root {
  --paper: #f4f6fa;
  --ink: #15181d;
  --ink-soft: #5b6470;
  --red: #e30613;
  --red-dark: #b3121f;
  --line: #e8ecf1;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(20,30,50,.06), 0 1px 2px rgba(20,30,50,.04);
  --shadow-md: 0 4px 14px rgba(20,30,50,.08);
  --serif: 'Noto Serif Bengali', serif;
  --sans: 'Noto Sans Bengali', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

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

/* ---------- মাস্টহেড ---------- */
.masthead {
  background: var(--white);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
}
.masthead-date { font-size: 13px; color: var(--ink-soft); }
.brand { display: flex; align-items: center; gap: 10px; justify-self: center; }
.brand-mark {
  width: 14px; height: 14px;
  background: var(--red);
  transform: rotate(45deg);
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: .5px;
}
.search-form { justify-self: end; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.search-form input {
  border: 0; background: transparent; padding: 8px 14px;
  font-family: var(--sans); font-size: 14px; width: 150px;
}
.search-form button {
  border: 0; background: var(--red); color: #fff;
  padding: 0 14px; cursor: pointer; font-size: 14px;
}
.search-form button:hover { background: var(--red-dark); }

/* ---------- নেভিগেশন ---------- */
.main-nav { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; }
.nav-list a {
  display: block; padding: 11px 16px;
  color: #e7e5e4; font-size: 15px; font-weight: 500;
}
.nav-list a:hover, .nav-list a.active { background: var(--red); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; padding: 10px 4px; cursor: pointer; }

/* ---------- ব্রেকিং টিকার ---------- */
.ticker { background: var(--white); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 0; }
.ticker-label {
  background: var(--red); color: #fff;
  font-weight: 700; font-size: 13px;
  padding: 7px 14px; flex: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding-right: 22px;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items { display: inline-flex; gap: 0; white-space: nowrap; animation: ticker 35s linear infinite; padding-left: 24px; align-items: center; }
.ticker-items a { font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; padding: 0 28px; position: relative; line-height: 1; }
.ticker-items a:hover { color: var(--red); }
.ticker-items a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.ticker-items a:first-child { padding-left: 6px; }
.ticker-items a:first-child::before { content: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-items { animation: none; flex-wrap: wrap; white-space: normal; gap: 6px 0; }
  .ticker-items a { padding: 3px 18px; }
}

main { padding: 28px 16px 48px; }

/* ---------- হিরো ---------- */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-bottom: 36px; }
.hero-lead { background: var(--white); border: 1px solid var(--line); }
.hero-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-body { padding: 18px 20px 22px; }
.hero-body h1 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.45; margin: 10px 0 8px;
}
.hero-body p { color: var(--ink-soft); font-size: 15px; }
.hero-lead:hover h1 { color: var(--red); }
.hero-side { display: grid; gap: 14px; align-content: start; }
.hero-mini a { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 10px; }
.hero-mini img { width: 110px; height: 75px; object-fit: cover; }
.hero-mini h3 { font-family: var(--serif); font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.hero-mini a:hover h3 { color: var(--red); }

time { font-size: 12.5px; color: var(--ink-soft); display: block; margin-top: 6px; }

/* ---------- সেকশন টাইটেল ---------- */
.section-title {
  font-family: var(--serif); font-size: 21px; font-weight: 800;
  border-bottom: 2px solid var(--ink);
  margin: 8px 0 18px; padding-bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.section-title span {
  background: var(--red); color: #fff;
  padding: 4px 16px; display: inline-block;
  font-size: 17px; margin-bottom: -2px;
}
.see-all { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--red); padding-bottom: 4px; }

/* ---------- কার্ড গ্রিড ---------- */
.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.card-grid.wide { grid-template-columns: repeat(4, 1fr); }
.news-card { background: var(--white); border: 1px solid var(--line); transition: box-shadow .15s; }
.news-card:hover { box-shadow: 0 4px 16px rgba(28,25,23,.08); }
.card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.5; margin-top: 6px; }
.card-body p { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.news-card:hover h3 { color: var(--red); }

.cat-chip {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 600; padding: 2px 10px;
}
.cat-chip.small { font-size: 11px; padding: 1px 8px; }
a.cat-chip:hover { background: var(--red-dark); }

/* ক্যাটাগরি সারি */
.cat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 36px; }
.row-card a { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 10px; }
.row-card img { width: 130px; height: 85px; object-fit: cover; }
.row-card h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.5; }
.row-card a:hover h3 { color: var(--red); }

/* ---------- সাইডবার ---------- */
.side-box { background: var(--white); border: 1px solid var(--line); padding: 16px; position: sticky; top: 60px; }
.popular-list { list-style: none; }
.popular-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.popular-list li:last-child { border-bottom: 0; }
.pop-rank {
  font-family: var(--serif); font-size: 24px; font-weight: 800;
  color: var(--red); line-height: 1; flex: none; min-width: 26px;
}
.popular-list a { font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.5; display: block; }
.popular-list a:hover { color: var(--red); }
.popular-list small { color: var(--ink-soft); font-size: 12px; }

/* ---------- পেজ হেড / পেজিনেশন ---------- */
.page-head { margin-bottom: 24px; border-right: 6px solid var(--red); background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 20px; }
.page-head h1 { font-family: var(--serif); font-size: 26px; font-weight: 800; }
.page-head p { color: var(--ink-soft); font-size: 14px; }

.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 20px; }
.pagination a {
  min-width: 38px; text-align: center; padding: 7px 10px;
  background: var(--white); border: 1px solid var(--line); font-weight: 600;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination a.current { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- সিঙ্গেল নিউজ ---------- */
.single { max-width: 800px; margin: 0 auto; }
.single-head h1 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(24px, 4vw, 34px); line-height: 1.5; margin: 14px 0 10px;
}
.single-meta { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 20px; }
.single-meta time { display: inline; }
.single-img { margin-bottom: 24px; border: 1px solid var(--line); background: var(--white); }
.single-img img { width: 100%; }
.single-content p { font-size: 17.5px; line-height: 2; margin-bottom: 20px; }
.related { max-width: 800px; margin: 36px auto 0; }

/* ---------- ফুটার ---------- */
.site-footer { background: var(--ink); color: #d6d3d1; margin-top: 30px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1.4fr;
  gap: 30px; padding: 36px 16px;
}
.site-footer .brand-name { color: #fff; font-size: 24px; }
.site-footer p { font-size: 13.5px; }
.footer-links h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-links ul { list-style: none; }
.footer-links a { font-size: 13.5px; line-height: 2; }
.footer-links a:hover, .footer-meta a:hover { color: var(--red); }
.footer-meta { text-align: left; }
.footer-meta a { text-decoration: underline; }

.empty-note { color: var(--ink-soft); padding: 20px 0; grid-column: 1 / -1; }
.not-found { text-align: center; padding: 60px 0; }
.not-found h1 { font-family: var(--serif); font-size: 80px; color: var(--red); }
.btn { display: inline-block; background: var(--red); color: #fff; padding: 9px 22px; font-weight: 600; margin-top: 14px; }
.btn:hover { background: var(--red-dark); }

/* ---------- রেসপনসিভ ---------- */
@media (max-width: 960px) {
  .layout-2col { grid-template-columns: 1fr; }
  .card-grid, .card-grid.wide { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .masthead-inner { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: 14px 16px; }
  .masthead-date { order: 2; }
  .search-form { justify-self: center; width: 100%; max-width: 320px; }
  .search-form input { flex: 1; }
  .nav-toggle { display: block; }
  .nav-list { display: none; }
  .card-grid, .card-grid.wide, .cat-row, .hero-side { grid-template-columns: 1fr; }
  .hero-mini a { grid-template-columns: 100px 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================
   ভার্সন ২ — নতুন কম্পোনেন্ট
   ============================================ */

/* টপবার */
.topbar { background: var(--ink); color: #d6d3d1; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; }
.topbar-social { display: flex; gap: 8px; align-items: center; }
.topbar-social a {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 50%; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.topbar-social a:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
/* প্রতিটি প্ল্যাটফর্মের নিজস্ব ব্র্যান্ড রং */
.topbar-social .soc-fb { color: #1877f2; }
.topbar-social .soc-x  { color: #000000; }
.topbar-social .soc-yt { color: #ff0000; }
.topbar-social .soc-in { color: #0a66c2; }
.topbar-social .soc-ig { color: #e4405f; }

/* মাস্টহেড v2 */
.masthead-inner { grid-template-columns: auto 1fr; }
.brand-logo { max-height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-tag { font-size: 12px; color: var(--ink-soft); font-family: var(--sans); font-weight: 500; }
.masthead-right { justify-self: end; display: flex; align-items: center; }
.masthead .masthead-date, .masthead .search-form { display: none; }

/* নেভিগেশনে সার্চ + ড্রপডাউন */
.nav-flex { display: flex; align-items: center; }
.nav-flex .nav-list { flex: 1; }
.main-nav .search-form { border: 0; border-radius: 0; background: #34302c; margin-right: 0; }
.main-nav .search-form input { color: #fff; width: 130px; }
.main-nav .search-form input::placeholder { color: #a8a29e; }
.nav-list li { position: relative; }
.sub-menu {
  display: none; position: absolute; top: 100%; right: 0; min-width: 180px;
  background: var(--ink); list-style: none; z-index: 60;
  border-top: 2px solid var(--red); box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.nav-list li.has-sub:hover > .sub-menu, .nav-list li.has-sub:focus-within > .sub-menu { display: block; }
.sub-menu a { padding: 9px 16px; font-size: 14px; }

/* বিজ্ঞাপন স্লট */
.ad-slot { text-align: center; overflow: hidden; }
.ad-slot img { display: inline-block; max-width: 100%; height: auto; }
.ad-home { margin: 0 0 28px; }
.ad-side { margin-bottom: 18px; }
.ad-middle { margin: 18px 0; }
.ad-footer { margin: 0 auto 20px; padding: 0 16px; }
.ad-header_right img { max-height: 90px; }

/* ক্যাটাগরি ব্লক (লিড + লিস্ট) */
.cat-block { margin-bottom: 34px; }
.cat-block-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.cat-lead a { display: block; background: var(--white); border: 1px solid var(--line); padding-bottom: 14px; height: 100%; }
.cat-lead-img { position: relative; }
.cat-lead-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cat-lead h3 { font-family: var(--serif); font-size: 19px; font-weight: 800; line-height: 1.5; padding: 12px 14px 4px; }
.cat-lead p { font-size: 13.5px; color: var(--ink-soft); padding: 0 14px; }
.cat-lead time { padding: 0 14px; }
.cat-lead a:hover h3 { color: var(--red); }
.cat-list { display: grid; gap: 10px; align-content: start; }
.list-item a { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 8px; }
.list-item img { width: 100px; height: 66px; object-fit: cover; }
.list-item h4 { font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.5; }
.list-item a:hover h4 { color: var(--red); }

/* সাব-ক্যাটাগরি চিপ */
.sub-chips { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.sub-chip { background: var(--white); border: 1px solid var(--line); padding: 3px 14px; font-size: 13px; font-weight: 600; }
.sub-chip:hover { border-color: var(--red); color: var(--red); }

/* সিঙ্গেল পেজ v2 */
.single-layout .single { max-width: none; margin: 0; }
.single-subtitle { font-size: 17px; color: var(--ink-soft); margin: -2px 0 10px; font-weight: 500; }
.meta-author { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.meta-author:hover { color: var(--red); }
.meta-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: inline-block; }
.video-wrap { position: relative; padding-top: 56.25%; margin-bottom: 24px; background: #000; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; }
.single-content img { max-width: 100%; height: auto; }
.single-content h2, .single-content h3 { font-family: var(--serif); margin: 18px 0 10px; line-height: 1.5; }
.single-content ul, .single-content ol { margin: 0 18px 20px 0; padding-right: 20px; }
.single-content blockquote { border-right: 4px solid var(--red); background: var(--white); padding: 14px 18px; margin-bottom: 20px; font-style: italic; }

/* গ্যালারি */
.gallery { margin: 10px 0 26px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); }
.gallery-grid a:hover img { opacity: .85; }

/* রিপোর্টার বক্স ও প্রোফাইল */
.reporter-box {
  display: flex; gap: 16px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-right: 4px solid var(--red);
  padding: 16px; margin: 8px 0 28px;
}
.reporter-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.reporter-name { font-family: var(--serif); font-weight: 800; font-size: 17px; display: block; }
.reporter-name:hover { color: var(--red); }
.reporter-box small { color: var(--ink-soft); display: block; margin-bottom: 6px; }
.reporter-social { display: flex; gap: 6px; }
.reporter-social a {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%; font-size: 12px; font-weight: 700;
}
.reporter-social a:hover { background: var(--red); color: #fff; border-color: var(--red); }

.reporter-profile {
  display: flex; gap: 24px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red);
  padding: 24px; margin-bottom: 28px;
}
.reporter-profile > img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.reporter-profile h1 { font-family: var(--serif); font-size: 26px; font-weight: 800; }
.rp-designation { color: var(--red); font-weight: 600; font-size: 14.5px; }
.rp-bio { color: var(--ink-soft); font-size: 14.5px; margin: 6px 0; max-width: 640px; }
.rp-count { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ফুটার v2 */
.footer-inner { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-contact h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-contact p { font-size: 13.5px; line-height: 1.9; margin: 0; }
.footer-logo { max-height: 52px; width: auto; margin-bottom: 8px; }
.footer-editor { margin-top: 8px; color: #a8a29e; }
.footer-contact h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-contact p { font-size: 13.5px; line-height: 1.9; }
.footer-social { margin-top: 10px; }
.footer-bottom { border-top: 1px solid #34302c; padding: 12px 0; font-size: 13px; color: #a8a29e; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-credit strong { color: var(--red); }
.footer-credit a { color: inherit; text-decoration: none; }
.footer-credit a:hover strong { text-decoration: underline; }
@media (max-width: 600px) { .footer-bottom .container { justify-content: center; text-align: center; } }

.static-page { max-width: 800px; margin: 0 auto; }

@media (max-width: 960px) {
  .cat-block-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; gap: 4px; padding: 6px 16px; }
  .masthead-inner { grid-template-columns: 1fr; justify-items: center; }
  .masthead-right { justify-self: center; }
  .nav-flex { flex-wrap: wrap; }
  .main-nav .search-form { width: 100%; margin: 0 0 8px; }
  .main-nav .search-form input { flex: 1; width: auto; }
  .sub-menu { position: static; box-shadow: none; }
  .nav-list.open li.has-sub .sub-menu { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .reporter-profile { flex-direction: column; text-align: center; }
  .reporter-profile .reporter-social { justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== সিঙ্গেল পেজ মেটা-রো + শেয়ার বাটন ===== */
.meta-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 18px;
}
.meta-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); }
.meta-left .meta-author { gap: 8px; }
.meta-left .meta-author span { display: flex; flex-direction: column; line-height: 1.3; }
.meta-left .meta-author strong { font-size: 14px; }
.meta-left .meta-author small { font-size: 11.5px; color: var(--ink-soft); font-weight: 400; }
.meta-avatar { width: 34px; height: 34px; }
.meta-sep { color: var(--line); }
.share-btns { display: flex; gap: 6px; }
.share {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; border: 0; cursor: pointer;
}
.share.fb { background: #1877f2; }
.share.tw { background: #111; }
.share.wa { background: #25d366; }
.share.cp { background: var(--ink-soft); font-size: 13px; }
.share:hover { opacity: .85; color: #fff; }
@media (max-width: 640px) {
  .meta-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   ডেমো-স্টাইল কার্ড: ছবির কোণায় ক্যাটাগরি লেবেল
   ============================================ */
.card-img, .mini-img, .hero-img { position: relative; }
.card-label {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: #fff;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  padding: 3px 12px; line-height: 1.7; z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.card-label.lead-label { top: 14px; right: 14px; font-size: 13px; padding: 4px 16px; }
.mini-img .card-label { top: 6px; right: 6px; font-size: 10px; padding: 2px 9px; }

/* কার্ড হোভারে ছবি জুম (ডেমোর মতো) */
.news-card .card-img, .cat-lead-img { overflow: hidden; }
.news-card .card-img img, .cat-lead-img img { transition: transform .35s ease; }
.news-card:hover .card-img img, .cat-lead a:hover .cat-lead-img img { transform: scale(1.05); }
.news-card { border-radius: 4px; overflow: hidden; }

/* ক্যাটাগরি সেকশন হেডিং — ডেমো স্টাইল (বাম পাশে রঙিন বার) */
.section-title.cat-title { border-bottom: 2px solid var(--red); }
.cat-title span {
  background: var(--red); color: #fff; padding: 7px 20px 6px;
  display: inline-block; font-size: 17px; clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}
.cat-title .see-all { color: var(--ink-soft); }

/* হিরো মিনি কার্ড — থাম্বনেইলে লেবেলসহ */
.hero-mini .mini-img { width: 110px; flex: none; }
.hero-mini a { align-items: stretch; }

/* ============================================
   আপডেট: সাব-চিপ, সাইডবার নিউজ, সাইড ট্যাব, ফুটার
   ============================================ */

/* সাব-ক্যাটাগরি চিপ — সুন্দর সাজানো */
.sub-chips { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sub-chips-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.sub-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 5px 16px; font-size: 13px; font-weight: 600; color: var(--ink); transition: all .15s;
}
.sub-chip:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* সাইডবারে ছবিসহ সংবাদ তালিকা */
.side-news-list { display: grid; gap: 12px; }
.side-news a { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; }
.side-news img { width: 84px; height: 58px; object-fit: cover; border-radius: 4px; }
.side-news h4 { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.5; }
.side-news a:hover h4 { color: var(--red); }
.side-news time { font-size: 11.5px; color: var(--ink-soft); }

/* সাইডবার ট্যাব (সর্বাধিক পঠিত / সর্বশেষ) */
.side-tabs { display: flex; border-bottom: 2px solid var(--red); margin-bottom: 14px; }
.side-tab {
  flex: 1; background: var(--paper); border: 1px solid var(--line); border-bottom: 0;
  padding: 9px 8px; font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  color: var(--ink-soft); cursor: pointer;
}
.side-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

/* রিলেটেড গ্রিড ৪×২ */
.related-grid { grid-template-columns: repeat(4, 1fr); }

/* ফুটার — সম্পাদকীয় টিম + কাস্টম বক্স */
.footer-team { margin-top: 10px; font-size: 13px; line-height: 1.95; }
.footer-team p { margin: 0; }
.footer-team span { color: #a8a29e; }
.footer-custom { font-size: 13.5px; line-height: 1.8; }
.footer-custom img { max-width: 100%; height: auto; }
.footer-custom a { color: #fbbf24; }
.footer-custom p { margin-bottom: 8px; }

@media (max-width: 960px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
  .side-tab { font-size: 12.5px; }
}

/* ============================================
   হোমপেজ — ২ কলাম
   ============================================ */
.home-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.home-main { min-width: 0; }
.home-sidebar { display: grid; gap: 18px; }

/* ১. স্লাইডার + লিড (উচ্চতা কমানো, সমান) */
.top-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 22px; align-items: stretch; }
.slider-col, .lead-col { min-width: 0; }
.news-slider { position: relative; overflow: hidden; background: #000; height: 100%; }
.slider-col { height: 340px; }
.news-slider .slides { width: 100%; height: 100%; position: relative; }
.news-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: block; }
.news-slider .slide.active { opacity: 1; z-index: 1; }
.news-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }
.slide-cap h2 { color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 800; line-height: 1.5; margin-top: 5px; }
.slide-cap .card-label { position: static; display: inline-block; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(0,0,0,.4); color: #fff; border: 0; width: 36px; height: 48px; cursor: pointer; font-size: 16px; }
.slider-nav:hover { background: var(--red); }
.slider-nav.prev { left: 0; } .slider-nav.next { right: 0; }
.slider-dots { position: absolute; bottom: 10px; right: 14px; z-index: 3; display: flex; gap: 6px; }
.slider-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.slider-dots .dot.active { background: var(--red); }

/* লিড — স্লাইডারের সমান উচ্চতা, ২টি ভাগ */
.lead-col { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; height: 340px; }
.lead-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.lead-card a { display: flex; flex-direction: column; height: 100%; }
.lead-img { position: relative; flex: 1; min-height: 0; }
.lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-card h3 { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.45; padding: 7px 10px; flex: none; }
.lead-card a:hover h3 { color: var(--red); }

/* কার্ড লেবেল */
.card-img { position: relative; }
.card-label { position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff;
  font-family: var(--sans); font-size: 11px; font-weight: 700; padding: 3px 11px; line-height: 1.7; z-index: 2; }

/* ২. স্পেশাল ৩×২ (উচ্চতা কম) */
.special-section { margin-bottom: 22px; }
.special-grid { grid-template-columns: repeat(3, 1fr); }
.special-grid .card-img img { aspect-ratio: 16/10; }

/* ৩. ভিডিও */
.video-section { background: #2a2a2a; padding: 16px; margin-bottom: 22px; }
.video-section .sec-head span { color: #fff; }
.video-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.vid-thumb { position: relative; }
.vid-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; background: rgba(220,38,38,.9); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 19px; padding-left: 4px; }
.play-btn.sm { width: 32px; height: 32px; font-size: 12px; }
.video-lead h3 { color: #fff; font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.5; margin-top: 10px; }
.video-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.video-item a { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; }
.video-item .vid-thumb { width: 110px; }
.video-item h4 { color: #e5e5e5; font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1.5; }
.video-item a:hover h4 { color: #fff; }

/* ৪. ক্যাটাগরি বক্স (২ পাশাপাশি) */
.cat-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.cat-box { background: var(--white); border: 1px solid var(--line); }
.cat-box-head { margin: 0; border-bottom: 2px solid var(--red); display: flex; justify-content: space-between; align-items: stretch; }
.cat-box-head a:first-child, .cat-box-head > a { display: inline-block; font-family: var(--serif); font-size: 16px; font-weight: 800; color: #fff; background: var(--red); padding: 8px 20px 7px; }
.cat-box-head .cb-see-all { align-self: center; margin-right: 10px; font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: #fff; background: var(--red); padding: 4px 12px; border-radius: 4px; }
.cat-box-head .cb-see-all:hover { background: #8f1414; color: #fff; }
.cat-box-inner { padding: 12px; }

/* লিড কার্ড সাধারণ */
.cb-lead a { display: block; }
.cb-lead-img { position: relative; }
.cb-lead-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cb-lead h3 { font-family: var(--serif); font-size: 15.5px; font-weight: 800; line-height: 1.5; margin: 9px 0 0; }
.cb-lead a:hover h3 { color: var(--red); }

/* ছোট আইটেম */
.cb-item a { display: grid; grid-template-columns: 72px 1fr; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.cb-item:first-child a { border-top: 0; padding-top: 0; margin-top: 0; }
.cb-item img { width: 72px; height: 50px; object-fit: cover; border-radius: 3px; }
.cb-text h4 { font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1.45; }
.cb-item a:hover h4 { color: var(--red); }

/* === ৫ ভিন্ন লেআউট === */
/* স্টাইল ১: বড় উপরে + নিচে তালিকা */
.cb-layout-1 .cb-list { margin-top: 12px; }
/* স্টাইল ২: বামে বড় + ডানে ৩ ছোট */
.cb-layout-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.cb-layout-2 .cb-right { display: grid; gap: 8px; align-content: start; }
/* স্টাইল ৩: ডানে বড় + বামে ৩ ছোট */
.cb-layout-3 { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; }
.cb-layout-3 .cb-left { display: grid; gap: 8px; align-content: start; }
/* স্টাইল ৪: ২টি বড় কার্ড পাশাপাশি */
.cb-layout-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cb-layout-4 .cb-lead h3 { font-size: 14px; }
/* স্টাইল ৫: বড় উপরে + নিচে ৩ ছবিকার্ড */
.cb-layout-5 .cb-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cb-gcard a { display: block; }
.cb-gimg img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }
.cb-gcard h4 { font-family: var(--serif); font-size: 12px; font-weight: 700; line-height: 1.4; margin-top: 5px; }
.cb-gcard a:hover h4 { color: var(--red); }

/* ৪ ধরনের রঙ */
.cat-box.cstyle-1 .cat-box-head a, .cat-box.cstyle-1 .card-label { background: #b91c1c; }
.cat-box.cstyle-2 .cat-box-head a, .cat-box.cstyle-2 .card-label { background: #1d4ed8; }
.cat-box.cstyle-3 .cat-box-head a, .cat-box.cstyle-3 .card-label { background: #047857; }
.cat-box.cstyle-4 .cat-box-head a, .cat-box.cstyle-4 .card-label { background: #b45309; }
.cat-box.cstyle-5 .cat-box-head a, .cat-box.cstyle-5 .card-label { background: #7c3aed; }

/* সেকশন হেডিং */
.sec-head { border-bottom: 2px solid var(--red); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.sec-head span { background: var(--red); color: #fff; padding: 8px 22px 7px; display: inline-block;
  font-family: var(--serif); font-size: 17px; font-weight: 800; }

/* ৫. বিভাগ */
.division-section { margin-bottom: 22px; }
.division-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.division-btn { background: var(--white); border: 1px solid var(--line); border-right: 4px solid var(--red);
  padding: 15px; text-align: center; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); }
.division-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ৭. ফটো গ্যালারি */
.gallery-section { margin-bottom: 22px; }
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-item { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.photo-item:hover img { transform: scale(1.06); }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-size: 12px; font-weight: 600;
  padding: 16px 10px 7px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ======= সাইডবার ======= */
.home-sidebar .side-box { background: var(--white); border: 1px solid var(--line); padding: 12px; position: static; top: auto; }
.side-box-head { font-family: var(--serif); font-size: 16px; font-weight: 800; color: #fff; background: var(--red);
  margin: -12px -12px 12px; padding: 9px 14px; }
.side-box-head a { color: #fff; }
.side-tabs { display: flex; border-bottom: 2px solid var(--red); margin-bottom: 12px; }
.side-tab { flex: 1; background: var(--paper); border: 1px solid var(--line); border-bottom: 0;
  padding: 9px 8px; font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.side-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.side-news-list { display: grid; gap: 11px; }
.side-news a { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; }
.side-news img { width: 80px; height: 56px; object-fit: cover; border-radius: 4px; display: block; }
.side-news h4 { font-family: var(--serif); font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.side-news a:hover h4 { color: var(--red); }
.side-news time, .side-news small { font-size: 11px; color: var(--ink-soft); display: block; }
.side-rank-img { position: relative; width: 80px; flex: none; }
.side-rank { position: absolute; top: 0; left: 0; background: var(--red); color: #fff;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border-radius: 0 0 4px 0; }
.fb-embed { text-align: center; overflow: hidden; }
.fb-embed iframe, .fb-embed img { max-width: 100%; }
.side-html-box { font-size: 13.5px; line-height: 1.7; }
.side-html-box img { max-width: 100%; height: auto; }

/* ফুটার কাস্টম বক্স */
.footer-custom2 { font-size: 13.5px; line-height: 1.8; }
.footer-custom2 img { max-width: 100%; height: auto; }
.footer-custom2 a { color: #fbbf24; }

/* ======= রেসপনসিভ ======= */
@media (max-width: 1024px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .top-row { grid-template-columns: 1fr; }
  .slider-col { height: 280px; }
  .lead-col { height: auto; grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .lead-img { min-height: 130px; }
  .special-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .cat-row-2 { grid-template-columns: 1fr; }
  .cb-layout-2, .cb-layout-3, .cb-layout-4 { grid-template-columns: 1fr; }
  .division-grid, .photo-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .home-sidebar { grid-template-columns: 1fr; }
  .lead-col, .special-grid { grid-template-columns: 1fr; }
  .cb-layout-5 .cb-grid3 { grid-template-columns: 1fr 1fr; }
  .division-grid, .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .slide-cap h2 { font-size: 16px; }
}

/* ============================================
   ট্যাব সেকশন (sangbadsangjog স্টাইল)
   ============================================ */
.tab-section { margin-bottom: 24px; background: var(--white); border: 1px solid var(--line); }
.tab-head { border-bottom: 2px solid var(--red); }
.tab-nav { display: flex; flex-wrap: wrap; gap: 0; }
.tab-btn { background: var(--paper); border: 0; border-right: 1px solid var(--line);
  padding: 11px 22px; font-family: var(--serif); font-size: 15px; font-weight: 700;
  color: var(--ink-soft); cursor: pointer; transition: all .15s; }
.tab-btn:hover { color: var(--red); }
.tab-btn.active { background: var(--red); color: #fff; }
.tab-panel { display: none; padding: 16px; }
.tab-panel.active { display: block; }
.tab-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.tab-lead a { display: block; }
.tab-lead-img { position: relative; }
.tab-lead-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.tab-lead h3 { font-family: var(--serif); font-size: 19px; font-weight: 800; line-height: 1.5; margin: 10px 0 6px; }
.tab-lead p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.tab-lead a:hover h3 { color: var(--red); }
.tab-list { display: grid; gap: 11px; align-content: start; }
.tab-item a { display: grid; grid-template-columns: 90px 1fr; gap: 11px; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tab-item:last-child a { border-bottom: 0; }
.tab-item img { width: 90px; height: 62px; object-fit: cover; border-radius: 4px; }
.tab-item h4 { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.5; }
.tab-item time { font-size: 11.5px; color: var(--ink-soft); }
.tab-item a:hover h4 { color: var(--red); }

/* গ্রিড সেকশন (বড় ১টি + ৪টি ছোট) */
.grid-section { margin-bottom: 24px; }
.sec-head .see-all { margin-right: 10px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--red); padding: 4px 12px; border-radius: 4px; font-family: var(--sans); }
.sec-head .see-all:hover { background: #8f1414; color: #fff; }
.grid-3-1 { display: grid; grid-template-columns: 1.5fr 2fr; gap: 18px; }
.grid-big a { display: block; background: var(--white); border: 1px solid var(--line); height: 100%; }
.grid-big-img { position: relative; }
.grid-big-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.grid-big h3 { font-family: var(--serif); font-size: 18px; font-weight: 800; line-height: 1.5; padding: 12px 14px 6px; }
.grid-big p { font-size: 13.5px; color: var(--ink-soft); padding: 0 14px 14px; line-height: 1.7; }
.grid-big a:hover h3 { color: var(--red); }
.grid-small-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-small a { display: block; background: var(--white); border: 1px solid var(--line); height: 100%; }
.grid-small-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.grid-small h4 { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.5; padding: 9px 11px; }
.grid-small a:hover h4 { color: var(--red); }

@media (max-width: 768px) {
  .tab-grid { grid-template-columns: 1fr; }
  .grid-3-1 { grid-template-columns: 1fr; }
  .grid-small-wrap { grid-template-columns: 1fr 1fr; }
  .tab-btn { padding: 9px 14px; font-size: 13.5px; }
}
@media (max-width: 480px) {
  .grid-small-wrap { grid-template-columns: 1fr; }
}

/* ============================================
   ক্যাটাগরি বক্স — ৬টি স্টাইল
   ============================================ */
/* স্টাইল ১: ৩+৩=৬ কার্ড গ্রিড */
.cstyle-1 .cb-six-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cb-six-grid .cb-gcard a { display: block; }
.cb-six-grid .cb-gimg img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.cb-six-grid .cb-gcard h4 { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.5; margin-top: 8px; }
.cb-six-grid .cb-gcard a:hover h4 { color: var(--red); }

/* স্টাইল ২: ট্যাব স্টাইল (বড় + পাশে তালিকা) — .tab-grid CSS পুনঃব্যবহার, শুধু বক্সে */
.cstyle-2 .tab-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }

/* স্টাইল ৩: গ্রিড স্টাইল (১ বড় + ৪ ছোট) — .grid-3-1 পুনঃব্যবহার */
.cstyle-3 .grid-3-1 { display: grid; grid-template-columns: 1.4fr 1.6fr; gap: 16px; }

/* স্টাইল ৪: বামে বড় + ডানে ৩ ছোট (cb-layout-2 আগে থেকেই আছে) */

/* স্টাইল ৫: ৩ নিউজ স্লাইডার */
.cstyle-5 .cb-slider { position: relative; }
.cstyle-5 .cb-slides { position: relative; min-height: 230px; }
.cb-slide { display: none; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cb-slide.active { display: grid; }
.cb-slide .cb-gimg img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.cb-slide .cb-gcard h4 { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.5; margin-top: 8px; }
.cb-slide .cb-gcard a:hover h4 { color: var(--red); }
.cb-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.cb-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.cb-dot.active { background: var(--red); }

/* স্টাইল ৬: বড় + ৪টি (বামে ছবি/ডানে হেডলাইন) — ২ আপ */
.cstyle-6 .cb-layout-6 .cb-lead-img img { aspect-ratio: 16/9; }
.cstyle-6 .cb-layout-6 .cb-list { margin-top: 12px; display: grid; gap: 9px; }
.cstyle-6 .cb-item a { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center;
  border-top: 1px solid var(--line); padding-top: 9px; }
.cstyle-6 .cb-item img { width: 80px; height: 54px; object-fit: cover; border-radius: 3px; }

/* cat-row-2 single (একক স্টাইল ৬) — অর্ধেক প্রস্থে বামে */
.cat-row-2.single { grid-template-columns: 1fr 1fr; }
.cat-row-2.single > .cat-box:only-child { grid-column: 1; }

/* ৬ রঙের হেডিং (১৬টি বক্সে ঘুরিয়ে) */
.cat-box.cstyle-1 .cat-box-head a, .cat-box.cstyle-1 .card-label { background: #b91c1c; }
.cat-box.cstyle-2 .cat-box-head a, .cat-box.cstyle-2 .card-label { background: #1d4ed8; }
.cat-box.cstyle-3 .cat-box-head a, .cat-box.cstyle-3 .card-label { background: #047857; }
.cat-box.cstyle-4 .cat-box-head a, .cat-box.cstyle-4 .card-label { background: #b45309; }
.cat-box.cstyle-5 .cat-box-head a, .cat-box.cstyle-5 .card-label { background: #7c3aed; }
.cat-box.cstyle-6 .cat-box-head a, .cat-box.cstyle-6 .card-label { background: #be185d; }

@media (max-width: 768px) {
  .cstyle-1 .cb-six-grid, .cb-slide { grid-template-columns: 1fr 1fr; }
  .cstyle-2 .tab-grid, .cstyle-3 .grid-3-1 { grid-template-columns: 1fr; }
  .cat-row-2.single { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cstyle-1 .cb-six-grid, .cb-slide { grid-template-columns: 1fr; }
}

/* ============================================
   পূর্ণ-প্রস্থ নিউজ স্লাইডার
   ============================================ */
.wide-slider-section { margin-bottom: 24px; }
.wide-slider { position: relative; }
.ws-track { position: relative; min-height: 250px; }
.ws-slide { display: none; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ws-slide.active { display: grid; }
.ws-card a { display: block; background: var(--white); border: 1px solid var(--line); height: 100%; }
.ws-img { position: relative; }
.ws-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ws-card h4 { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.5; padding: 10px 11px 4px; }
.ws-card time { font-size: 11.5px; color: var(--ink-soft); padding: 0 11px 11px; display: block; }
.ws-card a:hover h4 { color: var(--red); }
.ws-nav { position: absolute; top: 105px; z-index: 3; background: rgba(0,0,0,.45); color: #fff; border: 0;
  width: 36px; height: 48px; cursor: pointer; font-size: 16px; }
.ws-nav:hover { background: var(--red); }
.ws-nav.prev { left: -8px; } .ws-nav.next { right: -8px; }
.ws-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.ws-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.ws-dot.active { background: var(--red); }

@media (max-width: 1024px) { .ws-slide { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .ws-slide { grid-template-columns: repeat(2, 1fr); } .ws-nav { display: none; } }
@media (max-width: 480px) { .ws-slide { grid-template-columns: 1fr; } }

/* ============================================
   মোবাইল ড্রয়ার মেনু + অন্যান্য ড্রপডাউন
   ============================================ */
/* অন্যান্য ড্রপডাউন (ডেস্কটপ) — has-sub এর মতোই কাজ করে */
.others-menu > a { cursor: pointer; }

/* মোবাইল ড্রয়ার — ডিফল্ট লুকানো */
.mnav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; }
.mnav-drawer {
  position: fixed; top: 0; left: -300px; width: 280px; height: 100%; background: #fff;
  z-index: 999; box-shadow: 2px 0 16px rgba(0,0,0,.2); transition: left .3s ease;
  overflow-y: auto;
}
body.mnav-open .mnav-overlay { display: block; }
body.mnav-open .mnav-drawer { left: 0; }
.mnav-head { display: flex; justify-content: space-between; align-items: center;
  background: var(--red); color: #fff; padding: 14px 16px; font-family: var(--serif); font-size: 17px; font-weight: 800; }
.mnav-head button { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.mnav-list { list-style: none; }
.mnav-list > li { position: relative; border-bottom: 1px solid var(--line); }
.mnav-list > li > a { display: block; padding: 13px 16px; font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--ink); }
.mnav-list > li > a:hover { background: var(--paper); color: var(--red); }
.mnav-expand { position: absolute; top: 0; right: 0; width: 48px; height: 47px; background: none;
  border: 0; border-left: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.mnav-sub { list-style: none; display: none; background: var(--paper); }
.mnav-list > li.open .mnav-sub { display: block; }
.mnav-list > li.open .mnav-expand { transform: rotate(180deg); }
.mnav-sub li a { display: block; padding: 10px 16px 10px 30px; font-size: 14px; color: var(--ink-soft); }
.mnav-sub li a:hover { color: var(--red); }

/* ডেস্কটপে ড্রয়ার সবসময় লুকানো */
@media (min-width: 641px) {
  .mnav-drawer, .mnav-overlay { display: none !important; }
}

/* এক ক্লিকে বিভাগ — লোকেশন ড্রপডাউন */
.loc-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.loc-selects select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 5px;
  font-family: var(--sans); font-size: 14px; background: var(--white); color: var(--ink); cursor: pointer; }
.loc-selects select:disabled { background: var(--paper); color: var(--ink-soft); cursor: not-allowed; }
.loc-results { min-height: 60px; }
.loc-hint { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 30px 0; font-size: 14px; }
@media (max-width: 640px) { .loc-selects { grid-template-columns: 1fr; } }

/* ============================================
   উজ্জ্বল/চকচকে থিম — ছায়া ও মসৃণতা
   ============================================ */
/* মূল কার্ডগুলোতে নরম ছায়া + গোলাকার কোণা */
.news-card, .lead-card, .cat-box, .tab-section, .grid-big a, .grid-small a,
.ws-card a, .hero-lead, .row-card a, .cat-lead a, .home-sidebar .side-box,
.side-box, .single-img, .division-btn, .sub-chip, .loc-selects select,
.cb-item a, .ws-card, .video-item, .photo-item {
  border-radius: 8px;
}
.news-card, .lead-card, .cat-box, .tab-section,
.home-sidebar .side-box, .division-btn, .wide-slider .ws-card a,
.grid-big a, .grid-small a {
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover, .lead-card:hover, .cat-box:hover,
.grid-big a:hover, .grid-small a:hover, .ws-card a:hover, .division-btn:hover {
  box-shadow: var(--shadow-md);
}
/* কার্ডের ছবির উপরের কোণা গোল */
.news-card .card-img, .lead-card .lead-img, .cb-lead-img,
.grid-big-img, .tab-lead-img, .ws-img {
  border-radius: 8px 8px 0 0; overflow: hidden;
}
.cat-box { overflow: hidden; }
/* ক্যাটাগরি হেড একটু উজ্জ্বল গ্রেডিয়েন্ট */
.cat-box-head > a, .sec-head span, .side-box-head, .cat-box-head a:first-child {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}
/* মূল কন্টেন্ট ব্যাকগ্রাউন্ড পরিষ্কার সাদা ভাব */
.main-wrap, main, .container { }
body { background: var(--paper); }
/* হেডার মসৃণ ছায়া */
.masthead { box-shadow: var(--shadow); }
.main-nav { box-shadow: 0 2px 8px rgba(20,30,50,.12); }
/* বোতাম ও ইনপুট মসৃণ */
.search-form { box-shadow: var(--shadow); }
/* ফটো গ্যালারি আইটেম */
.photo-item { box-shadow: var(--shadow); }
/* সেকশন হেডিং উজ্জ্বল আন্ডারলাইন */
.sec-head, .cat-box-head, .tab-head { border-bottom-width: 3px; }

/* ছবির ক্যাপশন */
.img-caption { font-size: 13px; color: var(--ink-soft); padding: 7px 10px; background: var(--paper); border-left: 3px solid var(--red); font-style: italic; }

/* ============================================
   সুন্দর ফটো গ্যালারি (বড় ছবি + ক্যাপশন)
   ============================================ */
.photo-gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 10px;
}
.pg-item { position: relative; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow); display: block; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pg-item:hover img { transform: scale(1.07); }
/* প্রথম ছবি বড় (২×২) */
.pg-item.pg-big { grid-column: span 2; grid-row: span 2; }
/* ক্যাপশন ওভারলে */
.pg-cap {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
  font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1.45;
  padding: 22px 12px 11px; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.35), transparent);
}
.pg-item.pg-big .pg-cap { font-size: 17px; font-weight: 700; padding: 36px 16px 14px; }
.pg-item:hover .pg-cap { color: #ffe; }

@media (max-width: 900px) {
  .photo-gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 140px; }
  .pg-item.pg-big { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 600px) {
  .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .pg-item.pg-big { grid-column: span 2; grid-row: span 2; }
  .pg-item.pg-big .pg-cap { font-size: 15px; }
}

/* জেলার খবর পেজ */
.district-page { padding: 24px 0 40px; }
.district-intro { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .district-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .district-grid { grid-template-columns: 1fr; } }

/* ============================================
   ব্যাক টু টপ বাটন
   ============================================ */
#backToTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--red-dark); transform: translateY(-3px); }
@media (max-width: 600px) {
  #backToTop { right: 14px; bottom: 14px; width: 42px; height: 42px; font-size: 20px; }
}
