/* ── NaijaBuzz cards.css — hero grid, feed, card styles, section labels ── */
.section-header { margin-bottom: 1.2rem; padding-bottom: 0.6rem; border-bottom: 2.5px solid var(--primary); }
.section-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 800; color: var(--text); }
.nb-section-header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nb-section-meta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nb-story-count { font-size: 0.78rem; color: var(--text2); font-weight: 500; }
.nb-live-badge {
  background: #16a34a; color: #fff;
  font-size: 0.62rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 4px;
  text-transform: uppercase;
}
.nb-live-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  animation: nb-pulse 1.4s ease-in-out infinite;
}
.nb-new-tag {
  display: inline-block;
  background: #dcfce7; color: #15803d;
  font-size: 0.58rem; font-weight: 800;
  padding: 1px 5px; border-radius: 3px;
  letter-spacing: 0.6px; vertical-align: middle;
  margin-left: 4px; text-transform: uppercase;
}
[data-theme="dark"] .nb-new-tag { background: rgba(21,128,61,0.2); color: #4ade80; }
.nb-section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.nb-section-label-text { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.nb-section-label-line { flex: 1; height: 1px; background: var(--border); }
.nb-cat-badge {
  position: absolute !important;
  top: 0.5rem !important;
  left: 0.5rem !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: calc(100% - 1rem) !important;
  height: auto !important;
  display: inline-block !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: #fff !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35) !important;
  line-height: 1.6 !important;
  z-index: 2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.nb-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-bottom: 1.75rem;
}
.nb-hero-card {
  position: relative; border-radius: 12px; overflow: hidden;
  background: var(--card);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nb-hero-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.14); }
.nb-hero-card .card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.nb-hero-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.nb-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.nb-hero-card:hover .nb-hero-img img { transform: scale(1.03); }
.nb-hero-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.nb-hero-body h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; font-weight: 700; line-height: 1.35; color: var(--text); margin: 0; }
.nb-hero-body .card-excerpt { font-size: 0.88rem; color: var(--text2); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-hero-body .read-more { margin-top: auto; padding-top: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--gold); letter-spacing: 0.02em; }
.nb-feed {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 1.5rem;
}
.nb-feed-item {
  background: var(--card); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nb-feed-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.11); }
.nb-feed-item .card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.nb-feed-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.nb-feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.nb-feed-item:hover .nb-feed-thumb img { transform: scale(1.04); }
.nb-feed-body { padding: 0.75rem 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.nb-feed-body h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 0.95rem; font-weight: 700; line-height: 1.38; color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nb-feed-body .card-meta { font-size: 0.73rem; color: var(--text2); }
.nb-feed-body .read-more { margin-top: auto; padding-top: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--gold); }
.nb-feed-cat { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gold); display: none; }
.card { background: var(--card); border-radius: var(--card-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05); transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s cubic-bezier(.2,.8,.2,1); text-decoration: none; padding: 0; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.13), 0 4px 12px rgba(0,0,0,0.08); }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; min-height: 0; }
.card-img { width: 100%; aspect-ratio: 16/9; background: var(--primary); overflow: hidden; flex-shrink: 0; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card-body h2, .card h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; line-height: 1.45; font-weight: 700; color: var(--text); flex: 1; margin: 0; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h2 { color: var(--gold-dark); }
.card-meta { font-size: 0.72rem; color: var(--text2); display: flex; align-items: center; gap: 0.45rem; font-weight: 500; flex-wrap: wrap; }
.card-excerpt { color: var(--text2); font-size: 0.855rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.cat-badge { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gold); }
.read-more { font-size: 0.78rem; font-weight: 700; color: var(--gold); text-decoration: none; margin-top: auto; display: inline-flex; align-items: center; gap: 0.3rem; transition: gap .2s; }
.card:hover .read-more { gap: 0.55rem; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.nb-loadmore-wrap { text-align: center; padding: 2rem 0 1rem; }
.nb-loadmore-btn { background: var(--green); color: #fff; border: none; border-radius: 6px; padding: 0.75rem 2rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.nb-loadmore-btn:hover { background: var(--green-dark); }
.nb-loadmore-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nb-skeleton { background: var(--card); border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.nb-skeleton-img { width: 100%; aspect-ratio: 16/9; background: linear-gradient(90deg, var(--border) 25%, #e8e3d0 50%, var(--border) 75%); background-size: 800px 100%; animation: nb-shimmer 1.4s ease-in-out infinite; }
[data-theme="dark"] .nb-skeleton-img { background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%); background-size: 800px 100%; }
.nb-skeleton-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.nb-skeleton-line { border-radius: 4px; background: linear-gradient(90deg, var(--border) 25%, #e8e3d0 50%, var(--border) 75%); background-size: 800px 100%; animation: nb-shimmer 1.4s ease-in-out infinite; }
[data-theme="dark"] .nb-skeleton-line { background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%); background-size: 800px 100%; }
.nb-skeleton-line.title-1  { height: 16px; width: 95%; }
.nb-skeleton-line.title-2  { height: 16px; width: 80%; }
.nb-skeleton-line.title-3  { height: 16px; width: 60%; }
.nb-skeleton-line.meta     { height: 11px; width: 40%; margin-top: 0.2rem; }
.nb-skeleton-line.excerpt-1{ height: 12px; width: 100%; }
.nb-skeleton-line.excerpt-2{ height: 12px; width: 88%; }
.nb-skeleton-line.excerpt-3{ height: 12px; width: 72%; }
.pagination { display: flex; justify-content: center; gap: 0.6rem; margin: 2.5rem 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border-radius: 8px; border: 1.5px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--text); text-decoration: none; transition: all .2s; }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: #fff; border-color: var(--gold); }
