/*
Theme Name: NewsPulse Engine
Theme URI: https://example.com/newspulse
Author: Custom News Core
Description: Ultra-flexible, modular publishing engine built with centralized design tokens, native block editing, and Elementor canvas compatibility.
Version: 2.6.0
*/

/* ==========================================================================
   1. GLOBAL RESET & TOKEN CONSUMPTION
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: var(--np-selection-bg, #e11d48);
  color: var(--np-selection-text, #ffffff);
}

body {
  background-color: var(--np-site-bg, #ffffff);
  color: var(--np-base-text, #334155);
  font-family: var(--np-font-base, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: var(--np-size-base, 17px);
  line-height: var(--np-lh-base, 1.65);
  font-weight: var(--np-weight-base, 400);
  -webkit-font-smoothing: antialiased;
}

body.np-drawer-active {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--np-link-normal, #0f172a);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--np-link-hover, #e11d48);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--np-headings, #0f172a);
  font-family: var(--np-font-headings, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(var(--np-size-h1-mobile, 28px), 4vw, var(--np-size-h1, 38px));
  line-height: var(--np-lh-h1, 1.2);
  font-weight: var(--np-weight-h1, 800);
}

h2 {
  font-size: clamp(var(--np-size-h2-mobile, 22px), 3vw, var(--np-size-h2, 28px));
  font-weight: var(--np-weight-h2, 700);
  line-height: 1.3;
}

h3 {
  font-size: var(--np-size-h3, 20px);
  font-weight: var(--np-weight-h3, 600);
  line-height: 1.4;
}

blockquote,
.wp-block-quote {
  font-family: var(--np-font-quotes, Georgia, serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.6;
  border-left: 3px solid var(--np-accent-highlight, #e11d48);
  padding: 12px 0 12px 24px;
  margin: 32px 0;
  color: var(--np-headings, #0f172a);
}

button,
.button,
input[type="submit"] {
  font-family: var(--np-font-base, sans-serif);
  font-size: var(--np-btn-size, 14px);
  font-weight: var(--np-btn-weight, 600);
  text-transform: var(--np-btn-transform, uppercase);
  letter-spacing: var(--np-btn-spacing, 0.5px);
  background-color: var(--np-btn-bg, var(--np-headings, #0f172a));
  color: var(--np-btn-color, #ffffff);
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  border-radius: var(--np-radius-sm, 3px);
  transition: background 0.2s ease, color 0.2s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
  background-color: var(--np-btn-hover-bg, var(--np-accent-highlight, #e11d48));
  color: var(--np-btn-hover-color, #ffffff);
}

.vw-container {
  max-width: var(--np-container-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--np-container-gutter, 20px);
}

/* ==========================================================================
   2. ELEMENTOR PASS-THROUGH
   ========================================================================== */

.np-elementor-canvas {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   3. MONETIZATION SLOTS
   ========================================================================== */

.vw-ad-slot,
.np-ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px auto;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.np-ad-inner {
  display: inline-block;
  max-width: 100%;
}

.vw-ad-tag,
.np-ad-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--np-muted-text, #64748b);
  opacity: 0.7;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.np-ad-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.np-ad-banner-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--np-radius-sm, 4px);
}

.np-ad-banner-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.np-ad-banner-link:hover {
  opacity: 0.92;
}

/* Device Targeting Visibility Classes */
@media (max-width: 1023px) {
  .np-ad-device-desktop {
    display: none !important;
  }
}

@media (max-width: 767px), (min-width: 1024px) {
  .np-ad-device-tablet {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .np-ad-device-mobile {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .np-ad-device-desktop-tablet {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .np-ad-device-tablet-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   4. HEADER BUILDER
   ========================================================================== */

.np-site-header {
  background: var(--np-site-bg, #ffffff);
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
}

.np-row-ticker {
  background: var(--np-headings, #0f172a);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
}

.np-ticker-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.np-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--np-accent-highlight, #e11d48);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.np-ticker-pulse {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: np-pulse 1.5s infinite;
}

@keyframes np-pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.np-ticker-content {
  overflow: hidden;
  white-space: nowrap;
}

.np-ticker-list {
  list-style: none;
  display: inline-flex;
  gap: 30px;
}

.np-ticker-list a {
  color: #ffffff;
  opacity: 0.9;
}

.np-ticker-list a:hover {
  color: var(--np-accent-highlight, #e11d48);
}

.np-row-top-bar {
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
  font-size: 12px;
  color: var(--np-muted-text, #64748b);
  padding: 8px 0;
}

.np-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.np-top-bar-menu ul {
  display: flex;
  list-style: none;
  gap: 18px;
}

.np-top-bar-menu a {
  color: var(--np-muted-text, #64748b);
}

.np-top-bar-menu a:hover {
  color: var(--np-accent-highlight, #e11d48);
}

.np-row-main {
  padding: 24px 0;
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
}

.np-main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.vw-brand-logo {
  font-family: var(--np-font-headings, sans-serif);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: var(--np-headings, #0f172a);
  line-height: 1;
}

.vw-brand-logo span {
  color: var(--np-accent-highlight, #e11d48);
}

.np-site-tagline {
  font-size: 12px;
  color: var(--np-muted-text, #64748b);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.np-header-ad-banner {
  max-width: 728px;
  text-align: right;
}

.np-row-nav {
  background: var(--np-site-bg, #ffffff);
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
  transition: all 0.2s ease;
}

.np-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 99;
}

.np-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.np-nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.np-nav-list li {
  position: relative;
}

.np-nav-list a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 0;
  color: var(--np-headings, #0f172a);
}

.np-nav-list a:hover {
  color: var(--np-accent-highlight, #e11d48);
}

.np-nav-list ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--np-site-bg, #ffffff);
  border: 1px solid var(--np-borders, #e2e8f0);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  list-style: none;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
  padding: 8px 0;
}

.np-nav-list li:hover>ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.np-nav-list ul a {
  padding: 10px 20px;
  font-size: 13px;
  text-transform: none;
  font-weight: 500;
}

.np-nav-actions {
  display: flex;
  align-items: center;
}

.np-search-modal-trigger {
  background: transparent;
  color: var(--np-headings, #0f172a);
  padding: 8px;
}

.np-search-modal-trigger:hover {
  background: transparent;
  color: var(--np-accent-highlight, #e11d48);
}

.np-mobile-menu-trigger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px 0;
}

.np-mobile-menu-trigger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--np-headings, #0f172a);
}

/* Off-Canvas Drawer */
.np-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  visibility: hidden;
  transition: visibility 0.3s;
}

.np-mobile-drawer.is-open {
  visibility: visible;
}

.np-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.np-mobile-drawer.is-open .np-drawer-backdrop {
  opacity: 1;
}

.np-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: var(--np-site-bg, #ffffff);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  overflow-y: auto;
}

.np-mobile-drawer.is-open .np-drawer-panel {
  transform: translateX(0);
}

.np-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.np-drawer-close {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--np-headings, #0f172a);
  padding: 0;
}

.np-drawer-search {
  margin-bottom: 24px;
}

.np-mobile-menu-list {
  list-style: none;
}

.np-mobile-menu-list li {
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
}

.np-mobile-menu-list a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--np-headings, #0f172a);
}

/* Modal Search Overlay */
.np-search-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  transition: visibility 0.2s;
}

.np-search-modal.is-open {
  visibility: visible;
}

.np-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s;
}

.np-search-modal.is-open .np-search-backdrop {
  opacity: 1;
}

.np-search-dialog {
  position: relative;
  z-index: 2;
  width: 600px;
  max-width: 90%;
  background: var(--np-site-bg, #ffffff);
  padding: 40px;
  border-radius: var(--np-radius-md, 6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.np-search-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  font-size: 26px;
  border: none;
  color: var(--np-headings, #0f172a);
  padding: 0;
}

.np-search-heading {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

/* ==========================================================================
   5. LAYOUT ENGINE
   ========================================================================== */

.np-single-post-main,
.np-archive-main {
  padding: 36px 0 72px;
}

.np-article-grid {
  display: grid;
  gap: var(--np-grid-gap, 48px);
}

.np-article-grid.np-layout-right-sidebar {
  grid-template-columns: minmax(0, 1fr) var(--np-sidebar-width, 340px);
}

.np-article-grid.np-layout-left-sidebar {
  grid-template-columns: var(--np-sidebar-width, 340px) minmax(0, 1fr);
}

.np-article-grid.np-layout-no-sidebar .np-content-area {
  max-width: 960px;
  margin: 0 auto;
}

.np-article-grid.np-layout-narrow-focus .np-content-area {
  max-width: 720px;
  margin: 0 auto;
}

.np-sidebar-sticky {
  position: sticky;
  top: 80px;
}

.np-hero-full-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 40px;
}

.np-hero-full-img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.np-hero-caption {
  font-size: 0.8rem;
  color: var(--np-base-text);
  opacity: 0.75;
  padding: 8px 18px;
}

.np-entry-featured-media {
  margin-bottom: 32px;
}

.np-entry-featured-media img {
  width: 100%;
  border-radius: var(--np-radius-sm, 3px);
}

.np-media-caption {
  font-size: 0.825rem;
  color: var(--np-base-text);
  opacity: 0.8;
  margin-top: 8px;
  border-left: 3px solid var(--np-accent-highlight, #e11d48);
  padding-left: 10px;
}

/* ==========================================================================
   6. ARCHIVE ENGINE & POST CARDS
   ========================================================================== */

.np-archive-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
  padding-bottom: 24px;
}

.np-archive-title {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 8px;
}

.np-archive-title span {
  color: var(--np-accent-highlight, #e11d48);
}

.np-archive-desc {
  color: var(--np-muted-text, #64748b);
  font-size: 1.05rem;
}

.np-post-card {
  background: var(--np-card-bg, #f8fafc);
  border: 1px solid var(--np-borders, #e2e8f0);
  border-radius: var(--np-radius-md, 6px);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.np-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.np-card-media {
  position: relative;
  overflow: hidden;
}

.np-card-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.np-post-card:hover .np-card-media img {
  transform: scale(1.03);
}

.np-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--np-accent-highlight, #e11d48);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.np-card-badge a {
  color: #ffffff;
}

.np-card-body {
  padding: 20px;
}

.np-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.np-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--np-muted-text, #64748b);
  margin-bottom: 12px;
}

.np-card-excerpt {
  font-size: 0.95rem;
  color: var(--np-base-text, #334155);
  line-height: 1.55;
}

.np-cards-container.np-style-grid {
  display: grid;
  gap: 30px;
}

.np-cards-container.np-style-grid.np-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.np-cards-container.np-style-grid.np-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.np-cards-container.np-style-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.np-card-list {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
}

.np-card-list .np-card-media img {
  aspect-ratio: 16/11;
  height: 100%;
}

.np-cards-container.np-style-magazine {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.np-card-magazine .np-card-title {
  font-size: 1.6rem;
}

.np-pagination-wrap {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.np-pagination-wrap .nav-links {
  display: flex;
  gap: 8px;
}

.np-pagination-wrap .page-numbers {
  padding: 8px 16px;
  background: var(--np-card-bg, #f8fafc);
  border: 1px solid var(--np-borders, #e2e8f0);
  border-radius: var(--np-radius-sm, 3px);
  font-weight: 600;
  font-size: 14px;
}

.np-pagination-wrap .page-numbers.current {
  background: var(--np-accent-highlight, #e11d48);
  color: #ffffff;
  border-color: var(--np-accent-highlight, #e11d48);
}

.np-no-posts-found {
  text-align: center;
  padding: 60px 20px;
  background: var(--np-card-bg, #f8fafc);
  border: 1px solid var(--np-borders, #e2e8f0);
  border-radius: var(--np-radius-md, 6px);
}

/* ==========================================================================
   7. EDITORIAL COMPONENTS
   ========================================================================== */

.np-social-share-wrap {
  margin: 32px 0;
  padding: 20px;
  background: var(--np-card-bg, #f8fafc);
  border: 1px solid var(--np-borders, #e2e8f0);
  border-radius: var(--np-radius-md, 6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.np-share-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--np-headings, #0f172a);
}

.np-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.np-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.np-share-btn:hover {
  opacity: 0.9;
  color: #ffffff;
}

.np-btn-x {
  background-color: #000000;
}

.np-btn-facebook {
  background-color: #1877f2;
}

.np-btn-linkedin {
  background-color: #0a66c2;
}

.np-btn-whatsapp {
  background-color: #25d366;
}

.np-related-posts-section {
  margin: 50px 0;
  padding-top: 36px;
  border-top: 2px solid var(--np-borders, #e2e8f0);
}

.np-related-title {
  font-size: 22px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid var(--np-accent-highlight, #e11d48);
  padding-left: 12px;
}

/* ==========================================================================
   8. EDITORIAL META, CARDS & WIDGETS
   ========================================================================== */

.np-entry-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--np-accent-highlight, #e11d48);
  margin-bottom: 8px;
}

.np-editorial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--np-muted-text, #64748b);
  border-top: 1px solid var(--np-borders, #e2e8f0);
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
  padding: 10px 0;
  margin-bottom: 26px;
}

/* Story Deck & Subtitle */
.np-article-subtitle,
.np-story-deck {
  font-family: var(--np-font-base, sans-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--np-muted-text, #475569);
  margin-bottom: 20px;
  font-weight: 500;
}

.np-article-subtitle p,
.np-story-deck p {
  margin: 0;
}

/* Full-Bleed Hero Media */
.np-hero-full-wrap {
  width: 100%;
  margin-bottom: 40px;
  background: var(--np-headings, #0f172a);
}

.np-hero-figure {
  margin: 0;
  padding: 0;
  position: relative;
}

.np-hero-full-img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.np-hero-caption {
  font-size: 0.85rem;
  color: var(--np-muted-text, #64748b);
  padding: 10px 0;
  text-align: right;
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
}

/* Editorial Story Components (Section 19) */
.np-info-box,
.wp-block-group.np-info-box {
  background: var(--np-card-bg, #f0f9ff);
  border-left: 4px solid #0284c7;
  border-radius: var(--np-radius-sm, 4px);
  padding: 20px 24px;
  margin: 32px 0;
  border-top: 1px solid #e0f2fe;
  border-right: 1px solid #e0f2fe;
  border-bottom: 1px solid #e0f2fe;
}

.np-info-box-header {
  font-size: 1rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.np-info-box-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #0c4a6e;
}

.np-notice-box,
.wp-block-group.np-notice-box {
  background: #fff1f2;
  border-left: 4px solid var(--np-accent-highlight, #e11d48);
  border-radius: var(--np-radius-sm, 4px);
  padding: 20px 24px;
  margin: 32px 0;
  border-top: 1px solid #ffe4e6;
  border-right: 1px solid #ffe4e6;
  border-bottom: 1px solid #ffe4e6;
}

.np-notice-box-header {
  font-size: 1rem;
  font-weight: 700;
  color: #9f1239;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.np-notice-box-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #881337;
}

.np-pullquote,
.wp-block-pullquote.np-pullquote {
  border: none;
  padding: 36px 40px;
  margin: 40px 0;
  background: var(--np-card-bg, #f8fafc);
  border-top: 2px solid var(--np-accent-highlight, #e11d48);
  border-bottom: 2px solid var(--np-accent-highlight, #e11d48);
  text-align: center;
}

.np-pullquote blockquote p {
  font-family: var(--np-font-headings, Georgia, serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: var(--np-headings, #0f172a);
  margin-bottom: 12px;
}

.np-pullquote cite {
  font-family: var(--np-font-base, sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--np-muted-text, #64748b);
  display: block;
}

/* Timeline Component */
.np-timeline,
.wp-block-group.np-timeline {
  margin: 36px 0;
  padding: 20px 0 20px 24px;
  border-left: 2px solid var(--np-borders, #e2e8f0);
}

.np-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
}

.np-timeline-item:last-child {
  margin-bottom: 0;
}

.np-timeline-node {
  position: absolute;
  left: -29px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--np-accent-highlight, #e11d48);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--np-borders, #e2e8f0);
}

.np-timeline-time {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--np-accent-highlight, #e11d48);
  margin-bottom: 4px;
}

.np-timeline-desc {
  font-size: 0.95rem;
  color: var(--np-base-text, #334155);
  line-height: 1.5;
}

/* Author Box Detail */
.np-author-badge {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--np-accent-highlight, #e11d48);
  margin-bottom: 4px;
}

.np-author-more-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--np-accent-highlight, #e11d48);
}

.np-author-more-link:hover {
  text-decoration: underline;
}

.np-entry-content p {
  margin-bottom: 1.65rem;
}

/* Legacy Media Bridge (Section 32 / Checkpoint 3 & 4) */
.np-legacy-media-wrap {
  margin: 40px 0;
  padding: 24px;
  background: var(--np-card-bg, #f8fafc);
  border: 1px solid var(--np-borders, #e2e8f0);
  border-radius: var(--np-radius-md, 6px);
}

.np-legacy-media-heading {
  font-family: var(--np-font-headings, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--np-headings, #0f172a);
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
}

.np-legacy-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.np-legacy-figure {
  margin: 0;
  background: var(--np-surface, #ffffff);
  border: 1px solid var(--np-borders, #e2e8f0);
  border-radius: var(--np-radius-sm, 4px);
  overflow: hidden;
}

.np-legacy-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.np-legacy-caption {
  font-family: var(--np-font-base, sans-serif);
  font-size: 0.8rem;
  color: var(--np-muted-text, #64748b);
  padding: 8px 12px;
  background: var(--np-surface, #ffffff);
  border-top: 1px solid var(--np-borders, #e2e8f0);
}

/* In-Article Monetization & Newsletter Blocks */
.np-inline-ad-slot,
.wp-block-group.np-inline-ad-slot {
  margin: 36px 0;
  text-align: center;
}

.np-newsletter-box,
.wp-block-group.np-newsletter-box {
  margin: 40px 0;
  padding: 32px 28px;
  background: var(--np-card-bg, #f8fafc);
  border: 1px solid var(--np-borders, #e2e8f0);
  border-left: 4px solid var(--np-accent-highlight, #e11d48);
  border-radius: var(--np-radius-md, 6px);
}

.np-newsletter-heading {
  font-family: var(--np-font-headings, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--np-headings, #0f172a);
  margin-top: 0;
  margin-bottom: 8px;
}

.np-newsletter-desc {
  font-size: 0.95rem;
  color: var(--np-muted-text, #64748b);
  margin-bottom: 18px;
  line-height: 1.5;
}

.np-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 500px;
}

.np-newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--np-borders, #cbd5e1);
  border-radius: var(--np-radius-sm, 4px);
  background: #ffffff;
}

.vw-widget,
.vw-footer-widget {
  margin-bottom: 32px;
}

.vw-widget {
  padding: 24px;
  background-color: var(--np-card-bg, #f8fafc);
  border: 1px solid var(--np-borders, #e2e8f0);
  border-radius: var(--np-radius-md, 6px);
}

.vw-widget-title {
  font-size: var(--np-size-h3, 20px);
  font-weight: var(--np-weight-h3, 600);
  color: var(--np-headings, #0f172a);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--np-accent-highlight, #e11d48);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vw-widget ul,
.vw-footer-widget ul {
  list-style: none;
}

.vw-widget ul li,
.vw-footer-widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--np-borders, #e2e8f0);
  font-size: 0.95rem;
}

.vw-widget ul li:last-child,
.vw-footer-widget ul li:last-child {
  border-bottom: none;
}

.np-author-box {
  display: flex;
  gap: 20px;
  background-color: var(--np-card-bg, #f8fafc);
  border: 1px solid var(--np-borders, #e2e8f0);
  padding: 24px;
  border-radius: var(--np-radius-md, 6px);
  margin: 40px 0;
  align-items: center;
}

.np-author-avatar img {
  border-radius: 50%;
}

.np-author-name {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--np-headings, #0f172a);
}

.np-author-bio {
  font-size: 0.925rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.np-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
}

.np-tag-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.np-tag-pill {
  font-size: 0.825rem;
  background: var(--np-card-bg, #f8fafc);
  border: 1px solid var(--np-borders, #e2e8f0);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.np-tag-pill:hover {
  background: var(--np-accent-highlight, #e11d48);
  color: #fff;
  border-color: var(--np-accent-highlight, #e11d48);
}

/* ==========================================================================
   9. FOOTER BUILDER
   ========================================================================== */

.np-site-footer {
  background: var(--np-card-bg, #f8fafc);
  border-top: 1px solid var(--np-borders, #e2e8f0);
  margin-top: 60px;
}

.np-row-footer-widgets {
  padding: 60px 0 30px;
}

.np-footer-grid {
  display: grid;
  gap: 40px;
}

.np-footer-grid.np-cols-1 {
  grid-template-columns: 1fr;
}

.np-footer-grid.np-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.np-footer-grid.np-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.np-footer-grid.np-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.np-row-footer-bottom {
  border-top: 1px solid var(--np-borders, #e2e8f0);
  padding: 24px 0;
  font-size: 13px;
  color: var(--np-muted-text, #64748b);
}

.np-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.np-footer-menu-list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.np-footer-menu-list a {
  color: var(--np-muted-text, #64748b);
}

.np-footer-menu-list a:hover {
  color: var(--np-accent-highlight, #e11d48);
}

/* ==========================================================================
   10. 404 PAGE STYLING
   ========================================================================== */

.np-404-container {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.np-404-badge {
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 900;
  line-height: 1;
  color: var(--np-accent-highlight, #e11d48);
  margin-bottom: 12px;
}

.np-404-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.np-404-desc {
  font-size: 1.1rem;
  color: var(--np-muted-text, #64748b);
  margin-bottom: 28px;
}

.np-404-search-box {
  max-width: 440px;
  margin: 0 auto;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
  .np-primary-nav {
    display: none;
  }

  .np-mobile-menu-trigger {
    display: flex;
  }

  .np-main-header-inner {
    flex-direction: column;
    text-align: center;
  }

  .np-header-ad-banner {
    max-width: 100%;
    text-align: center;
  }

  .np-article-grid.np-layout-right-sidebar,
  .np-article-grid.np-layout-left-sidebar {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .np-cards-container.np-style-grid.np-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .np-footer-grid.np-cols-3,
  .np-footer-grid.np-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {

  .np-cards-container.np-style-grid.np-cols-2,
  .np-cards-container.np-style-grid.np-cols-3 {
    grid-template-columns: 1fr;
  }

  .np-card-list {
    grid-template-columns: 1fr;
  }

  .np-social-share-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .np-footer-grid.np-cols-2,
  .np-footer-grid.np-cols-3,
  .np-footer-grid.np-cols-4 {
    grid-template-columns: 1fr;
  }

  .np-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   12. PHASE 3 — HEADER BUILDER & MENU LAYOUT BUILDER
   ========================================================================== */

/* Header Row & Slot Flex Layouts */
.np-header-row {
  width: 100%;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.np-header-row.np-sticky-row {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--np-surface, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.np-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.np-container-fluid {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.np-header-slot {
  display: flex;
  align-items: center;
  gap: 16px;
}

.np-slot-left {
  justify-content: flex-start;
  flex: 1 1 auto;
}

.np-slot-center {
  justify-content: center;
  flex: 0 0 auto;
}

.np-slot-right {
  justify-content: flex-end;
  flex: 1 1 auto;
}

/* Header Components */
.np-header-component {
  display: flex;
  align-items: center;
}

.np-header-button-component .np-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--np-radius-sm, 4px);
  padding: 8px 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.np-header-button-component .np-btn-primary {
  background-color: var(--np-primary, #0f172a);
  color: #ffffff;
}
.np-header-button-component .np-btn-primary:hover {
  background-color: var(--np-accent-highlight, #dc2626);
  color: #ffffff;
}

.np-header-button-component .np-btn-secondary {
  background-color: var(--np-secondary, #334155);
  color: #ffffff;
}

.np-header-button-component .np-btn-outline {
  background-color: transparent;
  color: var(--np-primary, #0f172a);
  border: 1px solid currentColor;
}

.np-header-social-component .np-social-links-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-header-social-component .np-social-links-list a {
  color: var(--np-muted-text, #64748b);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.np-header-social-component .np-social-links-list a:hover {
  color: var(--np-primary, #0f172a);
}

.np-header-text-component {
  font-size: 0.85rem;
  color: var(--np-muted-text, #64748b);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Menu Layout Builder Core */
.np-menu-list,
.np-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--np-menu-primary-menu-item-gap, 4px);
}

.np-menu-list > .np-menu-item,
.np-nav-list > li {
  position: relative;
}

.np-menu-list > .np-menu-item > .np-menu-link,
.np-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  padding: var(--np-menu-primary-menu-item-padding-y, 12px) var(--np-menu-primary-menu-item-padding-x, 16px);
  font-size: var(--np-menu-primary-menu-font-size, 14px);
  font-weight: var(--np-menu-primary-menu-font-weight, 600);
  text-transform: var(--np-menu-primary-menu-text-transform, uppercase);
  letter-spacing: var(--np-menu-primary-menu-letter-spacing, 0.5px);
  color: var(--np-primary, #0f172a);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.np-dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}

/* Submenu Dropdowns */
.np-sub-menu,
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: var(--np-menu-primary-menu-dropdown-width, 220px);
  background-color: var(--np-menu-primary-menu-dropdown-bg, #ffffff);
  border: 1px solid var(--np-menu-primary-menu-dropdown-border, #e2e8f0);
  border-radius: var(--np-radius-sm, 4px);
  box-shadow: var(--np-menu-primary-menu-dropdown-shadow, 0 10px 25px -5px rgba(0,0,0,0.1));
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.np-menu-item:hover > .np-sub-menu,
.np-menu-item:focus-within > .np-sub-menu,
.np-menu-item.is-active > .np-sub-menu,
li:hover > .sub-menu,
li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.np-sub-menu .np-menu-link,
.sub-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  text-transform: none;
  color: var(--np-body-text, #334155);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.np-sub-menu .np-menu-link:hover,
.sub-menu a:hover {
  background-color: #f8fafc;
  color: var(--np-accent-highlight, #dc2626);
}

/* Mega Menu Foundation */
.np-has-mega-menu {
  position: static !important;
}

.np-mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--np-menu-primary-menu-dropdown-bg, #ffffff);
  border-bottom: 2px solid var(--np-accent-highlight, #dc2626);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.np-has-mega-menu:hover > .np-mega-menu-container,
.np-has-mega-menu:focus-within > .np-mega-menu-container {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.np-mega-sub-menu {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-mega-cols-2 .np-mega-sub-menu { grid-template-columns: repeat(2, 1fr); }
.np-mega-cols-3 .np-mega-sub-menu { grid-template-columns: repeat(3, 1fr); }
.np-mega-cols-4 .np-mega-sub-menu { grid-template-columns: repeat(4, 1fr); }
.np-mega-cols-5 .np-mega-sub-menu { grid-template-columns: repeat(5, 1fr); }
.np-mega-cols-6 .np-mega-sub-menu { grid-template-columns: repeat(6, 1fr); }

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .np-sub-menu,
  .np-mega-menu-container,
  .np-header-row {
    transition: none !important;
    transform: none !important;
  }
}

/* Responsive Visibility Helpers */
@media (min-width: 993px) {
  .np-hide-desktop { display: none !important; }
}

@media (min-width: 681px) and (max-width: 992px) {
  .np-hide-tablet { display: none !important; }
}

@media (max-width: 680px) {
  .np-hide-mobile { display: none !important; }
}

/* ==========================================================================
   13. PHASE 4 — SIDEBAR / LAYOUT BUILDER
   ========================================================================== */

/* Outer Fluid Container */
.vw-container-fluid,
.np-container-fluid {
  width: 100%;
  max-width: 100%;
  padding-left: var(--np-spacing-lg, 24px);
  padding-right: var(--np-spacing-lg, 24px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Base Structural Article Grid */
.np-article-grid {
  display: grid;
  gap: var(--np-grid-gap, 48px);
  width: 100%;
  align-items: start;
}

/* Layout Archetype 1: Content + Right Sidebar */
.np-layout-right-sidebar {
  grid-template-columns: minmax(0, 1fr) var(--np-sidebar-width, 340px);
}

/* Layout Archetype 2: Left Sidebar + Content */
.np-layout-left-sidebar {
  grid-template-columns: var(--np-sidebar-width, 340px) minmax(0, 1fr);
}

/* Layout Archetype 3: Both Sidebars (Dual Rail) */
.np-layout-both-sidebars {
  grid-template-columns: var(--np-secondary-sidebar-width, 280px) minmax(0, 1fr) var(--np-sidebar-width, 340px);
}

/* Layout Archetype 4: Contained Content (No Sidebar) */
.np-layout-no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--np-content-contained-width, 960px);
  margin-inline: auto;
}

/* Layout Archetype 5: Narrow Focus Editorial (Longform/Essay) */
.np-layout-narrow-focus {
  grid-template-columns: 1fr;
  max-width: var(--np-content-narrow-width, 720px);
  margin-inline: auto;
}

/* Layout Archetype 6: Fluid Full Width */
.np-layout-full-width {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
}

/* Content Area Boundary */
.np-content-area {
  min-width: 0;
  width: 100%;
}

/* Sidebar Presentation Rails */
.np-sidebar {
  min-width: 0;
}

.np-sidebar-sticky {
  position: sticky;
  top: var(--np-sticky-sidebar-top, 80px);
  will-change: transform;
}

/* Preserved Legacy & Modern Sidebar Widget Cards */
.vw-widget {
  margin-bottom: 32px;
  background-color: var(--np-surface, #ffffff);
  border: 1px solid var(--np-border-subtle, #e2e8f0);
  border-radius: var(--np-radius-sm, 4px);
  padding: 24px;
}

.vw-widget:last-child {
  margin-bottom: 0;
}

.vw-widget-title {
  font-family: var(--np-font-heading, inherit);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--np-primary, #0f172a);
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--np-primary, #0f172a);
}

/* Standard Widget Content Typography */
.vw-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vw-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--np-border-subtle, #f1f5f9);
}

.vw-widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vw-widget ul li a {
  color: var(--np-body-text, #334155);
  text-decoration: none;
  transition: color 0.15s ease;
}

.vw-widget ul li a:hover {
  color: var(--np-accent-highlight, #dc2626);
}

/* Responsive Grid Collapsing & Stacking Order */
@media (max-width: 992px) {
  .np-layout-right-sidebar,
  .np-layout-left-sidebar,
  .np-layout-both-sidebars {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .np-sidebar-sticky {
    position: static;
  }

  /* Stacking: Content First */
  .np-stack-content-first .np-content-area {
    order: 1;
  }
  .np-stack-content-first .np-sidebar-left {
    order: 2;
  }
  .np-stack-content-first .np-sidebar-right {
    order: 3;
  }

  /* Stacking: Sidebar First */
  .np-stack-sidebar-first .np-sidebar-left {
    order: 1;
  }
  .np-stack-sidebar-first .np-sidebar-right {
    order: 1;
  }
  .np-stack-sidebar-first .np-content-area {
    order: 2;
  }
}

/* Wide Container Option */
.vw-container-wide,
.np-container-wide {
  max-width: var(--np-container-wide-width, 1440px);
}

/* Independent Sidebar Visibility Policies */
@media (max-width: 680px) {
  body.np-sidebar-mobile-hide .np-sidebar,
  .np-sidebar.np-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 681px) and (max-width: 992px) {
  body.np-sidebar-tablet-hide .np-sidebar,
  .np-sidebar.np-hide-tablet {
    display: none !important;
  }
  body.np-sidebar-tablet-stack .np-article-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   14. Footer Builder (Phase 5)
   ========================================================================== */

.np-site-footer {
  background-color: var(--np-footer-bg, #0f172a);
  color: var(--np-footer-text, #94a3b8);
  font-size: 0.9375rem;
  line-height: 1.6;
  border-top: 1px solid var(--np-footer-border, #1e293b);
  width: 100%;
}

.np-footer-row {
  width: 100%;
}

.np-row-footer-widgets {
  padding: 56px 0 40px;
}

.np-footer-grid {
  display: grid;
  gap: 32px;
  width: 100%;
}

.np-footer-grid.np-cols-1 {
  grid-template-columns: 1fr;
}

.np-footer-grid.np-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.np-footer-grid.np-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.np-footer-grid.np-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.np-footer-grid.np-cols-2.np-dist-1-2 {
  grid-template-columns: 1fr 2fr;
}

.np-footer-grid.np-cols-3.np-dist-2-1-1 {
  grid-template-columns: 2fr 1fr 1fr;
}

.np-footer-container-custom {
  max-width: var(--np-footer-container-width, 1240px);
}

.np-footer-column {
  min-width: 0;
}

/* Footer Widget Typography & Elements */
.np-site-footer .vw-footer-widget {
  margin-bottom: 24px;
}

.np-site-footer .vw-footer-widget .vw-widget-title {
  color: var(--np-footer-heading, #ffffff);
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--np-accent-highlight, #dc2626);
}

.np-site-footer a {
  color: var(--np-footer-link, #cbd5e1);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.np-site-footer a:hover {
  color: var(--np-footer-link-hover, #ffffff);
}

.np-site-footer a:focus-visible {
  outline: 2px solid var(--np-accent-highlight, #dc2626);
  outline-offset: 2px;
  border-radius: 2px;
}

.np-site-footer .vw-footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-site-footer .vw-footer-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--np-footer-border-subtle, rgba(255, 255, 255, 0.08));
}

.np-site-footer .vw-footer-widget ul li:last-child {
  border-bottom: none;
}

/* Footer Bottom Bar */
.np-row-footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--np-footer-border-subtle, rgba(255, 255, 255, 0.08));
  background-color: var(--np-footer-bottom-bg, rgba(0, 0, 0, 0.2));
  font-size: 0.875rem;
}

.np-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.np-footer-copy p {
  margin: 0;
  color: var(--np-footer-copy-text, #94a3b8);
}

/* Footer Navigation */
.np-footer-nav .np-footer-menu-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.np-footer-nav .np-footer-menu-list li a {
  color: var(--np-footer-link, #94a3b8);
  font-size: 0.875rem;
}

.np-footer-nav .np-footer-menu-list li a:hover {
  color: var(--np-footer-link-hover, #ffffff);
}

/* Responsive Rules: Breakpoints matching NewsPulse standard:
   Desktop: >= 993px
   Tablet: 681px - 992px
   Mobile: <= 680px */
@media (min-width: 681px) and (max-width: 992px) {
  .np-footer-grid.np-cols-3,
  .np-footer-grid.np-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .np-footer-grid.np-tablet-stack {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .np-footer-grid.np-cols-2,
  .np-footer-grid.np-cols-3,
  .np-footer-grid.np-cols-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .np-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .np-footer-nav .np-footer-menu-list {
    justify-content: center;
    gap: 12px 16px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .np-site-footer a {
    transition: none;
  }
}

/* ==========================================================================
   SECTION 15: ARCHIVE BUILDER & POST CARD ENGINE
   ========================================================================== */

/* Archive Grid Container */
.np-archive-grid {
  display: grid;
  width: 100%;
  margin-bottom: var(--np-spacing-xl, 3rem);
}

.np-archive-grid.np-gap-small {
  gap: var(--np-spacing-sm, 1rem);
}

.np-archive-grid.np-gap-medium {
  gap: var(--np-spacing-md, 1.5rem);
}

.np-archive-grid.np-gap-large {
  gap: var(--np-spacing-lg, 2rem);
}

/* Desktop Columns */
.np-archive-grid.np-cols-1 {
  grid-template-columns: 1fr;
}

.np-archive-grid.np-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.np-archive-grid.np-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-archive-grid.np-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Base Post Card Styles */
.np-post-card,
.np-card-grid {
  position: relative;
  background-color: var(--np-card-bg, #ffffff);
  border: 1px solid var(--np-card-border, #e2e8f0);
  border-radius: var(--np-card-radius, var(--np-radius-md, 8px));
  box-shadow: var(--np-card-shadow, 0 1px 3px rgba(0, 0, 0, 0.05));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.np-post-card:hover {
  border-color: var(--np-card-border-hover, #cbd5e1);
  box-shadow: var(--np-shadow-lg, 0 10px 25px -5px rgba(0, 0, 0, 0.08));
  transform: translateY(-2px);
}

.np-post-card a {
  text-decoration: none;
  color: inherit;
}

.np-post-card a:focus-visible {
  outline: 2px solid var(--np-primary, #0073aa);
  outline-offset: 2px;
  border-radius: 2px;
}

.np-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--np-media-bg, #f1f5f9);
}

.np-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.np-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.np-post-card:hover .np-card-media img {
  transform: scale(1.04);
}

.np-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-block;
  background-color: var(--np-badge-bg, rgba(15, 23, 42, 0.85));
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease;
}

.np-card-badge a {
  color: #ffffff !important;
}

.np-card-badge:hover {
  background-color: var(--np-primary, #0073aa);
}

.np-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.np-card-title {
  margin: 0 0 0.5rem;
  font-family: var(--np-heading-font, "Inter", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--np-heading-color, #0f172a);
}

.np-card-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.np-card-title a:hover {
  color: var(--np-primary, #0073aa);
}

/* Card Metadata Row */
.np-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--np-meta-color, #64748b);
  font-weight: 500;
}

.np-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.np-author-avatar img {
  border-radius: 50%;
  display: block;
}

.np-meta-sep {
  color: #cbd5e1;
}

/* Card Excerpt */
.np-card-excerpt {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--np-text-muted, #475569);
  flex-grow: 1;
}

.np-card-excerpt p {
  margin: 0;
}

/* Read More Link */
.np-card-action {
  margin-top: auto;
  padding-top: 0.5rem;
}

.np-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--np-primary, #0073aa) !important;
  transition: gap 0.2s ease, color 0.2s ease;
}

.np-card-read-more:hover {
  gap: 8px;
  color: var(--np-primary-dark, #005177) !important;
}

.np-card-read-more .np-arrow {
  transition: transform 0.2s ease;
}

.np-card-read-more:hover .np-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   ARCHETYPE 2: LIST CARD
   -------------------------------------------------------------------------- */
.np-card-list {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex-direction: unset;
}

.np-card-list .np-card-media {
  aspect-ratio: unset;
  height: 100%;
  min-height: 200px;
}

.np-card-list .np-card-body {
  padding: 1.5rem;
}

.np-card-list .np-card-title {
  font-size: 1.35rem;
}

/* --------------------------------------------------------------------------
   ARCHETYPE 3: MAGAZINE / ZIG-ZAG CARD
   -------------------------------------------------------------------------- */
.np-card-magazine {
  display: grid;
  grid-template-columns: 360px 1fr;
  flex-direction: unset;
}

.np-card-magazine .np-card-media {
  aspect-ratio: unset;
  height: 100%;
  min-height: 240px;
}

.np-card-magazine.np-card-alternate {
  grid-template-columns: 1fr 360px;
}

.np-card-magazine.np-card-alternate .np-card-media {
  order: 2;
}

.np-card-magazine.np-card-alternate .np-card-body {
  order: 1;
}

.np-card-magazine .np-card-body {
  padding: 1.75rem;
}

.np-card-magazine .np-card-title {
  font-size: 1.45rem;
}

/* --------------------------------------------------------------------------
   ARCHETYPE 4: OVERLAY CARD
   -------------------------------------------------------------------------- */
.np-card-overlay {
  position: relative;
  min-height: 340px;
  display: flex;
  justify-content: flex-end;
  border: none;
  background-color: #0f172a;
}

.np-overlay-media-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.np-overlay-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.np-card-overlay:hover .np-overlay-img {
  transform: scale(1.05);
}

.np-overlay-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(15, 23, 42, 0.1) 100%);
  z-index: 2;
  pointer-events: none;
}

.np-overlay-content {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.np-overlay-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.np-overlay-title a {
  color: #ffffff !important;
}

.np-card-overlay .np-card-meta {
  color: #cbd5e1;
}

.np-card-overlay .np-meta-sep {
  color: #64748b;
}

.np-card-overlay .np-card-excerpt {
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   ARCHETYPE 5: TYPOGRAPHIC TEXT CARD
   -------------------------------------------------------------------------- */
.np-card-text {
  border-left: 4px solid var(--np-primary, #0073aa);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.np-card-text .np-card-body {
  padding: 1.5rem;
}

.np-card-text .np-card-title {
  font-size: 1.35rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   PAGINATION & AJAX LOAD MORE
   -------------------------------------------------------------------------- */
.np-pagination-wrap {
  margin: 3rem 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.np-posts-nav .nav-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.np-posts-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--np-card-bg, #ffffff);
  border: 1px solid var(--np-card-border, #e2e8f0);
  border-radius: var(--np-radius-md, 6px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--np-heading-color, #0f172a);
  text-decoration: none;
  transition: all 0.2s ease;
}

.np-posts-nav a:hover {
  background-color: var(--np-primary, #0073aa);
  color: #ffffff;
  border-color: var(--np-primary, #0073aa);
}

.np-load-more-wrap {
  text-align: center;
  width: 100%;
}

.np-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: var(--np-primary, #0073aa);
  color: #ffffff;
  border: none;
  border-radius: var(--np-radius-md, 6px);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.np-load-more-btn:hover {
  background-color: var(--np-primary-dark, #005177);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.np-load-more-btn:focus-visible {
  outline: 2px solid var(--np-primary, #0073aa);
  outline-offset: 3px;
}

.np-load-more-btn:disabled,
.np-load-more-btn.np-loaded-all {
  background-color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.np-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: np-spin 0.7s linear infinite;
}

.np-load-more-btn.np-loading .np-btn-spinner {
  display: inline-block;
}

@keyframes np-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty Archive Feedback */
.np-empty-archive {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--np-card-bg, #ffffff);
  border: 1px dashed var(--np-card-border, #cbd5e1);
  border-radius: var(--np-radius-md, 8px);
  margin: 2rem 0;
}

.np-empty-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--np-heading-color, #0f172a);
}

.np-empty-message {
  color: var(--np-text-muted, #64748b);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (Matching NewsPulse Specification)
   Desktop: > 992px
   Tablet: 681px - 992px
   Mobile: <= 680px
   -------------------------------------------------------------------------- */
@media (min-width: 681px) and (max-width: 992px) {
  .np-archive-grid.np-cols-3,
  .np-archive-grid.np-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-archive-grid.np-tablet-cols-1 {
    grid-template-columns: 1fr;
  }

  .np-archive-grid.np-tablet-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-card-magazine {
    grid-template-columns: 280px 1fr;
  }

  .np-card-magazine.np-card-alternate {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 680px) {
  .np-archive-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .np-card-list,
  .np-card-magazine,
  .np-card-magazine.np-card-alternate {
    display: flex;
    flex-direction: column;
  }

  .np-card-list .np-card-media,
  .np-card-magazine .np-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: unset;
    height: auto;
    order: 0 !important;
  }

  .np-card-list .np-card-body,
  .np-card-magazine .np-card-body {
    order: 1 !important;
    padding: 1.25rem;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .np-post-card,
  .np-card-media img,
  .np-card-read-more,
  .np-load-more-btn {
    transition: none !important;
    transform: none !important;
  }

  .np-btn-spinner {
    animation-duration: 2s;
  }
}

/* ==========================================================================
   Phase 10: Performance & Media Asset Optimization
   ========================================================================== */

/* Remote Media Figure & Image Aspect Ratio Containers (CLS Elimination) */
.np-remote-media-figure {
  margin: 0 0 24px 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--np-radius-sm, 4px);
  background-color: var(--np-media-bg, #f1f5f9);
}

.np-remote-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.np-remote-media-caption {
  font-size: 0.825rem;
  color: var(--np-base-text, #334155);
  opacity: 0.85;
  margin-top: 8px;
  border-left: 3px solid var(--np-accent-highlight, #e11d48);
  padding-left: 10px;
  line-height: 1.4;
}

/* Modern Picture Container (WebP / AVIF) */
.np-picture-container {
  display: block;
  width: 100%;
  height: 100%;
}

.np-picture-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Phase 11: Editorial Breadcrumbs
   ========================================================================== */

.np-breadcrumbs {
  padding: 0.75rem 0;
  background-color: transparent;
  border-bottom: 1px solid var(--np-border, #e2e8f0);
  margin-bottom: 1.5rem;
}

.np-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--np-muted-text, #64748b);
}

.np-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.np-breadcrumb-link {
  color: var(--np-muted-text, #64748b);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.np-breadcrumb-link:hover,
.np-breadcrumb-link:focus {
  color: var(--np-primary, #0073aa);
  text-decoration: underline;
}

.np-breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--np-border, #cbd5e1);
  user-select: none;
}

.np-breadcrumb-current .np-breadcrumb-text {
  color: var(--np-base-text, #334155);
  font-weight: 500;
}



