/*
Theme Name: News Portal Builder
Theme URI: https://www.vejacaarapo.com.br
Author: VEJACAARAPÓ
Author URI: https://www.vejacaarapo.com.br
Description: Portal de notícias regional para Caarapó, MS. Layout idêntico ao protótipo React: ticker de últimas, hero 60/40, seções por editoria, widget de clima, cotações de mercado e rodapé em 4 colunas.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: npb
Tags: news, blog, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════════════════
   TOKENS (idênticos ao index.css React)
═══════════════════════════════════════════════════════════════════════════ */
:root {
  --primary:          #003080;   /* hsl(218 100% 25%) */
  --accent:           #CC0000;   /* hsl(0 100% 40%)   */
  --background:       #ffffff;
  --foreground:       #1a2035;   /* hsl(220 20% 15%)  */
  --card:             #ffffff;
  --border:           #e2e8f0;   /* hsl(220 13% 91%)  */
  --muted:            #f4f6f9;   /* hsl(220 14% 96%)  */
  --muted-fg:         #6b7280;   /* hsl(220 10% 45%)  */
  --secondary:        #f4f6f9;
  --footer-bg:        #0a192f;
  --green-600:        #16a34a;
  --green-500:        #22c55e;
  --red-500:          #ef4444;
  --red-600:          #dc2626;
  --slate-900:        #0f172a;
  --blue-100:         #dbeafe;
  --blue-500:         #3b82f6;
  --orange-500:       #f97316;
  --gray-400:         #9ca3af;
  --radius:           4px;       /* 0.25rem */
  --font-display:     'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-sans:        'Inter', system-ui, -apple-system, sans-serif;
  --container:        1280px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); letter-spacing: -.02em; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════════════════════════════════════ */
.npb-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOP BAR  (TopBar.tsx)
   bg-primary text-white/90 text-xs py-1.5 border-b border-primary/90
═══════════════════════════════════════════════════════════════════════════ */
#npb-topbar {
  width: 100%;
  background: var(--primary);
  color: rgba(255,255,255,.9);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,48,128,.9);
}
#npb-topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#npb-topbar .npb-date {
  font-weight: 500;
  letter-spacing: .025em;
}
#npb-topbar .npb-toplinks {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
#npb-topbar .npb-toplinks a {
  color: rgba(255,255,255,.9);
  transition: color .2s;
}
#npb-topbar .npb-toplinks a:hover { color: #fff; }
#npb-topbar .npb-toplinks .divider {
  width: 1px; height: 12px;
  background: rgba(255,255,255,.2);
}
#npb-topbar .npb-wa-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-600);
  color: #fff !important;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 12px;
  transition: background .2s;
}
#npb-topbar .npb-wa-btn:hover { background: #15803d; }
#npb-topbar .npb-wa-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER  (Header.tsx)
   bg-background border-b border-border py-4 md:py-6
═══════════════════════════════════════════════════════════════════════════ */
#npb-header {
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
#npb-header .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) {
  #npb-header { padding: 24px 0; }
  #npb-header .inner { flex-direction: row; justify-content: space-between; }
}

/* Logo: VEJA (accent) + CAARAPÓ. (primary) */
#npb-header .npb-logo {
  flex-shrink: 0;
}
#npb-header .npb-logo a {
  display: inline-block;
}
#npb-header .npb-logo .npb-logo-text {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--primary);
  display: flex;
  align-items: flex-end;
}
@media (min-width: 768px) {
  #npb-header .npb-logo .npb-logo-text { font-size: 48px; }
}
#npb-header .npb-logo .npb-logo-text .veja { color: var(--accent); }
#npb-header .npb-logo .npb-logo-text .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
  margin-bottom: 8px;
  display: inline-block;
}

/* Header ad (hidden on mobile, shown on lg) */
#npb-header .npb-header-ad {
  display: none;
}
@media (min-width: 1024px) {
  #npb-header .npb-header-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 728px;
    height: 90px;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted-fg);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .05em;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }
}

/* Header actions: search + theme buttons */
#npb-header .npb-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
#npb-header .npb-header-actions .npb-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--foreground);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#npb-header .npb-header-actions .npb-icon-btn:hover { background: var(--secondary); }
#npb-header .npb-header-actions .npb-icon-btn svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAV MENU  (NavMenu.tsx)
   bg-primary text-primary-foreground sticky top-0 z-40 shadow-md
═══════════════════════════════════════════════════════════════════════════ */
#npb-nav {
  width: 100%;
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}
/* Desktop nav */
#npb-nav .npb-nav-desktop {
  display: none;
}
@media (min-width: 1024px) {
  #npb-nav .npb-nav-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
  }
}
#npb-nav .npb-nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
#npb-nav .npb-nav-desktop ul li {
  height: 100%;
  display: flex;
  align-items: center;
}
#npb-nav .npb-nav-desktop ul li a {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: rgba(255,255,255,.9);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}
#npb-nav .npb-nav-desktop ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s;
}
#npb-nav .npb-nav-desktop ul li a:hover,
#npb-nav .npb-nav-desktop ul li.current-menu-item > a { color: #fff; }
#npb-nav .npb-nav-desktop ul li a:hover::after,
#npb-nav .npb-nav-desktop ul li.current-menu-item > a::after { transform: scaleX(1); }

#npb-nav .npb-nav-more {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: color .2s;
}
#npb-nav .npb-nav-more:hover { color: #fff; }
#npb-nav .npb-nav-more svg { width: 20px; height: 20px; }

/* Mobile nav toggle */
#npb-nav .npb-nav-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
@media (min-width: 1024px) {
  #npb-nav .npb-nav-mobile { display: none; }
}
#npb-nav .npb-nav-mobile span {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
}
#npb-nav .npb-nav-mobile button {
  padding: 8px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
#npb-nav .npb-nav-mobile button svg { width: 24px; height: 24px; }

/* Mobile menu panel */
#npb-mobile-menu {
  display: none;
  background: var(--primary);
  padding: 8px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
#npb-mobile-menu.is-open { display: block; }
#npb-mobile-menu ul { display: flex; flex-direction: column; }
#npb-mobile-menu ul li a {
  display: block;
  padding: 10px 0;
  color: rgba(255,255,255,.9);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#npb-mobile-menu ul li:last-child a { border-bottom: none; }
#npb-mobile-menu ul li a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   BREAKING TICKER  (BreakingTicker.tsx)
   bg-accent text-white, overflow-hidden, border-b-2 border-black/10
═══════════════════════════════════════════════════════════════════════════ */
#npb-ticker {
  width: 100%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid rgba(0,0,0,.1);
}
#npb-ticker .npb-ticker-label {
  background: rgba(0,0,0,.2);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  white-space: nowrap;
  flex-shrink: 0;
}
#npb-ticker .npb-ticker-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: npb-pulse 1.5s ease-in-out infinite;
}
@keyframes npb-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
#npb-ticker .npb-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
#npb-ticker .npb-ticker-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: npb-marquee 30s linear infinite;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
}
#npb-ticker .npb-ticker-inner:hover { animation-play-state: paused; }
#npb-ticker .npb-ticker-item {
  padding: 0 16px;
  cursor: pointer;
  transition: text-decoration .1s;
}
#npb-ticker .npb-ticker-item:hover { text-decoration: underline; }
#npb-ticker .npb-ticker-item a { color: #fff; }
#npb-ticker .npb-ticker-item a:hover { color: rgba(255,255,255,.85); text-decoration: underline; }
#npb-ticker .npb-ticker-sep { color: rgba(255,255,255,.4); }
@keyframes npb-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MARKET BAR  (MarketBar.tsx)
   bg-muted border-b border-border overflow-hidden text-xs py-1.5
═══════════════════════════════════════════════════════════════════════════ */
#npb-market {
  width: 100%;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  font-size: 12px;
  padding: 6px 0;
  font-family: var(--font-sans);
}
#npb-market .inner {
  display: flex;
  align-items: center;
}
#npb-market .npb-market-label {
  font-weight: 700;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}
#npb-market .npb-market-items {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}
#npb-market .npb-market-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 24px;
  border-left: 1px solid rgba(226,232,240,.5);
}
#npb-market .npb-market-item:first-child { border-left: none; padding-left: 0; }
#npb-market .npb-commodity { font-weight: 600; color: var(--foreground); }
#npb-market .npb-price { font-weight: 500; }
#npb-market .npb-change {
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
}
#npb-market .npb-change.up   { color: var(--green-600); }
#npb-market .npb-change.down { color: var(--red-600); }

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN WRAPPER
═══════════════════════════════════════════════════════════════════════════ */
#npb-main {
  flex: 1;
  width: 100%;
  padding-bottom: 40px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION  (HeroSection.tsx)
   py-6 → padding 24px 0
   flex-col lg:flex-row gap-6 → [60% | 40%]
═══════════════════════════════════════════════════════════════════════════ */
#npb-hero { padding: 24px 0; }
#npb-hero .npb-hero-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  #npb-hero .npb-hero-row { flex-direction: row; }
}

/* Left: big feature article (lg:w-3/5) */
#npb-hero .npb-hero-main {
  width: 100%;
}
@media (min-width: 1024px) {
  #npb-hero .npb-hero-main { width: 60%; flex-shrink: 0; }
}
#npb-hero .npb-hero-main a {
  display: block;
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
}
@media (min-width: 1024px) {
  #npb-hero .npb-hero-main a { height: 550px; }
}
#npb-hero .npb-hero-main img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease-out;
}
#npb-hero .npb-hero-main a:hover img { transform: scale(1.05); }
#npb-hero .npb-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
}
#npb-hero .npb-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-width: 1024px) {
  #npb-hero .npb-hero-content { padding: 32px; }
}
#npb-hero .npb-hero-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 10px;
  margin-bottom: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  width: fit-content;
}
#npb-hero .npb-hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
  transition: color .2s;
}
@media (min-width: 1024px) {
  #npb-hero .npb-hero-title { font-size: 48px; }
}
#npb-hero .npb-hero-main a:hover .npb-hero-title { color: rgba(255,255,255,.9); }
#npb-hero .npb-hero-excerpt {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  max-width: 672px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
}
@media (min-width: 1024px) {
  #npb-hero .npb-hero-excerpt { font-size: 16px; }
}
#npb-hero .npb-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.7);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
}
#npb-hero .npb-hero-meta .sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}

/* Right column (lg:w-2/5): weather + most-read stacked */
#npb-hero .npb-hero-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  #npb-hero .npb-hero-right { width: 40%; }
}

/* ── Weather Widget (WeatherWidget.tsx) ── */
.npb-weather {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 200px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.npb-weather .npb-weather-header {
  background: var(--primary);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  flex-shrink: 0;
}
.npb-weather .npb-weather-header .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.npb-weather .npb-weather-header .city {
  font-family: var(--font-sans);
  font-size: 12px;
  opacity: .9;
}
.npb-weather .npb-weather-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.npb-weather .npb-weather-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.npb-weather .npb-weather-temp {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1;
}
.npb-weather .npb-weather-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted-fg);
  font-weight: 500;
}
.npb-weather .npb-weather-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.npb-weather .npb-weather-icon svg { color: var(--blue-500); width: 28px; height: 28px; }
.npb-weather .npb-weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted-fg);
}
.npb-weather .npb-weather-grid .stat {
  display: flex;
  align-items: center;
  gap: 6px;
}
.npb-weather .npb-weather-grid .stat svg { width: 14px; height: 14px; flex-shrink: 0; }
.npb-weather .npb-weather-grid .stat strong { color: var(--foreground); }
.npb-weather .npb-weather-grid .stat .icon-drop { color: var(--blue-500); }
.npb-weather .npb-weather-grid .stat .icon-wind { color: var(--gray-400); }
.npb-weather .npb-weather-grid .stat .icon-sun  { color: var(--orange-500); }

/* ── Most Read (MostRead.tsx) ── */
.npb-mostread {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 326px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.npb-mostread .npb-mostread-header {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.npb-mostread .npb-mostread-header .bar {
  width: 6px; height: 20px;
  background: var(--accent);
  margin-right: 8px;
  flex-shrink: 0;
}
.npb-mostread .npb-mostread-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--foreground);
}
.npb-mostread .npb-mostread-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  divide-color: var(--border);
}
.npb-mostread .npb-mostread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .2s;
}
.npb-mostread .npb-mostread-item:last-child { border-bottom: none; }
.npb-mostread .npb-mostread-item:hover { background: rgba(244,246,249,.5); }
.npb-mostread .npb-mostread-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: rgba(226,232,240,.7);
  line-height: 1;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  transition: color .2s;
}
.npb-mostread .npb-mostread-item:hover .npb-mostread-num { color: rgba(204,0,0,.3); }
.npb-mostread .npb-mostread-body { flex: 1; }
.npb-mostread .npb-mostread-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  transition: color .2s;
}
.npb-mostread .npb-mostread-item:hover .npb-mostread-title { color: var(--primary); }
.npb-mostread .npb-mostread-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-fg);
}
.npb-mostread .npb-mostread-thumb {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.npb-mostread .npb-mostread-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.npb-mostread .npb-mostread-item:hover .npb-mostread-thumb img { transform: scale(1.1); }

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE CARD  (ArticleCard.tsx)
   group flex flex-col h-full bg-card hover:bg-muted/30
   border border-transparent hover:border-border rounded-lg overflow-hidden
═══════════════════════════════════════════════════════════════════════════ */
.npb-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background .3s, border-color .3s;
}
.npb-card:hover {
  background: rgba(244,246,249,.3);
  border-color: var(--border);
  color: inherit;
}
.npb-card .npb-card-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3;
}
.npb-card.npb-card-featured .npb-card-thumb { aspect-ratio: 16/9; }
.npb-card .npb-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease-out;
}
.npb-card:hover .npb-card-thumb img { transform: scale(1.05); }
.npb-card .npb-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  z-index: 10;
}
.npb-card .npb-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.npb-card .npb-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  transition: color .2s;
}
.npb-card:hover .npb-card-title { color: var(--primary); }
.npb-card .npb-card-excerpt {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.npb-card .npb-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted-fg);
  font-weight: 500;
  padding-top: 8px;
}
.npb-card .npb-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   LATEST NEWS SECTION  (LatestNews.tsx)
   py-8 bg-secondary/30 border-y border-border
═══════════════════════════════════════════════════════════════════════════ */
#npb-latest {
  padding: 32px 0;
  width: 100%;
  background: rgba(244,246,249,.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#npb-latest .npb-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
#npb-latest .npb-section-bar .npb-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--foreground);
  position: relative;
}
#npb-latest .npb-section-bar .npb-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 0;
  width: 50%; height: 4px;
  background: var(--accent);
}
#npb-latest .npb-section-bar .npb-see-all {
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: color .2s;
}
#npb-latest .npb-section-bar .npb-see-all:hover { color: var(--accent); }
#npb-latest .npb-section-bar .npb-see-all svg { margin-left: 4px; width: 16px; height: 16px; }
#npb-latest .npb-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px)  { #npb-latest .npb-grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { #npb-latest .npb-grid-4 { grid-template-columns: repeat(4,1fr); } }

/* ═══════════════════════════════════════════════════════════════════════════
   AD BANNERS  (AdBanner.tsx)
═══════════════════════════════════════════════════════════════════════════ */
.npb-ad-leaderboard {
  width: 100%;
  padding: 32px 0;
  display: flex;
  justify-content: center;
}
.npb-ad-leaderboard-inner {
  width: 100%;
  max-width: 970px;
  height: 90px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.npb-ad-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 2px;
}
.npb-ad-size {
  font-family: monospace;
  font-size: 11px;
  color: rgba(107,114,128,.5);
}
.npb-ad-rectangle {
  width: 100%;
  max-width: 300px;
  height: 250px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT COLUMNS  (Home.tsx – 70/30 split)
═══════════════════════════════════════════════════════════════════════════ */
#npb-columns {
  padding: 32px 0;
}
#npb-columns .npb-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  #npb-columns .npb-row { flex-direction: row; }
}
#npb-columns .npb-col-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 1024px) {
  #npb-columns .npb-col-main { width: 70%; }
}
#npb-columns .npb-col-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  #npb-columns .npb-col-sidebar { width: 30%; }
}
.npb-sidebar-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY SECTION  (CategorySection.tsx)
═══════════════════════════════════════════════════════════════════════════ */
.npb-cat-section { padding: 24px 0; }
.npb-cat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.npb-cat-bar .npb-cat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--foreground);
  position: relative;
}
.npb-cat-bar .npb-cat-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 0;
  width: 50%; height: 4px;
  border-radius: 0;
}
/* color variants matching colorMap in React */
.npb-cat-bar .npb-cat-title.color-primary::after { background: var(--primary); }
.npb-cat-bar .npb-cat-title.color-accent::after  { background: var(--accent); }
.npb-cat-bar .npb-cat-title.color-green::after   { background: #16a34a; }
.npb-cat-bar .npb-cat-title.color-orange::after  { background: #f97316; }
.npb-cat-bar .npb-cat-link {
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: color .2s;
}
.npb-cat-bar .npb-cat-link:hover { color: var(--accent); }
.npb-cat-bar .npb-cat-link svg { margin-left: 4px; width: 16px; height: 16px; }
.npb-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .npb-cat-grid { grid-template-columns: repeat(3,1fr); } }

/* ═══════════════════════════════════════════════════════════════════════════
   NEWSLETTER  (Newsletter.tsx)
   bg-primary text-primary-foreground rounded-lg p-6 overflow-hidden
═══════════════════════════════════════════════════════════════════════════ */
.npb-newsletter {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  position: relative;
  overflow: hidden;
}
.npb-newsletter .npb-nl-icon {
  position: absolute;
  top: -40px; right: -40px;
  opacity: .1;
}
.npb-newsletter .npb-nl-icon svg { width: 128px; height: 128px; }
.npb-newsletter .npb-nl-inner { position: relative; z-index: 10; }
.npb-newsletter h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
  color: #fff;
}
.npb-newsletter p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  margin-bottom: 16px;
}
.npb-newsletter input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #fff;
  outline: none;
  margin-bottom: 12px;
}
.npb-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.npb-newsletter input[type="email"]:focus {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}
.npb-newsletter button[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 8px;
  border-radius: var(--radius);
  transition: opacity .2s;
}
.npb-newsletter button[type="submit"]:hover { opacity: .9; }
.npb-newsletter .npb-nl-note {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  text-align: center;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO SECTION  (VideoSection.tsx)
   py-8 bg-slate-900 text-white
═══════════════════════════════════════════════════════════════════════════ */
#npb-videos {
  padding: 32px 0;
  background: var(--slate-900);
  color: #fff;
}
#npb-videos .npb-videos-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
#npb-videos .npb-videos-header .bar {
  width: 6px; height: 24px;
  background: var(--accent);
  margin-right: 12px;
  flex-shrink: 0;
}
#npb-videos .npb-videos-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
#npb-videos .npb-videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { #npb-videos .npb-videos-grid { grid-template-columns: repeat(3,1fr); } }
#npb-videos .npb-video-card { cursor: pointer; }
#npb-videos .npb-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: #000;
}
#npb-videos .npb-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .8;
  transition: opacity .5s, transform .5s;
}
#npb-videos .npb-video-card:hover .npb-video-thumb img { opacity: 1; transform: scale(1.05); }
#npb-videos .npb-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#npb-videos .npb-video-play .btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(204,0,0,.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}
#npb-videos .npb-video-card:hover .npb-video-play .btn {
  transform: scale(1.1);
  background: var(--accent);
}
#npb-videos .npb-video-play .btn svg { width: 20px; height: 20px; margin-left: 2px; }
#npb-videos .npb-video-date {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-family: monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
}
#npb-videos .npb-video-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
#npb-videos .npb-video-card:hover .npb-video-title { color: var(--accent); }
#npb-videos .npb-video-channel {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER  (Footer.tsx)
   bg-[#0a192f] text-white pt-12 pb-6 border-t-4 border-accent
═══════════════════════════════════════════════════════════════════════════ */
#npb-footer {
  width: 100%;
  background: var(--footer-bg);
  color: #fff;
  padding-top: 48px;
  padding-bottom: 24px;
  border-top: 4px solid var(--accent);
}
#npb-footer .npb-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 768px)  { #npb-footer .npb-footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { #npb-footer .npb-footer-grid { grid-template-columns: repeat(4,1fr); } }

/* Col 1: About */
#npb-footer .npb-footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: flex-end;
  margin-bottom: 16px;
  color: #fff;
  text-decoration: none;
}
#npb-footer .npb-footer-logo .veja { color: var(--accent); }
#npb-footer .npb-footer-logo .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 3px;
  margin-bottom: 6px;
  display: inline-block;
}
#npb-footer .npb-footer-about {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin-bottom: 24px;
}
#npb-footer .npb-footer-social {
  display: flex;
  gap: 12px;
}
#npb-footer .npb-footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
}
#npb-footer .npb-footer-social a:hover { background: var(--accent); color: #fff; }
#npb-footer .npb-footer-social a svg { width: 16px; height: 16px; }

/* Col 2-4 headings */
#npb-footer .npb-footer-col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff;
}
#npb-footer .npb-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
#npb-footer .npb-footer-col ul li a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
#npb-footer .npb-footer-col ul li a:hover { color: var(--accent); }
#npb-footer .npb-footer-col ul li a svg { width: 14px; height: 14px; }

/* Col 4: Newsletter mini */
#npb-footer .npb-footer-nl p {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
  line-height: 1.6;
}
#npb-footer .npb-footer-nl form { display: flex; flex-direction: column; gap: 8px; }
#npb-footer .npb-footer-nl input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #fff;
  outline: none;
}
#npb-footer .npb-footer-nl input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
#npb-footer .npb-footer-nl input[type="email"]:focus { border-color: var(--accent); }
#npb-footer .npb-footer-nl button {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  padding: 8px;
  border-radius: var(--radius);
  transition: opacity .2s;
}
#npb-footer .npb-footer-nl button:hover { opacity: .8; }

/* Footer bottom bar */
#npb-footer .npb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) {
  #npb-footer .npb-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
#npb-footer .npb-footer-bottom p,
#npb-footer .npb-footer-bottom .npb-footer-legal {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,.5);
}
#npb-footer .npb-footer-bottom .npb-footer-legal {
  display: flex;
  gap: 16px;
  align-items: center;
}
#npb-footer .npb-footer-bottom .npb-footer-legal a {
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
#npb-footer .npb-footer-bottom .npb-footer-legal a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING WHATSAPP  (FloatingWhatsApp.tsx)
   fixed bottom-6 right-6 z-50, w-14 h-14, bg-[#25D366], ping animation
═══════════════════════════════════════════════════════════════════════════ */
#npb-float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  text-decoration: none;
  transition: transform .3s;
}
#npb-float-wa:hover { transform: scale(1.1); color: #fff; }
#npb-float-wa svg { width: 32px; height: 32px; position: relative; z-index: 10; }
#npb-float-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: npb-ping 1.5s ease-in-out infinite;
}
#npb-float-wa:hover::before { animation: none; }
@keyframes npb-ping {
  0%   { transform: scale(1); opacity: .75; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE POST  (ArticlePage.tsx)
═══════════════════════════════════════════════════════════════════════════ */
.npb-single-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 0 64px;
}
@media (min-width: 1024px) { .npb-single-wrap { flex-direction: row; } }

.npb-single-article {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  overflow: hidden;
}
@media (min-width: 1024px) { .npb-single-article { width: 70%; } }

.npb-single-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .npb-single-sidebar { width: 30%; }
}
.npb-single-sidebar .npb-sidebar-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Article header */
.npb-article-header {
  padding: 24px 24px 24px;
  border-bottom: 1px solid rgba(226,232,240,.5);
}
@media (min-width: 768px) { .npb-article-header { padding: 40px 40px 24px; } }

.npb-article-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  margin-bottom: 16px;
}
.npb-article-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: 16px;
}
@media (min-width: 768px) { .npb-article-title { font-size: 48px; } }
.npb-article-excerpt {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--muted-fg);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .npb-article-excerpt { font-size: 20px; } }

.npb-article-meta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) {
  .npb-article-meta-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.npb-article-meta-row .npb-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted-fg);
}
.npb-article-meta-row .npb-meta-info .author { font-weight: 700; color: var(--foreground); }
.npb-article-meta-row .npb-meta-info .npb-meta-icon { display: flex; align-items: center; gap: 6px; }
.npb-article-meta-row .npb-meta-info svg { width: 16px; height: 16px; }

/* Share buttons */
.npb-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.npb-share-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted-fg);
  margin-right: 8px;
  white-space: nowrap;
}
.npb-share-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  text-decoration: none;
}
.npb-share-icon:hover { transform: scale(1.1); color: #fff; }
.npb-share-icon svg { width: 16px; height: 16px; }
.npb-share-icon.wa { background: #25D366; }
.npb-share-icon.fb { background: #1877F2; }
.npb-share-icon.tw { background: #000; }
.npb-share-icon.lk { background: var(--muted); color: var(--foreground); }
.npb-share-icon.lk:hover { color: var(--foreground); }

/* Featured image */
.npb-article-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.npb-article-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Article content */
.npb-article-content {
  padding: 24px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  color: rgba(26,32,53,.9);
}
@media (min-width: 768px) { .npb-article-content { padding: 40px; } }
.npb-article-content p { margin-bottom: 20px; }
.npb-article-content h2,
.npb-article-content h3 { font-family: var(--font-display); font-weight: 800; margin: 28px 0 12px; color: var(--foreground); }
.npb-article-content h2 { font-size: 28px; }
.npb-article-content h3 { font-size: 22px; }
.npb-article-content a { color: var(--primary); text-decoration: underline; }
.npb-article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: var(--muted);
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted-fg);
}
.npb-article-content img { border-radius: var(--radius); margin: 20px 0; }

/* Tags */
.npb-article-tags {
  padding: 0 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 768px) { .npb-article-tags { padding: 0 40px 24px; } }
.npb-article-tags .tag {
  background: var(--secondary);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

/* Bottom share */
.npb-article-share-bottom {
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
@media (min-width: 768px) { .npb-article-share-bottom { padding: 24px 40px; } }
.npb-article-share-bottom .npb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.npb-article-share-bottom .npb-share-btn:hover { opacity: .9; color: #fff; }
.npb-article-share-bottom .npb-share-btn svg { width: 16px; height: 16px; }
.npb-article-share-bottom .npb-share-btn.wa { background: #25D366; }
.npb-article-share-bottom .npb-share-btn.fb { background: #1877F2; }

/* Related posts */
.npb-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.npb-related h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--foreground);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}
.npb-related h2::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 0;
  width: 50%; height: 4px;
  background: var(--accent);
}
.npb-related .npb-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (min-width: 768px) { .npb-related .npb-related-grid { grid-template-columns: repeat(3,1fr); } }

/* ═══════════════════════════════════════════════════════════════════════════
   ARCHIVE / SEARCH / 404
═══════════════════════════════════════════════════════════════════════════ */
.npb-archive-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}
.npb-archive-header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--foreground);
}
.npb-archive-header p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted-fg);
  margin-top: 6px;
}
.npb-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px)  { .npb-archive-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .npb-archive-grid { grid-template-columns: repeat(3,1fr); } }

.npb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}
.npb-pagination .page-numbers {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  border: 1px solid var(--border);
  transition: all .15s;
}
.npb-pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.npb-pagination .page-numbers:hover:not(.current) {
  border-color: var(--primary);
  background: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEARCH FORM
═══════════════════════════════════════════════════════════════════════════ */
.search-form { display: flex; align-items: center; }
.search-form .search-field {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  width: 200px;
  color: var(--foreground);
  background: var(--background);
  transition: border-color .2s;
}
.search-form .search-field:focus { border-color: var(--primary); }
.search-form .search-submit {
  margin-left: 8px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}
.search-form .search-submit:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN READER & ACCESSIBILITY
═══════════════════════════════════════════════════════════════════════════ */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
