/* Lightweight theme tuned for dense news portal */
:root{ --brand:#d71921; --muted:#6c757d; }
*{ box-sizing: border-box; }
body{ font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans Bengali","Noto Sans",Arial,sans-serif; }
.topbar{ background:#fafafa; border-bottom:1px solid rgba(0,0,0,.06); padding:.35rem 0; }
.brand-dot{ width:.75rem; height:.75rem; background:var(--brand); display:inline-block; border-radius:50%; margin-right:.35rem; }
.shadow-xs{ box-shadow:0 .125rem .25rem rgba(0,0,0,.03)!important; }

/* Ticker */
.ticker{ background:#fff; }
.ticker-track{ overflow:hidden; position:relative; flex:1; }
.ticker-list{ display:flex; gap:2rem; list-style:none; padding:.25rem 0; margin:0; animation:scroll 28s linear infinite; }
.ticker-list li a{ color:#111; text-decoration:none; }
.ticker-list li a:hover{ text-decoration:underline; }
@keyframes scroll{ from{ transform:translateX(0) } to{ transform:translateX(-60%) } }

/* Section title */
.sec-title{ font-weight:700; border-left:4px solid var(--brand); padding-left:.5rem; margin-bottom:.5rem; }

/* Latest list dense */
.latest-list li{ padding:.35rem 0; border-bottom:1px solid rgba(0,0,0,.05); }
.latest-list a{ color:#111; text-decoration:none; }
.latest-list a:hover{ text-decoration:underline; }

/* Vertical items with thumbs */
.vlist{ display:flex; flex-direction:column; gap:.5rem; }
.vitem{ display:flex; gap:.5rem; align-items:center; color:#111; text-decoration:none; }
.vitem img{ flex:0 0 96px; object-fit:cover; }
.vitem span{ font-size:.95rem; line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.vitem:hover span{ text-decoration:underline; }

/* Placeholders & ads */
.bg-placeholder{ background:#f3f4f6; }
.ad-slot{ background:#f8f9fa; border:1px dashed rgba(0,0,0,.2); color:#999; padding:1.25rem; border-radius:.5rem; margin-top:.5rem; }

/* Cards fine-tuning */
.card-img-top, .rounded{ border-radius:.5rem; }
.card-body{ padding:.5rem .75rem; }
.card-footer{ padding:.5rem .75rem; }

/* Tabs compact */
.nav-compact .nav-link{ padding:.35rem .75rem; font-size:.95rem; }

/* Back to top */
.back-top{ position:fixed; right:1rem; bottom:1rem; opacity:0; pointer-events:none; transition:.25s; }
.back-top.show{ opacity:1; pointer-events:auto; }

@media (max-width:991.98px){
  .latest-list{ columns:1; }
}


/* ===== Top Section specific ===== */
.home-top .news-snippet{ padding:.6rem 0; border-bottom:1px solid rgba(0,0,0,.07); }
.home-top .news-snippet:last-child{ border-bottom:0; }
.home-top .line-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ===== Google Font & Opinion Image Round ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;700&display=swap');

body {
  font-family: 'Noto Sans Bengali', sans-serif;
}

.vlist .vitem img {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* ===== Second Section (feature + compact list) ===== */
.sec-feature-compact .list-stacked .item{
  padding:.8rem 0; border-bottom:1px solid rgba(0,0,0,.08);
}
.sec-feature-compact .list-stacked .item:last-child{ border-bottom:0; }
.sec-feature-compact .thumb{ flex:0 0 120px; object-fit:cover; }
.line-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

:root{ --divider: rgba(0,0,0,.08); }

/* tighter feature */
.feature-tight .feature-img-wrap{ height: 300px; } /* smaller height */
@media (max-width: 991.98px){ .feature-tight .feature-img-wrap{ height: 220px; } }
.object-cover{ object-fit: cover; }
.feature-tight h2{ line-height:1.3; margin-bottom:.25rem; }

/* middle list separators */
.sec-feature-compact .list-stacked .item{ padding:.75rem 0; border-bottom:1px solid var(--divider); }
.sec-feature-compact .list-stacked .item:last-child{ border-bottom:0; }
.sec-feature-compact .thumb{ flex:0 0 120px; object-fit:cover; }

/* vertical dividers at lg+ */
.border-lg-start{ border-left: none; }
@media (min-width: 992px){
  .border-lg-start{ border-left:1px solid var(--divider)!important; }
}

/* right boxed two news with side+bottom borders */
.right-news.boxed{ border:1px solid var(--divider); border-radius:.5rem; overflow:hidden; }
.right-news .r-item{ padding:.6rem; border-bottom:1px solid var(--divider); color:#111; text-decoration:none; }
.right-news .r-item:last-child{ border-bottom:0; }
.right-news .r-item span{ font-size:.95rem; line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* soft divider utility */
.divider-soft{ --bs-border-color: var(--divider); }

.feature-tight p{ margin-bottom:.25rem; }

/* ===== Reusable Category Title Bar ===== */
.cat-title-wrap{border-top:4px solid #bdbdbd;margin-top:.75rem;width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;}
.cat-title{font-size:25px;font-weight:700;padding:8px 0;margin:0;display:inline-flex;align-items:center;gap:.35rem;}
.cat-title .chev{ color: var(--brand, #d71921); font-weight:700; }
.cat-title a{ color:#111; }
.cat-title a:hover{ text-decoration:underline; }

/* ===== Entertainment section ===== */
.sec-entertainment .list-stacked .item{ padding:.8rem 0; border-bottom:1px solid var(--divider); }
.sec-entertainment .list-stacked .item:last-child{ border-bottom:0; }
.sec-entertainment .thumb{ object-fit:cover; }
.sec-entertainment .compact-right .item{ padding:.7rem 0; }

/* ===== Entertainment refinements ===== */
/* Left column: force right-side thumbs and bigger size */
.sec-entertainment .list-left-consistent .item{ align-items: center; }
.sec-entertainment .list-left-consistent .item .thumb{
  order: 2;            /* keep image to the right */
  width: 140px;
  height: 90px;
  object-fit: cover;
  margin-left: auto;
  border-radius: .5rem;
}

/* Center feature: taller image and fuller spacing */
.sec-entertainment .feature-img-wrap{ height: 360px; }  /* was 300 */
@media (max-width: 991.98px){
  .sec-entertainment .feature-img-wrap{ height: 240px; }
}
.sec-entertainment .feature-tight h2{ margin: .4rem 0 .35rem; }
.sec-entertainment .feature-tight p{ margin-bottom: .35rem; }
.sec-entertainment .feature-tight .object-cover{ object-fit: cover; }

/* === Fix: Entertainment left list alignment === */
.sec-entertainment .list-left-consistent .item{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.sec-entertainment .list-left-consistent .item .content{
  flex:1 1 auto;
  min-width:0;              /* prevents overflow and wrapping issues */
}
.sec-entertainment .list-left-consistent .item .thumb{
  order:2;
  flex:0 0 128px;           /* fixed slot */
  width:128px;
  height:80px;
  margin-left:auto;
  object-fit:cover;
  border-radius:.5rem;
}
@media (max-width: 991.98px){
  .sec-entertainment .list-left-consistent .item .thumb{
    flex-basis:120px; width:120px; height:76px;
  }
}

/* ===== Generic category section ===== */
.sec-category .list-stacked .item{ padding:.8rem 0; border-bottom:1px solid var(--divider); }
.sec-category .list-stacked .item:last-child{ border-bottom:0; }

/* ===== For You 4-card grid ===== */
.sec-for-you .fy-thumb{ height: 190px; }
@media (min-width: 992px){ .sec-for-you .fy-thumb{ height: 200px; } }
.sec-for-you .fy-card h3{ line-height:1.35; }

/* ===== Four Category Grid ===== */
.sec-cat-grid .list-unstyled a{ color:#111; }
.sec-cat-grid .list-unstyled a:hover{ text-decoration:underline; }
.sec-cat-grid .list-unstyled li{ border-color: var(--divider); }
.cat-grid-head .cat-title{ font-size:20px; padding:8px 0; } /* smaller head size inside the grid */

/* ===== Tabs + Sports + Right List ===== */
.sec-tabs-sports .tabhead .nav-link{ border:0; border-bottom:3px solid transparent; color:#222; }
.sec-tabs-sports .tabhead .nav-link.active{ border-color:#d71921; font-weight:700; }
.sec-tabs-sports .tab-content{ border-color: var(--divider); }
.counter-list .list-group-item{ padding:.9rem .75rem; border-color: var(--divider); }
.counter-list .num{ width:1.75rem; color:#bdbdbd; font-weight:700; display:inline-block; }
.hero-sports .hero-img-wrap{ height: 360px; }
.hero-sports .hero-overlay{
  position:absolute; inset:0; padding:1rem 1.2rem 1.2rem; display:flex; flex-direction:column; justify-content:flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 85%);
}
.hero-sports .hero-overlay .dot{ width:10px; height:10px; background:#0d6efd; border-radius:50%; display:inline-block; }
.hero-sports .secname{ color:#fff; margin-left:.4rem; font-weight:600; }
@media (max-width: 991.98px){ .hero-sports .hero-img-wrap{ height: 240px; } }

/* === Two-up mini cards (middle column) on mobile: tighter spacing === */
@media (max-width: 575.98px){
  .sec-tabs-sports .card .h6{ font-size: .95rem; }
  .sec-tabs-sports .card .ratio{ margin-bottom: .25rem; }
}

/* === Mobile: hide details in 'বিশ্বজুড়ে' (4-card grid) === */
@media (max-width: 575.98px){
  .sec-for-you .fy-card p,
  .sec-for-you .fy-card small{ display:none !important; }
  .sec-for-you .fy-card h3{ margin-bottom: .25rem; }
}

/* ===== Opinion section ===== */
.sec-opinion .op-author img{ object-fit:cover; }
.sec-opinion .vlist .vitem img{ border-radius:50%; }
.sec-opinion .vlist .vitem{ border-color: var(--divider); }

/* ===== Opinion ALT (ribbon style) ===== */
:root{
  --op-navy:#0b2447;
  --op-yellow:#ffd200;
}
.sec-opinion-alt .op-card{
  border:1px solid var(--divider);
  background:#fff;
  position:relative;
}
.sec-opinion-alt .op-ribbon{
  background:var(--op-navy);
  color:#fff;
  padding:.4rem .6rem;
  border-radius:.2rem;
  font-weight:700;
  line-height:1.25;
}
.sec-opinion-alt .op-ribbon .tag{ color:var(--op-yellow); }
.sec-opinion-alt .op-text{ color:#333; font-size:1.05rem; line-height:1.6; }
.sec-opinion-alt .op-label{ color:#d71921; font-weight:700; }
.sec-opinion-alt .op-item{ border-color:var(--divider); }
@media (max-width: 575.98px){
  .sec-opinion-alt .op-text{ font-size:1rem; }
}

/* === Per-column titles for 4-col grids (mobile & desktop) === */
.cat-grid-head{ display:none !important; } /* hide multi-title row */
.col-cat-title{ font-size:20px; padding:8px 0; margin:0 0 .25rem 0; }

/* === Mobile tweak: smaller thumbs in 'বিশ্বজুড়ে' (sec-for-you) === */
@media (max-width: 575.98px){
  .sec-for-you .fy-thumb{ height: 120px !important; }
}

/* === Apply Noto Serif Bengali font === */
body, h1, h2, h3, h4, h5, h6, p, a, li, span {
  font-family: 'Noto Serif Bengali', serif !important;
}

/* All Sylhet: keep right thumbs aligned consistently */
.list-left-consistent .item{ display:flex; align-items:center; }
.list-left-consistent .item .content{ flex: 1 1 auto; min-width:0; }
.list-left-consistent .item .thumb{
  flex: 0 0 128px; /* same as width attr */
  width:128px; height:80px;
  object-fit:cover;
  margin-left: 12px;
}
