/*
Theme Name:  NewsPulse Pro
Theme URI:   https://newspulse.pro
Description: قالب إخباري احترافي متكامل — سلايدر، أقسام ديناميكية، RTL، ويدجات، تحكم كامل
Author:      NewsPulse
Version:     4.0.0
Text Domain: newspulse
Tags:        rtl-language, news, arabic, magazine, blog, widgets, custom-menu
*/

/* ═══════════════════════════════════════════
   0. FONTS & TOKENS
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
  --np-primary:      #D32F2F;
  --np-primary-dk:   #B71C1C;
  --np-primary-lt:   #FFCDD2;
  --np-accent:       #FF6F00;
  --np-gold:         #F9A825;

  --np-bg:           #F4F4F6;
  --np-surface:      #FFFFFF;
  --np-surface-2:    #F9F9FB;
  --np-text:         #0F0F0F;
  --np-text-2:       #3A3A3A;
  --np-muted:        #737373;
  --np-border:       #E8E8EC;
  --np-border-2:     #D4D4D8;

  --np-dark-hdr:     #0A0A0F;
  --np-dark-nav:     #111118;
  --np-dark-footer:  #0D0D14;

  --np-shadow-xs:    0 1px 3px rgba(0,0,0,.06);
  --np-shadow-s:     0 2px 8px rgba(0,0,0,.08);
  --np-shadow-m:     0 6px 24px rgba(0,0,0,.10);
  --np-shadow-l:     0 12px 40px rgba(0,0,0,.14);
  --np-shadow-card:  0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);

  --np-r-xs: 4px;
  --np-r-s:  8px;
  --np-r-m:  12px;
  --np-r-l:  18px;
  --np-r-xl: 24px;

  --np-font-head: 'Cairo', 'Tajawal', sans-serif;
  --np-font-body: 'Tajawal', 'Cairo', sans-serif;

  --np-cw:   1320px;
  --np-hh:   72px;
  --np-tbh:  40px;

  --np-ease:   .22s cubic-bezier(.4,0,.2,1);
  --np-ease-s: .15s cubic-bezier(.4,0,.2,1);
  --np-ease-l: .4s cubic-bezier(.4,0,.2,1);

  --cat-c: var(--np-primary);
}

body.np-dark {
  --np-bg:       #0C0C12;
  --np-surface:  #16161E;
  --np-surface-2:#1D1D26;
  --np-text:     #F0F0F5;
  --np-text-2:   #C8C8D8;
  --np-muted:    #888899;
  --np-border:   #27273A;
  --np-border-2: #32324A;
  --np-shadow-card: 0 1px 4px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.4);
}

/* ═══════════════════════════════════════════
   1. RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--np-font-body);
  background: var(--np-bg);
  color: var(--np-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--np-ease-l), color var(--np-ease-l);
}
a { color: inherit; text-decoration: none; transition: color var(--np-ease-s); }
a:hover { color: var(--np-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════════
   2. LAYOUT
═══════════════════════════════════════════ */
.np-container { max-width: var(--np-cw); margin: 0 auto; padding: 0 24px; }
.np-main { padding: 28px 0 56px; }
.np-content-wrap {
  display: grid;
  grid-template-columns: 1fr 336px;
  gap: 32px;
  align-items: start;
}
.np-single-wrap {
  display: grid;
  grid-template-columns: 1fr 308px;
  gap: 32px;
  align-items: start;
}
.np-grid { display: grid; gap: 24px; }
.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-grid-5 { grid-template-columns: repeat(5,1fr); }

/* ═══════════════════════════════════════════
   3. PROGRESS BAR
═══════════════════════════════════════════ */
#np-progress-bar {
  position: fixed; top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--np-primary), var(--np-accent));
  width: 0;
  z-index: 9999;
  transition: width .12s linear;
}

/* ═══════════════════════════════════════════
   4. TOPBAR
═══════════════════════════════════════════ */
.np-topbar {
  background: var(--np-dark-hdr);
  color: rgba(255,255,255,.6);
  height: var(--np-tbh);
  font-size: 12px;
  position: relative;
  z-index: 200;
}
.np-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.np-tb-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.np-tb-left  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.np-tb-date  { opacity: .6; white-space: nowrap; font-size: 11px; }

.np-ticker-wrap { display: flex; align-items: center; overflow: hidden; flex: 1; max-width: 640px; }
.np-ticker-lbl {
  background: var(--np-primary);
  color: #fff;
  padding: 3px 14px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--np-r-xs);
  margin-left: 16px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.np-ticker-scroll { overflow: hidden; flex: 1; height: 22px; position: relative; }
.np-ticker-inner { display: flex; gap: 64px; white-space: nowrap; animation: ticker-rtl 34s linear infinite; }
.np-ticker-inner:hover { animation-play-state: paused; }
.np-ticker-item { color: rgba(255,255,255,.65); white-space: nowrap; transition: color .2s; font-size: 12px; }
.np-ticker-item::before { content: '▸'; color: var(--np-gold); margin-left: 12px; font-size: 9px; vertical-align: middle; }
.np-ticker-item:hover { color: #fff; }
@keyframes ticker-rtl { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.np-tb-social a {
  color: rgba(255,255,255,.45); font-size: 13px; padding: 4px 6px;
  display: inline-flex; align-items: center; transition: color .2s;
  border-radius: var(--np-r-xs);
}
.np-tb-social a:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); }

.np-dark-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: background var(--np-ease-s), color var(--np-ease-s);
}
.np-dark-toggle:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ═══════════════════════════════════════════
   5. HEADER
═══════════════════════════════════════════ */
.np-header {
  background: var(--np-surface);
  box-shadow: var(--np-shadow-xs);
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 2.5px solid var(--np-primary);
  transition: background var(--np-ease-l), box-shadow .3s;
}
body.np-dark .np-header { background: rgba(22,22,30,.96); box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.np-header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--np-hh); gap: 24px; }

.np-logo a { display: flex; align-items: center; gap: 10px; }
.np-logo-img { max-height: 48px; width: auto; }
.np-logo-text {
  font-size: 26px; font-weight: 900; color: var(--np-primary);
  font-family: var(--np-font-head); letter-spacing: -0.5px; line-height: 1;
}

.np-nav { flex: 1; }
.np-nav-list { display: flex; align-items: center; gap: 0; }
.np-nav-list > li { position: relative; }
.np-nav-list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--np-text-2); border-radius: var(--np-r-s);
  transition: all var(--np-ease-s); white-space: nowrap;
  position: relative;
}
.np-nav-list > li > a::after {
  content: ''; position: absolute; bottom: 0; right: 50%; left: 50%;
  height: 2px; background: var(--np-primary); border-radius: 2px 2px 0 0;
  transition: right var(--np-ease), left var(--np-ease);
}
.np-nav-list > li > a:hover,
.np-nav-list > li.current-menu-item > a { color: var(--np-primary); }
.np-nav-list > li > a:hover::after,
.np-nav-list > li.current-menu-item > a::after { right: 8px; left: 8px; }

.np-nav-list .sub-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; background: var(--np-surface);
  border-radius: var(--np-r-m); box-shadow: var(--np-shadow-l);
  border: 1px solid var(--np-border);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--np-ease); z-index: 100; overflow: hidden;
}
body.np-dark .np-nav-list .sub-menu { background: var(--np-surface-2); }
.np-nav-list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.np-nav-list .sub-menu li a {
  display: block; padding: 10px 18px; font-size: 13.5px; font-weight: 500;
  color: var(--np-text-2); border-bottom: 1px solid var(--np-border); transition: all var(--np-ease-s);
}
.np-nav-list .sub-menu li:last-child a { border-bottom: none; }
.np-nav-list .sub-menu li a:hover { color: var(--np-primary); background: var(--np-bg); padding-right: 24px; }

.np-header-actions { display: flex; align-items: center; gap: 6px; }
.np-search-btn {
  width: 38px; height: 38px; border-radius: var(--np-r-s);
  color: var(--np-muted); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--np-ease-s);
}
.np-search-btn:hover { background: var(--np-bg); color: var(--np-text); }
.np-hamburger {
  display: none; width: 40px; height: 40px; border-radius: var(--np-r-s);
  color: var(--np-text-2); font-size: 20px;
  align-items: center; justify-content: center; transition: all var(--np-ease-s);
}
.np-hamburger:hover { background: var(--np-bg); }

.np-ad { text-align: center; margin: 12px 0; }
.np-ad-lbl { display: block; font-size: 10px; color: var(--np-muted); text-align: center; margin-bottom: 4px; letter-spacing: .6px; text-transform: uppercase; }

/* ═══════════════════════════════════════════
   6. SEARCH OVERLAY
═══════════════════════════════════════════ */
.np-search-ov {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; padding-top: 110px; justify-content: center;
  z-index: 2000; opacity: 0; visibility: hidden; transition: all var(--np-ease);
}
.np-search-ov.open { opacity: 1; visibility: visible; }
.np-search-box { width: 100%; max-width: 700px; padding: 0 24px; }
.np-search-box .search-form {
  display: flex; background: var(--np-surface);
  border-radius: var(--np-r-xl); padding: 6px 6px 6px 16px;
  box-shadow: var(--np-shadow-l); border: 2px solid var(--np-primary);
}
.np-search-box .search-field {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 18px; color: var(--np-text); padding: 10px 0;
}
.np-search-box .search-submit {
  background: var(--np-primary); color: #fff; border: none;
  border-radius: var(--np-r-l); padding: 10px 28px;
  font-size: 15px; font-weight: 700; font-family: var(--np-font-head);
  cursor: pointer; transition: background var(--np-ease-s);
}
.np-search-box .search-submit:hover { background: var(--np-primary-dk); }
.np-search-close {
  display: block; margin: 16px auto 0; color: rgba(255,255,255,.65);
  font-size: 14px; font-family: var(--np-font-body); cursor: pointer;
  background: none; border: none; transition: color .2s;
}
.np-search-close:hover { color: #fff; }

/* ═══════════════════════════════════════════
   7. DRAWER (Mobile)
═══════════════════════════════════════════ */
.np-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 800; opacity: 0; visibility: hidden;
  transition: all .3s; backdrop-filter: blur(3px);
}
.np-overlay.show { opacity: 1; visibility: visible; }

.np-drawer {
  position: fixed; top: 0; right: -340px; width: 320px; height: 100%;
  background: var(--np-surface); z-index: 900;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: var(--np-shadow-l); overflow-y: auto;
}
body.np-dark .np-drawer { background: var(--np-dark-nav); }
.np-drawer.open { right: 0; }
.np-drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--np-border);
}
.np-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--np-bg); color: var(--np-muted); font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: all var(--np-ease-s);
}
.np-drawer-close:hover { background: var(--np-primary); color: #fff; }
.np-drawer-nav { padding: 12px 0; }
.np-drawer-nav li a {
  display: flex; align-items: center; gap: 10px; padding: 13px 24px;
  font-size: 15px; font-weight: 600; color: var(--np-text-2);
  border-bottom: 1px solid var(--np-border); transition: all var(--np-ease-s);
}
.np-drawer-nav li a:hover { color: var(--np-primary); background: rgba(211,47,47,.04); padding-right: 32px; }
.np-drawer-nav li:last-child a { border-bottom: none; }

/* ═══════════════════════════════════════════
   8. SECTION HEADERS
═══════════════════════════════════════════ */
.np-sec-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px;
}
.np-sec-title {
  font-family: var(--np-font-head); font-size: 18px; font-weight: 900;
  color: var(--np-text); display: flex; align-items: center; gap: 10px;
}
.np-sec-title::before {
  content: ''; display: inline-block; width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--np-primary), var(--np-accent));
  border-radius: 4px; flex-shrink: 0;
}
.np-sec-link {
  font-size: 13px; font-weight: 700; color: var(--np-primary);
  white-space: nowrap; display: flex; align-items: center; gap: 4px;
  opacity: .8; transition: opacity .2s;
}
.np-sec-link:hover { opacity: 1; color: var(--np-primary); }

/* ═══════════════════════════════════════════
   9. HERO SLIDER
═══════════════════════════════════════════ */
.np-hero-wrap {
  margin-bottom: 40px; border-radius: var(--np-r-xl);
  overflow: hidden; box-shadow: var(--np-shadow-l); position: relative;
}
.np-hero-slide { position: relative; height: 540px; overflow: hidden; }
.np-hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s cubic-bezier(.25,0,0,1); }
.swiper-slide-active .np-hero-img { transform: scale(1.04); }
.np-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.08) 75%, transparent 100%);
}
.np-hero-content { position: absolute; bottom: 0; right: 0; left: 0; padding: 36px 40px; z-index: 2; }
.np-hero-cat {
  display: inline-flex; align-items: center; color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 14px;
  border-radius: 30px; margin-bottom: 12px; letter-spacing: .6px; text-transform: uppercase;
}
.np-hero-title {
  font-family: var(--np-font-head); font-size: clamp(20px,2.8vw,34px);
  font-weight: 900; color: #fff; line-height: 1.35; margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.np-hero-title a { color: inherit; }
.np-hero-title a:hover { color: rgba(255,255,255,.9); }
.np-hero-meta { display: flex; align-items: center; gap: 20px; color: rgba(255,255,255,.7); font-size: 13px; }

.np-hero-wrap .swiper-pagination { bottom: 16px; right: 0; left: 0; text-align: center; }
.np-hero-wrap .swiper-pagination-bullet {
  width: 8px; height: 8px; background: rgba(255,255,255,.5);
  opacity: 1; border-radius: 4px; transition: all .3s; margin: 0 3px;
}
.np-hero-wrap .swiper-pagination-bullet-active { background: var(--np-primary); width: 28px; }
.np-hero-wrap .swiper-button-prev,
.np-hero-wrap .swiper-button-next {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25);
  transition: all .2s; top: 50%; margin-top: -22px;
}
.np-hero-wrap .swiper-button-prev:hover,
.np-hero-wrap .swiper-button-next:hover { background: var(--np-primary); border-color: var(--np-primary); }
.np-hero-wrap .swiper-button-prev::after,
.np-hero-wrap .swiper-button-next::after { font-size: 13px; color: #fff; font-weight: 900; }

/* ═══════════════════════════════════════════
   10. CARDS
═══════════════════════════════════════════ */
.np-card-v {
  background: var(--np-surface); border-radius: var(--np-r-l); overflow: hidden;
  box-shadow: var(--np-shadow-card); display: flex; flex-direction: column;
  border: 1px solid var(--np-border);
  transition: transform var(--np-ease), box-shadow var(--np-ease);
}
.np-card-v:hover { transform: translateY(-4px); box-shadow: var(--np-shadow-m); }

.np-card-thumb {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16/10; background: var(--np-bg); flex-shrink: 0;
}
.np-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.np-card-v:hover .np-card-thumb img { transform: scale(1.06); }

.np-card-cat-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--cat-c); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 11px;
  border-radius: 30px; letter-spacing: .4px; text-transform: uppercase;
  z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.np-card-label {
  position: absolute; bottom: 12px; left: 12px;
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 30px; color: #fff; z-index: 2;
}
.np-lbl-breaking { background: var(--np-primary); animation: blink .9s step-end infinite; }
.np-lbl-exclusive { background: #7B1FA2; }
.np-lbl-hot       { background: var(--np-accent); }
@keyframes blink { 50% { opacity: .5; } }

.np-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.np-card-cat { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--cat-c); }
.np-card-title {
  font-family: var(--np-font-head); font-size: 15.5px; font-weight: 700;
  line-height: 1.5; color: var(--np-text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.np-card-title a { color: inherit; }
.np-card-title a:hover { color: var(--np-primary); }
.np-card-exc {
  font-size: 13px; color: var(--np-muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.np-card-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--np-muted);
  padding-top: 12px; border-top: 1px solid var(--np-border); margin-top: auto;
}

.np-card-h {
  display: flex; gap: 14px; background: var(--np-surface);
  border-radius: var(--np-r-m); padding: 14px;
  box-shadow: var(--np-shadow-card); border: 1px solid var(--np-border);
  align-items: flex-start; transition: transform var(--np-ease), box-shadow var(--np-ease);
}
.np-card-h:hover { transform: translateY(-2px); box-shadow: var(--np-shadow-m); }
.np-card-h-thumb {
  width: 108px; height: 78px; border-radius: var(--np-r-s); overflow: hidden;
  flex-shrink: 0; background: var(--np-bg); display: block;
}
.np-card-h-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.np-card-h:hover .np-card-h-thumb img { transform: scale(1.07); }
.np-card-h-body { flex: 1; min-width: 0; }
.np-card-h-title {
  font-family: var(--np-font-head); font-size: 14.5px; font-weight: 700;
  line-height: 1.5; color: var(--np-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px;
}
.np-card-h-title a { color: inherit; }
.np-card-h-title a:hover { color: var(--np-primary); }
.np-card-h-meta { font-size: 11.5px; color: var(--np-muted); display: flex; gap: 12px; flex-wrap: wrap; }

.np-card-feat {
  position: relative; border-radius: var(--np-r-l); overflow: hidden;
  height: 100%; min-height: 400px; background: var(--np-dark-hdr);
  box-shadow: var(--np-shadow-m);
}
.np-card-feat-link { display: block; height: 100%; }
.np-card-feat-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.np-card-feat:hover .np-card-feat-img { transform: scale(1.04); }
.np-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}
.np-feat-body { position: absolute; bottom: 0; right: 0; left: 0; padding: 28px 24px; z-index: 2; }
.np-feat-cat {
  display: inline-block; color: #fff; font-size: 10px; font-weight: 700;
  padding: 4px 14px; border-radius: 30px; margin-bottom: 10px;
  letter-spacing: .5px; text-transform: uppercase;
}
.np-feat-title {
  font-family: var(--np-font-head); font-size: clamp(17px,2vw,24px);
  font-weight: 900; color: #fff; line-height: 1.4; margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.np-feat-exc {
  font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px;
}
.np-feat-meta { display: flex; gap: 16px; color: rgba(255,255,255,.65); font-size: 12px; }

.np-card-overlay {
  position: relative; border-radius: var(--np-r-l); overflow: hidden;
  aspect-ratio: 4/3; background: var(--np-dark-hdr); display: block;
  box-shadow: var(--np-shadow-card);
}
.np-card-overlay img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.np-card-overlay:hover img { transform: scale(1.08); }
.np-ov-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, transparent 55%); }
.np-ov-body { position: absolute; bottom: 0; right: 0; left: 0; padding: 16px 18px; z-index: 2; }
.np-ov-cat {
  display: inline-block; color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 10px; border-radius: 30px; margin-bottom: 7px; letter-spacing: .4px;
}
.np-ov-title {
  font-family: var(--np-font-head); font-size: 14px; font-weight: 700; color: #fff;
  line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px;
}
.np-ov-time { font-size: 11px; color: rgba(255,255,255,.65); }

.np-card-opinion {
  background: var(--np-surface); border-radius: var(--np-r-l);
  padding: 20px; box-shadow: var(--np-shadow-card); border: 1px solid var(--np-border);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--np-ease), box-shadow var(--np-ease);
}
.np-card-opinion:hover { transform: translateY(-3px); box-shadow: var(--np-shadow-m); }
.np-op-author { display: flex; align-items: center; gap: 12px; }
.np-op-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--cat-c, var(--np-primary)); flex-shrink: 0; }
.np-op-name { display: block; font-size: 14px; font-weight: 700; color: var(--np-text); }
.np-op-date { display: block; font-size: 11px; color: var(--np-muted); }
.np-op-title {
  font-family: var(--np-font-head); font-size: 14.5px; font-weight: 700;
  color: var(--np-text); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.np-op-title a { color: inherit; }
.np-op-title a:hover { color: var(--np-primary); }
.np-op-exc { font-size: 13px; color: var(--np-muted); line-height: 1.6; }

.np-latest-list { display: flex; flex-direction: column; gap: 16px; }
.np-latest-item { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--np-border); }
.np-latest-item:last-child { border-bottom: none; padding-bottom: 0; }
.np-latest-num { font-size: 22px; font-weight: 900; color: var(--np-border-2); min-width: 32px; line-height: 1; flex-shrink: 0; padding-top: 2px; }
.np-latest-thumb { width: 92px; height: 66px; border-radius: var(--np-r-s); overflow: hidden; flex-shrink: 0; background: var(--np-bg); display: block; }
.np-latest-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.np-latest-item:hover .np-latest-thumb img { transform: scale(1.07); }
.np-latest-body { flex: 1; min-width: 0; }
.np-latest-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; display: block; }
.np-latest-title {
  font-family: var(--np-font-head); font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--np-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px;
}
.np-latest-title a { color: inherit; }
.np-latest-title a:hover { color: var(--np-primary); }
.np-latest-meta { font-size: 11px; color: var(--np-muted); display: flex; gap: 10px; }

.np-numbered-list { display: flex; flex-direction: column; gap: 0; }
.np-num-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--np-border); }
.np-num-item:last-child { border-bottom: none; }
.np-num-rank {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cat-c, var(--np-primary)); color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.np-num-rank.np-gold { background: var(--np-gold); color: #3d2800; }
.np-num-thumb { width: 82px; height: 60px; border-radius: var(--np-r-s); overflow: hidden; flex-shrink: 0; background: var(--np-bg); display: block; }
.np-num-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.np-num-item:hover .np-num-thumb img { transform: scale(1.07); }
.np-num-body { flex: 1; min-width: 0; }
.np-num-title {
  font-family: var(--np-font-head); font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--np-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px;
}
.np-num-title a { color: inherit; }
.np-num-title a:hover { color: var(--np-primary); }
.np-num-meta { font-size: 11px; color: var(--np-muted); display: flex; gap: 10px; }

.np-layout-featured { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; }
.np-feat-stack { display: flex; flex-direction: column; gap: 14px; }
.np-magazine-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; }
.np-mag-side { display: flex; flex-direction: column; gap: 14px; }
.np-hlist { display: flex; flex-direction: column; gap: 14px; }

/* ═══════════════════════════════════════════
   11. TABS
═══════════════════════════════════════════ */
.np-tabs-nav {
  display: flex; gap: 4px; border-bottom: 2px solid var(--np-border);
  margin-bottom: 18px; overflow-x: auto; scrollbar-width: none;
}
.np-tabs-nav::-webkit-scrollbar { display: none; }
.np-tab-btn {
  padding: 9px 18px; font-size: 13.5px; font-weight: 700; color: var(--np-muted);
  border-bottom: 2.5px solid transparent; white-space: nowrap; transition: all .2s;
  position: relative; bottom: -2px; border-radius: var(--np-r-s) var(--np-r-s) 0 0;
  font-family: var(--np-font-head);
}
.np-tab-btn.active { color: var(--np-primary); border-bottom-color: var(--np-primary); }
.np-tab-content { display: flex; flex-direction: column; gap: 14px; }

/* ═══════════════════════════════════════════
   12. SIDEBAR & WIDGETS
═══════════════════════════════════════════ */
.np-sidebar { display: flex; flex-direction: column; gap: 28px; }
.np-widget {
  background: var(--np-surface); border-radius: var(--np-r-l);
  overflow: hidden; box-shadow: var(--np-shadow-card); border: 1px solid var(--np-border);
}
.np-widget-title {
  display: flex; align-items: center; gap: 10px;
  background: var(--np-dark-nav); color: #fff;
  padding: 14px 18px; font-family: var(--np-font-head);
  font-size: 14px; font-weight: 800; margin: 0; letter-spacing: .3px;
}
.np-widget-title::before {
  content: ''; display: block; width: 3.5px; height: 18px;
  background: var(--np-primary); border-radius: 3px; flex-shrink: 0;
}
body.np-dark .np-widget-title { background: rgba(255,255,255,.05); }
.np-wt-icon { display: none; }
.np-widget-body { padding: 16px 18px; }

.np-trend-list { display: flex; flex-direction: column; }
.np-trend-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--np-border); }
.np-trend-item:last-child { border-bottom: none; }
.np-trend-rank {
  width: 28px; height: 28px; border-radius: 50%; background: var(--np-primary); color: #fff;
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.np-trend-rank.gold   { background: var(--np-gold); color: #3d2800; }
.np-trend-rank.silver { background: #90A4AE; color: #1a2a33; }
.np-trend-rank.bronze { background: #A1887F; color: #2d1a14; }
.np-trend-thumb { width: 56px; height: 42px; border-radius: var(--np-r-xs); overflow: hidden; flex-shrink: 0; background: var(--np-bg); display: block; }
.np-trend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.np-trend-body { flex: 1; min-width: 0; }
.np-trend-title {
  font-size: 13px; font-weight: 700; color: var(--np-text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 3px;
}
.np-trend-title a { color: inherit; }
.np-trend-title a:hover { color: var(--np-primary); }
.np-trend-views { font-size: 11px; color: var(--np-muted); }

.np-tags-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.np-tag {
  display: inline-block; padding: 5px 14px; background: var(--np-bg);
  color: var(--np-text-2); border-radius: 30px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--np-border); transition: all .2s;
}
.np-tag:hover { background: var(--np-primary); color: #fff; border-color: var(--np-primary); transform: translateY(-1px); }

.np-cat-list { display: flex; flex-direction: column; }
.np-cat-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--np-border); }
.np-cat-item:last-child { border-bottom: none; }
.np-cat-link { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--np-text-2); flex: 1; transition: all .2s; }
.np-cat-link:hover { color: var(--np-primary); }
.np-cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.np-cat-cnt { background: var(--np-bg); color: var(--np-muted); font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 30px; border: 1px solid var(--np-border); }

.np-author-w { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.np-author-wav { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--np-primary); }
.np-author-wname { font-size: 16px; font-weight: 800; color: var(--np-text); }
.np-author-wbio { font-size: 13px; color: var(--np-muted); line-height: 1.65; }

.np-nl-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--np-border);
  border-radius: var(--np-r-m); font-family: var(--np-font-body); font-size: 13.5px;
  background: var(--np-bg); color: var(--np-text); margin-bottom: 10px; outline: none; transition: border-color .2s;
}
.np-nl-input:focus { border-color: var(--np-primary); }
.np-nl-wbtn {
  width: 100%; padding: 11px; background: var(--np-primary); color: #fff;
  border-radius: var(--np-r-m); font-weight: 700; font-size: 14px; font-family: var(--np-font-head); transition: background .2s;
}
.np-nl-wbtn:hover { background: var(--np-primary-dk); }
.np-nl-msg { font-size: 12px; color: var(--np-muted); margin-top: 8px; min-height: 18px; }

.np-poll-q { font-size: 14px; font-weight: 700; margin-bottom: 14px; line-height: 1.6; }
.np-poll-opt { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--np-border); font-size: 13.5px; cursor: pointer; }
.np-poll-opt:last-of-type { border-bottom: none; }
.np-poll-opt input { width: 17px; height: 17px; accent-color: var(--np-primary); flex-shrink: 0; }
.np-poll-bar { height: 6px; background: var(--np-bg); border-radius: 3px; overflow: hidden; }
.np-poll-bar > div { height: 100%; border-radius: 3px; transition: width .5s; background: var(--np-primary); }
.np-poll-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.np-poll-bar-wrap { margin-bottom: 12px; }
.np-poll-total { font-size: 11.5px; color: var(--np-muted); margin-top: 8px; }

.np-fw-posts { display: flex; flex-direction: column; gap: 12px; }
.np-fw-post { display: flex; gap: 11px; align-items: flex-start; }
.np-fw-pt { width: 58px; height: 44px; border-radius: var(--np-r-xs); overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,.06); display: block; }
.np-fw-pt img { width: 100%; height: 100%; object-fit: cover; }
.np-fw-ptitle { font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-fw-ptitle:hover { color: #fff; }
.np-fw-pdate { font-size: 10.5px; color: rgba(255,255,255,.4); margin-top: 3px; }
.np-fw-social { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.np-fw-social a {
  width: 34px; height: 34px; border-radius: var(--np-r-s); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  transition: opacity .2s, transform .15s; background: rgba(255,255,255,.08);
}
.np-fw-social a:hover { opacity: .85; transform: translateY(-2px); color: #fff; }

/* ═══════════════════════════════════════════
   13. NEWSLETTER SECTION
═══════════════════════════════════════════ */
.np-newsletter-sec {
  background: linear-gradient(135deg, var(--np-dark-nav) 0%, #1a0a1e 50%, var(--np-dark-hdr) 100%);
  border-radius: var(--np-r-xl); margin-bottom: 44px;
  overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,.06);
}
.np-nl-inner { display: flex; align-items: center; gap: 44px; padding: 40px 48px; }
.np-nl-text { flex: 1; }
.np-nl-title { font-family: var(--np-font-head); font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.np-nl-desc  { font-size: 14px; color: rgba(255,255,255,.55); }
.np-nl-form  { display: flex; gap: 10px; flex: 1; max-width: 420px; }
.np-nl-email {
  flex: 1; padding: 13px 18px; border-radius: var(--np-r-m);
  font-family: var(--np-font-body); border: 1.5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07); color: #fff; font-size: 14px; transition: border-color .2s;
}
.np-nl-email::placeholder { color: rgba(255,255,255,.35); }
.np-nl-email:focus { outline: none; border-color: var(--np-primary); }
.np-nl-btn {
  padding: 13px 24px; background: var(--np-primary); color: #fff;
  border-radius: var(--np-r-m); font-size: 14px; font-weight: 700;
  font-family: var(--np-font-head); white-space: nowrap; transition: background .2s, transform .15s;
}
.np-nl-btn:hover { background: var(--np-primary-dk); transform: translateY(-1px); }
.np-nl-msg { text-align: center; font-size: 13px; color: rgba(255,255,255,.5); margin-top: 10px; min-height: 18px; }

/* ═══════════════════════════════════════════
   14. ADS
═══════════════════════════════════════════ */
.np-ad-footer { margin: 0 0 28px; }
.np-active-badge { display: inline-block; background: #1B5E20; color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 3px; margin-top: 6px; }

/* ═══════════════════════════════════════════
   15. SINGLE ARTICLE
═══════════════════════════════════════════ */
.np-article {
  background: var(--np-surface); border-radius: var(--np-r-xl);
  overflow: hidden; box-shadow: var(--np-shadow-card); border: 1px solid var(--np-border);
}
.np-art-header { padding: 30px 34px 0; }
.np-art-cats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.np-art-cat { color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 30px; letter-spacing: .4px; }
.np-badge { font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 30px; color: #fff; margin-bottom: 10px; display: inline-block; }
.np-badge-breaking { background: var(--np-primary); animation: blink .8s step-end infinite; }
.np-badge-exclusive { background: #7B1FA2; }
.np-art-title {
  font-family: var(--np-font-head); font-size: clamp(21px,3vw,32px);
  font-weight: 900; line-height: 1.4; color: var(--np-text); margin-bottom: 14px;
}
.np-art-sub { font-size: 17px; color: var(--np-muted); line-height: 1.75; margin-bottom: 16px; }
.np-art-byline { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--np-border); border-bottom: 1px solid var(--np-border); flex-wrap: wrap; }
.np-art-author { display: flex; align-items: center; gap: 10px; }
.np-byline-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--np-primary); }
.np-byline-name { font-size: 13.5px; font-weight: 700; color: var(--np-text); }
.np-art-meta { display: flex; align-items: center; gap: 14px; color: var(--np-muted); font-size: 12.5px; flex-wrap: wrap; }

.np-share-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 34px;
  background: var(--np-surface-2); border-bottom: 1px solid var(--np-border); flex-wrap: wrap;
}
.np-share-lbl { font-size: 12.5px; font-weight: 700; color: var(--np-muted); }
.np-share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 30px; font-size: 12.5px; font-weight: 700; color: #fff;
  font-family: var(--np-font-head); transition: opacity .2s, transform .15s;
}
.np-share-btn:hover { opacity: .88; color: #fff; transform: translateY(-1px); }
.np-sh-tw { background: #000; }
.np-sh-fb { background: #1877F2; }
.np-sh-wa { background: #25D366; }
.np-sh-tg { background: #0088CC; }
.np-sh-li { background: #0077B5; }
.np-sh-cp { background: var(--np-muted); }
.np-share-bottom { padding: 14px 34px; border-top: 1px solid var(--np-border); }

.np-art-img { position: relative; }
.np-art-featured { width: 100%; max-height: 500px; object-fit: cover; }
.np-img-cap { padding: 7px 34px; font-size: 12px; color: var(--np-muted); text-align: center; }
.np-ad-art { padding: 0 34px; margin: 20px 0; }

.np-art-body { padding: 28px 34px; }
.np-art-body p { margin-bottom: 1.5em; font-size: 16.5px; line-height: 1.95; color: var(--np-text-2); }
.np-art-body h2 {
  font-family: var(--np-font-head); font-size: 23px; font-weight: 900;
  margin: 1.8em 0 .8em; color: var(--np-text); border-right: 4px solid var(--np-primary); padding-right: 14px;
}
.np-art-body h3 { font-family: var(--np-font-head); font-size: 19px; font-weight: 700; margin: 1.5em 0 .7em; color: var(--np-text); }
.np-art-body a { color: var(--np-primary); text-decoration: underline; text-decoration-color: rgba(211,47,47,.3); }
.np-art-body a:hover { text-decoration-color: var(--np-primary); }
.np-art-body blockquote {
  border-right: 4px solid var(--np-primary); margin: 1.8em 0;
  padding: 16px 20px; background: rgba(211,47,47,.04);
  border-radius: 0 var(--np-r-m) var(--np-r-m) 0;
  font-size: 17px; color: var(--np-text-2); font-style: italic;
}
.np-art-body img { border-radius: var(--np-r-m); margin: 1.2em 0; }
.np-art-body ul, .np-art-body ol { padding-right: 1.5em; margin-bottom: 1.5em; }
.np-art-body li { margin-bottom: .6em; font-size: 16px; line-height: 1.8; }

.np-art-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 34px 18px; align-items: center; }
.np-tags-lbl { font-size: 14px; font-weight: 700; }

.np-short-url {
  display: flex; align-items: center; gap: 12px;
  margin: 0 34px 18px; padding: 12px 16px;
  background: var(--np-surface-2); border: 1px solid var(--np-border);
  border-radius: var(--np-r-m); font-size: 13px; flex-wrap: wrap;
}
.np-su-lbl { font-weight: 700; color: var(--np-muted); white-space: nowrap; }
.np-su-link { color: var(--np-primary); font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-su-copy {
  padding: 5px 14px; background: var(--np-primary); color: #fff;
  border-radius: var(--np-r-xs); font-size: 12.5px; font-weight: 700;
  font-family: var(--np-font-head); flex-shrink: 0; transition: background .2s;
}
.np-su-copy:hover { background: var(--np-primary-dk); }

.np-author-box {
  display: flex; gap: 20px; margin: 0 34px 22px; padding: 20px;
  background: var(--np-surface-2); border-radius: var(--np-r-l);
  border: 1px solid var(--np-border); align-items: flex-start;
}
.np-author-av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--np-primary); flex-shrink: 0; }
.np-author-name { font-size: 15px; font-weight: 800; display: block; margin-bottom: 5px; }
.np-author-name:hover { color: var(--np-primary); }
.np-author-bio { font-size: 13px; color: var(--np-muted); line-height: 1.65; }
.np-related { padding: 26px 34px; border-top: 1px solid var(--np-border); }

/* ═══════════════════════════════════════════
   16. FOOTER
═══════════════════════════════════════════ */
.np-footer {
  background: var(--np-dark-footer);
  color: rgba(255,255,255,.6);
  margin-top: 56px;
  border-top: 3px solid var(--np-primary);
}
.np-footer-widgets {
  padding: 50px 0 32px;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 32px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.np-footer-bottom {
  padding: 18px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.4);
}
.np-copyright { color: rgba(255,255,255,.45); }
.np-footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.np-footer-nav a { color: rgba(255,255,255,.4); font-size: 12.5px; transition: color .2s; }
.np-footer-nav a:hover { color: rgba(255,255,255,.8); }

.np-footer .np-widget-title { background: rgba(255,255,255,.04); }
.np-footer .np-widget { background: transparent; box-shadow: none; border-radius: 0; border: none; }
.np-footer .np-widget-body { padding: 14px 0; }
.np-footer .np-trend-item, .np-footer .np-cat-item, .np-footer .np-fw-post { border-color: rgba(255,255,255,.06); }
.np-footer .np-trend-title a, .np-footer .np-cat-link, .np-footer .np-num-title a { color: rgba(255,255,255,.65); }
.np-footer .np-trend-title a:hover, .np-footer .np-cat-link:hover, .np-footer .np-num-title a:hover { color: #fff; }
.np-footer .np-tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.55); }
.np-footer .np-tag:hover { background: var(--np-primary); color: #fff; border-color: var(--np-primary); }
.np-footer .np-cat-cnt { background: rgba(255,255,255,.07); color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.1); }
.np-footer .np-nl-input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.np-footer .np-trend-views { color: rgba(255,255,255,.35); }

/* ═══════════════════════════════════════════
   17. BREADCRUMBS
═══════════════════════════════════════════ */
.np-breadcrumbs { padding: 10px 0; font-size: 12.5px; color: var(--np-muted); margin-bottom: 20px; }
.np-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.np-breadcrumbs li + li::before { content: '/'; margin-left: 6px; opacity: .4; }
.np-breadcrumbs a { color: var(--np-primary); font-weight: 600; }

/* ═══════════════════════════════════════════
   18. PAGINATION
═══════════════════════════════════════════ */
.np-pagination { margin-top: 32px; }
.np-pag-inner { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.np-pagination .page-numbers {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--np-r-s); background: var(--np-surface);
  border: 1px solid var(--np-border); font-size: 13.5px; font-weight: 700;
  color: var(--np-text-2); transition: all .2s; box-shadow: var(--np-shadow-xs);
}
.np-pagination .page-numbers:hover,
.np-pagination .page-numbers.current { background: var(--np-primary); color: #fff; border-color: var(--np-primary); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   19. ARCHIVE HEADER
═══════════════════════════════════════════ */
.np-archive-hdr { margin-bottom: 28px; }
.np-archive-title {
  font-family: var(--np-font-head); font-size: 24px; font-weight: 900;
  color: var(--np-text); margin-bottom: 7px; border-right: 4px solid var(--np-primary); padding-right: 14px;
}
.np-archive-desc { font-size: 14.5px; color: var(--np-muted); }

/* ═══════════════════════════════════════════
   20. 404 / NO RESULTS
═══════════════════════════════════════════ */
.np-no-results { text-align: center; padding: 72px 24px; background: var(--np-surface); border-radius: var(--np-r-xl); border: 1px solid var(--np-border); }
.np-nr-icon  { font-size: 56px; margin-bottom: 16px; }
.np-404-num  { font-size: 88px; font-weight: 900; color: var(--np-primary); line-height: 1; font-family: var(--np-font-head); }
.np-no-results h2 { font-size: 22px; font-weight: 900; margin-bottom: 9px; font-family: var(--np-font-head); }
.np-no-results p  { color: var(--np-muted); margin-bottom: 24px; }

/* ═══════════════════════════════════════════
   21. BUTTONS & UTILITIES
═══════════════════════════════════════════ */
.np-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; background: var(--np-primary); color: #fff;
  border-radius: var(--np-r-s); font-size: 13.5px; font-weight: 700;
  font-family: var(--np-font-head); transition: background .2s, transform .15s;
}
.np-btn:hover { background: var(--np-primary-dk); color: #fff; transform: translateY(-1px); }
.np-load-more-wrap { text-align: center; margin-top: 24px; }

#np-scroll-top {
  position: fixed; bottom: 30px; left: 30px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--np-primary); color: #fff; font-size: 20px;
  box-shadow: var(--np-shadow-m); opacity: 0; transform: translateY(20px);
  pointer-events: none; transition: all .35s cubic-bezier(.4,0,.2,1);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.2);
}
#np-scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
#np-scroll-top:hover { background: var(--np-primary-dk); transform: translateY(-4px); }

/* ═══════════════════════════════════════════
   22. RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .np-footer-widgets { grid-template-columns: repeat(2,1fr); }
  .np-grid-4 { grid-template-columns: repeat(2,1fr); }
  .np-hero-slide { height: 460px; }
}

@media (max-width: 960px) {
  .np-container { padding: 0 18px; }
  .np-content-wrap, .np-single-wrap { grid-template-columns: 1fr; }
  .np-nav { display: none; }
  .np-hamburger { display: flex; }
  .np-hero-slide { height: 360px; }
  .np-layout-featured, .np-magazine-layout { grid-template-columns: 1fr; }
  .np-grid-3 { grid-template-columns: repeat(2,1fr); }
  .np-nl-inner { flex-direction: column; gap: 24px; padding: 32px 28px; }
  .np-nl-form { max-width: 100%; width: 100%; }
  .np-art-header, .np-art-body, .np-share-bar, .np-short-url,
  .np-author-box, .np-art-tags, .np-related { padding-right: 20px; padding-left: 20px; }
  .np-hero-content { padding: 24px 28px; }
}

@media (max-width: 640px) {
  :root { --np-hh: 62px; }
  .np-container { padding: 0 14px; }
  .np-grid-2, .np-grid-3, .np-grid-4 { grid-template-columns: 1fr; }
  .np-hero-slide { height: 260px; }
  .np-hero-title { font-size: 16px; }
  .np-hero-content { padding: 18px 20px; }
  .np-footer-widgets { grid-template-columns: 1fr; }
  .np-ticker-wrap { display: none; }
  .np-topbar { display: none; }
  .np-logo-text { font-size: 20px; }
  .np-card-body { padding: 14px; }
  .np-hero-wrap { border-radius: var(--np-r-l); }
  #np-scroll-top { bottom: 20px; left: 20px; width: 44px; height: 44px; }
  .np-art-header, .np-art-body, .np-share-bar, .np-short-url,
  .np-author-box, .np-art-tags, .np-related { padding-right: 16px; padding-left: 16px; }
  .np-author-box { flex-direction: column; align-items: center; text-align: center; }
  .np-art-title { font-size: 20px; }
}

@media (max-width: 380px) {
  .np-hero-slide { height: 220px; }
  .np-logo-text { font-size: 18px; }
  .np-card-h-thumb { width: 88px; height: 64px; }
}

@media print {
  .np-header, .np-footer, .np-sidebar, .np-ad,
  #np-scroll-top, .np-share-bar { display: none !important; }
  .np-single-wrap { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}

/* ═══════════════════════════════════════════
   NEWSPULSE PRO v5 — SECTION REDESIGN
   تنسيق الأقسام الجديد — جميع التعديلات
═══════════════════════════════════════════ */

/* بطاقة القسم */
.np-section {
  margin-bottom: 44px !important;
  background: var(--np-surface) !important;
  border-radius: var(--np-r-l) !important;
  border: 1px solid var(--np-border) !important;
  box-shadow: var(--np-shadow-card) !important;
  overflow: hidden !important;
}
.np-section:last-child { margin-bottom: 0 !important; }

/* البطل والنشرة: بدون بطاقة */
.np-sec-hero,
.np-sec-newsletter {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

/* ترويسة القسم */
.np-sec-head,
.np-sec-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #111118 !important;
  min-height: 52px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
  position: relative !important;
}
.np-sec-head::before,
.np-sec-head::after,
.np-sec-header::before,
.np-sec-header::after { display: none !important; }

/* عنوان القسم */
.np-sec-title {
  font-family: var(--np-font-head) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 !important;
}
.np-sec-title::before { display: none !important; }

/* أيقونة ملونة */
.np-sec-icon-wrap,
.np-sec-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
  margin-left: 14px !important;
}

/* زر عرض الكل */
.np-view-all,
.np-sec-link {
  font-family: var(--np-font-head) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.85) !important;
  background: rgba(255,255,255,.10) !important;
  border: 1.5px solid rgba(255,255,255,.25) !important;
  border-radius: 30px !important;
  padding: 6px 16px !important;
  margin-left: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: background .2s, border-color .2s !important;
  opacity: 1 !important;
  transform: none !important;
}
.np-view-all:hover,
.np-sec-link:hover {
  background: rgba(255,255,255,.22) !important;
  border-color: rgba(255,255,255,.5) !important;
  color: #fff !important;
}

/* محتوى القسم — padding داخلي */
.np-section > .np-latest-list   { padding: 6px 20px 18px !important; }
.np-section > .np-numbered-list { padding: 6px 20px 18px !important; }
.np-section > .np-grid          { padding: 20px !important; }
.np-section > .np-hlist         { padding: 20px !important; }
.np-section > .np-magazine-layout,
.np-section > .np-layout-featured { padding: 20px !important; }
.np-section > .np-load-more-wrap  { padding: 0 20px 20px !important; }

/* tabs داخل القسم */
.np-tabs-nav {
  margin: 0 20px !important;
  border-bottom: 2px solid var(--np-border) !important;
}
.np-tab-content { padding: 16px 20px 20px !important; }

/* آخر الأخبار */
.np-latest-list { display: flex !important; flex-direction: column !important; }
.np-latest-item {
  display: flex !important;
  gap: 14px !important;
  align-items: flex-start !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--np-border) !important;
}
.np-latest-item:first-child { padding-top: 10px !important; }
.np-latest-item:last-child  { border-bottom: none !important; padding-bottom: 10px !important; }

/* الأكثر قراءة */
.np-numbered-list { display: flex !important; flex-direction: column !important; }
.np-num-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--np-border) !important;
}
.np-num-item:first-child { padding-top: 10px !important; }
.np-num-item:last-child  { border-bottom: none !important; padding-bottom: 10px !important; }

/* ترويسة الويدجت */
.np-widget-title {
  background: #111118 !important;
  color: #fff !important;
}
.np-widget-title::before {
  content: '' !important;
  display: block !important;
  width: 3.5px !important;
  height: 18px !important;
  background: var(--np-primary) !important;
  border-radius: 3px !important;
  flex-shrink: 0 !important;
}

/* مجلة */
.np-mag-main {
  position: relative !important;
  border-radius: var(--np-r-l) !important;
  overflow: hidden !important;
  background: var(--np-dark-hdr) !important;
  box-shadow: var(--np-shadow-m) !important;
  min-height: 340px !important;
}
.np-mag-main .np-card-feat-link {
  display: block !important;
  height: 100% !important;
  min-height: 340px !important;
  position: relative !important;
}
.np-mag-main .np-card-feat-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  inset: 0 !important;
}

/* موبايل */
@media (max-width: 640px) {
  .np-section { margin-bottom: 22px !important; }
  .np-sec-title { font-size: 15px !important; }
  .np-sec-icon-wrap, .np-sec-icon { width: 40px !important; height: 40px !important; font-size: 16px !important; margin-left: 10px !important; }
  .np-view-all, .np-sec-link { font-size: 11px !important; padding: 5px 12px !important; margin-left: 10px !important; }
  .np-latest-item { gap: 10px !important; padding: 12px 0 !important; }
  .np-num-item { gap: 10px !important; padding: 12px 0 !important; }
  .np-section > .np-latest-list { padding: 6px 14px 14px !important; }
  .np-section > .np-numbered-list { padding: 6px 14px 14px !important; }
  .np-section > .np-grid { padding: 14px !important; }
  .np-tabs-nav { margin: 0 14px !important; }
  .np-tab-content { padding: 14px !important; }
}

/* ── مقالات ذات صلة — خارج الـ grid بعرض كامل ── */
.np-related-section {
  margin-top: 36px;
  background: var(--np-surface);
  border-radius: var(--np-r-l);
  border: 1px solid var(--np-border);
  box-shadow: var(--np-shadow-card);
  overflow: hidden;
}
.np-related-section > .np-grid {
  padding: 20px;
  gap: 20px;
}
@media (max-width: 960px) {
  .np-related-section > .np-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .np-related-section > .np-grid { grid-template-columns: 1fr; }
}
