/*
Theme Name: NovaPress
Theme URI: https://example.com/novapress
Author: NovaPress Team
Author URI: https://example.com
Description: A fast, SEO-optimized dark news magazine theme with mega-menu dropdowns, multiple sidebars, custom widgets, and built-in JSON-LD schema. Multi-niche ready (news, entertainment, politics, lifestyle, tech, sports). Lightweight, mobile-first, and lazy-loaded for top performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novapress
Tags: news, magazine, dark-mode, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles
*/

/* =========================================================
   1. CSS RESET & ROOT TOKENS
   ========================================================= */
:root {
  --np-bg: #050505;
  --np-bg-alt: #0D0D0D;
  --np-panel: #141414;
  --np-panel-hover: #1A1A1A;
  --np-text: #FFFFFF;
  --np-text-soft: #B8B8B8;
  --np-text-mute: #888888;
  --np-accent: #2D8CFF;
  --np-accent-hover: #4DA3FF;
  --np-accent-soft: rgba(45, 140, 255, 0.12);
  --np-border: #222222;
  --np-border-soft: #1c1c1c;
  --np-radius: 4px;
  --np-radius-lg: 8px;
  --np-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --np-shadow-hover: 0 8px 30px rgba(45, 140, 255, 0.15);
  --np-font-head: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --np-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --np-container: 1230px;
  --np-container-narrow: 1120px;
  --np-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--np-bg);
  color: var(--np-text-soft);
  font-family: var(--np-font-body);
  font-size: 15px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--np-accent); text-decoration: none; transition: color var(--np-transition); }
a:hover, a:focus { color: var(--np-accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--np-font-head);
  color: var(--np-text);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button, .np-btn {
  cursor: pointer;
  background: var(--np-accent);
  color: #fff;
  border: 0;
  padding: 10px 20px;
  border-radius: var(--np-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85em;
  transition: background var(--np-transition), transform var(--np-transition);
}
button:hover, .np-btn:hover { background: var(--np-accent-hover); transform: translateY(-1px); }

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], textarea, select {
  background: var(--np-panel);
  border: 1px solid var(--np-border);
  color: var(--np-text);
  padding: 10px 12px;
  border-radius: var(--np-radius);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--np-accent);
  box-shadow: 0 0 0 2px var(--np-accent-soft);
}

::placeholder { color: var(--np-text-mute); }

::selection { background: var(--np-accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--np-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--np-border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--np-accent); }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

.np-container { max-width: var(--np-container); margin: 0 auto; padding: 0 20px; }
.np-container-narrow { max-width: var(--np-container-narrow); margin: 0 auto; padding: 0 20px; }

/* =========================================================
   2. SITE HEADER
   ========================================================= */
.np-site-header { background: var(--np-bg); position: relative; z-index: 100; }

.np-topbar {
  background: #000;
  border-bottom: 1px solid var(--np-border);
  font-size: 12px;
  color: var(--np-text-soft);
}
.np-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 20px;
}
.np-topbar-left, .np-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.np-date {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--np-text);
  font-size: 11px;
}
.np-popular {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--np-text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.np-popular::before {
  content: "⚡";
  color: var(--np-accent);
  font-size: 14px;
}
.np-social-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.np-social-list a {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--np-text-soft);
  border-radius: 4px;
  transition: background var(--np-transition), color var(--np-transition);
}
.np-social-list a:hover { background: var(--np-accent); color: #fff; }

.np-header-main {
  background: var(--np-bg);
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid var(--np-border);
}
.np-logo { display: inline-block; }
.np-logo-text {
  font-family: var(--np-font-head);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--np-text);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: block;
  text-transform: uppercase;
}
.np-logo-text:hover { color: var(--np-accent); }
.np-logo-img img { max-height: 80px; width: auto; margin: 0 auto; }
.np-tagline {
  display: block;
  font-family: var(--np-font-body);
  font-size: 12px;
  color: var(--np-text-mute);
  margin-top: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

/* =========================================================
   3. PRIMARY NAVIGATION + MEGA MENU
   ========================================================= */
.np-nav-primary {
  background: #000;
  border-top: 1px solid var(--np-border);
  border-bottom: 1px solid var(--np-border);
  position: relative;
  z-index: 200;
}
.np-nav-primary.is-stuck {
  position: fixed;
  top: 0; left: 0; right: 0;
  box-shadow: var(--np-shadow);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
body.np-has-stuck { padding-top: 60px; }

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

.np-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.np-menu > li { position: static; }
.np-menu > li > a {
  display: block;
  padding: 18px 14px;
  color: var(--np-text);
  font-family: var(--np-font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  transition: color var(--np-transition);
}
.np-menu > li > a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 8px;
  width: 0; height: 2px;
  background: var(--np-accent);
  transition: width var(--np-transition), left var(--np-transition);
}
.np-menu > li:hover > a,
.np-menu > li.current-menu-item > a,
.np-menu > li.current-menu-parent > a { color: var(--np-accent); }
.np-menu > li:hover > a::after,
.np-menu > li.current-menu-item > a::after {
  width: calc(100% - 28px);
  left: 14px;
}

/* Mega Menu */
.np-megamenu {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--np-bg-alt);
  border-top: 3px solid var(--np-accent);
  border-bottom: 1px solid var(--np-border);
  padding: 30px 20px;
  display: none;
  box-shadow: var(--np-shadow);
  z-index: 300;
}
.np-menu > li:hover > .np-megamenu,
.np-menu > li:focus-within > .np-megamenu { display: block; }
.np-megamenu-inner {
  max-width: var(--np-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: start;
}
.np-megamenu-title {
  font-family: var(--np-font-head);
  text-transform: uppercase;
  font-size: 18px;
  color: var(--np-text);
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--np-accent);
}
.np-megamenu-title-link {
  display: inline-block;
  color: var(--np-accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 10px;
}
.np-megamenu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.np-mm-item { display: block; color: inherit; }
.np-mm-item .np-mm-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--np-radius);
  background: var(--np-panel);
  margin-bottom: 10px;
}
.np-mm-item .np-mm-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.np-mm-item:hover .np-mm-thumb img { transform: scale(1.05); }
.np-mm-item .np-mm-title {
  font-family: var(--np-font-head);
  font-size: 14px;
  color: var(--np-text);
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
.np-mm-item:hover .np-mm-title { color: var(--np-accent); }
.np-mm-meta {
  font-size: 11px;
  color: var(--np-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* Search & utility icons in nav */
.np-nav-utility {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.np-nav-utility button, .np-nav-utility a {
  background: transparent;
  border: 0;
  color: var(--np-text);
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--np-transition), color var(--np-transition);
  padding: 0;
}
.np-nav-utility button:hover, .np-nav-utility a:hover {
  background: var(--np-panel);
  color: var(--np-accent);
  transform: none;
}

/* Mobile Toggle */
.np-mobile-toggle { display: none; }

/* =========================================================
   4. HERO / HOME GRID
   ========================================================= */
.np-site-content { padding: 30px 0 60px; }

.np-grid {
  display: grid;
  gap: 4px;
  margin-bottom: 40px;
}
.np-grid-2 { grid-template-columns: repeat(2, 1fr); }
.np-grid-3 { grid-template-columns: repeat(3, 1fr); }
.np-grid-4 { grid-template-columns: repeat(4, 1fr); }

.np-tile {
  position: relative;
  overflow: hidden;
  background: var(--np-panel);
  aspect-ratio: 1 / 1;
  display: block;
}
.np-tile-wide { aspect-ratio: 16 / 10; }
.np-tile-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.np-tile-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.7);
}
.np-tile:hover .np-tile-img img {
  transform: scale(1.06);
  filter: brightness(0.5);
}
.np-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.np-tile-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 2;
  color: #fff;
}
.np-tile-byline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.np-tile-cat {
  display: inline-block;
  padding: 3px 8px;
  background: var(--np-accent);
  color: #fff;
  border-radius: 2px;
  font-weight: 700;
  font-size: 10px;
  text-decoration: none;
}
.np-tile-cat:hover { background: var(--np-accent-hover); color: #fff; }
.np-tile-date { color: rgba(255,255,255,0.7); font-size: 11px; }
.np-tile-title {
  font-family: var(--np-font-head);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.01em;
}
.np-tile-title a {
  color: #fff;
  text-decoration: none;
  background-image: linear-gradient(var(--np-accent), var(--np-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size var(--np-transition);
}
.np-tile:hover .np-tile-title a { background-size: 100% 2px; color: #fff; }

/* Featured tile (taller) */
.np-tile-featured { aspect-ratio: 1 / 1; }

/* Section blocks */
.np-section { margin-bottom: 50px; }
.np-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--np-border);
  padding-bottom: 10px;
}
.np-section-title {
  font-family: var(--np-font-head);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  position: relative;
  padding-left: 12px;
}
.np-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: var(--np-accent);
}
.np-section-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* =========================================================
   5. SINGLE POST / PAGE
   ========================================================= */
.np-article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.np-article-layout-full { grid-template-columns: 1fr; max-width: 800px; margin: 0 auto; }

.np-article-hero { margin-bottom: 30px; }
.np-article-hero-img {
  width: 100%;
  border-radius: var(--np-radius-lg);
  overflow: hidden;
  background: var(--np-panel);
}
.np-article-hero-img img { width: 100%; }
.np-article-hero-caption {
  font-size: 12px;
  color: var(--np-text-mute);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

.np-article-cat {
  display: inline-block;
  background: var(--np-accent);
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  margin-bottom: 16px;
  text-decoration: none;
}
.np-article-cat:hover { background: var(--np-accent-hover); color: #fff; }

.np-article-title {
  font-size: clamp(24px, 4vw, 42px);
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: 0.005em;
}
.np-article-subtitle {
  font-family: var(--np-font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--np-text-soft);
  margin-bottom: 24px;
  line-height: 1.5;
}

.np-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--np-border);
  border-bottom: 1px solid var(--np-border);
  font-size: 13px;
  color: var(--np-text-mute);
  margin-bottom: 30px;
}
.np-byline a { color: var(--np-text-soft); text-decoration: none; }
.np-byline a:hover { color: var(--np-accent); }
.np-byline-author { display: flex; align-items: center; gap: 8px; }
.np-byline-author img { border-radius: 50%; width: 32px; height: 32px; }

.np-article-content { font-size: 16px; line-height: 1.75; }
.np-article-content p { margin-bottom: 1.4em; color: var(--np-text-soft); }
.np-article-content h2, .np-article-content h3, .np-article-content h4 {
  margin-top: 1.6em;
  color: var(--np-text);
}
.np-article-content a { text-decoration: underline; text-underline-offset: 3px; }
.np-article-content blockquote {
  border-left: 4px solid var(--np-accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--np-panel);
  font-style: italic;
  color: var(--np-text);
}
.np-article-content figure { margin: 24px 0; }
.np-article-content figcaption {
  font-size: 13px;
  color: var(--np-text-mute);
  text-align: center;
  font-style: italic;
  margin-top: 8px;
}
.np-article-content ul, .np-article-content ol { padding-left: 24px; margin-bottom: 1.4em; }
.np-article-content li { margin-bottom: 6px; }
.np-article-content code {
  background: var(--np-panel);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--np-accent);
}
.np-article-content pre {
  background: var(--np-panel);
  padding: 16px;
  border-radius: var(--np-radius);
  overflow-x: auto;
  border: 1px solid var(--np-border);
}
.np-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.np-article-content th, .np-article-content td {
  border: 1px solid var(--np-border);
  padding: 10px;
  text-align: left;
}
.np-article-content th { background: var(--np-panel); color: var(--np-text); }

/* Share box */
.np-share {
  display: flex;
  gap: 8px;
  margin: 30px 0;
  padding: 20px;
  background: var(--np-panel);
  border-radius: var(--np-radius);
  align-items: center;
}
.np-share-label {
  font-family: var(--np-font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--np-text);
  margin-right: auto;
}
.np-share a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--np-bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--np-text);
  border: 1px solid var(--np-border);
  transition: all var(--np-transition);
}
.np-share a:hover {
  background: var(--np-accent);
  color: #fff;
  border-color: var(--np-accent);
  transform: translateY(-2px);
}

/* Author box */
.np-author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--np-panel);
  border-radius: var(--np-radius-lg);
  margin: 40px 0;
  border: 1px solid var(--np-border);
}
.np-author-box img { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }
.np-author-name {
  font-family: var(--np-font-head);
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--np-text);
  text-transform: uppercase;
}
.np-author-bio { font-size: 14px; margin-bottom: 8px; color: var(--np-text-soft); }
.np-author-social { display: flex; gap: 8px; }
.np-author-social a {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--np-bg-alt);
  color: var(--np-text-soft);
  border-radius: 4px;
  border: 1px solid var(--np-border);
}
.np-author-social a:hover { background: var(--np-accent); color: #fff; }

/* Related posts */
.np-related { margin: 40px 0; }
.np-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.np-related-item { display: block; }
.np-related-thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--np-radius);
  background: var(--np-panel);
  margin-bottom: 10px;
}
.np-related-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.np-related-item:hover .np-related-thumb img { transform: scale(1.06); }
.np-related-title {
  font-family: var(--np-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--np-text);
  line-height: 1.3;
  margin: 0;
}
.np-related-item:hover .np-related-title { color: var(--np-accent); }

/* Prev/Next */
.np-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px solid var(--np-border);
  border-bottom: 1px solid var(--np-border);
}
.np-pn-link {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--np-text-soft);
  text-decoration: none;
}
.np-pn-link:last-child { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.np-pn-link img { width: 60px; height: 60px; border-radius: var(--np-radius); object-fit: cover; }
.np-pn-label {
  display: block;
  font-size: 11px;
  color: var(--np-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.np-pn-title {
  font-family: var(--np-font-head);
  font-size: 14px;
  color: var(--np-text);
  font-weight: 700;
  text-transform: none;
  line-height: 1.3;
}
.np-pn-link:hover .np-pn-title { color: var(--np-accent); }

/* Reading progress bar */
.np-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--np-accent);
  width: 0%;
  z-index: 999;
  transition: width 0.1s linear;
}

/* =========================================================
   6. SIDEBAR
   ========================================================= */
.np-sidebar { font-size: 14px; }
.np-widget {
  background: var(--np-bg-alt);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.np-widget-title {
  font-family: var(--np-font-head);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--np-text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--np-accent);
  font-weight: 700;
}
.np-widget ul { list-style: none; padding: 0; margin: 0; }
.np-widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--np-border-soft);
}
.np-widget li:last-child { border-bottom: 0; }
.np-widget a { color: var(--np-text-soft); text-decoration: none; display: block; }
.np-widget a:hover { color: var(--np-accent); padding-left: 4px; }

/* Recent posts widget with thumbnails */
.np-widget-recent li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  align-items: flex-start;
}
.np-widget-recent .np-widget-thumb {
  flex-shrink: 0;
  width: 80px; height: 80px;
  border-radius: var(--np-radius);
  overflow: hidden;
  background: var(--np-panel);
}
.np-widget-recent .np-widget-thumb img { width: 100%; height: 100%; object-fit: cover; }
.np-widget-recent .np-widget-meta { flex: 1; }
.np-widget-recent .np-widget-cat {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--np-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  display: block;
}
.np-widget-recent a {
  font-family: var(--np-font-head);
  color: var(--np-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.np-widget-recent a:hover { padding-left: 0; color: var(--np-accent); }
.np-widget-recent .np-widget-date {
  display: block;
  font-size: 11px;
  color: var(--np-text-mute);
  margin-top: 4px;
}

.np-widget_search form { display: flex; gap: 0; }
.np-widget_search input[type="search"] {
  border-radius: var(--np-radius) 0 0 var(--np-radius);
  border-right: 0;
}
.np-widget_search button {
  border-radius: 0 var(--np-radius) var(--np-radius) 0;
  padding: 0 16px;
  white-space: nowrap;
}

/* =========================================================
   7. FOOTER
   ========================================================= */
.np-site-footer {
  background: #000;
  border-top: 1px solid var(--np-border);
  padding: 40px 0 24px;
  margin-top: 60px;
}
.np-footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--np-border);
}
.np-footer-widgets .np-widget {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.np-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--np-text-mute);
}
.np-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.np-footer-menu a {
  color: var(--np-text-mute);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 600;
}
.np-footer-menu a:hover { color: var(--np-accent); }

.np-back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--np-accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  box-shadow: var(--np-shadow);
  z-index: 200;
  transition: background var(--np-transition), transform var(--np-transition);
}
.np-back-top.is-visible { display: flex; }
.np-back-top:hover { background: var(--np-accent-hover); transform: translateY(-2px); }

/* =========================================================
   8. PAGINATION & BREADCRUMBS
   ========================================================= */
.np-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.np-pagination a, .np-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  background: var(--np-panel);
  color: var(--np-text-soft);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  text-decoration: none;
  font-weight: 600;
}
.np-pagination a:hover, .np-pagination .current {
  background: var(--np-accent);
  color: #fff;
  border-color: var(--np-accent);
}

.np-breadcrumbs {
  font-size: 12px;
  color: var(--np-text-mute);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.np-breadcrumbs a { color: var(--np-text-soft); text-decoration: none; }
.np-breadcrumbs a:hover { color: var(--np-accent); }
.np-breadcrumbs .sep { margin: 0 6px; color: var(--np-border); }

/* =========================================================
   9. ARCHIVE / CATEGORY
   ========================================================= */
.np-page-header {
  background: var(--np-bg-alt);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}
.np-page-title { margin: 0 0 8px; }
.np-page-description { color: var(--np-text-soft); margin: 0; }

.np-list-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--np-border);
}
.np-list-item:first-child { padding-top: 0; }
.np-list-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--np-radius);
  background: var(--np-panel);
}
.np-list-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.np-list-item:hover .np-list-thumb img { transform: scale(1.05); }
.np-list-title {
  font-family: var(--np-font-head);
  font-size: 22px;
  margin: 8px 0 10px;
  line-height: 1.2;
}
.np-list-title a { color: var(--np-text); text-decoration: none; }
.np-list-title a:hover { color: var(--np-accent); }
.np-list-excerpt { color: var(--np-text-soft); font-size: 14px; margin: 0 0 10px; }

/* =========================================================
   10. COMMENTS
   ========================================================= */
.np-comments { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--np-border); }
.np-comments-title {
  font-family: var(--np-font-head);
  text-transform: uppercase;
  font-size: 22px;
  margin-bottom: 20px;
}
.np-comment-list { list-style: none; padding: 0; margin: 0; }
.np-comment-list li { margin-bottom: 24px; }
.np-comment-list .children { list-style: none; padding: 0 0 0 40px; margin-top: 24px; }
.np-comment-body {
  background: var(--np-panel);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  padding: 20px;
}
.np-comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.np-comment-meta img { width: 40px; height: 40px; border-radius: 50%; }
.np-comment-author {
  font-family: var(--np-font-head);
  text-transform: uppercase;
  font-size: 14px;
  color: var(--np-text);
  font-weight: 700;
}
.np-comment-date { font-size: 12px; color: var(--np-text-mute); }
.comment-respond { margin-top: 30px; }
.comment-form { display: grid; gap: 14px; }
.comment-form-author, .comment-form-email, .comment-form-url {
  display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 10px;
}
.comment-form-comment textarea { min-height: 120px; }
.comment-form input[type="submit"], .form-submit input[type="submit"] {
  background: var(--np-accent);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: var(--np-radius);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comment-form input[type="submit"]:hover, .form-submit input[type="submit"]:hover {
  background: var(--np-accent-hover);
}

/* =========================================================
   11. UTILITY / ALIGN / RESPONSIVE
   ========================================================= */
.alignleft { float: left; margin: 0 20px 20px 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 20px 20px; max-width: 50%; }
.aligncenter { display: block; margin: 20px auto; }
.alignwide { max-width: 1080px; margin-left: -calc((1080px - 100%)/2); }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption {
  font-size: 12px; color: var(--np-text-mute);
  text-align: center; padding: 8px 0; font-style: italic;
}
.sticky { position: relative; }
.gallery { display: grid; gap: 8px; margin: 20px 0; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Mobile menu drawer */
.np-mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--np-bg-alt);
  border-left: 1px solid var(--np-border);
  z-index: 1000;
  padding: 24px 20px;
  overflow-y: auto;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.np-mobile-drawer.is-open { right: 0; }
.np-mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.np-mobile-drawer-overlay.is-active { opacity: 1; visibility: visible; }
.np-drawer-close {
  align-self: flex-end;
  background: transparent;
  width: 36px; height: 36px;
  border: 1px solid var(--np-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--np-text);
  font-size: 20px;
  line-height: 1;
}
.np-drawer-menu { list-style: none; margin: 0; padding: 0; }
.np-drawer-menu li { border-bottom: 1px solid var(--np-border); }
.np-drawer-menu a {
  display: block;
  padding: 14px 0;
  color: var(--np-text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.np-drawer-menu a:hover { color: var(--np-accent); }

/* Search modal */
.np-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.np-search-modal.is-open { display: flex; }
.np-search-modal-inner { width: 100%; max-width: 600px; }
.np-search-modal input[type="search"] {
  font-size: 24px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--np-border);
  color: var(--np-text);
  border-radius: 0;
}
.np-search-modal input[type="search"]:focus { border-bottom-color: var(--np-accent); box-shadow: none; }
.np-search-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  border: 1px solid var(--np-border);
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--np-text);
  cursor: pointer;
}

/* No-JS / Print */
@media print {
  .np-site-header, .np-site-footer, .np-sidebar, .np-share, .np-related, .np-prev-next, .np-comments { display: none !important; }
  body { background: #fff; color: #000; }
  .np-article-title, .np-article-content { color: #000; }
}

/* Responsive */
@media (max-width: 1024px) {
  .np-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .np-related-grid { grid-template-columns: repeat(2, 1fr); }
  .np-footer-widgets { grid-template-columns: repeat(2, 1fr); }
  .np-megamenu-inner { grid-template-columns: 1fr; }
  .np-megamenu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .np-article-layout { grid-template-columns: 1fr; }
  .np-grid-3, .np-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .np-list-item { grid-template-columns: 1fr; }
  .np-list-thumb { aspect-ratio: 16/9; }
  .np-menu, .np-topbar-left .np-popular { display: none; }
  .np-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    color: var(--np-text);
    cursor: pointer;
  }
  .np-nav-inner { justify-content: space-between; padding: 0 12px; }
  .np-nav-utility { margin-left: 0; }
  .np-header-main { padding: 20px; }
  .np-tile-meta { padding: 14px; }
  .np-tile-title { font-size: 14px; }
  .np-byline { font-size: 12px; gap: 10px; }
  .np-prev-next { grid-template-columns: 1fr; }
  .np-back-top { right: 16px; bottom: 16px; }
}
@media (max-width: 600px) {
  .np-grid-2, .np-grid-3, .np-grid-4 { grid-template-columns: 1fr; }
  .np-related-grid { grid-template-columns: repeat(2, 1fr); }
  .np-footer-widgets { grid-template-columns: 1fr; }
  .np-author-box { flex-direction: column; text-align: center; align-items: center; }
  .np-megamenu-grid { grid-template-columns: 1fr; }
  .np-topbar-left { gap: 8px; }
  .np-date { font-size: 10px; }
}
