/* =====================================================
   MODERN UI LAYER  (loads after main.css / responsive.css)
   বদলাতে চাইলে শুধু নিচের :root এর রঙ বদলান
   ===================================================== */
:root {
  --brand: #0b8a43;          /* মূল সবুজ */
  --brand-dark: #086b34;
  --brand-soft: #eaf7ef;
  --accent: #e11d2e;         /* লাল (হাইলাইট) */
  --ink: #15191e;
  --ink-soft: #5b6470;
  --line: #e8ebef;
  --bg: #f5f7f9;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .05);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand); color: #fff; }
a { transition: color .2s var(--ease); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
img { max-width: 100%; }

/* স্ক্রলবার */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c5ccd3; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---------- Header ---------- */
header.non-sticky {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(16, 24, 40, .04);
}
header.sticky {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}
header img.logo { transition: transform .3s var(--ease); }
header img.logo:hover { transform: scale(1.03); }

/* ---------- Main menu ---------- */
section#top-nav {
  border-top: 1px solid var(--line);
  background: #fff;
}
section#top-nav nav > ul > li > a {
  position: relative;
  color: var(--ink);
  border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
section#top-nav nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 0;
  height: 3px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%);
  transition: width .25s var(--ease);
}
section#top-nav nav > ul > li > a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
section#top-nav nav > ul > li > a:hover::after,
section#top-nav nav > ul > li.current-menu-item > a::after { width: 60%; }
section#top-nav nav > ul > li.current-menu-item > a { color: var(--brand); }
section#top-nav nav > ul > li > a.active { color: var(--brand); }
section#top-nav nav > ul > li > a.active span { border-top-color: var(--brand); }

/* ---------- Cards / boxes ---------- */
.common-border-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.imgWrep { border-radius: var(--radius-sm); }
.imgWrep img { transition: transform .5s var(--ease); }
.common-card-content:hover .imgWrep img,
.lead-news:hover .imgWrep img,
.sub-news .flex-content:hover .imgWrep img { transform: scale(1.06); }

/* হেডলাইন */
h2.title, h3.title, h4.title, h5.title {
  line-height: 1.5;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.common-card-content:hover .title,
.common-lead-content:hover .title,
#lead-news .flex-content:hover .title,
#top-lead-content .sub-news .flex-content:hover .title,
.sub2-lead-content:hover .title,
h4.title:hover, h5.title:hover {
  color: var(--brand) !important;
}
.summery, .sum { color: var(--ink-soft); line-height: 1.7; }
.cat-name a { color: var(--brand); font-weight: 600; }

/* Bootstrap বাটন / ইনপুট */
.btn, button, input[type="submit"] { transition: all .2s var(--ease); }
input[type="text"], input[type="search"], input[type="email"], textarea, select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 138, 67, .15);
  outline: 0;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 50px;
  background: #fff;
  border-top: 3px solid var(--brand);
  box-shadow: 0 -10px 30px rgba(16, 24, 40, .04);
}
footer .border-bottom, footer .border-top { border-color: var(--line) !important; }
.bottom-navigation a { border-radius: 8px; transition: all .2s var(--ease); }
.bottom-navigation a:hover { color: var(--brand); background: var(--brand-soft); }

/* =====================================================
   STATIC PAGE  (Privacy, About, Contact ...)
   ===================================================== */
.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 45px 15px 50px;
  box-sizing: border-box;
}

/* Breadcrumb */
.page-wrapper .page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--brand);
}
.page-wrapper .page-breadcrumb a { color: var(--brand); font-weight: 600; }
.page-wrapper .page-breadcrumb a:hover { color: var(--brand-dark); }
.page-wrapper .page-breadcrumb .sep,
.page-wrapper .page-breadcrumb .current { color: var(--ink-soft); }

/* Card */
.page-wrapper .page-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 46px;
  box-shadow: var(--shadow-md);
}

/* Title */
.page-wrapper .page-header {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px dotted #d8dde3;
}
.page-wrapper .page-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 3px;
}
.page-wrapper .entry-title {
  font-size: 36px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

/* Content */
.page-wrapper .page-content { font-size: 17px; line-height: 1.95; color: #2a2f36; }
.page-wrapper .page-content p { margin: 0 0 16px; }
.page-wrapper .page-content a { color: #0b6bd3; }
.page-wrapper .page-content a:hover { text-decoration: underline !important; }
.page-wrapper .page-content strong { color: #000; }

.page-wrapper .page-content h1,
.page-wrapper .page-content h2,
.page-wrapper .page-content h3,
.page-wrapper .page-content h4 { line-height: 1.5; font-weight: 700; color: var(--ink); }
.page-wrapper .page-content h1 { font-size: 28px; margin: 36px 0 14px; }
.page-wrapper .page-content h2 {
  font-size: 24px;
  margin: 40px 0 14px;
  padding: 9px 16px;
  background: var(--brand-soft);
  border-left: 5px solid var(--brand);
  border-radius: 0 10px 10px 0;
}
.page-wrapper .page-content h3 { font-size: 20px; margin: 26px 0 10px; color: var(--brand); }
.page-wrapper .page-content h4 { font-size: 18px; margin: 20px 0 8px; }

/* Lists */
.page-wrapper .page-content ul,
.page-wrapper .page-content ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.page-wrapper .page-content ul li { position: relative; padding: 6px 0 6px 28px; }
.page-wrapper .page-content ul li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.page-wrapper .page-content ol { counter-reset: item; }
.page-wrapper .page-content ol li { position: relative; counter-increment: item; padding: 6px 0 6px 38px; }
.page-wrapper .page-content ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 13px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
}

.page-wrapper .page-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; opacity: 1; }
.page-wrapper .page-content blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: #f7f8fa;
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  color: #444;
}
.page-wrapper .page-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.page-wrapper .page-content th,
.page-wrapper .page-content td { border: 1px solid var(--line); padding: 10px 14px; }
.page-wrapper .page-content th { background: var(--brand-soft); }

/* =====================================================
   HOMEPAGE & CATEGORY BLOCKS
   ===================================================== */
/* সেকশন হেডিং (জাতীয়, রাজনীতি, ...) */
.bodymenu-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px;
  margin-bottom: 18px;
  border-bottom: 0;
}
.bodymenu-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--line);
}
.bodymenu-link::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 90px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 1;
}
.bodymenu-link > a:first-child { display: inline-flex; align-items: center; gap: 10px; }
.bodymenu-link span { font-size: 22px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.bodymenu-link span:hover { color: var(--brand); }
.bodymenu-link a.float-end { float: none !important; }
.bodymenu-link a.float-end i {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: 14px;
  transition: all .25s var(--ease);
}
.bodymenu-link a.float-end:hover i { background: var(--brand); color: #fff; transform: translateX(3px); }

/* সেপারেটর, সময়, কার্ডের লেখা */
.news-separator-horizontal-border { border-top: 1px solid var(--line); }
.news-separator-vertical-border, .news-separator-vertical-border-left { border-color: var(--line) !important; }
.time { color: var(--ink-soft); font-size: 13px; }
.time i { color: var(--brand); }
.news-content-box { padding: 12px 6px 6px; }

/* ছবির ওপর হেডলাইন (overlay) */
.overlay-headline,
#category_content .lead-section .news-content-box,
#videostories .album_name, .webstories .album_name,
#photoStory-catContet .album_name, #videoStory-catContet .album_name {
  text-align: left;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,0) 100%);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ছোট ফ্লেক্স নিউজ আইটেম (ছবি + হেডলাইন) */
.flex-content { border-radius: var(--radius-sm); transition: background .2s var(--ease); }
.flex-content .img-content .imgWrep { border-radius: 8px; }
#top-lead-content .sub-news .flex-content:hover,
#topnewsFlex .flex-content:hover { background: var(--brand-soft); }

/* লিড নিউজ */
#lead-news .title, #lead-lews .title { font-weight: 700; line-height: 1.5; }
.lead-news .summery { color: var(--ink-soft); }

/* ট্যাব (সর্বশেষ / জনপ্রিয়) */
.nav-tabs { border-bottom: 2px solid var(--line); gap: 4px; }
.nav-tabs .nav-link, .tab_block_one .tab_menu li, .tab_block_one ul.tab_list li {
  border: 0; border-radius: 10px 10px 0 0; font-weight: 600; color: var(--ink-soft);
}
.nav-tabs .nav-link.active { color: var(--brand); border-bottom: 3px solid var(--brand); background: transparent; }

/* =====================================================
   SIDEBAR  (সর্বশেষ / সর্বাধিক পঠিত)
   ===================================================== */
.leatest_post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.leatest_title {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 0 10px 14px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.leatest_title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 5px; height: 22px;
  border-radius: 4px;
  background: linear-gradient(var(--brand), var(--accent));
}
.leatest_post ul { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: n; }
.leatest_post .bullet {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  line-height: 1.6;
  counter-increment: n;
}
.leatest_post .bullet::before {
  content: counter(n, bengali);
  flex: 0 0 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 14px; font-weight: 700;
  border-radius: 8px;
}
.leatest_post .bullet:last-child { border-bottom: 0; }
.leatest_post .bullet a { flex: 1; font-weight: 600; }
.leatest_post .bullet a:hover { color: var(--brand); }

/* =====================================================
   SINGLE POST (খবরের বিস্তারিত)
   ===================================================== */
.dtl_content_layer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 26px 28px 20px !important;
}
#details_content .details-title,
.headline_section .details-title {
  font-size: 34px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -.2px;
}
.rpt_info_section { color: var(--ink-soft); font-size: 14px; border-color: var(--line) !important; }
.rpt_info_section i { color: var(--brand); }
#details_content p,
#details_content .dtl-text p {
  font-size: 19px;
  line-height: 2;
  color: #262b31;
  margin-bottom: 18px;
}
#details_content img { border-radius: 12px; }
#details_content a { color: #0b6bd3; }
#details_content a:hover { text-decoration: underline !important; }
#details_content blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  background: var(--brand-soft);
  border-left: 5px solid var(--brand);
  border-radius: 0 12px 12px 0;
  font-size: 20px;
}
.share_section a, .print_social a { transition: transform .2s var(--ease), opacity .2s; }
.share_section a:hover, .print_social a:hover { transform: translateY(-2px); opacity: .85; }

/* ট্যাগ */
#tags_list a, .tags a {
  display: inline-block;
  padding: 4px 14px;
  margin: 0 6px 8px 0;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s var(--ease);
}
#tags_list a:hover, .tags a:hover { background: var(--brand); color: #fff; }

/* সম্পর্কিত খবর */
#related_news ul { list-style: none; padding: 0; }
#related_news ul li a {
  display: block;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #f8faf9;
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  transition: all .2s var(--ease);
}
#related_news ul li a:hover { background: var(--brand-soft); transform: translateX(4px); color: var(--brand-dark); }

/* =====================================================
   ARCHIVE / CATEGORY / SEARCH
   ===================================================== */
.breadcrumb-title, .category-breadcrumb, .breadcrumb_cat {
  border-top: 0 !important;
  border-bottom: 2px solid var(--brand);
  padding: 10px 0 !important;
  margin-bottom: 20px;
}
.breadcrumb-title span a.active { color: var(--brand); }
#category_content .cat_lead h5.title { line-height: 1.6 !important; }
#category_content .common-card-content { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
#category_content .common-card-content .title { padding-left: 12px; padding-right: 12px; }

/* "আরও দেখুন" বাটন */
.more_photos_btn a, .cmn_more_clr a, a.btn-more, .load_more_btn {
  display: inline-block;
  padding: 10px 32px;
  background: var(--brand);
  color: #fff !important;
  border: 0;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(11, 138, 67, .28);
  transition: all .25s var(--ease);
}
.more_photos_btn a:hover, .cmn_more_clr a:hover, a.btn-more:hover, .load_more_btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(11, 138, 67, .35);
}

/* =====================================================
   FLOATING UI  (modern.js)
   ===================================================== */
#read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 10000000;
  transition: width .1s linear;
}
/* থিমের নিজস্ব "উপরে যান" বাটন (বাইরের ছবির বদলে CSS তীর) */
#back-top { right: 22px; bottom: 70px; z-index: 99998; }
#back-top span,
#back-top span:hover {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand) !important;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(11, 138, 67, .35);
  transition: all .25s var(--ease);
}
#back-top span::before {
  content: "";
  width: 11px; height: 11px;
  border-left: 3px solid #fff; border-top: 3px solid #fff;
  transform: translateY(3px) rotate(45deg);
}
#back-top span:hover { background: var(--brand-dark) !important; transform: translateY(-3px); }

.home_menu_icon i { font-size: 22px; color: var(--brand); margin-right: 6px; }

/* =====================================================
   3D & DEPTH LAYER  (গভীরতা, স্তরে স্তরে শ্যাডো, টিল্ট)
   ===================================================== */
:root {
  --depth-1: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .06);
  --depth-2: 0 2px 4px rgba(16, 24, 40, .08), 0 18px 40px rgba(16, 24, 40, .14);
}

/* ব্যাকগ্রাউন্ডে নরম রঙিন আলো */
body {
  background:
    radial-gradient(1100px 480px at 8% -8%, #dff3e6 0%, rgba(223,243,230,0) 60%),
    radial-gradient(900px 420px at 100% 0%, #fde6e8 0%, rgba(253,230,232,0) 55%),
    var(--bg);
  background-attachment: fixed;
}

/* হেডার ভাসমান ভাব */
header.non-sticky { box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(16, 24, 40, .07); }

/* কার্ড: স্তরে স্তরে শ্যাডো, hover এ গভীরতা বাড়ে (কার্ড নিজে নড়ে না) */
.common-border-box,
.leatest_post,
.dtl_content_layer {
  box-shadow: var(--depth-1);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.common-border-box:hover,
.leatest_post:hover { box-shadow: var(--depth-2); border-color: #d9e6de; }

/* ছবিতে 3D টিল্ট (modern.js ভ্যারিয়েবল সেট করে) */
.common-card-content,
.lead-news,
#lead-news .flex-content { perspective: 900px; }
.common-card-content .imgWrep,
.lead-news .imgWrep,
#lead-news .imgWrep {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .3s var(--ease);
  box-shadow: 0 6px 14px rgba(16, 24, 40, .10);
  will-change: transform;
}
.common-card-content.is-tilting .imgWrep,
.lead-news.is-tilting .imgWrep,
#lead-news .is-tilting .imgWrep {
  box-shadow: 0 22px 34px -8px rgba(16, 24, 40, .35);
  transition: transform .06s linear, box-shadow .3s var(--ease);
}

/* সেকশন হেডিংয়ে 3D ব্লক */
.bodymenu-link > a:first-child span::before {
  content: "";
  display: inline-block;
  width: 10px; height: 24px;
  margin-right: 10px;
  vertical-align: -4px;
  border-radius: 4px;
  background: linear-gradient(160deg, #14b862, var(--brand-dark));
  box-shadow: 3px 3px 0 rgba(225, 29, 46, .85), 5px 7px 10px rgba(16, 24, 40, .18);
}

/* 3D বাটন (চাপলে নিচে বসে যায়) */
.more_photos_btn a, .cmn_more_clr a, a.btn-more, .load_more_btn {
  background: linear-gradient(180deg, #12ad5c, var(--brand));
  box-shadow: 0 5px 0 var(--brand-dark), 0 14px 22px rgba(11, 138, 67, .30);
  transform: translateY(0);
}
.more_photos_btn a:hover, .cmn_more_clr a:hover, a.btn-more:hover, .load_more_btn:hover {
  background: linear-gradient(180deg, #14b862, var(--brand));
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--brand-dark), 0 18px 26px rgba(11, 138, 67, .34);
}
.more_photos_btn a:active, .cmn_more_clr a:active, a.btn-more:active, .load_more_btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--brand-dark), 0 4px 8px rgba(11, 138, 67, .25);
}

/* সাইডবারের ক্রমিক সংখ্যা: 3D ব্যাজ */
.leatest_post .bullet::before {
  background: linear-gradient(145deg, #14b862, #0a7a3a);
  color: #fff;
  box-shadow: 0 3px 0 #065a2a, 0 6px 10px rgba(11, 138, 67, .25);
}

/* সাইডবার ও পেজ কার্ডের টাইটেলে গভীরতা */
.leatest_title::before { box-shadow: 2px 2px 0 rgba(225, 29, 46, .8); }
.page-wrapper .page-card,
.dtl_content_layer { box-shadow: var(--depth-2); }
.page-wrapper .page-card { position: relative; overflow: hidden; }
.page-wrapper .page-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), #14b862 55%, var(--accent));
}
.page-wrapper .page-content h2 { box-shadow: 0 6px 14px rgba(11, 138, 67, .10); }

/* ট্যাগ পিল: 3D */
#tags_list a, .tags a { box-shadow: 0 2px 0 rgba(11, 138, 67, .25); }
#tags_list a:hover, .tags a:hover { box-shadow: 0 4px 10px rgba(11, 138, 67, .35); transform: translateY(-2px); }

/* স্ক্রলে ধীরে ফুটে ওঠা (modern.js) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* থিমের "উপরে যান" বাটনে 3D */
#back-top span, #back-top span:hover { box-shadow: 0 4px 0 var(--brand-dark), 0 12px 22px rgba(11, 138, 67, .35); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .page-wrapper { padding: 25px 10px 35px; }
  .page-wrapper .page-card { padding: 24px 18px; border-radius: 14px; }
  .page-wrapper .entry-title { font-size: 26px; }
  .page-wrapper .page-content { font-size: 16px; line-height: 1.85; }
  .page-wrapper .page-content h2 { font-size: 20px; }
  .page-wrapper .page-content h3 { font-size: 18px; }
  .common-border-box { border-radius: 12px; }
  .bodymenu-link span { font-size: 19px; }
  .dtl_content_layer { padding: 16px 14px 12px !important; border-radius: 14px; }
  #details_content .details-title, .headline_section .details-title { font-size: 24px !important; }
  #details_content p { font-size: 17px; line-height: 1.9; }
  .leatest_post { padding: 14px; }
  #back-top { right: 14px; bottom: 64px; }
}

/* অ্যানিমেশন কমাতে চাইলে (accessibility) */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* =====================================================
   CLEAN-UP v2: একটাই পরিষ্কার বর্ডার, সুন্দর গোল আইকন, অ্যাড স্লট
   ===================================================== */

/* --- সেকশন হেডিং: আগে ৩টা লাইন/বর্ডার ছিল (ধূসর লাইন + সবুজ লাইন + লাল-ছায়ার ব্লক)।
       এখন: একটা হালকা লাইন + তার উপর একটা সবুজ অ্যাকসেন্ট। --- */
.bodymenu-link { padding-bottom: 10px; margin-bottom: 20px; }
.bodymenu-link::after  { height: 1px; background: var(--line); }
.bodymenu-link::before { width: 64px; height: 3px; border-radius: 3px; background: var(--brand); bottom: -1px; }
.bodymenu-link > a:first-child span::before {
  width: 6px; height: 22px;
  margin-right: 10px;
  vertical-align: -4px;
  border-radius: 6px;
  background: var(--brand);
  box-shadow: none;                 /* লাল অফসেট ছায়া বাদ */
}
.leatest_title::before { box-shadow: none; }

/* --- গোল আইকন/বাটন: সব একই সাইজ, একই স্টাইল --- */
.bodymenu-link a.float-end i {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand-soft);
  box-shadow: var(--shadow-sm);
}
.bodymenu-link a.float-end:hover i {
  background: var(--brand); color: #fff; border-color: var(--brand);
  transform: translateX(3px);
}
.page-wrapper .page-content ul li::before { box-shadow: 0 0 0 3px var(--brand-soft); }

/* --- কার্ড: নরম বর্ডার, হোভারে উঠে আসবে --- */
.common-card-content, .lead-news, .page-wrapper .page-card {
  border-radius: var(--radius);
}
.common-card-content .imgWrep, .lead-news .imgWrep { border-radius: var(--radius-sm); overflow: hidden; }
.common-card-content:hover .imgWrep img { transform: scale(1.04); }
.common-card-content .imgWrep img { transition: transform .45s var(--ease); }

/* --- বিজ্ঞাপনের জায়গা (somoy_ad) --- */
.ad-slot {
  position: relative;
  margin: 18px 0;
  padding: 22px 12px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  clear: both;
}
.ad-slot .ad-label {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .04em; color: var(--ink-soft);
}
.ad-slot .ad-inner { display: flex; justify-content: center; align-items: center; min-height: 60px; }
.ad-slot .ad-inner img, .ad-slot .ad-inner iframe, .ad-slot .ad-inner ins { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.ad-slot.is-empty { border: 2px dashed #c9d1d9; background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 10px, #f3f5f7 10px, #f3f5f7 20px); box-shadow: none; }
.ad-slot.is-empty .ad-inner { color: var(--ink-soft); font-size: 14px; min-height: 90px; }
@media (max-width: 767px) { .ad-slot { margin: 12px 0; border-radius: var(--radius-sm); } }


/* =====================================================
   v5: ৩য় বর্ডার ও সব গোল আকার বাদ
   ===================================================== */
/* হেডিংয়ের ৩য় বর্ডার (3D ব্লক) বাদ — থাকল একটা লাইন + সবুজ আন্ডারলাইন */
.bodymenu-link > a:first-child span::before { content: none !important; display: none !important; }
.leatest_title::before { content: none !important; }

/* হেডিংয়ের পাশের গোল তীর: গোল বক্স বাদ, শুধু আইকন */
.bodymenu-link a.float-end i,
.bodymenu-link i {
  width: auto; height: auto;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  color: var(--brand);
}
.bodymenu-link a.float-end:hover i { background: transparent !important; color: var(--brand-dark); transform: translateX(3px); }

/* লিস্টের গোল বুলেট/নম্বর, সাইডবারের নম্বর ব্যাজ, ব্যাক-টু-টপ: গোল নয় */
.page-wrapper .page-content ul li::before { border-radius: 2px; box-shadow: none; width: 8px; height: 3px; top: 21px; }
.page-wrapper .page-content ol li::before { border-radius: 6px; }
.leatest_post .bullet::before, .tab_block_one .list_display_block1 span.news_sl { border-radius: 6px !important; }
#back-top span { border-radius: 8px !important; }
.sub-news .imgWrep, .latest-most-news .imgWrep, .leatest_post .imgWrep, ._imgWrep { border-radius: var(--radius-sm) !important; }
.sub-news .imgWrep img, .latest-most-news .imgWrep img, .leatest_post .imgWrep img { border-radius: var(--radius-sm); }

/* বিজ্ঞাপনের বক্স: সিম্পল একটাই বর্ডার */
.ad-slot { outline: 0; box-shadow: none; }

/* =====================================================
   v6: পেজ ও ফর্ম বড় (নিউজ পাঠান ইত্যাদি) — আগে খুব ছোট দেখাচ্ছিল
   ===================================================== */
.page-wrapper { max-width: 1240px; padding: 36px 24px 56px; }
.page-wrapper .page-card { padding: 40px 48px; border-radius: var(--radius); }
.page-wrapper .entry-title { font-size: 40px; }

/* ফর্ম: কার্ডের পুরো প্রস্থ নেবে, ভেতরের বাড়তি ফাঁকা কমবে */
.page-wrapper .page-content form,
.page-wrapper .page-content .wpuf-form-add,
.page-wrapper .page-content .wpforms-container,
.page-wrapper .page-content .frontend-form,
.page-wrapper .page-content [class*="form-wrap"],
.page-wrapper .page-content [class*="form-container"] {
  width: 100%; max-width: none; margin-left: 0; margin-right: 0;
  padding-left: 0; padding-right: 0;
}
.page-wrapper .page-content label { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 8px; display: block; }
.page-wrapper .page-content input[type="text"],
.page-wrapper .page-content input[type="email"],
.page-wrapper .page-content input[type="url"],
.page-wrapper .page-content input[type="tel"],
.page-wrapper .page-content input[type="number"],
.page-wrapper .page-content select,
.page-wrapper .page-content textarea {
  width: 100%; max-width: none;
  min-height: 54px; padding: 12px 16px;
  font-size: 17px;
  background: #fff;
  border: 1.5px solid #d6dbe1;
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.page-wrapper .page-content textarea { min-height: 200px; }
.page-wrapper .page-content input:focus,
.page-wrapper .page-content select:focus,
.page-wrapper .page-content textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: 0;
}
.page-wrapper .page-content .description,
.page-wrapper .page-content .help-block,
.page-wrapper .page-content small { font-size: 14px; color: var(--ink-soft); }
.page-wrapper .page-content input[type="submit"],
.page-wrapper .page-content button[type="submit"] {
  min-height: 54px; padding: 0 36px; font-size: 18px; font-weight: 700;
  color: #fff; background: var(--brand); border: 0; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease);
}
.page-wrapper .page-content input[type="submit"]:hover,
.page-wrapper .page-content button[type="submit"]:hover { background: var(--brand-dark); transform: translateY(-1px); }

@media (max-width: 767px) {
  .page-wrapper { padding: 20px 10px 40px; }
  .page-wrapper .page-card { padding: 22px 16px; }
  .page-wrapper .entry-title { font-size: 28px; }
  .page-wrapper .page-content label { font-size: 17px; }
}

/* =====================================================
   v7: সাইটের কোথাও আর গোল (circle/pill) নেই — সব বাটন/আইকন চৌকা-নরম কোণা
   ===================================================== */
.xoom-out span, .xoom-in span,
.print_social, .print_social a, .print_social i, .print_social button, .print_social span,
.print_social i.fa-print,
.extra-opt span a,
.dropdownSearch button.search-icon, .dropdownAllMenu .search-icon,
#dropdownNotification .badge,
.photo-gallery-share-view a, .photo-gallery-share-view a.instagram:after,
#footer-social .soacial-icon a, #footer-social .soacial-icon a i,
#video-gallery .more a i,
.video-icon, .video-icon-sm, .video-icon-md, .video-icon-xs,
section#video-gallery .lead-video .video-icon,
section#sports-news .sports-upcoming ul li a img,
.flex-direction-nav a, .flex-direction-nav .flex-next, .flex-direction-nav .flex-prev,
.more_photos_btn a, .cmn_more_clr a, a.btn-more, .load_more_btn,
#back-top span, #back-top span:hover,
.breaking-news-icon .breaking-circle {
  border-radius: 8px !important;
}
/* ছোট ব্যাজ/ডট (নোটিফিকেশনের লাল ডট, ব্রেকিং ডট) চৌকা */
#dropdownNotification .badge, .breaking-news-icon .breaking-circle { border-radius: 3px !important; }
/* ছবি: কোথাও গোল নয় */
img.rounded-circle, .rounded-circle, .rounded-pill { border-radius: 8px !important; }

/* =====================================================
   v8: কোনো 3D ইফেক্ট নেই — সব ফ্ল্যাট ও পরিষ্কার
   (টিল্ট, ঘোরানো, অফসেট/লাল ছায়া, চাপা-বাটন, ভারী শ্যাডো সব বাদ)
   ===================================================== */
:root { --depth-1: 0 1px 3px rgba(16,24,40,.08); --depth-2: 0 2px 8px rgba(16,24,40,.10); }
body { background: var(--bg); background-attachment: scroll; }
header.non-sticky { box-shadow: 0 1px 0 var(--line); }

/* টিল্ট/3D ট্রান্সফর্ম বন্ধ */
.common-card-content, .lead-news, #lead-news .flex-content { perspective: none !important; }
.common-card-content .imgWrep, .lead-news .imgWrep, #lead-news .imgWrep,
.common-card-content.is-tilting .imgWrep, .lead-news.is-tilting .imgWrep, #lead-news .is-tilting .imgWrep {
  transform: none !important; transform-style: flat !important;
  box-shadow: none !important; will-change: auto;
}

/* বাটন: ফ্ল্যাট (নিচের কঠিন ছায়া ও চাপলে বসে যাওয়া বাদ) */
.more_photos_btn a, .cmn_more_clr a, a.btn-more, .load_more_btn,
.more_photos_btn a:hover, .cmn_more_clr a:hover, a.btn-more:hover, .load_more_btn:hover,
.more_photos_btn a:active, .cmn_more_clr a:active, a.btn-more:active, .load_more_btn:active {
  background: var(--brand) !important; box-shadow: none !important; transform: none !important;
}
.more_photos_btn a:hover, .cmn_more_clr a:hover, a.btn-more:hover, .load_more_btn:hover { background: var(--brand-dark) !important; }

/* ব্যাজ, ট্যাগ, ব্যাক-টু-টপ, টাইটেল: ফ্ল্যাট */
.leatest_post .bullet::before { background: var(--brand) !important; box-shadow: none !important; }
#tags_list a, .tags a, #tags_list a:hover, .tags a:hover { box-shadow: none !important; transform: none !important; }
#back-top span, #back-top span:hover { box-shadow: none !important; transform: none !important; }
.page-wrapper .page-content h2 { box-shadow: none; }
.page-wrapper .page-card, .dtl_content_layer { box-shadow: var(--depth-1); }
.page-wrapper .page-card::before { height: 3px; background: var(--brand); }

/* কার্ড ছবির জুম ও হোভারে ওঠা বন্ধ */
.common-card-content:hover .imgWrep img { transform: none !important; }
.common-border-box:hover, .leatest_post:hover { box-shadow: var(--depth-1); }
.ad-slot, .ad-slot.is-filled { box-shadow: none !important; outline: 0 !important; }

/* স্ক্রলে নিচ থেকে উঠে আসা বন্ধ (শুধু হালকা ফেড) */
.reveal { transform: none !important; transition: opacity .4s var(--ease); }

/* =====================================================
   v9: সাইডবার উইজেটের বাড়তি কমলা বর্ডার ও নিচের ফাঁকা পট্টি বাদ
   (ক্যালেন্ডারের নিজের কার্ড আছে, তাই বাইরের ফ্রেম লাগে না)
   ===================================================== */
.single-widgets {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 16px;
  background: transparent !important;
}
.single-widgets > :last-child { margin-bottom: 0 !important; }
.single-widgets h2.widgettitle {
  background: var(--brand); border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin: 0;
}

/* =====================================================
   v10: অ্যাডভান্স ফিচারের স্টাইল (ফ্ল্যাট, গোল নয়, 3D নয়)
   ===================================================== */
/* স্টিকি হেডার */
/* (মোবাইলের জন্য। ডেস্কটপ হেডার নিচে v13 তে) */
@media (max-width: 768px) {
  body.has-sticky-header header.non-sticky { position: sticky; top: 0; z-index: 1030; background: #fff; }
  body.has-sticky-header.admin-bar header.non-sticky { top: 32px; }
}
@media (max-width: 782px) { body.has-sticky-header.admin-bar header.non-sticky { top: 46px; } }
header.non-sticky.is-stuck { box-shadow: 0 1px 0 var(--line), 0 4px 12px rgba(16,24,40,.06); }

/* পড়ার সময় */
.reading-time {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 6px 12px;
  font-size: 14px; color: var(--ink-soft);
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.reading-time i { color: var(--brand); }

/* মোবাইল বটম বার */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  body.has-mobile-bar { padding-bottom: 58px; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    background: #fff; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 8px 4px; font-size: 12px; font-weight: 600; color: var(--ink-soft);
  }
  .mobile-bar a i { font-size: 18px; color: var(--brand); }
  .mobile-bar a:active, .mobile-bar a:hover { background: var(--brand-soft); color: var(--brand); }
  body.has-mobile-bar #back-top { bottom: 72px; }
}

/* ছবি ধীরে ফুটে ওঠে (ফ্ল্যাট ফেড, নড়াচড়া নেই) */
img { transition: opacity .3s var(--ease); }
img[loading="lazy"] { background: #eef1f4; }

/* প্রিন্ট-ফ্রেন্ডলি: হেডার, সাইডবার, বিজ্ঞাপন, বাটন বাদ */
@media print {
  header, footer, .mobile-bar, #back-top, #read-progress, .ad-slot, .print_social, .xoom-in, .xoom-out,
  .col-md-3, #sidebar, .leatest_post, nav { display: none !important; }
  body { background: #fff !important; padding: 0 !important; }
  .dtl_content_layer, .page-card { box-shadow: none !important; border: 0 !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .col-md-9, .col-md-8 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
}

/* =====================================================
   v11: মোবাইল হেডার ও রেসপন্সিভ — পরিষ্কার, বড় লোগো, দ্রুত
   (আগে স্ক্রলে আসা দ্বিতীয় "sticky" হেডারে ছোট্ট আইকন + ভেঙে যাওয়া তারিখ ও মেনু দেখাত)
   ===================================================== */
@media (max-width: 768px) {
  /* ডুপ্লিকেট ছোট হেডার মোবাইলে বন্ধ — মূল হেডারই স্টিকি */
  header.sticky { display: none !important; }

  /* লোগো + মেনু বাটন এক লাইনে, লোগো বড় */
  #midHeader { box-shadow: none; border-bottom: 1px solid var(--line); }
  #midHeader .container-fluid > .d-flex { align-items: center; min-height: 58px; padding: 4px 0; }
  #midHeader .flex-fill:first-child { flex: 1 1 auto; min-width: 0; }
  header.non-sticky a.logo { width: auto; max-width: 78%; padding: 4px 0; }
  header img.logo, header.non-sticky img.logo { max-height: 46px; width: auto; max-width: 100%; height: auto; }
  header img.logo:hover { transform: none; }

  /* হ্যামবার্গার: বড় ট্যাপ এরিয়া, চৌকা */
  .mobile_menu_toggle_container {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: 8px;
    font-size: 22px; color: var(--brand);
    background: var(--brand-soft); border-radius: var(--radius-sm);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }

  /* মেনু: এক লাইনে পাশে সোয়াইপ করা যাবে (আগে ভেঙে ৫ লাইন হয়ে যেত) */
  section#top-nav { border-top: 0; }
  section#top-nav .container-fluid { padding-left: 0; padding-right: 0; }
  #mobile_scroll {
    width: 100%; overflow-x: auto !important; overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  #mobile_scroll::-webkit-scrollbar { display: none; }
  section#top-nav nav>ul { height: 44px; flex-wrap: nowrap; width: max-content; padding: 0 6px; }
  section#top-nav nav>ul>li { flex: 0 0 auto; }
  section#top-nav nav>ul>li>a {
    display: flex; align-items: center; height: 44px;
    padding: 0 13px; font-size: 15px; white-space: nowrap;
    border-bottom: 3px solid transparent;
  }
  section#top-nav nav>ul>li.current-menu-item>a,
  section#top-nav nav>ul>li>a.active { border-bottom-color: var(--brand); color: var(--brand); }

  /* মোবাইল সাইড মেনু (খুললে) */
  #mySidenav { border-top: 1px solid var(--line); background: #fff; }
  #mySidenav .date-time { font-size: 14px; color: var(--ink-soft); }
  .srch_form { padding: 10px 14px; }
  .srch_form .form-inner { box-shadow: none; border: 1.5px solid #d6dbe1; border-radius: var(--radius-sm); padding: 4px; }
  .srch_form input { font-size: 16px; }   /* iOS জুম বন্ধ */

  /* কন্টেন্ট: পাশের ফাঁকা কম, ছবি/টেবিল বেরিয়ে যাবে না */
  .container-fluid { padding-left: 12px; padding-right: 12px; }
  img, video, iframe, table { max-width: 100%; }
  .dtl_content_layer iframe { width: 100%; }
  body { overflow-x: hidden; }

  /* গতি: মোবাইলে অ্যানিমেশন ও ভারী ট্রানজিশন বন্ধ, নিচের অংশ দেরিতে রেন্ডার */
  .reveal { opacity: 1 !important; transition: none !important; }
  img { transition: none; }
  #sports-news, #video-gallery, #photo-gallery, footer { content-visibility: auto; contain-intrinsic-size: 1px 600px; }
  * { -webkit-tap-highlight-color: transparent; }
}

/* ছোট ফোন */
@media (max-width: 400px) {
  header img.logo, header.non-sticky img.logo { max-height: 40px; }
  .page-wrapper .entry-title, #details_content .details-title { font-size: 22px !important; }
}

/* =====================================================
   v12: লাইভ সার্চ, স্টিকি বিজ্ঞাপন, পড়ার সংখ্যা (ফ্ল্যাট, চৌকা)
   ===================================================== */
form.has-live { position: relative; }
.live-results {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 100001;
  background: #fff; border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 20px rgba(16,24,40,.12);
  max-height: 65vh; overflow-y: auto; text-align: left;
}
.live-results[hidden] { display: none; }
.live-results .lr-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.live-results .lr-item:hover { background: var(--brand-soft); }
.live-results .lr-item img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: #eef1f4; }
.live-results .lr-text { display: flex; flex-direction: column; min-width: 0; }
.live-results .lr-text strong { font-size: 15px; line-height: 1.45; font-weight: 600; }
.live-results .lr-text small { font-size: 12px; color: var(--ink-soft); }
.live-results .lr-all { display: block; padding: 11px 12px; text-align: center; font-weight: 700; color: var(--brand); background: #fafbfc; }
.live-results .lr-empty { padding: 14px; text-align: center; color: var(--ink-soft); }

.reading-time .rt-sep { color: #b6bcc4; }
.reading-time { flex-wrap: wrap; }

.sticky-ad {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  z-index: 1035; width: min(100%, 760px);
  background: #fff; border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: 0 -4px 16px rgba(16,24,40,.10);
  padding: 16px 10px 8px; text-align: center;
}
.sticky-ad[hidden] { display: none; }
.sticky-ad .ad-label { position: absolute; top: 3px; left: 10px; font-size: 11px; color: var(--ink-soft); }
.sticky-ad .sticky-ad-inner img, .sticky-ad .sticky-ad-inner iframe { max-width: 100%; height: auto; }
.sticky-ad .sticky-ad-close {
  position: absolute; top: -1px; right: 0; width: 30px; height: 28px;
  font-size: 20px; line-height: 1; color: #fff; background: var(--ink);
  border: 0; border-radius: 0 var(--radius-sm) 0 8px; cursor: pointer;
}
.sticky-ad .sticky-ad-close:hover { background: var(--accent); }
@media (max-width: 767px) { body.has-mobile-bar .sticky-ad { bottom: 56px; } }

/* =====================================================
   v13: মোবাইল হোম ডিজাইন (শুধু ফোনে, ডেস্কটপে কোনো পরিবর্তন নেই)
   - স্টিকি হেডারের উপরের ফাঁক ঠিক
   - লিড নিউজ বড় কার্ড, গ্রিডে ২ কলাম, তালিকায় পাশে থাম্বনেইল
   - ক্যাটাগরি হেডিং + কার্ড স্টাইল
   ===================================================== */

/* লগইন অবস্থায় WP অ্যাডমিন বার ৬০০px এর নিচে ফিক্সড থাকে না, তাই ৪৬px ফাঁক বাদ */
@media (max-width: 600px) {
  body.has-sticky-header.admin-bar header.non-sticky { top: 0; }
}

@media (max-width: 767px) {
  body.home { background: var(--bg); }
  body.home .bg-white { background: transparent !important; }
  body.home section#top-lead-content { padding-top: 12px; }
  body.home .container-fluid { padding-left: 12px; padding-right: 12px; }

  /* ---- সব সেকশন-বক্স: সাদা কার্ড, নরম ছায়া ---- */
  body.home .common-border-box {
    background: #fff; border: 0; border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 12px; overflow: hidden;
  }
  body.home .common-card-content.common-border-box { padding: 0; }

  /* ---- ছবি: নরম কোণা ---- */
  body.home .imgWrep { border-radius: 12px; background-color: #eef1f4; }
  body.home .imgWrep img { border-radius: 12px; }

  /* ---- লিড নিউজ: বড় ছবি + শিরোনাম ---- */
  body.home section#top-lead-content .lead-news .flex-content .img-content,
  body.home #bodymenuTwolead #lead-news .flex-content .img-content,
  body.home #leadSection .img-content { width: 100% !important; margin: 0 !important; }
  body.home .topfirst-leadnews .d-flex { display: block !important; }
  body.home section#top-lead-content .lead-news h4.title {
    font-size: 21px; line-height: 1.5; font-weight: 800; margin: 12px 2px 6px; color: var(--ink);
  }
  body.home .lead-news .summery {
    font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 2px 4px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ---- ৬ খবরের গ্রিড: ২ কলাম ---- */
  body.home #leadSection .sub-news.row { margin-left: -5px; margin-right: -5px; }
  body.home #leadSection .sub-news.row > [class*="col-"] {
    padding: 0 5px; margin-bottom: 14px; flex: 0 0 50%; max-width: 50%;
  }
  body.home #leadSection .common-card-content h5.title,
  body.home .common-card-content h5.title {
    font-size: 15px; line-height: 1.55; font-weight: 700; padding: 8px 2px 0; margin: 0; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  body.home .common-card-content .news-content-box { padding: 0 2px 2px; }

  /* ---- সাইড তালিকা: বামে থাম্বনেইল, ডানে শিরোনাম ---- */
  body.home .selected-news .sub-news,
  body.home .sub-news .flex-content { border-bottom: 1px solid var(--line); }
  body.home .selected-news .sub-news:last-child { border-bottom: 0; }
  body.home .selected-news .sub-news { padding: 10px 0; }
  body.home .selected-news .flex-content .img-content,
  body.home .sub-news .flex-content .img-content { width: 112px; margin-right: 12px; }
  body.home .selected-news h4.title,
  body.home .sub-news h4.title {
    font-size: 16px; line-height: 1.55; font-weight: 700; margin: 0; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  body.home .sub-news .summery { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
  body.home .news-separator-horizontal-border { display: none; }
  body.home .news-separator-vertical-border { border: 0; }

  /* ---- ক্যাটাগরি সেকশন ---- */
  body.home .home-category-content {
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
    padding: 14px 12px 6px; margin: 0 0 16px;
  }
  body.home .bodymenu-link {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 14px; padding: 0 0 10px; border-bottom: 2px solid var(--line);
  }
  body.home .bodymenu-link > a:first-child {
    display: flex; align-items: center; gap: 8px; min-width: 0;
  }
  body.home .bodymenu-link > a:first-child img { height: 26px; width: auto; }
  body.home .bodymenu-link > a:first-child span,
  body.home .bodymenu-link span {
    font-size: 20px !important; font-weight: 800; color: var(--ink);
    padding-left: 10px; border-left: 4px solid var(--brand); line-height: 1.2;
  }
  body.home .bodymenu-link > a.float-end { float: none !important; }
  body.home .bodymenu-link > a.float-end div {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand); border-radius: 10px; font-size: 14px;
  }

  /* ক্যাটাগরির ৪-কার্ড সারি: ২ কলাম */
  body.home #bodymenu-nolead .row,
  body.home .home-category-content .row { margin-left: -5px; margin-right: -5px; }
  body.home #bodymenu-nolead .row > [class*="col-"] {
    flex: 0 0 50%; max-width: 50%; padding: 0 5px;
  }
  body.home #bodymenuTwolead #lead-news .flex-content { margin-bottom: 16px; }
  body.home #bodymenuTwolead .flex-content .col-12 { padding-left: 0; padding-right: 0; }
  body.home #bodymenuTwolead .flex-content h4.title { margin: 10px 2px 6px; font-size: 18px; line-height: 1.5; font-weight: 800; }
  body.home #bodymenuTwolead #flex-right-image { padding: 10px 0; border-bottom: 1px solid var(--line); }

  /* ---- ট্যাব (ভিডিও/ফটো স্টোরি) ---- */
  body.home .tab_bar_block_stories ul { display: flex; gap: 8px; padding: 0; margin: 0 0 10px; list-style: none; }
  body.home .tab_bar_block_stories li {
    flex: 1; text-align: center; padding: 9px 6px; border-radius: 10px; background: #f0f3f6; font-weight: 700;
  }
  body.home .tab_bar_block_stories li.active { background: var(--brand); }
  body.home .tab_bar_block_stories li.active a { color: #fff; }

  /* ---- শিরোনাম টিকার ও বটম বারের জন্য নিচে জায়গা ---- */
  body.home footer { margin-top: 8px; }
}

/* =====================================================
   v14: হেডারে তারিখ + ই-পেপার/লাইভ টিভি, নিচের অদৃশ্য বার বাদ
   ===================================================== */
.sa-headinfo { display: none; }

/* টিকারের নিচে ঢাকা পড়ে থাকা বটম বার (উঁকি দিচ্ছিল) বাদ */
@media (max-width: 767px) {
  .mobile-bar { display: none !important; }
  body.has-mobile-bar { padding-bottom: 0; }
  body.has-mobile-bar #back-top, #back-top { bottom: 64px; }
}

@media (max-width: 768px) {
  .sa-headinfo {
    display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
    gap: 6px; flex: 0 0 auto; margin-left: 6px;
  }
  #midHeader .flex-fill:first-child { flex: 1 1 0; }
  header.non-sticky a.logo { max-width: 100%; }
  .sa-date { display: flex; flex-direction: column; text-align: right; line-height: 1.3; }
  .sa-date__en { font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
  .sa-date__bn { font-size: 10.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }
  .sa-quick { display: flex; gap: 5px; }
  .sa-q {
    display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 9px;
    border-radius: 7px; font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap;
  }
  .sa-q--epaper { background: var(--brand); color: #fff; }
  .sa-q--epaper i { font-size: 12px; }
  .sa-q--live { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
  .sa-q__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: sa-live-blink 1.4s ease-in-out infinite; }
  @keyframes sa-live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
}
@media (max-width: 350px) {
  .sa-date__en { font-size: 10px; }
  .sa-date__bn { font-size: 10px; }
  .sa-q { padding: 0 7px; font-size: 11px; }
}

/* =====================================================
   v15: সর্বশেষ/জনপ্রিয় তালিকায় ছবি + নম্বর ব্যাজ
   ===================================================== */
.tab_block_one .sub2-lead-content { padding: 10px 0; }
.tab_block_one .sub2-lead-content .d-flex { gap: 12px; align-items: flex-start; }
.sa-tl__thumb {
  position: relative; width: 96px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #eef1f4;
}
.sa-tl__thumb img, .sa-tl__thumb .wp-post-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.tab_block_one .list_display_block1 span.news_sl {
  left: 0; top: 10px; width: 26px; height: 26px; padding: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; line-height: 1;
  color: #fff; background: var(--brand); border-radius: 0 0 8px 0 !important;
}
.tab_block_one .sub2-lead-content h4.title {
  margin: 0; padding: 0 !important; font-size: 16px; line-height: 1.55; font-weight: 700; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tab_block_one .news-separator-horizontal-border { margin: 0; border-bottom: 1px solid var(--line); }

/* =====================================================
   v13: ডেস্কটপ হেডার — মোবাইলের মতোই পরিষ্কার, একটাই হেডার
   আগের সমস্যা: (১) স্ক্রলে দুটো নেভ বার একটার নিচে আরেকটা, (২) ড্রপডাউন খুললে মূল মেনু ঝাপসা,
   (৩) ড্রপডাউনের তীর হার্ডকোড করা px এ তাই ভুল জায়গায়, (৪) ছোট ডেস্কটপে মেনু ভেঙে যেত।
   এখন: একটাই হেডার। উপরের সারি (লোগো/লিংক/সার্চ) স্ক্রলে সরে যায়, মেনু বারটি পিন হয়ে থাকে।
   ===================================================== */
header.sticky { display: none !important; }   /* ডুপ্লিকেট হেডার আর নেই */
.nav-brand { display: none; }                 /* শুধু ডেস্কটপে দেখায় (নিচে) */

@media (min-width: 769px) {
  :root { --hdr-top: 66px; --hdr-nav: 52px; --hdr-pad: clamp(16px, 2.4vw, 36px); }

  /* --- পিন: উপরের সারি স্ক্রলে সরে যাবে, নেভ সারি আটকে থাকবে --- */
  body header.non-sticky,
  body.has-sticky-header header.non-sticky {
    position: sticky; top: calc(var(--hdr-top) * -1); z-index: 1030;
    background: #fff; box-shadow: 0 1px 0 var(--line);
  }
  body.admin-bar header.non-sticky,
  body.has-sticky-header.admin-bar header.non-sticky { top: calc(32px - var(--hdr-top)); }
  header.non-sticky.is-stuck { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(16, 24, 40, .08); }
  #midHeader { box-shadow: none; }

  /* --- উপরের সারি: লোগো | লিংক | সার্চ + নোটিফিকেশন --- */
  #midHeader > .container-fluid { height: var(--hdr-top); padding: 0 var(--hdr-pad); }
  #midHeader > .container-fluid > .d-flex { height: 100%; align-items: center; gap: 20px; }
  #midHeader > .container-fluid > .d-flex > .flex-fill:first-child { flex: 0 0 auto !important; }
  header.non-sticky a.logo { width: auto; padding: 0; }
  header img.logo, header.non-sticky img.logo { max-height: 46px; width: auto; }

  .top_header_menu_container { flex: 1 1 0 !important; min-width: 0; padding: 0 !important; }
  #top-quick-links {
    display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 2px;
    margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none;
  }
  #top-quick-links::-webkit-scrollbar { display: none; }
  header #top-quick-links li {
    display: block; flex: 0 0 auto; margin: 0; height: auto; border: 0; box-shadow: none;
  }
  header #top-quick-links li a {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink-soft); white-space: nowrap;
    transition: color .2s var(--ease), background .2s var(--ease);
  }
  header #top-quick-links li i, header #top-quick-links li a > svg { margin: 0; height: auto; color: var(--brand); }
  header #top-quick-links li a:hover { color: var(--brand); background: var(--brand-soft); }

  .extra-opt-container { flex: 0 0 auto !important; position: relative; padding: 0 !important; display: flex; align-items: center; }
  #navigation .d-flex { position: static !important; }
  .extra-opt { position: static; display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
  .extra-opt > span { position: relative; display: block; }

  /* --- আইকন বাটন (সার্চ, নোটিফিকেশন, মেনু) --- */
  .hdr-btn {
    position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; margin: 0;
    border: 0; border-radius: 10px !important; background: var(--brand-soft); color: var(--brand);
    font-size: 17px; line-height: 1; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
  }
  .hdr-btn:hover, .header-dd.is-open > .hdr-btn { background: var(--brand); color: #fff; }
  .hdr-btn i { font-size: 17px; margin: 0; vertical-align: 0; }
  .hdr-btn svg { width: 20px !important; height: 20px !important; }
  .hdr-btn svg * { fill: currentColor !important; }
  .hdr-btn .close_icon, .header-dd.is-open > .hdr-btn .open_icon { display: none !important; }
  .header-dd.is-open > .hdr-btn .close_icon { display: inline-block !important; }
  #dropdownNotification .badge {
    position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; padding: 0; background: var(--accent);
    border: 2px solid #fff; border-radius: 50% !important; box-sizing: content-box;
  }

  /* --- সব ড্রপডাউন: তীর নেই, স্মুথ খোলা/বন্ধ, মূল মেনু কখনও ঝাপসা হয় না --- */
  header .dropdown_menu::before, header .dropdown_menu::after,
  header .dropdownAllMenu::before, header .dropdownAllMenu::after,
  #navigation .dropdownNotification::before, #navigation .dropdownNotification::after,
  #navigation .dropdownSearch::before, #navigation .dropdownSearch::after { display: none !important; content: none !important; }

  header .header-dd > .dropdown-menu {
    display: block !important; visibility: hidden; opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 !important;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .06);
    z-index: 1060; text-align: left;
  }
  header .header-dd.is-open > .dropdown-menu {
    visibility: visible; opacity: 1; pointer-events: auto; transform: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
  }

  /* সার্চ */
  .search-dd > .dropdownSearch { position: absolute; right: 0; top: calc(100% + 10px); width: 360px; padding: 10px !important; }
  .dropdownSearch .form-inner { position: relative; display: flex; align-items: center; gap: 8px; }
  .dropdownSearch input {
    flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; font-size: 16px; color: var(--ink);
    border: 1.5px solid #d6dbe1; border-radius: 10px; background: #fff; outline: none;
  }
  .dropdownSearch input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 138, 67, .14); }
  .dropdownSearch button.search-icon {
    position: static; flex: 0 0 auto; width: 44px !important; height: 44px !important; padding: 0; border: 0;
    border-radius: 10px !important; background: var(--brand); color: #fff;
  }
  .dropdownSearch button.search-icon:hover { background: var(--brand-dark); }

  /* নোটিফিকেশন */
  .notify-dd > .dropdownNotification { position: absolute; right: 0; top: calc(100% + 10px); width: 360px; max-height: 70vh; overflow-y: auto; padding: 6px 8px !important; }
  .notify-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }  /* হোভারের ফাঁক ঢাকে */
  .dropdownNotification > div { padding: 10px 8px !important; border-bottom: 1px solid var(--line) !important; border-radius: 8px; }
  .dropdownNotification > div:last-child { border-bottom: 0 !important; }
  .dropdownNotification > div:hover { background: var(--brand-soft); }
  .dropdownNotification a { display: block; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink); }
  .dropdownNotification a:hover { color: var(--brand); }
  .dropdownNotification .time { margin-top: 3px; font-size: 12px; color: var(--ink-soft); }

  /* --- নেভ সারি: [আইকন] [ মেনু (মাঝে) ] [☰] --- */
  section#top-nav { position: relative; border-top: 1px solid var(--line); background: #fff; }
  section#top-nav > .container-fluid { padding: 0 var(--hdr-pad); }
  section#top-nav .top-nav-row {
    display: grid !important; grid-template-columns: minmax(44px, 150px) minmax(0, 1fr) minmax(44px, 150px); align-items: center; gap: 8px;
    height: var(--hdr-nav);
  }
  .nav-brand {
    display: flex; align-items: center; justify-self: start; width: auto; max-width: 150px; height: 36px; opacity: 0; transform: translateX(-6px);
    pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-brand img { height: 32px; width: auto; max-width: 150px; object-fit: contain; display: block; }
  header.is-stuck .nav-brand { opacity: 1; transform: none; pointer-events: auto; }

  #mobile_scroll { min-width: 0; overflow-x: auto; overflow-y: hidden !important; scrollbar-width: none; }
  #mobile_scroll::-webkit-scrollbar { display: none; }
  section#top-nav nav > ul { width: max-content; height: var(--hdr-nav); margin: 0 auto; padding: 0; gap: 2px; }
  section#top-nav nav > ul > li { display: block; flex: 0 0 auto; }
  section#top-nav nav > ul > li > a {
    display: flex; align-items: center; height: var(--hdr-nav); padding: 0 14px; min-width: 0;
    font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--ink);
    border-radius: 0; border-bottom: 3px solid transparent;
    transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  }
  section#top-nav nav > ul > li > a::after { display: none; }
  section#top-nav nav > ul > li > a:hover { color: var(--brand); background: var(--brand-soft); border-bottom-color: rgba(11, 138, 67, .35); }
  section#top-nav nav > ul > li.current-menu-item > a,
  section#top-nav nav > ul > li.current_page_item > a,
  section#top-nav nav > ul > li.current-menu-ancestor > a,
  section#top-nav nav > ul > li > a.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }

  /* --- সব মেনুর প্যানেল (☰) --- */
  .dropdownAllMenuIcon { padding: 0; position: static; justify-self: end; }
  .dropdownAllMenuIcon > .dropdownAllMenu {
    position: absolute; left: 0; right: 0; top: 100%; width: auto; margin: 0 auto !important; padding: 18px 22px 16px !important;
    max-width: 1180px; border-radius: 0 0 16px 16px; border-top: 0;
  }
  .dropdownAllMenu .date-desc { padding: 0 4px 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft) !important; }
  .dropdownAllMenu .news-separator-horizontal-border { border-top: 1px solid var(--line); margin: 0 0 12px; }
  .dropdownAllMenu ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 8px; }
  .dropdownAllMenu ul li { display: block; width: auto; }
  .dropdownAllMenu ul li a {
    display: block; padding: 10px 12px; border-radius: 8px; font-size: 16px; font-weight: 600; color: var(--ink) !important;
    transition: background .15s var(--ease), color .15s var(--ease), padding-left .15s var(--ease);
  }
  .dropdownAllMenu ul li a:hover { background: var(--brand-soft); color: var(--brand) !important; padding-left: 16px; }
  .dropdownAllMenu .top-extra-menus { grid-template-columns: none; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 12px; }
  .dropdownAllMenu .top-extra-menus li a {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); background: #fafbfc;
    font-size: 15px;
  }
  .dropdownAllMenu .top-extra-menus li a:hover { padding-left: 16px; border-color: var(--brand); }
  .dropdownAllMenu .top-extra-menus li a i { color: var(--brand); }
  .dropdownAllMenu .top-extra-menus li a span { font-size: 15px; }

  /* #mySidenav (মোবাইল-মেনু) ডেস্কটপে লুকানো থাকে — আগের মতোই */
}

/* ট্যাবলেট / ছোট ডেস্কটপ: ঘন করে, কিছু বাদ না দিয়ে */
@media (min-width: 769px) and (max-width: 1100px) {
  :root { --hdr-pad: 16px; }
  #midHeader > .container-fluid > .d-flex { gap: 12px; }
  header img.logo, header.non-sticky img.logo { max-height: 40px; }
  header #top-quick-links { justify-content: flex-start; }
  header #top-quick-links li a { padding: 8px 9px; font-size: 13px; }
  section#top-nav nav > ul > li > a { padding: 0 11px; font-size: 15px; }
  .search-dd > .dropdownSearch, .notify-dd > .dropdownNotification { width: min(340px, calc(100vw - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  header .header-dd > .dropdown-menu, .nav-brand, .hdr-btn { transition: none !important; }
}

/* হোমপেজ ডান পাশের উইজেট এরিয়া (Facebook Like Plugin / Epaper / Calendar) */
.sa-widgets-fblike { margin-bottom: 16px; }
.single-widgets { margin-bottom: 16px; max-width: 100%; overflow-x: auto; }
.single-widgets:last-child { margin-bottom: 0; }
.single-widgets img, .single-widgets iframe { max-width: 100%; height: auto; }
.single-widgets .widgettitle { font-size: 18px; font-weight: 700; margin: 0 0 10px; }

/* =====================================================
   v16: ডেস্কটপ হেডারে তারিখ + ই-পেপার / লাইভ টিভি, আর সুন্দর কমেন্ট ফর্ম
   ===================================================== */
@keyframes sa-live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (min-width: 769px) {
  .sa-headinfo { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
  .sa-date { display: flex; flex-direction: column; justify-content: center; line-height: 1.4; padding-right: 14px; border-right: 1px solid var(--line); }
  .sa-date__en { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
  .sa-date__bn { font-size: 12.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }
  .sa-quick { display: flex; gap: 8px; }
  .sa-q {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px;
    font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  }
  .sa-q--epaper { background: var(--brand); color: #fff; border: 1.5px solid var(--brand); }
  .sa-q--epaper:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
  .sa-q--live { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
  .sa-q--live:hover { background: var(--accent); color: #fff; }
  .sa-q--live:hover .sa-q__dot { background: #fff; }
  .sa-q__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: sa-live-blink 1.4s ease-in-out infinite; }
}
/* জায়গা কম হলে আগে তারিখ, তারপর লিংকের আইকন সরে যায় — কিছু ভাঙে না */
@media (min-width: 769px) and (max-width: 1399px) {
  header #top-quick-links li a i, header #top-quick-links li a > svg { display: none; }
  header #top-quick-links li a { padding: 8px 9px; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .sa-date { display: none; }
  .sa-q { height: 34px; padding: 0 11px; font-size: 13px; }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .top_header_menu_container { display: none; }   /* এই সাইজে ই-পেপার/লাইভ টিভি বাটনই যথেষ্ট */
  #midHeader > .container-fluid > .d-flex > .flex-fill:first-child { flex: 1 1 auto !important; }
  .sa-headinfo { margin-left: auto; }
}

/* ---------- মন্তব্য ফর্ম ---------- */
.fb_comments, #facebook_comments .fb_comments { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: #fff; }
.sa-comments { padding: 18px; }
.sa-comments .comment-form { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.sa-comments .comment-form > p { margin: 0; }
.sa-comments__f { flex: 1 1 100%; }
.sa-comments__f:has(input) { flex: 1 1 240px; }
.sa-comments__f:has(textarea) { flex-basis: 100%; order: -1; }
.sa-comments .form-control {
  display: block; width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid #d6dbe1; border-radius: 10px; outline: none; box-shadow: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sa-comments textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }
.sa-comments .form-control::placeholder { color: #8a94a0; }
.sa-comments .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 138, 67, .14); }
.sa-comments .form-submit { flex: 1 1 100%; margin: 4px 0 0 !important; text-align: left; }
.sa-comments .form-submit input[type="submit"], .sa-comments__btn {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 30px; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .1px;
  color: #fff; background: var(--brand); border: 0; border-radius: 10px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(11, 138, 67, .25);
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .1s var(--ease);
}
.sa-comments .form-submit input[type="submit"]:hover, .sa-comments__btn:hover {
  background: var(--brand-dark); box-shadow: 0 8px 20px rgba(11, 138, 67, .32);
}
.sa-comments .form-submit input[type="submit"]:active, .sa-comments__btn:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(11, 138, 67, .25); }
.sa-comments .form-submit input[type="submit"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 575px) {
  .sa-comments { padding: 14px; }
  .sa-comments .form-submit input[type="submit"], .sa-comments__btn { width: 100%; }
}

/* JS একেবারেই না চললে (sa-js ক্লাস বসেনি): বাটনে ফোকাস থাকলে প্যানেল খোলা থাকবে */
@media (min-width: 769px) {
  html:not(.sa-js) header .header-dd:focus-within > .dropdown-menu {
    visibility: visible; opacity: 1; pointer-events: auto; transform: none;
  }
}


/* ===== মেইন মেনুর সাব-মেনু (ড্রপডাউন) =====
   #mobile_scroll এ overflow লাগানো, তাই সাব-মেনু position:fixed; অবস্থান JS দেয় (modern.js ৪.৬) */
section#top-nav nav > ul > li.menu-item-has-children > a::after {
  content: "\f107"; font-family: "Font Awesome 5 Free", "Font Awesome 6 Free"; font-weight: 900;
  display: inline-block !important; width: auto !important; height: auto !important; position: static !important;
  background: none !important; margin-left: 6px; font-size: 12px; transform: none !important;
}
section#top-nav nav ul.sub-menu {
  display: none; position: fixed; z-index: 1070; min-width: 200px; max-width: 280px; margin: 0; padding: 6px 0;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14); width: auto; height: auto; max-height: 70vh; overflow-y: auto;
}
section#top-nav nav li.sub-open > ul.sub-menu { display: block; }
section#top-nav nav ul.sub-menu li { display: block; width: 100%; }
section#top-nav nav ul.sub-menu li a {
  display: block; height: auto; padding: 9px 16px; font-size: 15px; font-weight: 600; line-height: 1.4;
  color: var(--ink); white-space: nowrap; border: 0; border-radius: 0; background: transparent;
}
section#top-nav nav ul.sub-menu li a::after { display: none !important; }
section#top-nav nav ul.sub-menu li a:hover,
section#top-nav nav ul.sub-menu li.current-menu-item > a { color: var(--brand); background: var(--brand-soft); }

/* বাগ ফিক্স: "অন্যান্য" ড্রপডাউনের নিচের অংশ পেজের টাইটেল/কনটেন্টের তলায় ঢাকা পড়ত।
   হেডারকে (এবং তার ড্রপডাউনকে) পেজের সব কনটেন্টের উপরে রাখা হলো */
body header.non-sticky,
body.has-sticky-header header.non-sticky { z-index: 100000; }
section#top-nav nav ul.sub-menu { z-index: 100002; }
.page-wrapper, .page-wrapper .page-card, .page-wrapper .page-header { z-index: auto; }

/* বাগ ফিক্স: পেজ/আর্টিকেলের ভেতরের <header> ড্রপডাউন ঢাকত — স্বচ্ছ ও নিচু স্তরে রাখা হলো */
.page-wrapper .page-header { z-index: auto; background: transparent; }

/* মন্তব্য ফর্ম: কুকি-সেভ চেকবক্স লুকানো (ক্যাশ/প্লাগিন থেকে এলেও) */
.sa-comments .comment-form-cookies-consent { display: none !important; }
