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

:root {
  --paper: #faf9f6;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --red: #b3121f;
  --red-dark: #8c0e18;
  --line: #e7e2da;
  --white: #ffffff;
  --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: 40px; white-space: nowrap; animation: ticker 35s linear infinite; padding-left: 16px; }
.ticker-items a { font-size: 14px; color: var(--ink); }
.ticker-items a:hover { color: var(--red); }
.ticker-items a::before { content: '●'; color: var(--red); font-size: 9px; margin-left: 8px; vertical-align: 2px; }
@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; }
}

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{
    font-family: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif;
    font-size: 22px;
    line-height: 2;
    color:#111;
}

.single-content p{
    font-size:22px;
    line-height:2;
    margin-bottom:24px;
}

.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; flex-direction: column; }
  .nav-list.open { display: flex; }
  .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; }
.topbar-social a {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  background: #34302c; color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700;
}
.topbar-social a:hover { background: var(--red); }

/* মাস্টহেড 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 { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.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: 1.6fr 1fr 1fr 1.4fr; }
.footer-logo { max-height: 52px; width: auto; margin-bottom: 8px; filter: brightness(0) invert(1); }
.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; 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 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; }
}
