/* PCN Lead Theme */
body.theme-pcn-lead { background: #f3f4f6; }

.pcn-ticker {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  font-size: var(--pcn-ticker-fs, 14px);
}
.pcn-ticker-label {
  flex-shrink: 0;
  color: #b91c1c;
  font-weight: 700;
  white-space: nowrap;
   font-family: 'Noto Serif Bengali', Georgia, serif;
}
.pcn-ticker-label span { color: #111; font-weight: 600; }
.pcn-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: calc(var(--pcn-ticker-fs, 14px) * 1.7);
  line-height: 1.7;
}
.pcn-ticker-move {
  display: inline-block;
  white-space: nowrap;
  animation: pcn-marquee 35s linear infinite;
  color: #1f2937;
}
.pcn-ticker-move a {
  color: #1f2937;
  text-decoration: none;
  margin-right: 28px;
   font-family: 'Noto Serif Bengali', Georgia, serif;
}
.pcn-ticker-move a:hover { color: #b91c1c; }
.pcn-dot { color: #dc2626; margin-right: 6px; }
/* Mouse over the ticker -> stop scrolling */
.pcn-ticker:hover .pcn-ticker-move,
.pcn-ticker-move:focus-within { animation-play-state: paused; }
@keyframes pcn-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.pcn-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pcn-card a { color: inherit; text-decoration: none; }
.pcn-card a:hover .pcn-title { color: #b91c1c; }

.pcn-lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
}
.pcn-lead-img {
  min-height: 280px;
  background: #e5e7eb center/cover no-repeat;
}
.pcn-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}
.pcn-lead-body { padding: 20px 22px; }
.pcn-title {
  font-family: 'Noto Serif Bengali', Georgia, serif;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #111827;
}
.pcn-lead-body .pcn-title { font-size: 1.45rem; }
.pcn-excerpt {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
      font-family: 'Noto Serif Bengali', Georgia, serif;

}

.pcn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.pcn-grid-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.pcn-grid-item a { display: block; color: inherit; text-decoration: none; }
.pcn-grid-item a:hover .pcn-title { color: #b91c1c; }
.pcn-grid-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.pcn-grid-item .pcn-title {
  font-size: 1.11em;
  padding: 10px 12px 14px;
  margin: 0;
}

.pcn-side-feature img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.pcn-side-feature .pcn-title {
  font-size: 1.11em;
  padding: 12px 14px;
  margin: 0;
}

.pcn-thumb-list { list-style: none; margin: 0; padding: 0; }
.pcn-thumb-list li {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #f3f4f6;
}
.pcn-thumb-list img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.pcn-thumb-list .pcn-title {
  font-size: 1.11em;
  margin: 0;
  font-weight: 600;
}

.pcn-ad {
  text-align: center;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
}
.pcn-ad img { max-width: 100%; height: auto; border-radius: 6px; }

.pcn-fb {
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 16px;
}
.pcn-fb h6 {
  font-family: 'Noto Serif Bengali', serif;
  font-weight: 700;
  margin-bottom: 14px;
}
.pcn-fb-icons { display: flex; justify-content: center; gap: 12px; }
.pcn-fb-icons a {
  width: 48px; height: 48px; border-radius: 10px;
  background: #f3f4f6; display: flex; align-items: center; justify-content: center;
  color: #e11d48; font-size: 1.25rem; text-decoration: none;
}
.pcn-fb-icons a:hover { background: #ffe4e6; }

.pcn-tabs {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.pcn-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pcn-tabs-nav button {
  border: 0;
  padding: 12px;
  font-weight: 700;
  font-family: 'Noto Sans Bengali', sans-serif;
  cursor: pointer;
  background: #d1d5db;
  color: #111;
}
.pcn-tabs-nav button.active {
  background: #dc2626;
  color: #fff;
}
.pcn-tabs-body {
  max-height: 420px;
  overflow-y: auto;
}
.pcn-tabs-body ul { list-style: none; margin: 0; padding: 0; }
.pcn-tabs-body li {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 1.11em;
  font-weight: 600;
  font-family: 'Noto Serif Bengali', serif;
  line-height: 1.45;
}
.pcn-tabs-body li a { color: #111827; text-decoration: none; }
.pcn-tabs-body li a:hover { color: #b91c1c; }
.pcn-tabs-panel { display: none; }
.pcn-tabs-panel.active { display: block; }

@media (max-width: 991px) {
  .pcn-lead { grid-template-columns: 1fr; }
  .pcn-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .pcn-grid { grid-template-columns: 1fr; }
}


/* =====================================================================
   FRONT PAGE — category sections + ad sidebar
   ===================================================================== */
.cs-section { margin-bottom: 30px; }
.cs-section a { color: inherit; text-decoration: none; }
.cs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 12px; border-bottom: 1px solid #e5e7eb; margin-bottom: 16px;
}
.cs-title { margin: 0; font-family: 'Noto Serif Bengali', Georgia, serif; font-weight: 700; font-size: 21px; color: #111827; }
.cs-title a:hover { color: #b91c1c; }
.cs-more { font-size: 15px; color: #111827; display: inline-flex; align-items: center; gap: 8px; }
.cs-more i { font-size: 18px; transition: transform .2s ease; }
.cs-more:hover { color: #b91c1c; }
.cs-more:hover i { transform: translateX(3px); }

.cs-top {
  display: grid; gap: 24px; align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .62fr);
  padding-bottom: 18px; border-bottom: 1px solid #e5e7eb;
}
.cs-top-single { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.cs-lead-title {
  font-family: 'Noto Serif Bengali', Georgia, serif; font-weight: 700; color: #111827;
  font-size: clamp(20px, 2.1vw, 27px); line-height: 1.5; margin: 0 0 12px;
}
.cs-lead-text a:hover .cs-lead-title,
.cs-side a:hover .cs-card-title,
.cs-card a:hover .cs-card-title { color: #b91c1c; }
.cs-excerpt { color: #4b5563; font-size: 15px; line-height: 1.85; margin: 0 0 14px;    font-family: 'Noto Serif Bengali', Georgia, serif; }
.cs-time { color: #6b7280; font-size: 15px; margin-top: 8px;    font-family: 'Noto Serif Bengali', Georgia, serif;
 }

.cs-lead-img img, .cs-side img, .cs-card img,
.cs-noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.cs-noimg { background: #e5e7eb; }
.cs-card-title {
  font-family: 'Noto Serif Bengali', Georgia, serif; font-weight: 600; color: #111827;
  font-size: 18px; line-height: 1.55; margin: 10px 0 0;
}

.cs-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 18px; margin: 0 -16px;
}
.cs-row::after { content: ""; grid-column: 1 / -1; margin: 18px 16px 0; border-bottom: 1px solid #e5e7eb; }
.cs-card { padding: 0 16px; border-left: 1px solid #e5e7eb; }
.cs-card:first-child { border-left: 0; }

.cs-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 18px; }
.cs-ad { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px; text-align: center; overflow: hidden; }
.cs-ad img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 4px; }

@media (max-width: 991px) {
  .cs-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .cs-ad { flex: 1 1 280px; }
}
@media (max-width: 767px) {
  .cs-top, .cs-top-single { grid-template-columns: 1fr; gap: 14px; }
  .cs-lead-img { order: -1; }
  .cs-side { padding-top: 14px; border-top: 1px solid #e5e7eb; }
  .cs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; margin: 0; }
  .cs-row::after { margin: 0; }
  .cs-card, .cs-card:first-child { padding: 0; border-left: 0; }
}

/* =====================================================================
   FRONT END ONLY — image zoom on mouse hover
   ===================================================================== */
.pcn-zoom { display: block; overflow: hidden; }
.pcn-thumb-list .pcn-zoom { width: 72px; height: 56px; border-radius: 6px; flex-shrink: 0; }
.pcn-zoom img,
.sg-rel-img img,
.sg-side-thumb img { transition: transform .45s ease; will-change: transform; }
.pcn-zoom:hover img,
.sg-rel-img:hover img,
.sg-side-thumb:hover img { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  .pcn-zoom img, .sg-rel-img img, .sg-side-thumb img { transition: none; }
  .pcn-zoom:hover img, .sg-rel-img:hover img, .sg-side-thumb:hover img { transform: none; }
}

/* =====================================================================
   SINGLE POST (single.php) — red hero design
   ===================================================================== */
.sg-single { --sg-red:#dc2626; --sg-ink:#1f2937; }
.sg-single a { text-decoration: none; }

/* ---- Hero ---- */
.sg-hero {
  position: relative; display: flex; align-items: stretch; min-height: 410px;
  border-radius: 6px; overflow: hidden; color: #fff;
  background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 50%, #b91c1c 62%, #9f2a52 76%, #3b4fc4 100%);
}
.sg-hero:not(.has-img) { background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 100%); }
.sg-hero-text { position: relative; z-index: 2; width: 100%; max-width: 60%; padding: 52px 24px 36px 64px; }
.sg-hero:not(.has-img) .sg-hero-text { max-width: 100%; }
.sg-hero-img {
  position: absolute; top: 0; right: 0; bottom: 0; width: 44%; z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
          mask-image: linear-gradient(to right, transparent 0, #000 38%);
}
.sg-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.sg-cat { display: inline-block; color: #fff; opacity: .92; font-size: 14px; margin-bottom: 10px; font-family: 'Noto Serif Bengali', Georgia, serif; }
.sg-cat:hover { color: #fff; opacity: 1; text-decoration: underline; }
.sg-subtop { font-size: 15px; opacity: .9; margin-bottom: 6px; }
.sg-title {
  font-family: var(--font-bn-serif, 'Noto Serif Bengali', serif);
  font-weight: 700; color: #fff; margin: 0 0 22px;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.2;
}
.sg-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sg-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #b91c1c;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  overflow: hidden; flex-shrink: 0;
}
.sg-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.sg-author-names { display: flex; flex-direction: column; line-height: 1.2; font-size: 16px; font-family: 'Noto Serif Bengali', Georgia, serif; }
.sg-time { font-size: 15px; opacity: .92; margin-bottom: 0;  font-family: 'Noto Serif Bengali', Georgia, serif;}
.sg-time i { margin-right: 4px; }

.sg-share {
  display: flex; align-items: center; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.28);
}
.sg-share-left, .sg-share-right { display: flex; gap: 8px; }
.sg-share-right { margin-left: auto; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.28); }
.sg-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.88); font-size: 18px; cursor: pointer; padding: 0; line-height: 1;
  transition: background .15s, transform .15s;
}
.sg-btn:hover { transform: translateY(-1px); background: #fff; }
.sg-fb { color: #1877f2; } .sg-x { color: #111; } .sg-wa { color: #25d366; }
.sg-ghost { background: rgba(255,255,255,.18); color: #fff; }
.sg-ghost:hover { background: rgba(255,255,255,.34); color: #fff; }
.sg-caption { font-size: 13px; color: #6b7280; text-align: right; margin: 6px 4px 0; }

/* ---- Layout ---- */
.sg-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px;
  max-width: 1220px; margin: 22px auto 0;
}
.sg-main { min-width: 0; }

/* ---- Article ---- */
.sg-lead {
  font-family: var(--font-bn-sans, 'Noto Sans Bengali', sans-serif);
  font-weight: 700; font-size: 19px; line-height: 1.75; color: #1b1f24; margin: 0 8px 22px 8px;
}
.sg-body {
  font-family: var(--font-bn-serif, 'Noto Serif Bengali', serif);
  font-size: 18px; line-height: 2; color: #374151; text-align: justify;
}
.sg-body p { margin: 0 0 1.1rem; padding: 0 14px 0 56px; font-size: inherit; line-height: inherit; font-family: inherit; }
.sg-body a { color: var(--sg-red); text-decoration: underline; }
.sg-body img { max-width: 100%; height: auto; border-radius: 4px; }
.sg-body figure { margin: 1.25rem 0; }
.sg-body figcaption { font-size: .85rem; color: #6b7280; text-align: center; }
.sg-body h2, .sg-body h3, .sg-body h4 { margin: 1.4rem 0 .8rem; padding-left: 56px; }
.sg-body blockquote { margin: 1rem 14px 1.2rem 56px; padding: .4rem 1rem; border-left: 3px solid var(--sg-red); color: #4b5563; background: #fff; }
.sg-body ul, .sg-body ol { padding-left: 96px; padding-right: 14px; }
.sg-body iframe { max-width: 100%; }
.sg-tags { margin: 18px 8px 0 56px; display: flex; flex-wrap: wrap; gap: 6px; }
.sg-tag { background: #e5e7eb; color: #374151; border-radius: 999px; padding: 3px 12px; font-size: 15px; font-family: 'Noto Serif Bengali', Georgia, serif; }

/* ---- Related ---- */
.sg-section-title {
  font-family: var(--font-bn-sans, 'Noto Sans Bengali', sans-serif) !important;
  background: #e5e7eb; border-left: 3px solid var(--sg-red); color: #374151;
  font-size: 16px; font-weight: 500; padding: 6px 12px; margin: 34px 0 14px;
}
.sg-rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sg-rel-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); color: #111827; transition: box-shadow .15s, transform .15s;
}
.sg-rel-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.12); transform: translateY(-2px); color: #111827; }
.sg-rel-img { display: block; aspect-ratio: 17 / 10; background: #e5e7eb; overflow: hidden; }
.sg-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-noimg { height: 100%; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 28px; }
.sg-rel-body { display: block; padding: 12px 12px 16px; }
.sg-rel-title {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
   font-family: 'Noto Serif Bengali', Georgia, serif;
  font-size: 18px; font-weight: 500; line-height: 1.4; margin-bottom: 8px;
}
.sg-rel-card:hover .sg-rel-title { color: var(--sg-red);  font-family: 'Noto Serif Bengali', Georgia, serif;}
.sg-rel-ex {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  color: #6b7280; font-size: 15px; line-height: 1.5; font-family: 'Noto Serif Bengali', Georgia, serif;
}

/* ---- Sidebar ---- */
.sg-side-card { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding-bottom: 6px; }
.sg-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.sg-side-title {
  border-left: 3px solid var(--sg-red); padding-left: 10px; line-height: 1.1;
  font-family: var(--font-bn-serif, 'Noto Serif Bengali', serif); font-weight: 700; font-size: 19px; color: #111827;
}
.sg-side-more { font-size: 15px; color: #6b7280; font-family: 'Noto Serif Bengali', Georgia, serif; }
.sg-side-more:hover { color: var(--sg-red); }
.sg-side-list { list-style: none; margin: 0; padding: 0 12px; }
.sg-side-list li { border-bottom: 1px solid #eef0f3; }
.sg-side-list a { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; color: #111827; }
.sg-side-text {
  flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
   font-family: 'Noto Serif Bengali', Georgia, serif; font-size: 17px; font-weight: 500; line-height: 1.4;
}
.sg-side-list a:hover .sg-side-text { color: var(--sg-red); }
.sg-side-thumb { width: 72px; height: 44px; flex-shrink: 0; border-radius: 3px; overflow: hidden; background: #e5e7eb; }
.sg-side-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-side-thumb .sg-noimg { font-size: 16px; }
.sg-side-foot { display: block; text-align: center; padding: 10px; color: var(--sg-red); font-size: 14px; }
.sg-side-foot:hover { text-decoration: underline; }

/* ---- Toast ---- */
.sg-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #111827; color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 14px; z-index: 2000;
  transition: opacity .2s, transform .2s;
}
.sg-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .sg-layout { grid-template-columns: 1fr; }
  .sg-rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sg-hero { flex-direction: column; min-height: 0; background: linear-gradient(180deg, #7f1d1d 0%, #b91c1c 100%); }
  .sg-hero-text { max-width: 100%; padding: 28px 18px 22px; }
  .sg-hero-img { position: relative; width: 100%; height: 220px; -webkit-mask-image: none; mask-image: none; order: -1; }
  .sg-share-right { padding-left: 14px; }
  .sg-body { font-size: 17px; text-align: left; }
  .sg-body p, .sg-body h2, .sg-body h3, .sg-body h4 { padding-left: 0; padding-right: 0; }
  .sg-body blockquote { margin-left: 0; margin-right: 0; }
  .sg-body ul, .sg-body ol { padding-left: 28px; padding-right: 0; }
  .sg-lead { margin-left: 0; margin-right: 0; font-size: 18px; }
  .sg-tags { margin-left: 0; }
  .sg-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sg-rel-title { font-size: 16px; }
}
@media (max-width: 359px) { .sg-rel-grid { grid-template-columns: 1fr; } }

/* ---- Print ---- */
@media print {
  .site-top-bar, .header-menu-bar, .navbar, .footer, .sg-share, .sg-side, .sg-related, .sg-toast, .sg-tags { display: none !important; }
  .sg-hero { background: none !important; color: #000; min-height: 0; border-radius: 0; }
  .sg-hero-text { max-width: 100%; padding: 0 0 12px; }
  .sg-title, .sg-cat, .sg-author-names, .sg-time { color: #000 !important; }
  .sg-hero-img { position: static; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .sg-layout { display: block; }
  .sg-body p { padding: 0; }
}

/* Category Sections block below the classic layout */
.cs-wrap { margin-top: 34px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.cs-wrap .cs-section:last-child { margin-bottom: 0; }


/* =====================================================================
   MOBILE / TABLET FIXES (single post + front page)
   ===================================================================== */
.sg-title, .sg-lead, .sg-rel-title, .sg-side-text, .cs-lead-title, .cs-card-title { overflow-wrap: anywhere; }
.sg-body { overflow-wrap: break-word; }
.sg-body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sg-body img, .sg-body video, .sg-body iframe { max-width: 100% !important; height: auto; }
.sg-body iframe { aspect-ratio: 16 / 9; height: auto; width: 100%; }
.sg-single { overflow-x: clip; }

/* ---- Tablet (768–991): hero keeps the side-by-side look but with sane padding ---- */
@media (min-width: 768px) and (max-width: 991px) {
  .sg-hero { min-height: 360px; }
  .sg-hero-text { max-width: 62%; padding: 36px 16px 28px 30px; }
  .sg-hero-img { width: 42%; }
  .sg-title { font-size: clamp(24px, 3.4vw, 32px); }
  .sg-body p, .sg-body h2, .sg-body h3, .sg-body h4 { padding-left: 16px; padding-right: 16px; }
  .sg-body blockquote { margin-left: 16px; margin-right: 16px; }
  .sg-body ul, .sg-body ol { padding-left: 52px; padding-right: 16px; }
  .sg-lead { margin-left: 16px; margin-right: 16px; }
  .sg-tags { margin-left: 16px; }
  .sg-side-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  /* front page block: 2-col top, side card full row */
  .cs-top, .cs-top-single { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .cs-side { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 14px; border-top: 1px solid #e5e7eb; }
  .cs-side > a { display: contents; }
  .cs-side .cs-time { grid-column: 2; margin: 0; }
}

/* ---- Phone (<=767): hero = full-width image on top, red text panel below ---- */
@media (max-width: 767px) {
  .sg-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; border-radius: 8px; }
  .sg-hero-img {
    position: relative; inset: auto; display: block; flex: none; align-self: stretch; order: -1;
    width: 100%; max-width: none; height: auto; aspect-ratio: 16 / 10;
    -webkit-mask-image: none; mask-image: none;
  }
  .sg-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
  .sg-hero-text { max-width: 100%; width: 100%; padding: 22px 16px 18px; }
  .sg-title { font-size: clamp(22px, 6.2vw, 28px); line-height: 1.3; margin-bottom: 16px; }
  .sg-author-names { font-size: 15px; }
  .sg-share { margin-top: 14px; padding-top: 14px; gap: 8px; }
  .sg-share-left, .sg-share-right { gap: 6px; }
  .sg-share-right { padding-left: 10px; }
  .sg-btn { width: 38px; height: 38px; font-size: 17px; }
  .sg-caption { text-align: left; }
  .sg-layout { margin-top: 16px; gap: 18px; }
  .sg-body { line-height: 1.95; }
  .sg-section-title { margin-top: 26px; }
  .sg-side-thumb { width: 84px; height: 52px; }
  .sg-toast { max-width: 90vw; text-align: center; }
  .cs-title { font-size: 19px; }
  .cs-lead-title { font-size: 21px; }
  .pcn-ticker { padding: 6px 10px; }
}
@media (max-width: 380px) {
  .sg-btn { width: 34px; height: 34px; font-size: 15px; }
  .sg-share-right { padding-left: 8px; }
  .cs-row { grid-template-columns: 1fr; }
}


/* =====================================================================
   FRONT PAGE — extra blocks (home-extra.php)
   1) .fw-*  full-width 4 posts   2) .wa-box full-width ad   3) .fl-*  জাতীয় design + ads sidebar
   ===================================================================== */
.ex-wrap { margin-top: 30px; }
.ex-wrap a { color: inherit; text-decoration: none; }

/* ---- 1) full-width: 4 posts (image + title + ~25 words) ---- */
.fw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -16px; }
.fw-card { padding: 0 16px; border-left: 1px solid #e5e7eb; min-width: 0; }
.fw-card:first-child { border-left: 0; }
.fw-img { display: block; }
.fw-img img, .fw-img .cs-noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 4px; }
.fw-title {
  font-family: 'Noto Serif Bengali', Georgia, serif; font-weight: 600; color: #111827;
  font-size: 20px; line-height: 1.5; margin: 12px 0 8px; overflow-wrap: anywhere;
}
.fw-card:hover .fw-title { color: #b91c1c; }
.fw-desc { color: #4b5563; font-size: 15px; line-height: 1.8; margin: 0; overflow-wrap: anywhere;    font-family: 'Noto Serif Bengali', Georgia, serif; }

/* ---- 2) full-width ad box ---- */
.wa-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px; text-align: center; overflow: hidden; }
.wa-box img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 4px; margin: 0 auto; }
.wa-box iframe, .wa-box ins { max-width: 100%; }

/* ---- 3) জাতীয় design: big lead (left) + 3 list posts (right) ---- */
.fl-wrap .cs-sidebar { top: 80px; }
.fl-section { margin-bottom: 30px; }
.fl-section:last-child { margin-bottom: 0; }
.fl-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.fl-single { grid-template-columns: minmax(0, 1fr); }
.fl-lead-img { display: block; }
.fl-lead-img img, .fl-lead-img .cs-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.fl-lead-title {
  font-family: 'Noto Serif Bengali', Georgia, serif; font-weight: 700; color: #111827;
  font-size: clamp(19px, 1.9vw, 24px); line-height: 1.5; margin: 14px 0 10px; overflow-wrap: anywhere;
}
.fl-lead:hover .fl-lead-title { color: #b91c1c;  }
.fl-lead-desc { color: #4b5563; font-size: 15px; line-height: 1.8; margin: 0; overflow-wrap: anywhere;    font-family: 'Noto Serif Bengali', Georgia, serif; }

.fl-list { border-left: 1px solid #e5e7eb; padding-left: 24px; align-self: stretch; }
.fl-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e5e7eb; }
.fl-item:first-child { padding-top: 0; }
.fl-item:last-child { border-bottom: 0; padding-bottom: 0; }
.fl-item-title {
  flex: 1; min-width: 0; margin: 0; color: #111827; overflow-wrap: anywhere;
  font-family: 'Noto Serif Bengali', Georgia, serif; font-weight: 600; font-size: 18px; line-height: 1.55;
}
.fl-item:hover .fl-item-title { color: #b91c1c; }
.fl-thumb { flex: 0 0 42%; max-width: 180px; display: block; }
.fl-thumb img, .fl-thumb .cs-noimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .fw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 24px 20px; }
  .fw-card, .fw-card:first-child { padding: 0; border-left: 0; }
  .fl-wrap .cs-sidebar { position: static; }
}
@media (max-width: 767px) {
  .fl-grid { grid-template-columns: 1fr; gap: 18px; }
  .fl-list { border-left: 0; padding-left: 0; border-top: 1px solid #e5e7eb; padding-top: 16px; }
  .fl-item:first-child { padding-top: 0; }
  .fl-thumb { flex-basis: 36%; max-width: 140px; }
  .fl-item-title { font-size: 17px; }
}
@media (max-width: 480px) {
  .fw-grid { grid-template-columns: 1fr; }
  .fw-title { font-size: 18px; }
}


/* =====================================================================
   FRONT PAGE — বিনোদন design (.tc-*): big lead | 2 cards | 4 list posts
   ===================================================================== */
.tc-grid { display: grid; gap: 0 18px; align-items: start; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.05fr) minmax(0, 1.15fr); }
.tc-2 { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr); }
.tc-1 { grid-template-columns: minmax(0, 1fr); }
.tc-lead-img { display: block; }
.tc-lead-img img, .tc-lead-img .cs-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.tc-lead-title {
  font-family: 'Noto Serif Bengali', Georgia, serif; font-weight: 700; color: #a3202c;
  font-size: clamp(22px, 2.3vw, 31px); line-height: 1.45; margin: 16px 0 10px; overflow-wrap: anywhere;
}
.tc-lead:hover .tc-lead-title { color: #7f1d1d; }
.tc-lead-desc {
  color: #1f2937;    font-family: 'Noto Serif Bengali', Georgia, serif; font-size: 17px; line-height: 1.95; margin: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tc-mid, .tc-list { border-left: 1px solid #e5e7eb; padding-left: 16px; min-width: 0; }
.tc-card { display: block; }
.tc-card + .tc-card { border-top: 1px solid #e5e7eb; margin-top: 14px; padding-top: 14px; }
.tc-card-img { display: block; }
.tc-card-img img, .tc-card-img .cs-noimg { width: 100%; aspect-ratio: 17 / 10; object-fit: cover; display: block; }
.tc-card-title, .tc-item-title {
  font-family: 'Noto Serif Bengali', Georgia, serif; font-weight: 700; color: #111827;
  font-size: 18px; line-height: 1.55; margin: 8px 0 0; overflow-wrap: anywhere;
}
.tc-card:hover .tc-card-title, .tc-item:hover .tc-item-title { color: #b91c1c; }
.tc-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
.tc-item:first-child { padding-top: 0; }
.tc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.tc-thumb { flex: 0 0 90px; width: 90px; display: block; }
.tc-thumb img, .tc-thumb .cs-noimg { width: 90px; height: 90px; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.tc-item-title { margin: 0; flex: 1; min-width: 0; }

@media (max-width: 991px) {
  .tc-grid, .tc-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 18px; }
  .tc-1 { grid-template-columns: minmax(0, 1fr); }
  .tc-lead { grid-column: 1 / -1; }
  .tc-mid { border-left: 0; padding-left: 0; }
  .tc-2 .tc-mid, .tc-2 .tc-list { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}
@media (max-width: 767px) {
  .tc-grid, .tc-2 { grid-template-columns: minmax(0, 1fr); }
  .tc-list { border-left: 0; padding-left: 0; border-top: 1px solid #e5e7eb; padding-top: 16px; }
  .tc-lead-desc { -webkit-line-clamp: 3; font-size: 16px; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .tc-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .tc-card + .tc-card { border-top: 0; margin-top: 0; padding-top: 0; }
}


/* =====================================================================
   FRONT PAGE — Photo Gallery slider (.pg-*) : cover-flow, one slide after another
   ===================================================================== */
.pg-slider {
  --w: 290px; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; height: 455px;
}
.pg-track { position: absolute; inset: 0; }
.pg-card {
  position: absolute; left: 50%; top: 50%; width: var(--w); height: calc(var(--w) * 1.43);
  transform: translate(-50%, -50%) translateX(var(--x, 0px)) scale(var(--s, 1));
  transition: transform .55s cubic-bezier(.22, .8, .3, 1), opacity .45s ease;
  border-radius: 12px; overflow: hidden; background: #111827; color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28); display: block; text-decoration: none;
}
.ex-wrap .pg-card, .ex-wrap .pg-card:hover, .ex-wrap .pg-card:focus { color: #fff; }
.pg-card img, .pg-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pg-noimg { background: linear-gradient(135deg, #374151, #111827); }
.pg-card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--dim, 0)); z-index: 1; transition: background .55s ease; pointer-events: none; }
.pg-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 70px 16px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, 0) 100%);
  font-family: 'Noto Serif Bengali', Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; box-sizing: content-box;
  overflow-wrap: anywhere;
}
.pg-card:not(.is-center) .pg-cap { font-size: 16px; }
.pg-card.is-center { box-shadow: 0 16px 40px rgba(0, 0, 0, .38); }
.pg-card.is-center:hover .pg-cap { text-decoration: underline; text-underline-offset: 4px; }
.pg-card:not(.is-center) { cursor: pointer; }

.pg-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 40; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(17, 24, 39, .72); color: #fff; font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s;
}
.pg-nav:hover { background: #b91c1c; }
.pg-prev { left: 6px; } .pg-next { right: 6px; }
.pg-dots { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 40; display: flex; justify-content: center; gap: 7px; }
.pg-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: background .2s, transform .2s; }
.pg-dots button.on { background: #b91c1c; transform: scale(1.25); }
.pg-single .pg-nav, .pg-single .pg-dots { display: none; }

@media (max-width: 767px) {
  .pg-nav { width: 36px; height: 36px; font-size: 16px; }
  .pg-cap { font-size: 16px; padding: 56px 12px 14px; }
  .pg-card:not(.is-center) .pg-cap { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-card, .pg-card::after { transition: none; }
}
