/*
Theme Name: Bangla News Pro V5
Theme URI: https://example.com
Author: Global IT
Author URI: https://example.com
Description: Professional Bangla news portal theme (Pro V5) with breaking ticker, featured slider, special + trending blocks, ads slots, view counter, print-friendly, and customizer controls.
Version: 5.4.6
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bangla-news-pro-v5
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, rtl-language-support
*/

:root{
  --bn-primary:#0b2a5b; /* dark blue */
  --bn-secondary:#102a43;
  --bn-accent:#f5b301; /* gold */
  --bn-bg:#f7f9fc;
  --bn-text:#102a43;
  --bn-muted:#6b7280;
  --bn-card:#ffffff;
  --bn-border:#e5e7eb;

  --bn-topbar:#0b2a5b;
  --bn-menu-bg:#0b2a5b;

  --bn-break-label-bg:#0b2a5b;
  --bn-break-label-text:#ffffff;
  --bn-break-scroll-bg:#0b2a5b; /* same line custom color */
  --bn-break-scroll-text:#ffffff;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", "Hind Siliguri", Arial, sans-serif;
  color:var(--bn-text);
  background:var(--bn-bg);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%;height:auto;display:block}
.container{width:min(1200px, calc(100% - 32px)); margin:0 auto;}
.bn-sr-only{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}

.bn-topbar{
  background:var(--bn-topbar);
  color:#fff;
  font-size:14px;
}
.bn-topbar .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
}
.bn-date-time{opacity:.95; white-space:nowrap;}
.bn-lang{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.bn-lang a{
  color:#fff; font-weight:600; padding:4px 10px; border:1px solid rgba(255,255,255,.25); border-radius:999px;
}
.bn-lang a:hover{background:rgba(255,255,255,.12)}

.bn-header{
  background:#fff;
  border-bottom:1px solid var(--bn-border);
}
.bn-brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.bn-logo{
  display:flex; align-items:center; gap:10px;
}
.bn-logo img{max-height:60px; width:auto;}
.bn-site-title{
  font-weight:900;
  font-size:24px;
  letter-spacing:.2px;
}
.bn-site-desc{font-size:13px;color:var(--bn-muted); margin-top:-4px;}
.bn-header-ad{
  min-width:280px;
  max-width:728px;
  width:100%;
}
.bn-ad-box{
  border:1px dashed var(--bn-border);
  border-radius:12px;
  padding:10px;
  background:linear-gradient(180deg,#fff, #fbfdff);
}

.bn-nav{
  position:relative;
  background:var(--bn-menu-bg);
  color:#fff;
  border-top:1px solid rgba(255,255,255,.10);
}
.bn-nav.is-sticky{
  position:sticky; top:0; z-index:999;
}
.bn-nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
}
.bn-menu-toggle{
  display:none;
  background:transparent;border:1px solid rgba(255,255,255,.25);
  color:#fff;border-radius:10px;
  padding:8px 10px;
}
.bn-primary-menu ul{list-style:none;margin:0;padding:0;display:flex;gap:2px;flex-wrap:wrap}
.bn-primary-menu a{
  display:block;padding:12px 14px;
  color:#fff;font-weight:700;font-size:15px;
  border-radius:12px;
}
.bn-primary-menu a:hover{background:rgba(255,255,255,.12)}
.bn-primary-menu .current-menu-item>a{background:rgba(255,255,255,.18)}

.bn-secondary-menu{
  background:rgba(0,0,0,.10);
  border-top:1px solid rgba(255,255,255,.10);
}
.bn-secondary-menu ul{list-style:none;margin:0;padding:0;display:flex;gap:2px;flex-wrap:wrap}
.bn-secondary-menu a{
  display:block;padding:10px 12px;
  color:#fff;font-weight:700;font-size:14px;
  border-radius:12px;
}
.bn-secondary-menu a:hover{background:rgba(255,255,255,.12)}

.bn-breaking{
  margin:14px 0 16px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--bn-border);
  background:#fff;
}
.bn-breaking .row{
  display:flex; align-items:stretch;
}
.bn-break-label{
  flex:0 0 auto;
  display:flex; align-items:center;
  padding:10px 14px;
  background:var(--bn-break-label-bg);
  color:var(--bn-break-label-text);
  font-weight:900;
  letter-spacing:.2px;
  white-space:nowrap;
}
.bn-break-marquee{
  position:relative;
  overflow:hidden;
  flex:1 1 auto;
  background:var(--bn-break-scroll-bg);
  color:var(--bn-break-scroll-text);
}
.bn-break-track{
  display:flex;
  gap:40px;
  width:max-content;
  animation: bn-marquee linear infinite;
  /* duration set inline via JS */
  padding:10px 14px;
  will-change:transform;
}
.bn-break-item{
  font-weight:700;
  white-space:nowrap;
}
@keyframes bn-marquee{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

.bn-grid{
  display:grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap:18px;
  align-items:start;
}

.bn-hero{
  display:grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap:16px;
}

.bn-card{
  background:var(--bn-card);
  border:1px solid var(--bn-border);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 8px 24px rgba(16,42,67,.06);
}
.bn-card .pad{padding:14px}
.bn-section-title{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  background:linear-gradient(180deg, #ffffff, #f6f8fb);
  border-bottom:1px solid var(--bn-border);
}
.bn-section-title h2{
  margin:0;font-size:16px;font-weight:900;
}
.bn-badge{
  font-size:12px; font-weight:900;
  padding:4px 10px; border-radius:999px;
  background:rgba(11,42,91,.08);
  color:var(--bn-primary);
}

.bn-slider{
  position:relative;
}
.bn-slide{
  display:none;
}
.bn-slide.is-active{display:block}
.bn-slide a{display:block}
.bn-slide-img{aspect-ratio: 16/9; background:#0b2a5b;}
.bn-slide-meta{padding:12px 14px}
.bn-slide-title{margin:0; font-size:22px; font-weight:1000; line-height:1.25}
.bn-slide-excerpt{margin:8px 0 0; color:var(--bn-muted); font-size:14px}

.bn-slider-dots{
  position:absolute; left:12px; bottom:12px; display:flex; gap:8px;
}
.bn-dot{
  width:10px;height:10px;border-radius:999px;
  background:rgba(255,255,255,.45);
  border:1px solid rgba(0,0,0,.10);
  cursor:pointer;
}
.bn-dot.is-active{background:#fff}

.bn-mini-list{display:grid; gap:12px; padding:12px 14px}

.bn-main{
  margin:18px 0 26px;
}
.bn-post-list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}
.bn-post{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:12px;
  padding:12px;
  border:1px solid var(--bn-border);
  border-radius:16px;
  background:#fff;
}
.bn-post img{width:140px;height:94px;object-fit:cover;border-radius:12px}
.bn-post h3{margin:0;font-size:16px;font-weight:1000;line-height:1.25}
.bn-post p{margin:8px 0 0;color:var(--bn-muted);font-size:13px}
.bn-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--bn-muted);font-size:12px;margin-top:6px}
.bn-chip{padding:2px 8px;border-radius:999px;background:rgba(11,42,91,.07);color:var(--bn-primary);font-weight:800}

.bn-single{
  background:#fff;
  border:1px solid var(--bn-border);
  border-radius:16px;
  overflow:hidden;
}
.bn-single .pad{padding:18px}
.bn-single h1{margin:0 0 10px;font-size:30px;line-height:1.15;font-weight:1100}
.bn-single .bn-meta{margin:0 0 14px}
.bn-share{
  display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 16px;
}
.bn-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--bn-border);
  background:#fff;
  font-weight:900;
  cursor:pointer;
}
.bn-btn:hover{background:#f7f9fc}
.bn-btn.primary{
  background:var(--bn-primary);
  color:#fff;
  border-color:rgba(255,255,255,.15);
}
.bn-related{
  margin-top:18px;
}
.bn-related .bn-mini img{height:62px}

.bn-sidebar .widget{
  background:#fff;
  border:1px solid var(--bn-border);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 8px 24px rgba(16,42,67,.05);
  margin-bottom:16px;
}
.bn-sidebar .widget-title{
  margin:0;
  padding:12px 14px;
  border-bottom:1px solid var(--bn-border);
  font-size:15px;
  font-weight:1000;
  background:linear-gradient(180deg,#fff,#f6f8fb);
}
.bn-sidebar .widget > *:not(.widget-title){padding:12px 14px}

.bn-footer{
  margin-top:26px;
  background:var(--bn-secondary);
  color:#fff;
}
.bn-footer .wrap{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:16px;
  padding:24px 0;
}
.bn-footer h3{margin:0 0 10px;font-size:16px;font-weight:1000}
.bn-footer p, .bn-footer a{color:rgba(255,255,255,.90)}
.bn-footer a:hover{color:#fff}
.bn-footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:12px 0;
  font-size:13px;
  color:rgba(255,255,255,.85);
}
.bn-footer-bottom .dev{
  font-weight:900;
}

.bn-pagination{display:flex;gap:10px;justify-content:center;margin:18px 0}
.bn-pagination .page-numbers{
  padding:8px 12px;border-radius:12px;border:1px solid var(--bn-border);
  background:#fff;font-weight:900;
}
.bn-pagination .current{background:var(--bn-primary);color:#fff;border-color:transparent}


.bn-breadcrumb{
  margin:10px 0 14px;
  font-size:13px;
  color:var(--bn-muted);
}
.bn-breadcrumb a{color:var(--bn-primary);font-weight:900}
.bn-breadcrumb .sep{margin:0 6px;opacity:.7}

/* ===== Pro V5.1 Card Layout (Image top, Title under) ===== */
.bn-mini-list{display:grid; gap:14px; padding:12px 14px}

.bn-post{
  display:block;
  padding:12px;
  border:1px solid var(--bn-border);
  border-radius:16px;
  background:#fff;
}
.bn-post img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:14px;
}
.bn-post h3{margin:10px 0 0;font-size:16px;font-weight:1000;line-height:1.25}

.bn-slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(11,42,91,.92);
  color:#fff;
  border:none;
  width:42px;height:42px;
  border-radius:999px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  line-height:1;
}
.bn-slider-prev{left:12px;}
.bn-slider-next{right:12px;}

@media (max-width: 980px){
  .bn-grid{grid-template-columns:1fr}
  .bn-brand{flex-direction:column; align-items:flex-start}
  .bn-hero{grid-template-columns:1fr}
  .bn-post-list{grid-template-columns:1fr}
  .bn-primary-menu ul{display:none; flex-direction:column; padding:10px 0}
  .bn-primary-menu.is-open ul{display:flex}
  .bn-menu-toggle{display:inline-flex; margin:10px 0}
  .bn-footer .wrap{grid-template-columns:1fr}
}

@media print{
  body{background:#fff}
  .bn-topbar, .bn-nav, .bn-sidebar, .bn-share, .bn-related, .bn-footer, .bn-header-ad, .bn-breaking{display:none !important}
  .bn-single{border:none}
  .bn-print-logo{display:block !important; margin:0 0 12px}
  a{color:#000;text-decoration:none}
}

.bn-sponsored{background:#f59e0b;color:#000;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:900;display:inline-block;margin-top:6px}

.bn-tabs{display:flex;gap:8px;margin-bottom:10px}
.bn-tab{padding:6px 12px;border-radius:999px;border:1px solid var(--bn-border);cursor:pointer;font-weight:900}
.bn-tab.active{background:var(--bn-primary);color:#fff}

/* ===== Pro V5.3 Reactions ===== */
.bn-reactions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.bn-react{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--bn-border);background:#fff;border-radius:999px;padding:8px 12px;cursor:pointer;font-weight:1000}
.bn-react:hover{background:#f7f9fc}
.bn-react .count{font-weight:1000;color:var(--bn-muted)}
.bn-react.is-selected{border-color:rgba(11,42,91,.35); box-shadow:0 8px 20px rgba(16,42,67,.08)}
/* Trending AJAX */
.bn-trending-body{min-height:120px}

/* Breaking News Static Mode */
.bn-break-static{
  padding:10px 14px;
  font-weight:900;
  color:#fff;
  white-space:nowrap;
}

/* Force Breaking News static when scroll OFF */
.bn-breaking[data-scroll="off"] .bn-break-track{
  animation:none !important;
  transform:none !important;
}

/* Breaking News ON = smooth marquee */
.bn-breaking[data-scroll="on"] .bn-break-track{
  animation: bn-marquee linear infinite;
}

/* === V5.4.1 FORCE BREAKING SCROLL ON === */
.bn-break-track{
  animation: bn-marquee 45s linear infinite !important;
  white-space: nowrap !important;
}

/* === V5.4.2 Smooth Slider === */
.bn-slider{position:relative;overflow:hidden}
.bn-slider-track{display:flex;transition:transform .6s ease}
.bn-slide{min-width:100%}

/* === V5.4.3 Slider Sequential Fix === */
.bn-slider { overflow:hidden; position:relative; }
.bn-slider-track{
  display:flex;
  width:100%;
  will-change:transform;
  transition: transform 0.6s ease;
}
.bn-slide{
  flex: 0 0 100%;
}

/* === V5.4.4 Bulletproof Slider === */
.bn-slider{position:relative;overflow:hidden}
.bn-slider-track{
  display:flex;
  will-change:transform;
  transition:transform .55s ease-in-out;
}
.bn-slide{flex:0 0 100%}

/* === V5.4.5 GUARANTEED SEQUENTIAL SLIDER === */
.bn-slider{overflow:hidden;position:relative}
.bn-slider-track{
  display:flex;
  transition:transform .6s ease;
  scroll-snap-type:x mandatory;
}
.bn-slide{
  flex:0 0 100%;
  scroll-snap-align:start;
}

/* === V5.4.6 Swiper Slider === */
.bn-swiper{width:100%;overflow:hidden}
.bn-swiper .swiper-slide{width:100%}
