/*
Theme Name: NewsForge
Theme URI: https://newsforge.example.com
Author: NewsForge Team
Author URI: https://newsforge.example.com
Description: قالب إخباري احترافي متعدد الديموز، نهاري بالكامل، مع لوحة تحكم WordPress Customizer متكاملة. مثالي للمواقع الإخبارية والبوابات التقنية والمجلات الإلكترونية.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsforge
Tags: news, blog, rtl-language, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — لوحة الألوان والمتغيرات
============================================================ */
:root {
  --nf-accent:        #c0392b;
  --nf-accent-hover:  #a93226;
  --nf-accent-light:  #fdf0ef;
  --nf-accent-mid:    #e8a49f;

  --nf-page:          #f7f5f0;
  --nf-card:          #ffffff;
  --nf-card2:         #fafaf7;
  --nf-border:        #e5e0d8;
  --nf-border2:       #d0cac0;

  --nf-text:          #1a1814;
  --nf-text2:         #4a4540;
  --nf-text3:         #8a8580;
  --nf-text4:         #bab6b0;

  --nf-font-primary:  'Cairo', sans-serif;
  --nf-font-display:  'Tajawal', sans-serif;

  --nf-radius:        6px;
  --nf-radius-lg:     12px;
  --nf-shadow:        0 2px 16px rgba(0,0,0,0.07);
  --nf-shadow-sm:     0 1px 5px rgba(0,0,0,0.05);

  --nf-container:     1320px;
  --nf-sidebar-w:     320px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--nf-font-primary);
  background: var(--nf-page);
  color: var(--nf-text);
  font-size: 15px;
  line-height: 1.65;
  direction: rtl;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--nf-font-primary); }

/* ============================================================
   CONTAINER
============================================================ */
.nf-container {
  max-width: var(--nf-container);
  margin: 0 auto;
  padding: 0 24px;
}
.nf-container-full { width: 100%; padding: 0 24px; }

/* ============================================================
   UTILITY CLASSES
============================================================ */
.nf-badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border-radius: 3px;
}
.nf-badge--accent  { background: var(--nf-accent);       color: #fff; }
.nf-badge--light   { background: var(--nf-accent-light);  color: var(--nf-accent); }
.nf-badge--red     { background: #fee2e2; color: #991b1b; }
.nf-badge--blue    { background: #dbeafe; color: #1e40af; }
.nf-badge--green   { background: #d1fae5; color: #065f46; }
.nf-badge--orange  { background: #ffedd5; color: #9a3412; }
.nf-badge--purple  { background: #ede9fe; color: #4c1d95; }
.nf-badge--teal    { background: #ccfbf1; color: #134e4a; }
.nf-badge--live    { background: var(--nf-accent); color: #fff; animation: nf-pulse 1.8s infinite; }

@keyframes nf-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

.nf-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.nf-section-head__bar {
  width: 3px; height: 18px;
  background: var(--nf-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.nf-section-head__title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--nf-text);
}
.nf-section-head__line {
  flex: 1; height: 1px;
  background: var(--nf-border);
}
.nf-section-head__link {
  font-size: 11px;
  color: var(--nf-text3);
  white-space: nowrap;
  transition: color .15s;
}
.nf-section-head__link:hover { color: var(--nf-accent); }

.nf-btn-primary {
  display: inline-block;
  background: var(--nf-accent);
  color: #fff !important;
  border: none;
  border-radius: var(--nf-radius);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--nf-font-primary);
  transition: background .15s, transform .1s;
  cursor: pointer;
  white-space: nowrap;
}
.nf-btn-primary:hover { background: var(--nf-accent-hover); }
.nf-btn-primary:active { transform: scale(.97); }

.nf-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--nf-accent);
  border: 1.5px solid var(--nf-accent-mid);
  border-radius: var(--nf-radius);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--nf-font-primary);
  transition: all .15s;
  cursor: pointer;
}
.nf-btn-secondary:hover { background: var(--nf-accent-light); }

/* ============================================================
   UTILITY BAR
============================================================ */
.nf-util-bar {
  background: var(--nf-text);
  color: #888;
  padding: 6px 0;
  font-size: 11px;
}
.nf-util-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.nf-util-bar__left { display: flex; gap: 14px; align-items: center; }
.nf-util-bar__right { display: flex; gap: 14px; align-items: center; }
.nf-util-bar a { color: #777; transition: color .15s; }
.nf-util-bar a:hover { color: #fff; }
.nf-util-bar__date { color: #ccc; font-weight: 600; }
.nf-util-bar__weather { color: #bbb; }

/* ============================================================
   BREAKING TICKER
============================================================ */
.nf-ticker {
  background: var(--nf-accent);
  color: #fff;
  padding: 7px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.nf-ticker__label {
  background: #fff;
  color: var(--nf-accent);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 16px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nf-ticker__sep {
  width: 1px; height: 18px;
  background: rgba(255,255,255,.3);
  flex-shrink: 0; margin: 0 14px;
}
.nf-ticker__track { overflow: hidden; flex: 1; }
.nf-ticker__inner {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  animation: nf-ticker 50s linear infinite;
}
@keyframes nf-ticker {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ============================================================
   MASTHEAD / HEADER
============================================================ */
.nf-masthead {
  background: var(--nf-card);
  border-bottom: 1px solid var(--nf-border);
  padding: 14px 0;
}
.nf-masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nf-logo { display: flex; flex-direction: column; }
.nf-logo__name {
  font-family: var(--nf-font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--nf-text);
  letter-spacing: -1.5px;
  line-height: 1;
}
.nf-logo__name span { color: var(--nf-accent); }
.nf-logo__tagline {
  font-size: 10px;
  font-weight: 700;
  color: var(--nf-text3);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 3px;
  border-top: 1px solid var(--nf-border);
  padding-top: 3px;
}
.nf-masthead__center { text-align: center; flex: 1; }
.nf-masthead__center .issue { font-size: 11px; color: var(--nf-text3); }
.nf-masthead__center .mdate { font-size: 12px; font-weight: 700; color: var(--nf-text2); margin-top: 2px; }
.nf-masthead__right { display: flex; align-items: center; gap: 10px; }

/* Search box */
.nf-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nf-page);
  border: 1.5px solid var(--nf-border);
  border-radius: 24px;
  padding: 7px 16px;
  transition: border-color .15s;
}
.nf-search-form:focus-within { border-color: var(--nf-accent); }
.nf-search-form input {
  background: none; border: none; outline: none;
  font-family: var(--nf-font-primary);
  font-size: 12px; color: var(--nf-text);
  width: 160px;
}
.nf-search-form input::placeholder { color: var(--nf-text3); }
.nf-search-form svg {
  width: 14px; height: 14px;
  stroke: var(--nf-text3); fill: none; stroke-width: 2;
}

/* ============================================================
   PRIMARY NAVIGATION
============================================================ */
.nf-primary-nav {
  background: var(--nf-card);
  border-bottom: 2px solid var(--nf-text);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--nf-shadow-sm);
}
.nf-primary-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nf-nav-menu {
  display: flex;
  gap: 0;
}
.nf-nav-menu > li > a {
  display: block;
  padding: 14px 15px;
  font-size: 13px;
  font-weight: 700;
  color: var(--nf-text2);
  border-bottom: 3px solid transparent;
  transition: all .18s;
  white-space: nowrap;
}
.nf-nav-menu > li > a:hover,
.nf-nav-menu > li.current-menu-item > a,
.nf-nav-menu > li.current-menu-ancestor > a {
  color: var(--nf-accent);
  border-bottom-color: var(--nf-accent);
}
.nf-nav-actions { display: flex; align-items: center; gap: 8px; }
.nf-nav-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--nf-page);
  border: 1.5px solid var(--nf-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.nf-nav-icon:hover { background: var(--nf-accent-light); border-color: var(--nf-accent-mid); }

/* Mobile menu toggle */
.nf-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--nf-text);
  padding: 6px;
}

/* ============================================================
   HERO SECTION
============================================================ */
.nf-hero {
  background: var(--nf-card);
  border-bottom: 1px solid var(--nf-border);
  padding: 22px 0;
}
.nf-hero__grid {
  display: grid;
  grid-template-columns: 1fr var(--nf-sidebar-w);
  gap: 22px;
}

/* Main hero story */
.nf-hero__main {}
.nf-hero__img-wrap {
  border-radius: var(--nf-radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}
.nf-hero__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.nf-hero__img-placeholder {
  width: 100%; height: 380px;
  background: linear-gradient(150deg, #1a3a5c 0%, #2c5282 50%, #1a2a4a 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.2); font-size: 60px;
  border-radius: var(--nf-radius-lg);
}
.nf-hero__img-badge { position: absolute; top: 14px; right: 14px; }
.nf-hero__img-time {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 4px;
}
.nf-hero__cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--nf-accent); margin-bottom: 8px;
  padding-right: 10px;
  border-right: 3px solid var(--nf-accent);
}
.nf-hero__title {
  font-family: var(--nf-font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  line-height: 1.22;
  color: var(--nf-text);
  margin-bottom: 10px;
}
.nf-hero__excerpt {
  font-size: 14px;
  color: var(--nf-text2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.nf-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--nf-text3);
}
.nf-hero__meta .author { color: var(--nf-text2); font-weight: 700; }
.nf-hero__meta .views { display: flex; align-items: center; gap: 4px; }
.nf-hero__read-btn { margin-right: auto; }

/* Hero sidebar */
.nf-hero__side { display: flex; flex-direction: column; }
.nf-hero__side-head {
  background: var(--nf-text); color: #fff;
  padding: 10px 14px;
  border-radius: var(--nf-radius) var(--nf-radius) 0 0;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
}
.nf-hero__side-item {
  background: var(--nf-card);
  border: 1px solid var(--nf-border); border-top: none;
  padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start;
  cursor: pointer; transition: background .15s;
}
.nf-hero__side-item:last-of-type {
  border-radius: 0 0 var(--nf-radius) var(--nf-radius);
}
.nf-hero__side-item:hover { background: var(--nf-page); }
.nf-hero__side-num {
  font-size: 22px; font-weight: 900;
  color: var(--nf-border2); line-height: 1; min-width: 28px;
}
.nf-hero__side-body h4 {
  font-size: 13px; font-weight: 700;
  line-height: 1.4; color: var(--nf-text);
}
.nf-hero__side-cat {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
  margin-top: 3px; display: block;
}
.nf-hero__side-time { font-size: 11px; color: var(--nf-text3); margin-top: 2px; }

/* Newsletter widget in hero */
.nf-newsletter-widget {
  background: var(--nf-accent-light);
  border: 1.5px solid var(--nf-accent-mid);
  border-radius: var(--nf-radius);
  padding: 14px; margin-top: 12px;
}
.nf-newsletter-widget h4 {
  font-size: 13px; font-weight: 800;
  color: var(--nf-accent); margin-bottom: 4px;
}
.nf-newsletter-widget p { font-size: 11px; color: var(--nf-text3); margin-bottom: 10px; }
.nf-newsletter-widget form { display: flex; gap: 6px; }
.nf-newsletter-widget input {
  flex: 1; border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius); padding: 7px 10px;
  font-family: var(--nf-font-primary); font-size: 12px;
  color: var(--nf-text); background: var(--nf-card);
  outline: none; transition: border-color .15s;
}
.nf-newsletter-widget input:focus { border-color: var(--nf-accent); }

/* ============================================================
   POSTS GRID / CARDS
============================================================ */
.nf-posts-section {
  padding: 24px 0;
  background: var(--nf-page);
}
.nf-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.nf-post-card {
  background: var(--nf-card);
  border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.nf-post-card:hover {
  box-shadow: var(--nf-shadow);
  transform: translateY(-3px);
}
.nf-post-card__thumb {
  width: 100%; height: 145px;
  object-fit: cover; display: block;
  position: relative;
}
.nf-post-card__thumb-wrap {
  position: relative; overflow: hidden;
  height: 145px;
}
.nf-post-card__thumb-img {
  width: 100%; height: 100%; object-fit: cover;
}
.nf-post-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: rgba(255,255,255,.25);
}
.nf-post-card__cat-badge {
  position: absolute; top: 10px; right: 10px;
}
.nf-post-card__body { padding: 14px; }
.nf-post-card__title {
  font-size: 14px; font-weight: 700;
  line-height: 1.4; color: var(--nf-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nf-post-card__meta {
  font-size: 11px; color: var(--nf-text3);
  margin-top: 8px; display: flex; gap: 10px; align-items: center;
}
.nf-post-card__title a { color: inherit; }
.nf-post-card__title a:hover { color: var(--nf-accent); }

/* ============================================================
   MAGAZINE LAYOUT (big + side)
============================================================ */
.nf-magazine-section { padding: 0 0 24px; background: var(--nf-page); }
.nf-magazine-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.nf-mag-big {
  background: var(--nf-card);
  border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  overflow: hidden; cursor: pointer;
  transition: box-shadow .2s;
}
.nf-mag-big:hover { box-shadow: var(--nf-shadow); }
.nf-mag-big__img {
  width: 100%; height: 240px; object-fit: cover; display: block;
}
.nf-mag-big__img-placeholder {
  width: 100%; height: 240px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,.2);
}
.nf-mag-big__body { padding: 18px 20px; }
.nf-mag-big__cat {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--nf-accent); margin-bottom: 7px; display: block;
}
.nf-mag-big__title {
  font-size: 20px; font-weight: 800;
  line-height: 1.3; color: var(--nf-text); margin-bottom: 8px;
}
.nf-mag-big__title a { color: inherit; }
.nf-mag-big__title a:hover { color: var(--nf-accent); }
.nf-mag-big__excerpt { font-size: 13px; color: var(--nf-text2); line-height: 1.7; }
.nf-mag-big__meta { font-size: 11px; color: var(--nf-text3); margin-top: 10px; display: flex; gap: 12px; }

.nf-mag-side { display: flex; flex-direction: column; gap: 10px; }
.nf-mag-sm {
  background: var(--nf-card);
  border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius);
  overflow: hidden; cursor: pointer;
  display: flex; transition: box-shadow .15s;
}
.nf-mag-sm:hover { box-shadow: var(--nf-shadow-sm); }
.nf-mag-sm__img {
  width: 90px; flex-shrink: 0;
  object-fit: cover; display: block;
}
.nf-mag-sm__img-placeholder {
  width: 90px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: rgba(255,255,255,.2);
}
.nf-mag-sm__body { padding: 10px 12px; flex: 1; }
.nf-mag-sm__cat {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 4px; display: block;
}
.nf-mag-sm__title {
  font-size: 13px; font-weight: 700;
  line-height: 1.35; color: var(--nf-text);
}
.nf-mag-sm__title a { color: inherit; }
.nf-mag-sm__title a:hover { color: var(--nf-accent); }
.nf-mag-sm__meta { font-size: 11px; color: var(--nf-text3); margin-top: 5px; }

/* ============================================================
   TRENDING + OPINION SECTION
============================================================ */
.nf-twocol-section {
  background: var(--nf-card);
  border-top: 1px solid var(--nf-border);
  border-bottom: 1px solid var(--nf-border);
  padding: 24px 0;
}
.nf-twocol-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.nf-trending-list { display: flex; flex-direction: column; }
.nf-trending-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--nf-border);
  cursor: pointer;
}
.nf-trending-item:last-child { border-bottom: none; }
.nf-trending-item__num {
  font-size: 28px; font-weight: 900;
  color: var(--nf-accent); opacity: .3;
  line-height: 1; min-width: 34px;
}
.nf-trending-item__body h4 {
  font-size: 14px; font-weight: 700;
  line-height: 1.4; color: var(--nf-text);
}
.nf-trending-item__body h4 a { color: inherit; }
.nf-trending-item__body h4 a:hover { color: var(--nf-accent); }
.nf-trending-item__meta {
  font-size: 11px; color: var(--nf-text3);
  margin-top: 4px; display: flex; gap: 8px; align-items: center;
}

.nf-opinion-list { display: flex; flex-direction: column; gap: 12px; }
.nf-opinion-card {
  display: flex; gap: 12px; cursor: pointer;
  padding: 10px; border-radius: var(--nf-radius);
  transition: background .15s;
}
.nf-opinion-card:hover { background: var(--nf-page); }
.nf-opinion-card__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
}
.nf-opinion-card__body .name { font-size: 13px; font-weight: 800; color: var(--nf-text); }
.nf-opinion-card__body .role { font-size: 11px; color: var(--nf-text3); margin-bottom: 4px; }
.nf-opinion-card__body h4 {
  font-size: 13px; font-weight: 600;
  line-height: 1.4; color: var(--nf-text2);
}
.nf-opinion-card__body h4 a { color: inherit; }

/* ============================================================
   CATEGORY STRIPS
============================================================ */
.nf-category-strips { padding: 24px 0; background: var(--nf-page); }
.nf-cat-strips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.nf-cat-block {
  background: var(--nf-card);
  border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  overflow: hidden;
}
.nf-cat-block__head {
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--nf-border);
}
.nf-cat-block__head h3 {
  font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
}
.nf-cat-block__head a { font-size: 11px; color: var(--nf-text3); }
.nf-cat-block__head a:hover { color: var(--nf-accent); }
.nf-cat-item {
  display: flex; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--nf-border);
  cursor: pointer; transition: background .15s;
  align-items: flex-start;
}
.nf-cat-item:last-child { border-bottom: none; }
.nf-cat-item:hover { background: var(--nf-page); }
.nf-cat-item__img {
  width: 60px; height: 50px;
  border-radius: 5px; object-fit: cover;
  flex-shrink: 0; display: block;
}
.nf-cat-item__img-placeholder {
  width: 60px; height: 50px;
  border-radius: 5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(255,255,255,.2);
}
.nf-cat-item__body h4 {
  font-size: 13px; font-weight: 700;
  line-height: 1.35; color: var(--nf-text);
}
.nf-cat-item__body h4 a { color: inherit; }
.nf-cat-item__body h4 a:hover { color: var(--nf-accent); }
.nf-cat-item__meta { font-size: 10px; color: var(--nf-text3); margin-top: 3px; }

/* ============================================================
   LATEST POSTS + SIDEBAR
============================================================ */
.nf-latest-section { padding: 24px 0; background: var(--nf-page); }
.nf-latest-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}
.nf-latest-list { display: flex; flex-direction: column; }
.nf-latest-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--nf-border);
  cursor: pointer; transition: opacity .15s;
}
.nf-latest-item:hover { opacity: .8; }
.nf-latest-item__img {
  width: 110px; height: 82px;
  border-radius: var(--nf-radius);
  object-fit: cover; flex-shrink: 0;
}
.nf-latest-item__img-placeholder {
  width: 110px; height: 82px;
  border-radius: var(--nf-radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: rgba(255,255,255,.2);
}
.nf-latest-item__body { flex: 1; }
.nf-latest-item__cat {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 5px; display: block;
}
.nf-latest-item__title {
  font-size: 16px; font-weight: 700;
  line-height: 1.35; color: var(--nf-text); margin-bottom: 6px;
}
.nf-latest-item__title a { color: inherit; }
.nf-latest-item__title a:hover { color: var(--nf-accent); }
.nf-latest-item__excerpt { font-size: 13px; color: var(--nf-text2); line-height: 1.6; }
.nf-latest-item__meta {
  font-size: 11px; color: var(--nf-text3);
  margin-top: 7px; display: flex; gap: 12px;
}

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.nf-sidebar { display: flex; flex-direction: column; gap: 18px; }
.nf-widget {
  background: var(--nf-card);
  border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  overflow: hidden;
}
.nf-widget__title {
  padding: 10px 14px;
  background: var(--nf-text); color: #fff;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
}
.nf-widget__body { padding: 14px; }

/* Market widget */
.nf-market-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--nf-border);
  font-size: 12px;
}
.nf-market-row:last-child { border-bottom: none; }
.nf-market-row .name { font-weight: 700; color: var(--nf-text); }
.nf-up   { color: #16a34a; font-weight: 800; }
.nf-down { color: #dc2626; font-weight: 800; }

/* Poll widget */
.nf-poll-opt { margin-bottom: 10px; cursor: pointer; }
.nf-poll-label {
  font-size: 12px; font-weight: 600; color: var(--nf-text);
  display: flex; justify-content: space-between; margin-bottom: 4px;
}
.nf-poll-bar { height: 8px; background: var(--nf-border); border-radius: 4px; overflow: hidden; }
.nf-poll-fill { height: 100%; border-radius: 4px; background: var(--nf-accent); transition: width .6s; }

/* Tags widget */
.nf-tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.nf-tag {
  background: var(--nf-page); border: 1px solid var(--nf-border);
  border-radius: 20px; padding: 4px 12px;
  font-size: 11px; color: var(--nf-text2);
  cursor: pointer; transition: all .15s;
}
.nf-tag:hover { background: var(--nf-accent); border-color: var(--nf-accent); color: #fff; }
.tag-cloud-link { color: inherit; }
.tag-cloud-link:hover { color: #fff; }

/* ============================================================
   SINGLE POST
============================================================ */
.nf-single { padding: 28px 0; }
.nf-single__wrap { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.nf-article {}
.nf-article__header { margin-bottom: 20px; }
.nf-article__cat { margin-bottom: 10px; }
.nf-article__title {
  font-family: var(--nf-font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900; line-height: 1.2;
  color: var(--nf-text); margin-bottom: 12px;
}
.nf-article__excerpt {
  font-size: 16px; color: var(--nf-text2);
  line-height: 1.75; border-right: 3px solid var(--nf-accent);
  padding-right: 14px; margin-bottom: 16px;
}
.nf-article__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--nf-text3);
  flex-wrap: wrap; padding: 12px 0;
  border-top: 1px solid var(--nf-border);
  border-bottom: 1px solid var(--nf-border);
  margin-bottom: 20px;
}
.nf-article__meta .author-name { font-weight: 700; color: var(--nf-text2); }
.nf-article__featured { margin-bottom: 24px; border-radius: var(--nf-radius-lg); overflow: hidden; }
.nf-article__featured img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.nf-article__content { font-size: 16px; line-height: 1.85; color: var(--nf-text); }
.nf-article__content p { margin-bottom: 1.4em; }
.nf-article__content h2 { font-size: 22px; font-weight: 800; margin: 1.8em 0 .8em; color: var(--nf-text); }
.nf-article__content h3 { font-size: 18px; font-weight: 700; margin: 1.5em 0 .6em; }
.nf-article__content ul, .nf-article__content ol { margin: 1em 0 1em 0; padding-right: 24px; }
.nf-article__content li { margin-bottom: .5em; list-style: disc; }
.nf-article__content blockquote {
  border-right: 4px solid var(--nf-accent); padding: 12px 16px;
  background: var(--nf-accent-light); border-radius: 0 var(--nf-radius) var(--nf-radius) 0;
  margin: 1.5em 0; font-size: 17px; font-style: italic;
}
.nf-article__content img { border-radius: var(--nf-radius); max-width: 100%; margin: 1.5em 0; }
.nf-article__content a { color: var(--nf-accent); text-decoration: underline; }

/* Tags */
.nf-article__tags { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nf-article__tags span { font-size: 12px; color: var(--nf-text3); font-weight: 600; }

/* Author box */
.nf-author-box {
  background: var(--nf-card);
  border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  padding: 20px; margin-top: 28px;
  display: flex; gap: 16px;
}
.nf-author-box__avatar { width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.nf-author-box__name { font-size: 16px; font-weight: 800; color: var(--nf-text); }
.nf-author-box__bio { font-size: 13px; color: var(--nf-text2); margin-top: 4px; line-height: 1.65; }

/* Related posts */
.nf-related { margin-top: 32px; }
.nf-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
============================================================ */
.nf-archive { padding: 28px 0; }
.nf-archive__wrap { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.nf-archive__header { margin-bottom: 24px; }
.nf-archive__title {
  font-family: var(--nf-font-display);
  font-size: 28px; font-weight: 900; color: var(--nf-text);
}
.nf-archive__desc { font-size: 14px; color: var(--nf-text2); margin-top: 6px; }
.nf-archive-list { display: flex; flex-direction: column; gap: 0; }
.nf-archive-item {
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--nf-border);
}
.nf-archive-item__img { width: 130px; height: 96px; border-radius: var(--nf-radius); object-fit: cover; flex-shrink: 0; }
.nf-archive-item__body { flex: 1; }
.nf-archive-item__cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; display: block; }
.nf-archive-item__title { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--nf-text); margin-bottom: 6px; }
.nf-archive-item__title a { color: inherit; }
.nf-archive-item__title a:hover { color: var(--nf-accent); }
.nf-archive-item__excerpt { font-size: 13px; color: var(--nf-text2); line-height: 1.6; }
.nf-archive-item__meta { font-size: 11px; color: var(--nf-text3); margin-top: 8px; display: flex; gap: 12px; }

/* Pagination */
.nf-pagination {
  display: flex; gap: 6px; justify-content: center;
  margin-top: 28px; flex-wrap: wrap;
}
.nf-pagination a, .nf-pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--nf-radius);
  font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--nf-border);
  color: var(--nf-text2); transition: all .15s;
}
.nf-pagination a:hover { border-color: var(--nf-accent); color: var(--nf-accent); }
.nf-pagination .current {
  background: var(--nf-accent); border-color: var(--nf-accent); color: #fff;
}

/* ============================================================
   SOCIAL STRIP
============================================================ */
.nf-social-strip {
  background: var(--nf-text); color: #fff;
  padding: 16px 0;
}
.nf-social-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nf-social-strip__title { font-size: 14px; font-weight: 700; }
.nf-social-strip__desc { font-size: 11px; color: #888; margin-top: 2px; }
.nf-social-strip__btns { display: flex; gap: 8px; }
.nf-social-btn {
  padding: 8px 16px; border-radius: var(--nf-radius);
  font-size: 12px; font-weight: 700; border: none;
  font-family: var(--nf-font-primary); cursor: pointer;
  transition: opacity .15s;
}
.nf-social-btn:hover { opacity: .88; }

/* ============================================================
   FOOTER
============================================================ */
.nf-footer {
  background: var(--nf-text); color: #888;
  padding: 32px 0 16px;
}
.nf-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2a2520;
}
.nf-footer__brand .logo { font-family: var(--nf-font-display); font-size: 28px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.nf-footer__brand .logo span { color: var(--nf-accent); }
.nf-footer__brand p { font-size: 12px; color: #666; margin-top: 8px; line-height: 1.7; }
.nf-footer__col h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #ddd; margin-bottom: 12px; }
.nf-footer__col ul { display: flex; flex-direction: column; gap: 7px; }
.nf-footer__col ul li a { font-size: 12px; color: #666; transition: color .15s; }
.nf-footer__col ul li a:hover { color: #fff; }
.nf-footer__bottom {
  padding-top: 14px; display: flex;
  justify-content: space-between; font-size: 11px; color: #444;
}

/* ============================================================
   COMMENTS
============================================================ */
.nf-comments { margin-top: 32px; }
.nf-comments__title { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: var(--nf-text); }
.comment { padding: 16px 0; border-bottom: 1px solid var(--nf-border); }
.comment .comment-author img { border-radius: 50%; }
.comment-body { font-size: 14px; color: var(--nf-text2); }
.comment-meta { font-size: 11px; color: var(--nf-text3); margin-bottom: 6px; }
.comment-form input, .comment-form textarea {
  width: 100%; border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius); padding: 10px 14px;
  font-family: var(--nf-font-primary); font-size: 13px;
  color: var(--nf-text); outline: none; transition: border-color .15s;
  background: var(--nf-card);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--nf-accent); }
.comment-form .submit { background: var(--nf-accent); color: #fff; border: none; padding: 10px 24px; border-radius: var(--nf-radius); font-family: var(--nf-font-primary); font-size: 13px; font-weight: 700; cursor: pointer; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .nf-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .nf-cat-strips-grid { grid-template-columns: repeat(2, 1fr); }
  .nf-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nf-hero__grid, .nf-magazine-grid { grid-template-columns: 1fr; }
  .nf-twocol-grid { grid-template-columns: 1fr; gap: 24px; }
  .nf-latest-grid, .nf-single__wrap, .nf-archive__wrap { grid-template-columns: 1fr; }
  .nf-footer__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .nf-primary-nav { position: relative; }
  .nf-menu-toggle { display: block; }
  .nf-nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0; background: var(--nf-card); border-bottom: 2px solid var(--nf-border); box-shadow: var(--nf-shadow); padding: 8px 0; z-index: 600; }
  .nf-nav-menu.open { display: flex; }
  .nf-nav-menu > li > a { border-bottom: none; border-right: 3px solid transparent; padding: 10px 20px; }
  .nf-nav-menu > li > a:hover { border-right-color: var(--nf-accent); }
}
@media (max-width: 640px) {
  .nf-posts-grid { grid-template-columns: 1fr; }
  .nf-cat-strips-grid { grid-template-columns: 1fr; }
  .nf-related__grid { grid-template-columns: 1fr; }
  .nf-masthead__inner { flex-direction: column; text-align: center; gap: 10px; }
  .nf-masthead__center, .nf-masthead__right { display: none; }
  .nf-footer__grid { grid-template-columns: 1fr; }
  .nf-social-strip__inner { flex-direction: column; gap: 12px; text-align: center; }
  .nf-mag-sm__img, .nf-mag-sm__img-placeholder { width: 70px; }
  .nf-logo__name { font-size: 28px; }
}
