/* assets/css/home.css */
/* শুধু হোমপেজ (Hybrid layout) + ক্যাটেগরি পেজ এর জন্য CSS */
/* Mobile-first, বড় স্ক্রিনে layout expand হয়  */

/* ===== Shell & Layout ===== */
/* outer shell: mobile-first, পুরো কন্টেন্ট wrap এর ভেতরেই */
.nv-shell {
  width: 100%;
  max-width: var(--nv-max-width);
  margin: 0 auto;
  padding: 0 12px 2rem;
}

/* nv-layout: মোবাইলে এক কলাম, ডেক্সটপে দুই কলাম (flex) */
.nv-layout {
  display: flex;
  flex-direction: column;   /* mobile: column */
  gap: 1.5rem;
  margin-top: 1rem;
}

/* ডেক্সটপে দুই কলাম – main বড়, sidebar ছোট */
@media (min-width: 960px) {
  .nv-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .nv-layout > section {
    flex: 2.3 1 0;
    min-width: 0;
  }
  .nv-layout > aside {
    flex: 1 1 260px;
    max-width: 360px;
    min-width: 0;
  }
}


.nv-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  border-left: 3px solid var(--nv-brand);
  padding-left: .6rem;
  margin: 0 0 .75rem;
  color: #111827;
}
.nv-section-sub {
  font-size: .85rem;
  color: var(--nv-muted);
  margin-bottom: .4rem;
}

/* Cards */
.nv-card {
  background: var(--nv-panel);
  border-radius: var(--nv-radius);
  border: 1px solid var(--nv-border);
  box-shadow: var(--nv-shadow);
  overflow: hidden;
}
.nv-card-soft {
  background: var(--nv-panel-soft);
  border-radius: var(--nv-radius);
  border: 1px solid var(--nv-border);
}
.nv-pad { padding: 1rem; }

/* =========================================
   HERO SLIDER (HOME)
   ========================================= */
.nv-hero {
  background: #b91c1c;
  border-radius: var(--nv-radius);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* container */
.nv-hero-inner {
  position: relative;
  min-height: 260px;
}

/* সব slide ঘুমিয়ে থাকবে */
.nv-hero-slide {
  display: none;
}

/* মোবাইলে active slide ব্লক (image উপরে, text নিচে) */
.nv-hero-slide.is-active {
  display: block;
}

/* বড় স্ক্রিনে দুই কলাম গ্রিড */
@media (min-width: 860px) {
  .nv-hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.nv-hero-media {
  position: relative;
  overflow: hidden;
  max-height: 420px;
}
.nv-hero-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .6s ease;
}
.nv-hero-slide.is-active .nv-hero-img {
  transform: scale(1.05);
}
.nv-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.7));
}

.nv-hero-body {
  position: relative;
  padding: 1.1rem 1.2rem;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.3), transparent 48%),
    radial-gradient(circle at bottom right, rgba(30,64,175,.35), #b91c1c);
}
@media (max-width: 859px) {
  .nv-hero-body {
    padding: 1rem 1rem 1.2rem;
  }
}

.nv-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #bfdbfe;
}
.nv-hero-kdot {
  width: .4rem;
  height: .4rem;
  border-radius: 999px;
  background: #22c55e;
}
.nv-hero-title {
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 800;
  margin: 0;
}
@media (max-width: 600px) {
  .nv-hero-title { font-size: 1.2rem; }
}
.nv-hero-title a { color: #f9fafb; }
.nv-hero-meta {
  font-size: .8rem;
  color: #9ca3af;
}
.nv-hero-excerpt {
  font-size: .9rem;
  color: #e5e7eb;
  max-height: 4.5em;
  overflow: hidden;
}

.nv-hero-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .86rem;
  margin-top: .5rem;
}
.nv-hero-list a {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  color: #d1d5db;
  padding: .25rem .35rem;
  border-radius: 8px;
}
.nv-hero-list a span {
  flex: 1 1 auto;
}
.nv-hero-list a:hover {
  background: rgba(15,23,42,.7);
  color: #eff6ff;
}
.nv-hero-badge {
  font-size: .7rem;
  padding: .05rem .38rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.7);
}

/* prev/next & dots */
.nv-hero-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.nv-hero-btn {
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.4);
  background: rgba(15,23,42,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  cursor: pointer;
  margin: 0 .55rem;
  font-size: 1.1rem;
}
.nv-hero-btn:hover { background: rgba(15,23,42,.95); }

.nv-hero-dots {
  position: absolute;
  bottom: .4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .3rem;
}
.nv-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,.6);
  cursor: pointer;
}
.nv-hero-dot.is-active {
  width: 14px;
  background: #f97316;
}

/* =========================================
   TRENDING STRIP
   ========================================= */
.nv-trending {
  margin-bottom: 1rem;
}
.nv-trending-inner {
  background: #111827;
  border-radius: var(--nv-radius);
  padding: .5rem .75rem;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: .8rem;
  overflow-x: auto;
}
.nv-trend-label {
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nv-trend-label span.dot {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #f97316;
}
.nv-trend-list {
  display: flex;
  gap: .9rem;
  font-size: .86rem;
  min-width: 0;
}
.nv-trend-item {
  white-space: nowrap;
  padding: .25rem .5rem;
  border-radius: 99px;
  background: rgba(15,23,42,.6);
}
.nv-trend-item a { color: #e5e7eb; }
.nv-trend-item:hover {
  background: #f97316;
  color: #111827;
}

/* =========================================
   LATEST FEED (HOME)
   ========================================= */
.nv-latest {
  margin-bottom: 1.4rem;
}

/* মোবাইলে এক কলাম; বড় স্ক্রিনে দুই কলাম */
.nv-latest-grid {
  display: block;
}
@media (min-width: 960px) {
  .nv-latest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 1rem;
  }
}

.nv-feed-big-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.nv-feed-item{
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:.6rem;
  padding:.55rem .6rem;
  border-radius:var(--nv-radius-sm);
  background:#ffffff;
  border:1px solid #e5e7eb;
}
.nv-feed-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
.nv-feed-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

/* ==== মোবাইল ভিউ: ছবি উপরে, নিউজ নিচে ==== */
@media (max-width: 640px){
  .nv-feed-item{
    grid-template-columns: 1fr;
  }
  .nv-feed-thumb{
    height: 160px;
    border-radius: 10px 10px 0 0;
  }
  .nv-feed-item{
    padding: .65rem .65rem .7rem;
  }
}

.nv-feed-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .25rem;
}
.nv-feed-meta {
  font-size: .78rem;
  color: var(--nv-muted);
}

.nv-feed-small-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: 1rem;
}
@media (min-width: 960px) {
  .nv-feed-small-list { margin-top: 0; }
}
.nv-feed-small-item {
  padding: .35rem .4rem;
  border-radius: var(--nv-radius-sm);
  border: 1px solid transparent;
  font-size: .86rem;
}
.nv-feed-small-item:hover {
  border-color: #e5e7eb;
  background: #f9fafb;
}

/* =========================================
   CATEGORY CAROUSELS (HOME PAGE)
   ========================================= */


   /* ====== Category Section Full Width Fix ====== */

/* মূল wrapper */
/* =========================================
   CATEGORY CAROUSELS (HOME PAGE)
   ========================================= */

/* wrapper: মোবাইলে full width, shell এর মধ্যে */
.nv-cat-section{
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* প্রতিটি ক্যাটেগরি কার্ড – পুরো width, shadow সহ */
.nv-cat-card{
  background:#ffffff;
  border-radius:var(--nv-radius);
  border:1px solid #e5e7eb;
  box-shadow:var(--nv-shadow);
  padding:.9rem .9rem 1rem;
}

/* হেডার: শিরোনাম বামে, "সব খবর →" ডানে */
.nv-cat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  margin-bottom:.6rem;
}
.nv-cat-title{
  font-size:1rem;
  font-weight:700;
  border-left:3px solid var(--nv-brand);
  padding-left:.55rem;
}
.nv-cat-more{
  font-size:.82rem;
  color:var(--nv-brand);
  white-space:nowrap;
}

/* ডেক্সটপে ৪ কলাম, মাঝারি স্ক্রিনে 3, ছোট স্ক্রিনে 2/1 */
.nv-cat-track{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.9rem;
}
@media (max-width: 1200px){
  .nv-cat-track{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width: 900px){
  .nv-cat-track{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 600px){
  .nv-cat-track{
    grid-template-columns:1fr;
  }
}

/* ছোট নিউজ কার্ড (আগেরটাই কিন্তু fixed width ছাড়া) */
.nv-cat-item{
  background:#f9fafb;
  border-radius:var(--nv-radius-sm);
  border:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.nv-cat-thumb{
  width:100%;
  height:140px;
  object-fit:cover;
}
@media (max-width: 600px){
  .nv-cat-thumb{
    height:180px;
  }
}
.nv-cat-body{
  padding:.45rem .55rem .6rem;
}
.nv-cat-body h4{
  font-size:.86rem;
  font-weight:600;
  margin-bottom:.25rem;
}
.nv-cat-body .meta{
  font-size:.75rem;
  color:var(--nv-muted);
}


/* 
.nv-cat-section{
  margin-top:1.2rem;
  padding:1.5rem 0 1.8rem;
  background:#f5f6fa;
  border-radius:var(--nv-radius);
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}

/* প্রতিটি ক্যাটেগরি কার্ড – পুরো width, shadow সহ */
.nv-cat-card{
  background:#ffffff;
  border-radius:var(--nv-radius);
  border:1px solid #e5e7eb;
  box-shadow:var(--nv-shadow);
  padding:.85rem .9rem 1rem;
}

/* হেডার: শিরোনাম বামে, "সব খবর →" ডানে */
.nv-cat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  margin-bottom:.6rem;
}
.nv-cat-title{
  font-size:1rem;
  font-weight:700;
  border-left:3px solid var(--nv-brand);
  padding-left:.55rem;
}
.nv-cat-more{
  font-size:.82rem;
  color:var(--nv-brand);
  white-space:nowrap;
} */

/* ডেক্সটপে ৪ কলাম, মাঝারি স্ক্রিনে ৩, ছোট স্ক্রিনে ২/১ */
/* .nv-cat-track{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.9rem;
  overflow:visible;
}
@media (max-width: 1200px){
  .nv-cat-track{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width: 900px){
  .nv-cat-track{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 600px){
  .nv-cat-track{
    grid-template-columns:1fr;
  }
} */

/* হোমের প্রতিটি ছোট নিউজ কার্ড */
.nv-cat-item{
  background:#f9fafb;
  border-radius:var(--nv-radius-sm);
  border:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.nv-cat-thumb{
  width:100%;
  height:140px;
  object-fit:cover;
}
@media (max-width: 600px){
  .nv-cat-thumb{
    height:180px;
  }
}
.nv-cat-body{
  padding:.45rem .55rem .6rem;
}
.nv-cat-body h4{
  font-size:.86rem;
  font-weight:600;
  margin-bottom:.25rem;
}
.nv-cat-body .meta{
  font-size:.75rem;
  color:var(--nv-muted);
}

/* =========================================
   SIDEBAR
   ========================================= */
.nv-sidebar-card {
  background: #ffffff;
  border-radius: var(--nv-radius);
  border: 1px solid #e5e7eb;
  box-shadow: var(--nv-shadow);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 960px) {
  .nv-sidebar-card { margin-top: 0; }
}
.nv-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  border-left: 3px solid var(--nv-brand);
  padding-left: .55rem;
  margin: 0 0 .8rem;
}
.nv-side-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.nv-side-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: .5rem;
  align-items: flex-start;
}
.nv-side-img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}
.nv-side-item-title {
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .15rem;
}
.nv-side-item-meta {
  font-size: .75rem;
  color: var(--nv-muted);
}

/* Ads */
.nv-ad-vert img,
.nv-ad-wide img {
  width: 100%;
  display: block;
  border-radius: var(--nv-radius-sm);
}
.nv-ad-vert { margin-top: .7rem; }

/* Footer text on homepage */
.nv-footer {
  margin-top: 1.5rem;
  padding: 1rem 12px 0;
  font-size: .82rem;
  color: var(--nv-muted);
  text-align: center;
}

/* =========================================
   CATEGORY PAGE (FULL LAYOUT)
   ========================================= */

.nv-cat-page{
  padding-top:1rem;
}

/* breadcrumb */
.nv-cat-breadcrumb{
  margin-bottom:.4rem;
  font-size:.85rem;
  color:var(--nv-muted);
}
.nv-cat-breadcrumb ol{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap:.35rem;
  align-items:center;
}
.nv-cat-breadcrumb a{
  text-decoration:none;
}

/* hero bar */
.nv-cat-hero{
  margin-bottom:1rem;
  padding:1rem 1.2rem;
  border-radius:var(--nv-radius);
  border:1px solid var(--nv-border);
  background:
    radial-gradient(circle at top left, var(--nv-brand-soft), transparent 55%),
    #f9fafb;
  display:flex;
  justify-content:space-between;
  gap:.9rem;
  align-items:flex-start;
}
.nv-cat-hero-title{
  margin:.15rem 0 .25rem;
  font-size:1.15rem;
  font-weight:700;
  color:#111827;
}
.nv-cat-hero-sub{
  margin:0;
  font-size:.9rem;
  color:var(--nv-muted);
}
.nv-cat-chip{
  display:inline-flex;
  align-items:center;
  padding:.14rem .6rem;
  border-radius:999px;
  background:var(--nv-brand);
  color:#fff;
  font-size:.78rem;
}

/* hero meta box + view toggle */
.nv-cat-meta-box{
  background:#ffffff;
  border-radius:12px;
  padding:.55rem .75rem;
  box-shadow:0 10px 24px rgba(148,163,184,.25);
  font-size:.82rem;
  color:#4b5563;
  display:flex;
  flex-direction:column;
  gap:.25rem;
  min-width:190px;
}
.nv-cat-meta-row{
  display:flex;
  justify-content:space-between;
  gap:.5rem;
  align-items:center;
}
.nv-cat-meta-label{
  color:#6b7280;
}
.nv-cat-meta-value{
  font-weight:700;
  color:#111827;
}

.nv-cat-view-toggle{
  display:flex;
  gap:.25rem;
}

/* chips */
.nv-chip{
  border:none;
  outline:none;
  background:#e5e7eb;
  color:#374151;
  border-radius:999px;
  padding:.2rem .7rem;
  cursor:pointer;
  font-size:.8rem;
}
.nv-chip.active{
  background:var(--nv-brand);
  color:#fff;
}

/* section wrapper */
.nv-cat-section-main{
  margin-top:.5rem;
}

/* ===== LEAD ARTICLE (বড় প্রথম কার্ড) ===== */
.nv-cat-lead{
  background:#ffffff;
  border-radius:var(--nv-radius);
  border:1px solid #e5e7eb;
  box-shadow:var(--nv-shadow);
  overflow:hidden;
  margin-bottom:1rem;
}
.nv-cat-lead-img{
  width:100%;
  max-height:340px;
  object-fit:cover;
  display:block;
}
.nv-cat-lead-body{
  padding:.8rem .95rem 1rem;
}
.nv-cat-lead-title{
  font-size:1.1rem;
  font-weight:700;
  margin:0 0 .3rem;
}
.nv-cat-lead-title a{
  color:#111827;
}
.nv-cat-lead-meta{
  font-size:.8rem;
  color:var(--nv-muted);
  margin-bottom:.35rem;
}
.nv-cat-lead-excerpt{
  margin:0;
  font-size:.9rem;
  color:#4b5563;
}

/* ===== নিচের গ্রিড (অনেকগুলো ছোট কার্ড) ===== */
.nv-cat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:.9rem;
  align-items:stretch;
}
.nv-cat-grid-item{
  width:100%;
  background:#ffffff;
  border-radius:var(--nv-radius-sm);
  border:1px solid #e5e7eb;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:box-shadow .18s ease, transform .18s ease;
}
.nv-cat-grid-item:hover{
  box-shadow:0 10px 24px rgba(15,23,42,.12);
  transform:translateY(-2px);
}
.nv-cat-grid-img{
  width:100%;
  height:130px;
  object-fit:cover;
  display:block;
}
.nv-cat-grid-body{
  padding:.55rem .65rem .75rem;
}
.nv-cat-grid-title{
  font-size:.92rem;
  font-weight:600;
  margin:0 0 .25rem;
  line-height:1.4;
}
.nv-cat-grid-title a{
  color:#111827;
}
.nv-cat-grid-meta{
  font-size:.78rem;
  color:var(--nv-muted);
  margin-bottom:.25rem;
}
.nv-cat-grid-excerpt{
  margin:0;
  font-size:.86rem;
  color:#4b5563;
}

/* date badge */
.nv-badge-date{
  display:inline-flex;
  align-items:center;
  padding:.08rem .45rem;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.78rem;
}

/* load more */
.nv-cat-loadmore-wrap{
  text-align:center;
  margin-top:1rem;
}

/* list view mode */
.nv-list-view{
  display:flex !important;
  flex-direction:column;
  gap:.8rem;
}
.nv-list-view .nv-cat-grid-item{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  align-items:stretch;
}
.nv-list-view .nv-cat-grid-img{
  height:130px;
}

/* sidebar spacing */
.nv-cat-sidebar{
  min-width:0;
}

@media (max-width:960px){
  .nv-cat-hero{
    flex-direction:column;
  }
  .nv-cat-meta-box{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
  }
}

@media (max-width:640px){
  .nv-cat-grid{
    grid-template-columns:1fr;
  }
  .nv-list-view .nv-cat-grid-item{
    grid-template-columns:1fr;
  }
  .nv-list-view .nv-cat-grid-img{
    height:200px;
  }
}


/* CATEGORY CAROUSEL — Increase width */
.nv-cat-track {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Desktop 3 items per row */
    gap: 1rem;
}

@media (max-width: 992px) {
    .nv-cat-track {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Tablet */
    }
}

@media (max-width: 576px) {
    .nv-cat-track {
        grid-template-columns: repeat(1, minmax(0, 1fr)); /* Mobile */
    }
}

.nv-cat-item {
    width: 100%;
}
