/*
Theme Name: NewsPortal Pro
Theme URI: https://newsportalpro.com
Author: NewsPortal Pro
Author URI: https://newsportalpro.com
Description: Premium News & Portfolio WordPress Theme with 20+ 3D Homepage Templates, Advanced SEO, Breaking News Ticker, and Full Customization Panel. Features immersive 3D animations, exploding object reveals, and professional news layouts.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsportal-pro
Tags: news, magazine, portfolio, blog, custom-background, custom-header, custom-menu, custom-logo, featured-images, flexible-header, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, block-editor-styles, wide-blocks
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --np-primary:       #e63946;
  --np-primary-dark:  #c1121f;
  --np-secondary:     #1d3557;
  --np-accent:        #457b9d;
  --np-bg:            #f4f6f8;
  --np-dark:          #0f172a;
  --np-card-bg:       #ffffff;
  --np-text:          #1e293b;
  --np-text-muted:    #64748b;
  --np-text-light:    #94a3b8;
  --np-border:        #e2e8f0;
  --np-border-light:  #f1f5f9;
  --np-shadow:        0 2px 12px rgba(0,0,0,0.07);
  --np-shadow-md:     0 6px 24px rgba(0,0,0,0.10);
  --np-shadow-lg:     0 20px 60px rgba(0,0,0,0.15);
  --np-shadow-xl:     0 32px 80px rgba(0,0,0,0.20);
  --np-radius:        12px;
  --np-radius-sm:     6px;
  --np-radius-lg:     20px;
  --np-transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --np-font-heading:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --np-font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --np-font-accent:   'Oswald', 'Arial Narrow', Impact, sans-serif;
  --np-font-mono:     'Fira Code', 'Consolas', monospace;
  --np-header-height: 70px;
  --np-topbar-h:      36px;
  --np-perspective:   1200px;
  --np-3d-depth:      80px;
  --np-container:     1320px;
  --np-sidebar-w:     320px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--np-font-body);
  color: var(--np-text);
  background: var(--np-bg);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--np-primary); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--np-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--np-font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--np-text);
}
p { margin-bottom: 1em; }
ul,ol { padding-left: 1.5em; }
table { border-collapse: collapse; width: 100%; }
input,textarea,select,button { font-family: inherit; }
button { cursor: pointer; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: var(--np-container); margin: 0 auto; padding: 0 24px; width: 100%; }
.np-layout-flex { display: flex; gap: 40px; align-items: flex-start; }
.np-main-content { flex: 1; min-width: 0; }
.np-sidebar-wrap { width: var(--np-sidebar-w); flex-shrink: 0; }
.np-sidebar-left .np-sidebar-wrap { order: -1; }
.np-full-width { width: 100% !important; max-width: 100%; }
.np-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.np-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.np-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.np-grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.np-flex { display: flex; }
.np-flex-center { display: flex; align-items: center; justify-content: center; }
.np-flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-muted { color: var(--np-text-muted); }
.sr-only, .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; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link { position: absolute; top: -40px; left: 6px; background: var(--np-primary); color: #fff; padding: 8px 16px; border-radius: 0 0 var(--np-radius-sm) var(--np-radius-sm); font-size: 14px; font-weight: 600; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; color: #fff; }
*:focus-visible { outline: 3px solid var(--np-primary); outline-offset: 3px; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#np-reading-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--np-primary), var(--np-accent));
  z-index: 99999; transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(230,57,70,0.5);
}

/* ============================================================
   TOPBAR
   ============================================================ */
#np-topbar {
  background: var(--np-secondary);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  height: var(--np-topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.np-topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.np-topbar-left { display: flex; align-items: center; gap: 20px; }
.np-topbar-date { font-size: 11px; color: rgba(255,255,255,0.65); }
.np-topbar-right { display: flex; align-items: center; gap: 16px; }
.np-topbar-social { display: flex; gap: 8px; }
.np-topbar-social a {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: var(--np-transition);
}
.np-topbar-social a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.np-topbar-menu { list-style: none; display: flex; gap: 0; }
.np-topbar-menu a { color: rgba(255,255,255,0.75); font-size: 12px; padding: 0 10px; border-right: 1px solid rgba(255,255,255,0.12); }
.np-topbar-menu a:hover { color: #fff; }
.np-topbar-menu li:last-child a { border-right: none; }

/* ============================================================
   HEADER
   ============================================================ */
#np-header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
#np-header.np-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.10); }
.np-header-inner,
.np-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
  flex-wrap: nowrap;
}
/* Logo */
.np-logo { display: flex; align-items: center; text-decoration: none; gap: 10px; flex-shrink: 0; }
.np-logo img { max-height: 56px; width: auto; }
.np-logo-text {
  font-family: var(--np-font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--np-secondary);
  letter-spacing: -0.5px;
  line-height: 1;
}
.np-logo-text span { color: var(--np-primary); }
.np-logo-tagline { font-size: 11px; color: var(--np-text-muted); letter-spacing: 0.5px; margin-top: 2px; }
/* Header search */
.np-header-search { flex: 0 0 auto; }
.np-search-form {
  display: flex;
  align-items: center;
  border: 2px solid var(--np-border);
  border-radius: 30px;
  overflow: hidden;
  transition: border-color 0.25s ease;
  background: var(--np-bg);
}
.np-search-form:focus-within { border-color: var(--np-primary); }
.np-search-form input {
  border: none;
  background: transparent;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--np-text);
  outline: none;
  min-width: 200px;
}
.np-search-form button {
  background: var(--np-primary);
  border: none;
  color: #fff;
  padding: 9px 16px;
  font-size: 14px;
  transition: background 0.25s ease;
}
.np-search-form button:hover { background: var(--np-primary-dark); }
/* Header actions */
.np-header-actions { display: flex; align-items: center; gap: 12px; }
.np-dark-toggle {
  background: none; border: 2px solid var(--np-border);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--np-transition);
  color: var(--np-text);
}
.np-dark-toggle:hover { border-color: var(--np-primary); color: var(--np-primary); transform: rotate(20deg); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#np-nav {
  background: var(--np-secondary);
  position: relative;
  z-index: 999;
}
.np-nav-inner { display: flex; align-items: stretch; justify-content: space-between; }
.np-nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.np-nav-menu > li { position: relative; }
.np-nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 15px 18px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color 0.25s ease, background 0.25s ease;
  position: relative;
}
.np-nav-menu > li > a::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px; background: var(--np-primary);
  transition: left 0.3s ease, right 0.3s ease;
  border-radius: 3px 3px 0 0;
}
.np-nav-menu > li:hover > a,
.np-nav-menu > li.current-menu-item > a,
.np-nav-menu > li.current-menu-ancestor > a { color: #fff; }
.np-nav-menu > li:hover > a::after,
.np-nav-menu > li.current-menu-item > a::after { left: 0; right: 0; }
/* Nav badge (HOT / NEW) */
.np-nav-badge {
  font-size: 9px; font-weight: 800;
  background: var(--np-primary); color: #fff;
  padding: 1px 5px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.5px;
  line-height: 1.4; margin-left: 3px;
}
/* Dropdown */
.np-dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 230px;
  background: #fff;
  box-shadow: var(--np-shadow-lg);
  border-radius: 0 0 var(--np-radius) var(--np-radius);
  border-top: 3px solid var(--np-primary);
  list-style: none; padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 200;
}
.np-nav-menu > li:hover .np-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.np-dropdown li a {
  display: block; padding: 10px 20px;
  color: var(--np-text); font-size: 13px; font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.np-dropdown li a:hover { color: var(--np-primary); padding-left: 26px; border-left-color: var(--np-primary); background: rgba(230,57,70,0.04); }
/* Hamburger */
.np-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; background: none; border: none; }
.np-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.9); border-radius: 2px; transition: var(--np-transition); }
.np-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.np-hamburger.active span:nth-child(2) { opacity: 0; }
.np-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile menu */
@media (max-width: 900px) {
  .np-hamburger { display: flex; }
  .np-nav-menu {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--np-secondary); z-index: 998;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 70vh; overflow-y: auto;
  }
  .np-nav-menu.np-menu-open { display: flex; }
  .np-nav-menu > li > a { padding: 13px 20px; }
  .np-nav-menu > li > a::after { display: none; }
  .np-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(0,0,0,0.2); border-radius: 0; }
}

/* ============================================================
   BREAKING NEWS TICKER (base)
   ============================================================ */
.np-breaking-news {
  background: var(--np-card-bg);
  border-bottom: 1px solid var(--np-border);
  padding: 10px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.np-bn-label {
  flex-shrink: 0;
  background: var(--np-primary);
  color: #fff;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  margin-right: 16px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.np-bn-dot { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: np-blink 1.2s infinite; }
@keyframes np-blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.np-bn-ticker-wrap { flex: 1; overflow: hidden; }
.np-bn-ticker { display: flex; gap: 40px; animation: np-scroll-ticker 30s linear infinite; white-space: nowrap; }
.np-bn-ticker:hover { animation-play-state: paused; }
.np-bn-ticker a { color: var(--np-text); font-weight: 500; }
.np-bn-ticker a:hover { color: var(--np-primary); }
@keyframes np-scroll-ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ============================================================
   HERO / CONTENT WRAP
   ============================================================ */
.np-content-wrap { padding: 40px 0 60px; }

/* ============================================================
   ARTICLE CARDS (shared)
   ============================================================ */
.np-card {
  background: var(--np-card-bg);
  border-radius: var(--np-radius);
  overflow: hidden;
  box-shadow: var(--np-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex; flex-direction: column;
  height: 100%;
}
.np-card:hover { transform: translateY(-5px); box-shadow: var(--np-shadow-md); }
.np-card__image {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--np-border-light);
}
.np-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.np-card:hover .np-card__image img { transform: scale(1.05); }
.np-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
}
.np-card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.np-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.np-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  font-family: var(--np-font-heading);
}
.np-card__title a { color: var(--np-text); transition: color 0.2s ease; }
.np-card__title a:hover { color: var(--np-primary); }
.np-card__excerpt { color: var(--np-text-muted); font-size: 0.875rem; line-height: 1.6; flex: 1; margin-bottom: 14px; }
.np-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--np-border-light); margin-top: auto; }
/* Card sizes */
.np-card--sm .np-card__image { aspect-ratio: 4/3; }
.np-card--lg .np-card__image { aspect-ratio: 21/9; }
.np-card--hero {
  position: relative; border-radius: var(--np-radius-lg); overflow: hidden;
  aspect-ratio: 16/7; min-height: 380px;
}
.np-card--hero .np-card__image { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.np-card--hero .np-card__overlay { background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); }
.np-card--hero .np-card__body { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 30px; background: none; }
.np-card--hero .np-card__title { color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.np-card--hero .np-card__excerpt { color: rgba(255,255,255,0.8); }
/* Horizontal card */
.np-card--horizontal { flex-direction: row; height: auto; }
.np-card--horizontal .np-card__image { width: 200px; flex-shrink: 0; aspect-ratio: 4/3; height: auto; }
.np-card--horizontal .np-card__body { padding: 16px 20px; }
/* Overlay card (text on image) */
.np-card--overlay { position: relative; }
.np-card--overlay .np-card__body { position: absolute; bottom: 0; left: 0; right: 0; background: none; padding: 20px; z-index: 2; }
.np-card--overlay .np-card__title a,
.np-card--overlay .np-meta { color: rgba(255,255,255,0.9); }
.np-card--overlay .np-card__title a:hover { color: var(--np-primary); }

/* ============================================================
   BADGE / LABEL
   ============================================================ */
.np-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--np-primary);
  color: #fff;
  line-height: 1.5;
  transition: var(--np-transition);
}
.np-badge:hover { opacity: 0.85; color: #fff; }
.np-badge--secondary  { background: var(--np-secondary); }
.np-badge--accent     { background: var(--np-accent); }
.np-badge--dark       { background: var(--np-dark); }
.np-badge--outline    { background: transparent; border: 1.5px solid currentColor; color: var(--np-primary); }
.np-badge--live       { background: #dc2626; animation: np-pulse-badge 1.5s infinite; }
@keyframes np-pulse-badge { 0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.4)} 50%{box-shadow:0 0 0 6px rgba(220,38,38,0)} }
.np-badge--sponsored  { background: #f59e0b; color: #78350f; }
.np-badge--opinion    { background: #7c3aed; }
.np-badge--review     { background: #059669; }

/* ============================================================
   META ROW
   ============================================================ */
.np-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; font-size: 12px; color: var(--np-text-muted);
}
.np-meta a { color: var(--np-text-muted); transition: color 0.2s ease; }
.np-meta a:hover { color: var(--np-primary); }
.np-meta-author { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.np-author-mini-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.np-meta-dot { color: var(--np-border); font-size: 8px; }
.np-meta-reading-time::before { content: '⏱ '; }
.np-meta-views::before { content: '👁 '; }
.np-meta-comments::before { content: '💬 '; }
.np-meta-updated { font-style: italic; color: var(--np-text-light); font-size: 11px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.np-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--np-border);
}
.np-section-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--np-font-heading); font-size: 1.35rem;
  font-weight: 800; color: var(--np-text); text-transform: uppercase; letter-spacing: 0.3px;
}
.np-section-title::before {
  content: ''; display: block;
  width: 4px; height: 26px;
  background: var(--np-primary); border-radius: 2px;
}
.np-section-more { font-size: 12px; font-weight: 700; color: var(--np-text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 14px; border: 1.5px solid var(--np-border); border-radius: 20px; transition: var(--np-transition); }
.np-section-more:hover { border-color: var(--np-primary); color: var(--np-primary); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.np-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; font-size: 13px; color: var(--np-text-muted);
  margin-bottom: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--np-border-light);
}
.np-breadcrumb a { color: var(--np-text-muted); transition: color 0.2s ease; }
.np-breadcrumb a:hover { color: var(--np-primary); }
.np-breadcrumb-sep { color: var(--np-text-light); font-size: 10px; }
.np-breadcrumb .current { color: var(--np-text); font-weight: 500; }
/* OL breadcrumb (from np_breadcrumb()) */
.np-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0; }
.np-breadcrumb ol li { display: flex; align-items: center; gap: 6px; }
.np-breadcrumb ol li::after { content: '/'; color: var(--np-text-light); font-size: 11px; }
.np-breadcrumb ol li:last-child::after { display: none; }
.np-breadcrumb ol li:last-child a,
.np-breadcrumb ol li:last-child span { color: var(--np-text); font-weight: 500; }

/* ============================================================
   SINGLE POST — FULL PREMIUM LAYOUT
   ============================================================ */
.np-single-wrap { padding: 36px 0 60px; }

/* Article header */
.np-single-header { margin-bottom: 28px; }
.np-single-category { margin-bottom: 14px; }
.np-single-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.18;
  font-weight: 900;
  color: var(--np-text);
  margin-bottom: 18px;
  font-family: var(--np-font-heading);
}
.np-single-excerpt {
  font-size: 1.15rem;
  color: var(--np-text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 400;
  border-left: 3px solid var(--np-primary);
  padding-left: 16px;
}
.np-single-meta { margin: 16px 0 20px; gap: 14px; }

/* Sponsored / Live badges */
.np-sponsored-label {
  display: inline-block; background: #fef3c7; color: #92400e;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; padding: 4px 12px; border-radius: 4px;
  margin-bottom: 12px; border: 1px solid #fde68a;
}
.np-live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #dc2626; color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 4px;
  margin-bottom: 14px; text-transform: uppercase;
  animation: np-pulse-badge 1.5s infinite;
}
.np-live-dot { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: np-blink 1s infinite; }

/* Featured image */
.np-single-featured {
  border-radius: var(--np-radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  position: relative;
  box-shadow: var(--np-shadow-md);
}
.np-single-featured img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.np-featured-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.9); font-size: 12px;
  padding: 8px 16px; text-align: center;
}

/* Article body */
.np-single-content {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--np-text);
  max-width: 100%;
}
.np-single-content > *:first-child { margin-top: 0; }
.np-single-content h2 { font-size: 1.65rem; margin: 2em 0 0.7em; color: var(--np-text); border-bottom: 2px solid var(--np-border-light); padding-bottom: 10px; }
.np-single-content h3 { font-size: 1.35rem; margin: 1.7em 0 0.6em; }
.np-single-content h4 { font-size: 1.15rem; margin: 1.5em 0 0.5em; }
.np-single-content p { margin-bottom: 1.4em; }
.np-single-content a { color: var(--np-primary); text-decoration: underline; text-decoration-color: rgba(230,57,70,0.3); text-underline-offset: 3px; }
.np-single-content a:hover { text-decoration-color: var(--np-primary); }
.np-single-content blockquote {
  border-left: 4px solid var(--np-primary);
  margin: 2em 0;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(230,57,70,0.05) 0%, rgba(69,123,157,0.03) 100%);
  border-radius: 0 var(--np-radius) var(--np-radius) 0;
  font-style: italic;
  font-size: 1.15em;
  color: var(--np-secondary);
  position: relative;
}
.np-single-content blockquote::before {
  content: '"';
  position: absolute; top: -10px; left: 16px;
  font-size: 5rem; line-height: 1; color: var(--np-primary);
  opacity: 0.12; font-family: Georgia, serif;
}
.np-single-content blockquote cite { display: block; margin-top: 10px; font-size: 0.85em; font-style: normal; font-weight: 700; color: var(--np-text-muted); }
.np-single-content ul, .np-single-content ol { margin-bottom: 1.4em; padding-left: 1.6em; }
.np-single-content li { margin-bottom: 0.5em; }
.np-single-content table { margin-bottom: 1.4em; border: 1px solid var(--np-border); }
.np-single-content table th { background: var(--np-secondary); color: #fff; padding: 10px 14px; text-align: left; font-size: 13px; }
.np-single-content table td { padding: 10px 14px; border-bottom: 1px solid var(--np-border); font-size: 14px; }
.np-single-content table tr:nth-child(even) td { background: var(--np-bg); }
.np-single-content img { border-radius: var(--np-radius-sm); margin: 1.5em auto; box-shadow: var(--np-shadow); }
.np-single-content iframe { max-width: 100%; border-radius: var(--np-radius-sm); margin: 1.5em 0; }
.np-single-content pre {
  background: var(--np-dark); color: #e2e8f0;
  padding: 20px 24px; border-radius: var(--np-radius);
  overflow-x: auto; font-size: 14px; margin-bottom: 1.4em;
  font-family: var(--np-font-mono);
}
.np-single-content code {
  background: rgba(230,57,70,0.08); color: var(--np-primary-dark);
  padding: 2px 7px; border-radius: 4px; font-size: 0.9em;
  font-family: var(--np-font-mono);
}
.np-single-content pre code { background: none; color: inherit; padding: 0; }
.np-single-content hr { border: none; border-top: 2px solid var(--np-border); margin: 2.5em 0; }
/* Figure/caption */
.np-single-content figure { margin: 2em 0; }
.np-single-content figcaption { text-align: center; font-size: 13px; color: var(--np-text-muted); margin-top: 8px; font-style: italic; }

/* Tags */
.np-single-tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 30px 0; padding: 20px 0;
  border-top: 1px solid var(--np-border);
}
.np-single-tags strong { font-size: 13px; color: var(--np-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-right: 4px; }
.np-tag-link {
  display: inline-block; padding: 5px 12px;
  border: 1.5px solid var(--np-border); border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--np-text-muted);
  transition: var(--np-transition);
}
.np-tag-link:hover { border-color: var(--np-primary); color: var(--np-primary); background: rgba(230,57,70,0.05); }

/* ============================================================
   SOCIAL SHARE
   ============================================================ */
.np-share {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--np-card-bg);
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.np-share__label { font-size: 13px; font-weight: 700; color: var(--np-text); text-transform: uppercase; letter-spacing: 0.5px; margin-right: 4px; }
.np-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  color: #fff; transition: var(--np-transition);
  border: none;
}
.np-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.2); color: #fff; }
.np-share-btn--facebook  { background: #1877f2; }
.np-share-btn--twitter   { background: #000; }
.np-share-btn--linkedin  { background: #0a66c2; }
.np-share-btn--pinterest { background: #e60023; }
.np-share-btn--whatsapp  { background: #25d366; }
.np-share-btn--telegram  { background: #0088cc; }
.np-share-btn--reddit    { background: #ff4500; }
.np-share-btn--email     { background: #6b7280; }
.np-share-btn--copy      { background: var(--np-secondary); }
/* Inline share (plain links) */
.np-social-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; align-items: center; }
.np-social-share strong { font-size: 13px; font-weight: 700; margin-right: 4px; color: var(--np-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.np-social-share a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #fff;
  transition: var(--np-transition);
}
.np-social-share a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: #fff; }
.np-share-facebook  { background: #1877f2; }
.np-share-twitter   { background: #000; }
.np-share-linkedin  { background: #0a66c2; }
.np-share-pinterest { background: #e60023; }
.np-share-whatsapp  { background: #25d366; }
.np-share-telegram  { background: #0088cc; }
.np-share-reddit    { background: #ff4500; }
.np-share-email     { background: #6b7280; }
.np-share-copy      { background: var(--np-secondary); }

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.np-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 36px 0;
}
.np-post-nav__item {
  background: var(--np-card-bg); border-radius: var(--np-radius);
  padding: 18px 20px; box-shadow: var(--np-shadow);
  display: flex; align-items: center; gap: 14px;
  transition: var(--np-transition); border: 1.5px solid transparent;
}
.np-post-nav__item:hover { border-color: var(--np-primary); transform: translateY(-2px); }
.np-post-nav__item--next { text-align: right; flex-direction: row-reverse; }
.np-post-nav__thumb img { width: 64px; height: 64px; border-radius: var(--np-radius-sm); object-fit: cover; flex-shrink: 0; }
.np-post-nav__label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--np-text-muted); margin-bottom: 4px; }
.np-post-nav__title { font-size: 14px; font-weight: 700; color: var(--np-text); line-height: 1.3; font-family: var(--np-font-heading); }
.np-post-nav__item:hover .np-post-nav__title { color: var(--np-primary); }

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.np-author-box {
  background: var(--np-card-bg);
  border-radius: var(--np-radius-lg);
  padding: 32px;
  box-shadow: var(--np-shadow-md);
  display: flex; gap: 24px; align-items: flex-start;
  margin: 40px 0;
  border-top: 4px solid var(--np-primary);
}
.np-author-box__avatar img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--np-primary);
  flex-shrink: 0;
}
.np-author-box__info { flex: 1; }
.np-author-box__label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--np-primary); margin-bottom: 4px; }
.np-author-box__name { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; font-family: var(--np-font-heading); }
.np-author-box__name a { color: var(--np-text); }
.np-author-box__name a:hover { color: var(--np-primary); }
.np-author-box__bio { font-size: 0.9rem; color: var(--np-text-muted); line-height: 1.65; margin-bottom: 14px; }
.np-author-box__social { display: flex; gap: 8px; }
.np-author-box__social a { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--np-bg); color: var(--np-text-muted); font-size: 13px; transition: var(--np-transition); border: 1.5px solid var(--np-border); }
.np-author-box__social a:hover { background: var(--np-primary); color: #fff; border-color: var(--np-primary); }
.np-author-box__posts-count { font-size: 12px; color: var(--np-text-muted); margin-top: 8px; }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.np-related-posts { margin: 40px 0 20px; }
.np-related-posts .np-section-title { font-size: 1.15rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--np-border-light); }
.np-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.np-related-card { display: flex; flex-direction: column; border-radius: var(--np-radius); overflow: hidden; box-shadow: var(--np-shadow); background: var(--np-card-bg); transition: var(--np-transition); }
.np-related-card:hover { transform: translateY(-4px); box-shadow: var(--np-shadow-md); }
.np-related-card__image { aspect-ratio: 16/9; overflow: hidden; }
.np-related-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.np-related-card:hover .np-related-card__image img { transform: scale(1.05); }
.np-related-card__body { padding: 16px; flex: 1; }
.np-related-card__title { font-size: 14px; font-weight: 700; line-height: 1.35; font-family: var(--np-font-heading); }
.np-related-card__title a { color: var(--np-text); }
.np-related-card__title a:hover { color: var(--np-primary); }
.np-related-card__meta { font-size: 11px; color: var(--np-text-muted); margin-top: 8px; }

/* ============================================================
   PAYWALL
   ============================================================ */
.np-paywall-preview { max-height: 300px; overflow: hidden; position: relative; }
.np-paywall-preview::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--np-bg)); }
.np-paywall-gate {
  text-align: center; padding: 40px 24px;
  background: linear-gradient(135deg, var(--np-secondary) 0%, #0f172a 100%);
  border-radius: var(--np-radius-lg); margin-top: -1px; color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.np-paywall-gate h3 { font-size: 1.4rem; margin-bottom: 10px; }
.np-paywall-gate p { color: rgba(255,255,255,0.75); margin-bottom: 20px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.np-sidebar { display: flex; flex-direction: column; gap: 28px; }
.np-widget {
  background: var(--np-card-bg);
  border-radius: var(--np-radius);
  padding: 24px;
  box-shadow: var(--np-shadow);
  overflow: hidden;
}
.np-widget-title {
  font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 800; font-family: var(--np-font-accent);
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--np-primary);
  color: var(--np-secondary);
  position: relative;
}
/* Recent posts widget */
.np-widget-recent-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--np-border-light); }
.np-widget-recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.np-widget-recent-post__thumb { width: 70px; height: 70px; border-radius: var(--np-radius-sm); overflow: hidden; flex-shrink: 0; }
.np-widget-recent-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.np-widget-recent-post__title { font-size: 13px; font-weight: 700; line-height: 1.3; font-family: var(--np-font-heading); margin-bottom: 5px; }
.np-widget-recent-post__title a { color: var(--np-text); }
.np-widget-recent-post__title a:hover { color: var(--np-primary); }
.np-widget-recent-post__meta { font-size: 11px; color: var(--np-text-muted); }
/* Categories widget */
.np-widget-categories li { border-bottom: 1px solid var(--np-border-light); }
.np-widget-categories a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13px; font-weight: 500; color: var(--np-text); transition: var(--np-transition); }
.np-widget-categories a:hover { color: var(--np-primary); padding-left: 5px; }
.np-widget-categories .count { background: var(--np-bg); color: var(--np-text-muted); border-radius: 20px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
/* Tags cloud widget */
.np-widget-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.np-widget-tags a { display: inline-block; padding: 4px 10px; border: 1.5px solid var(--np-border); border-radius: 20px; font-size: 12px; color: var(--np-text-muted); transition: var(--np-transition); }
.np-widget-tags a:hover { border-color: var(--np-primary); color: var(--np-primary); }
/* Ad widget */
.np-widget-ad { text-align: center; background: var(--np-bg); border-radius: var(--np-radius); overflow: hidden; padding: 0; }
.np-widget-ad img { width: 100%; }
.np-widget-ad-label { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--np-text-light); padding: 4px 0; }
/* Social follow widget */
.np-social-follow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.np-social-follow__item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--np-radius-sm); color: #fff; font-size: 12px; font-weight: 700; transition: var(--np-transition); }
.np-social-follow__item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); color: #fff; }
.np-social-follow__item--facebook  { background: #1877f2; }
.np-social-follow__item--twitter   { background: #000; }
.np-social-follow__item--instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.np-social-follow__item--youtube   { background: #ff0000; }
.np-social-follow__count { font-size: 15px; font-weight: 800; }

/* ============================================================
   PAGINATION
   ============================================================ */
.np-pagination {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 6px; margin: 40px 0;
}
.np-pagination a,
.np-pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: 8px;
  border: 2px solid var(--np-border);
  font-size: 14px; font-weight: 600; color: var(--np-text);
  transition: var(--np-transition);
}
.np-pagination a:hover { border-color: var(--np-primary); color: var(--np-primary); }
.np-pagination .current,
.np-pagination .page-numbers.current { background: var(--np-primary); border-color: var(--np-primary); color: #fff; }
.np-pagination .dots { border: none; color: var(--np-text-muted); }

/* ============================================================
   ARCHIVE / CATEGORY / BLOG LIST
   ============================================================ */
.np-archive-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid var(--np-border); }
.np-archive-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 8px; }
.np-archive-desc { color: var(--np-text-muted); font-size: 15px; }
.np-cat-image { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 12px; border: 3px solid var(--np-primary); object-fit: cover; }
.np-posts-list { display: flex; flex-direction: column; gap: 24px; }
.np-post-row { display: flex; gap: 20px; background: var(--np-card-bg); border-radius: var(--np-radius); overflow: hidden; box-shadow: var(--np-shadow); transition: var(--np-transition); }
.np-post-row:hover { box-shadow: var(--np-shadow-md); transform: translateY(-3px); }
.np-post-row__image { width: 260px; flex-shrink: 0; overflow: hidden; }
.np-post-row__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.np-post-row:hover .np-post-row__image img { transform: scale(1.04); }
.np-post-row__body { flex: 1; padding: 20px 24px 20px 0; }
.np-post-row__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; font-family: var(--np-font-heading); }
.np-post-row__title a { color: var(--np-text); }
.np-post-row__title a:hover { color: var(--np-primary); }
.np-post-row__excerpt { color: var(--np-text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
.np-post-row__read-more { font-size: 13px; font-weight: 700; color: var(--np-primary); display: inline-flex; align-items: center; gap: 4px; }
.np-post-row__read-more:hover { gap: 8px; }

/* ============================================================
   COMMENTS
   ============================================================ */
#np-comments { margin: 40px 0; }
.np-comments-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--np-border); display: flex; align-items: center; gap: 12px; }
.np-comments-title::before { content: ''; display: block; width: 4px; height: 24px; background: var(--np-primary); border-radius: 2px; }
.np-comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; padding: 0; }
.np-comment {
  background: var(--np-card-bg); border-radius: var(--np-radius);
  padding: 24px; box-shadow: var(--np-shadow);
  border-left: 3px solid transparent; transition: border-color 0.2s ease;
}
.np-comment:hover { border-left-color: var(--np-primary); }
.np-comment-inner { padding-left: 0; }
.np-comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.np-comment-meta img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--np-border); }
.np-comment-author-name { font-weight: 700; font-size: 14px; }
.np-comment-date { font-size: 12px; color: var(--np-text-muted); }
.np-comment-body { font-size: 14px; line-height: 1.75; color: var(--np-text); }
.np-comment-reply-link { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--np-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.children { list-style: none; padding-left: 24px; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
/* Comment form */
.comment-respond { background: var(--np-card-bg); border-radius: var(--np-radius-lg); padding: 32px; box-shadow: var(--np-shadow-md); margin-top: 32px; }
.comment-respond h3 { font-size: 1.2rem; margin-bottom: 24px; }
.comment-form-group { margin-bottom: 18px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--np-text); }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
  width: 100%; padding: 11px 16px;
  border: 2px solid var(--np-border); border-radius: var(--np-radius-sm);
  font-size: 14px; color: var(--np-text); background: var(--np-bg);
  transition: border-color 0.25s ease;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--np-primary); background: #fff; }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input[type=submit],
.comment-form .submit {
  display: inline-block; padding: 12px 30px;
  background: var(--np-primary); color: #fff;
  border: none; border-radius: 30px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  cursor: pointer; transition: var(--np-transition);
}
.comment-form input[type=submit]:hover { background: var(--np-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,0.35); }
.no-comments { color: var(--np-text-muted); font-size: 15px; padding: 20px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.np-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 30px;
  font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.8px;
  transition: var(--np-transition); cursor: pointer; border: 2px solid transparent;
  line-height: 1;
}
.np-btn-primary { background: var(--np-primary); color: #fff; border-color: var(--np-primary); }
.np-btn-primary:hover { background: var(--np-primary-dark); border-color: var(--np-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,57,70,0.35); }
.np-btn-secondary { background: var(--np-secondary); color: #fff; border-color: var(--np-secondary); }
.np-btn-secondary:hover { background: #152740; color: #fff; transform: translateY(-2px); }
.np-btn-outline { background: transparent; color: var(--np-primary); border-color: var(--np-primary); }
.np-btn-outline:hover { background: var(--np-primary); color: #fff; transform: translateY(-2px); }
.np-btn-dark { background: var(--np-dark); color: #fff; border-color: var(--np-dark); }
.np-btn-sm { padding: 8px 18px; font-size: 12px; }
.np-btn-lg { padding: 15px 36px; font-size: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
#np-footer { background: var(--np-secondary); color: rgba(255,255,255,0.75); }
.np-footer-newsletter {
  background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-primary-dark) 100%);
  padding: 40px 0;
  text-align: center;
}
.np-footer-newsletter h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.np-footer-newsletter p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 20px; }
.np-newsletter-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; border-radius: 30px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.np-newsletter-form input { flex: 1; padding: 14px 22px; border: none; font-size: 14px; background: #fff; color: var(--np-text); outline: none; }
.np-newsletter-form button { background: var(--np-secondary); color: #fff; border: none; padding: 14px 24px; font-weight: 700; font-size: 14px; letter-spacing: 0.3px; cursor: pointer; transition: background 0.25s ease; white-space: nowrap; }
.np-newsletter-form button:hover { background: var(--np-dark); }
.np-footer-widgets { padding: 60px 0 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.np-footer-widget-title { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; font-family: var(--np-font-accent); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.np-footer-widget { font-size: 14px; }
.np-footer-widget ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.np-footer-widget ul li a { color: rgba(255,255,255,0.65); font-size: 13px; transition: var(--np-transition); display: flex; align-items: center; gap: 6px; }
.np-footer-widget ul li a::before { content: '›'; color: var(--np-primary); font-size: 14px; }
.np-footer-widget ul li a:hover { color: #fff; padding-left: 4px; }
.np-footer-logo { margin-bottom: 16px; }
.np-footer-logo .np-logo-text { color: #fff; font-size: 22px; }
.np-footer-about { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 16px; }
.np-footer-social { display: flex; gap: 8px; margin-top: 16px; }
.np-footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: var(--np-transition); border: 1px solid rgba(255,255,255,0.12); }
.np-footer-social a:hover { background: var(--np-primary); color: #fff; border-color: var(--np-primary); transform: translateY(-3px); }
.np-footer-bottom { background: rgba(0,0,0,0.3); padding: 16px 0; font-size: 12px; }
.np-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.np-footer-bottom a { color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.np-footer-bottom a:hover { color: #fff; }
.np-footer-bottom-links { display: flex; gap: 16px; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#np-scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--np-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--np-transition); border: none;
  box-shadow: 0 4px 16px rgba(230,57,70,0.4);
}
#np-scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#np-scroll-top:hover { background: var(--np-primary-dark); transform: translateY(-3px); }

/* ============================================================
   DARK MODE
   ============================================================ */
.np-dark-mode, [data-theme="dark"] {
  --np-bg:           #0f172a;
  --np-card-bg:      #1e293b;
  --np-text:         #f1f5f9;
  --np-text-muted:   #94a3b8;
  --np-text-light:   #64748b;
  --np-border:       #334155;
  --np-border-light: #1e293b;
  --np-dark:         #f8fafc;
  --np-shadow:       0 2px 12px rgba(0,0,0,0.3);
  --np-shadow-md:    0 6px 24px rgba(0,0,0,0.4);
}
.np-dark-mode #np-header { background: #1e293b; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.np-dark-mode .np-search-form { background: #0f172a; border-color: #334155; }
.np-dark-mode .np-search-form input { color: #f1f5f9; }
.np-dark-mode body { background: var(--np-bg); color: var(--np-text); }

/* ============================================================
   HEADER SEARCH — ICON BUTTON (desktop toggle + mobile)
   ============================================================ */
.np-search-icon-btn {
  background: none;
  border: 2px solid var(--np-border);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--np-text-muted);
  cursor: pointer;
  transition: var(--np-transition);
  flex-shrink: 0;
}
.np-search-icon-btn:hover {
  border-color: var(--np-primary);
  color: var(--np-primary);
  background: rgba(230,57,70,0.06);
  transform: scale(1.05);
}
.np-search-icon-btn svg { pointer-events: none; }

/* Mobile search button — hidden on desktop, shown on mobile via media query */
.np-mobile-search-btn { display: none; }

/* Desktop inline search form */
.np-header-search__form {
  display: flex; align-items: center;
  border: 2px solid var(--np-border);
  border-radius: 30px; overflow: hidden;
  transition: border-color 0.25s ease;
  background: var(--np-bg);
}
.np-header-search__form:focus-within { border-color: var(--np-primary); }
.np-header-search__form input {
  border: none; background: transparent; padding: 8px 16px;
  font-size: 14px; color: var(--np-text); outline: none; min-width: 200px;
}
.np-header-search__form button {
  background: var(--np-primary); border: none; color: #fff;
  padding: 8px 16px; font-size: 14px; transition: background 0.25s ease;
  display: flex; align-items: center; justify-content: center;
}
.np-header-search__form button:hover { background: var(--np-primary-dark); }

/* Search results dropdown */
.np-search-dropdown {
  position: absolute; top: 100%; right: 0; left: -30px;
  background: #fff; border-radius: var(--np-radius); box-shadow: var(--np-shadow-lg);
  min-width: 340px; max-height: 420px; overflow-y: auto; z-index: 2000;
  border: 1px solid var(--np-border);
}
.np-header-search { position: relative; }
.np-search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; text-decoration: none;
  border-bottom: 1px solid var(--np-border-light);
  transition: background 0.15s ease;
}
.np-search-result-item:last-child { border-bottom: none; }
.np-search-result-item:hover { background: rgba(230,57,70,0.04); }
.np-search-result-img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--np-radius-sm); flex-shrink: 0; }
.np-search-result-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.np-search-result-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--np-primary); }
.np-search-result-title { font-size: 13px; font-weight: 600; color: var(--np-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-search-result-date { font-size: 11px; color: var(--np-text-muted); }
.np-search-empty { padding: 20px; text-align: center; font-size: 14px; color: var(--np-text-muted); }

/* ============================================================
   FULLSCREEN SEARCH OVERLAY
   ============================================================ */
.np-search-overlay {
  /* Lives OUTSIDE <header> — position:fixed works correctly here */
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3,6,20,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.np-search-overlay.np-overlay-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.np-search-overlay.np-overlay-open .np-search-overlay__inner { transform: translateY(0); opacity: 1; }
.np-search-overlay__inner {
  width: 100%; max-width: 700px; padding: 40px 24px;
  transform: translateY(-24px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}
.np-search-overlay__close {
  position: absolute; top: 24px; right: 24px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8); border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s ease;
}
.np-search-overlay__close:hover { background: var(--np-primary); border-color: var(--np-primary); color: #fff; transform: rotate(90deg); }
.np-search-overlay__hint {
  font-size: 13px; color: rgba(255,255,255,0.45); letter-spacing: 0.5px; margin-bottom: 20px; text-align: center;
}
.np-search-overlay__form { width: 100%; }
.np-search-overlay__input-wrap {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.07); border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px; overflow: hidden; transition: border-color 0.25s;
}
.np-search-overlay__input-wrap:focus-within { border-color: var(--np-primary); background: rgba(255,255,255,0.09); }
.np-search-overlay__icon { flex-shrink: 0; margin: 0 18px; color: rgba(255,255,255,0.5); }
.np-search-overlay__input-wrap:focus-within .np-search-overlay__icon { color: var(--np-primary); }
.np-search-overlay__form input[type=search] {
  flex: 1; border: none; background: transparent; outline: none;
  color: #fff; font-size: clamp(18px, 3vw, 26px); padding: 18px 20px 18px 0;
  font-family: var(--np-font-heading); font-weight: 500;
}
.np-search-overlay__form input[type=search]::placeholder { color: rgba(255,255,255,0.3); }
.np-search-overlay__results {
  margin-top: 20px; max-height: 380px; overflow-y: auto; border-radius: var(--np-radius);
}
.np-search-overlay__results .np-search-result-item { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); border-radius: var(--np-radius-sm); margin-bottom: 6px; }
.np-search-overlay__results .np-search-result-item:hover { background: rgba(255,255,255,0.08); }
.np-search-overlay__results .np-search-result-title { color: rgba(255,255,255,0.9); }
.np-search-overlay__results .np-search-result-date { color: rgba(255,255,255,0.4); }
.np-search-overlay__footer {
  margin-top: 24px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.5px;
}
.np-search-overlay__footer kbd {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  padding: 2px 7px; border-radius: 4px; font-size: 11px;
}

/* ============================================================
   SEARCH PAGE — HERO + RESULTS
   ============================================================ */
.np-search-hero {
  background: linear-gradient(135deg, var(--np-secondary) 0%, var(--np-dark) 60%, #0a0a1a 100%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.np-search-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.np-search-hero__inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 700px; margin: 0 auto;
}
.np-search-hero__label {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 30px; padding: 6px 16px; margin-bottom: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.np-search-hero__label svg { color: var(--np-primary); }
.np-search-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; color: #fff;
  margin-bottom: 10px; line-height: 1.15;
}
.np-search-hero__term {
  color: var(--np-primary);
  text-decoration: none;
  position: relative;
}
.np-search-hero__count {
  font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 28px;
}
.np-search-hero__count strong { color: rgba(255,255,255,0.85); }
.np-search-hero__form { width: 100%; max-width: 580px; margin: 0 auto; }
.np-search-hero__input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07); border: 2px solid rgba(255,255,255,0.15);
  border-radius: 14px; overflow: hidden; transition: border-color 0.25s, background 0.25s;
}
.np-search-hero__input-wrap:focus-within { border-color: var(--np-primary); background: rgba(255,255,255,0.1); }
.np-search-hero__icon { flex-shrink: 0; margin: 0 16px; color: rgba(255,255,255,0.4); pointer-events: none; }
.np-search-hero__input-wrap:focus-within .np-search-hero__icon { color: var(--np-primary); }
.np-search-hero__input {
  flex: 1; border: none; background: transparent; outline: none;
  color: #fff; font-size: 16px; padding: 16px 0; font-family: var(--np-font-body);
}
.np-search-hero__input::placeholder { color: rgba(255,255,255,0.3); }
.np-search-hero__btn {
  background: var(--np-primary); border: none; color: #fff; font-weight: 700;
  font-size: 13px; letter-spacing: 0.3px; padding: 0 22px; height: 54px;
  display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0;
  transition: background 0.2s; white-space: nowrap;
}
.np-search-hero__btn:hover { background: var(--np-primary-dark); }

/* Search Results Grid enhancements */
.np-search-results-grid { margin-top: 0; }

/* Empty State */
.np-search-empty-state {
  text-align: center; padding: 48px 20px 60px;
  max-width: 600px; margin: 0 auto;
}
.np-search-empty-state__icon {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(230,57,70,0.06); border: 2px solid rgba(230,57,70,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; color: var(--np-text-muted);
}
.np-search-empty-state__title {
  font-size: 1.5rem; margin-bottom: 12px; color: var(--np-text);
}
.np-search-empty-state__text {
  color: var(--np-text-muted); font-size: 15px; margin-bottom: 28px; line-height: 1.7;
}
.np-search-empty-state__tips {
  background: var(--np-bg); border: 1px solid var(--np-border); border-radius: var(--np-radius);
  padding: 20px 28px; margin-bottom: 36px; text-align: left;
}
.np-search-empty-state__tips h3 { font-size: 14px; margin-bottom: 10px; color: var(--np-text); }
.np-search-empty-state__tips ul { font-size: 14px; color: var(--np-text-muted); display: flex; flex-direction: column; gap: 6px; }
.np-search-empty-state__cats { margin-bottom: 40px; }
.np-search-empty-state__cats h3 { font-size: 15px; margin-bottom: 14px; }
.np-search-empty-state__latest h3 { font-size: 15px; margin-bottom: 16px; }
.np-search-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.np-search-cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--np-card-bg); border: 1.5px solid var(--np-border);
  border-radius: 30px; padding: 7px 14px; font-size: 13px; font-weight: 500;
  color: var(--np-text); text-decoration: none; transition: var(--np-transition);
}
.np-search-cat-chip:hover { border-color: var(--np-primary); color: var(--np-primary); background: rgba(230,57,70,0.05); }
.np-search-cat-chip__count {
  background: var(--np-border); border-radius: 20px; padding: 1px 7px;
  font-size: 11px; font-weight: 700; color: var(--np-text-muted);
}
.np-search-latest-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; text-align: left; }
.np-search-latest-card {
  display: flex; flex-direction: column; border-radius: var(--np-radius); overflow: hidden;
  background: var(--np-card-bg); border: 1px solid var(--np-border);
  text-decoration: none; transition: var(--np-transition);
}
.np-search-latest-card:hover { transform: translateY(-3px); box-shadow: var(--np-shadow-md); border-color: var(--np-primary); }
.np-search-latest-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--np-border-light); }
.np-search-latest-card__thumb img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s ease; }
.np-search-latest-card:hover .np-search-latest-card__thumb img { transform: scale(1.05); }
.np-search-latest-card__body { padding: 14px; }
.np-search-latest-card__cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--np-primary); display: block; margin-bottom: 5px; }
.np-search-latest-card__title { font-size: 13px; font-weight: 700; color: var(--np-text); line-height: 1.4; display: block; margin-bottom: 6px; }
.np-search-latest-card__date { font-size: 11px; color: var(--np-text-muted); }

@media (max-width: 640px) {
  .np-search-hero { padding: 40px 0 36px; }
  .np-search-hero__btn { padding: 0 14px; font-size: 12px; }
  .np-search-hero__btn svg { display: none; }
  .np-search-latest-grid { grid-template-columns: 1fr; }
  .np-search-overlay__inner { padding: 32px 16px; }
  .np-search-overlay__form input[type=search] { font-size: 16px; padding: 14px 16px 14px 0; }
  .np-search-overlay__close { top: 16px; right: 16px; }
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.np-mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 997; }
.np-mobile-menu-overlay.active { display: block; }

/* ============================================================
   WP CORE CLASSES SUPPORT
   ============================================================ */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter, .alignnone { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; text-align: center; color: var(--np-text-muted); margin-top: 6px; }
.wp-block-image { margin: 1.5em 0; }
.wp-block-quote { border-left: 4px solid var(--np-primary); padding: 16px 24px; background: rgba(230,57,70,0.04); border-radius: 0 var(--np-radius) var(--np-radius) 0; margin: 1.5em 0; }
.wp-block-code { background: var(--np-dark); color: #e2e8f0; padding: 20px; border-radius: var(--np-radius); font-size: 14px; overflow-x: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 1.5em 0; }
.gallery-item img { border-radius: var(--np-radius-sm); }
.sticky { border-left: 4px solid var(--np-primary); padding-left: 16px; }
.bypostauthor .np-comment { border-left-color: var(--np-secondary); }
.says { display: none; }

/* ============================================================
   NOTICES / ALERTS
   ============================================================ */
.np-alert { padding: 14px 18px; border-radius: var(--np-radius-sm); margin-bottom: 16px; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; }
.np-alert--info    { background: #eff6ff; color: #1e40af; border-left: 3px solid #3b82f6; }
.np-alert--success { background: #f0fdf4; color: #166534; border-left: 3px solid #22c55e; }
.np-alert--warning { background: #fffbeb; color: #92400e; border-left: 3px solid #f59e0b; }
.np-alert--error   { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }

/* ============================================================
   LOAD MORE / INFINITE SCROLL
   ============================================================ */
.np-load-more-wrap { text-align: center; margin: 32px 0; }
#np-load-more { min-width: 180px; }
#np-load-more.loading::after { content: '…'; }
.np-infinite-trigger { height: 60px; }

/* ============================================================
   404 / SEARCH RESULTS
   ============================================================ */
.np-404-wrap { text-align: center; padding: 80px 20px; }
.np-404-number { font-size: clamp(6rem, 20vw, 14rem); font-weight: 900; color: var(--np-primary); opacity: 0.12; line-height: 1; font-family: var(--np-font-accent); }
.np-404-title { font-size: 2rem; margin-bottom: 12px; }
.np-404-text { color: var(--np-text-muted); margin-bottom: 28px; }
.np-search-results-count { font-size: 14px; color: var(--np-text-muted); margin-bottom: 24px; font-style: italic; }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
.np-skeleton { background: linear-gradient(90deg, var(--np-border-light) 25%, var(--np-border) 50%, var(--np-border-light) 75%); background-size: 200% 100%; animation: np-shimmer 1.5s infinite; border-radius: var(--np-radius-sm); }
@keyframes np-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ============================================================
   ADMIN BAR OFFSET
   ============================================================ */
.admin-bar #np-header { top: 32px; }
.admin-bar #np-reading-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar #np-header { top: 46px; } .admin-bar #np-reading-bar { top: 46px; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  :root { --np-container: 1100px; --np-sidebar-w: 280px; }
  .np-footer-widgets { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
  .np-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  :root { --np-sidebar-w: 260px; }
  .np-grid-4 { grid-template-columns: repeat(2,1fr); }
  .np-footer-widgets { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  :root { --np-sidebar-w: 100%; }
  .np-layout-flex { flex-direction: column; }
  .np-sidebar-left .np-sidebar-wrap { order: 0; }
  .np-grid-2, .np-grid-3, .np-grid-4 { grid-template-columns: 1fr; }
  .np-related-grid { grid-template-columns: 1fr; }
  .np-post-row { flex-direction: column; }
  .np-post-row__image { width: 100%; height: 200px; }
  .np-post-row__body { padding: 16px; }
  .np-post-nav { grid-template-columns: 1fr; }
  .np-author-box { flex-direction: column; align-items: center; text-align: center; }
  .np-footer-widgets { grid-template-columns: 1fr 1fr; }
  .np-footer-bottom-inner { flex-direction: column; text-align: center; }
  .np-card--horizontal { flex-direction: column; }
  .np-card--horizontal .np-card__image { width: 100%; }
  .np-single-title { font-size: 1.7rem; }
  /* Mobile: hide the desktop inline search, show mobile search button */
  .np-header-search--desktop { display: none !important; }
  .np-mobile-search-btn { display: flex !important; }
  .np-share { flex-wrap: wrap; }
  #np-topbar { display: none; }
  /* Hamburger must stay visible on mobile */
  .np-hamburger { display: flex !important; }
  /* Ensure header children are visible */
  .np-header-main { flex-wrap: nowrap; align-items: center; }
  .np-logo { flex: 1; min-width: 0; }
  .np-header-ad { display: none; }
  .np-header-widgets { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .np-single-title { font-size: 1.45rem; }
  .np-footer-widgets { grid-template-columns: 1fr; }
  .np-social-follow { grid-template-columns: 1fr; }
  .np-pagination a, .np-pagination span { min-width: 34px; height: 34px; font-size: 13px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #np-header, #np-nav, #np-topbar, #np-footer, .np-sidebar-wrap,
  .np-share, .np-post-nav, .np-related-posts, #np-comments,
  #np-reading-bar, #np-scroll-top, .np-breaking-news { display: none !important; }
  .np-layout-flex { flex-direction: column; }
  .np-main-content { width: 100%; }
  .np-single-content a::after { content: " (" attr(href) ")"; }
}
