/*
Theme Name: نبض المنصة
Theme URI: https://nabdalmansa.com
Author: Nabd Al Mansa
Author URI: https://nabdalmansa.com
Description: قالب إخباري عربي احترافي متكامل — RTL — تصميم عصري راقٍ بألوان بنفسجية ذهبية فاخرة
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nabd-almansa
Tags: rtl, arabic, news, newspaper, blog, two-columns, right-sidebar
*/

/* ═══════════════════════════════════════════════════════════
   COLOR SYSTEM — Royal Purple + Warm Amber Gold
   Inspired by premium Arabic media — The Guardian / Al-Araby
═══════════════════════════════════════════════════════════ */
:root {
  /* Brand — Royal Purple */
  --primary:      #7C3AED;
  --primary-dk:   #6D28D9;
  --primary-lt:   #A78BFA;
  --primary-xlt:  #F5F3FF;

  /* Accent — Warm Amber Gold (urgency / ticker) */
  --gold:         #D97706;
  --gold-lt:      #F59E0B;
  --gold-pale:    #FEF3C7;

  /* Dark tones — ultra-dark purple-black */
  --dark:         #0F0A1E;
  --dark-2:       #1C1135;
  --dark-3:       #2D1F4E;

  /* Neutral */
  --mid:          #6B7280;
  --mid-lt:       #9CA3AF;
  --light:        #FAF8FF;
  --white:        #FFFFFF;
  --border:       #EDE9FE;
  --border-md:    #DDD6FE;
  --border-std:   #E5E7EB;

  /* Text */
  --text:         #1F0B47;
  --text-2:       #374151;
  --text-3:       #6B7280;

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(15,10,30,.08), 0 1px 2px rgba(15,10,30,.05);
  --shadow:       0 4px 20px rgba(15,10,30,.11), 0 2px 8px rgba(15,10,30,.06);
  --shadow-lg:    0 16px 44px rgba(15,10,30,.15), 0 4px 16px rgba(15,10,30,.08);
  --shadow-purple:0 4px 24px rgba(124,58,237,.28);
  --shadow-gold:  0 4px 20px rgba(217,119,6,.3);

  /* Shape */
  --radius-sm:    4px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --ticker-h:     44px;
  --header-h:     72px;
  --nav-h:        52px;
  --transition:   .22s cubic-bezier(.4,0,.2,1);

  /* Typography */
  --font-main:    'Noto Kufi Arabic', 'Cairo', Tahoma, Arial, sans-serif;
  --font-head:    'Cairo', 'Noto Kufi Arabic', Tahoma, Arial, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 15px; line-height: 1.75;
  color: var(--text-2); background: var(--light);
  direction: rtl; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   BREAKING NEWS TICKER — gold strip over purple gradient
═══════════════════════════════════════════════════════════ */
.breaking-ticker {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  color: var(--white); height: var(--ticker-h);
  display: flex; align-items: center; overflow: hidden;
  position: relative; z-index: 200;
  border-bottom: 3px solid var(--gold-lt);
}
.ticker-label {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--white); font-family: var(--font-head); font-weight: 900;
  font-size: 12.5px; white-space: nowrap; padding: 0 20px; height: 100%;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; letter-spacing: .5px; position: relative; z-index: 1;
  text-transform: uppercase;
}
.ticker-label::after {
  content: ''; position: absolute; left: -12px; top: 0;
  width: 0; height: 0; border-style: solid;
  border-width: 44px 0 0 12px;
  border-color: transparent transparent transparent var(--gold);
}
.ticker-label i { font-size: 10px; animation: pulse-dot 1.4s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.25;transform:scale(.7)} }

.ticker-track { flex: 1; overflow: hidden; }
.ticker-inner {
  display: flex; animation: marquee 42s linear infinite; white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center;
  padding: 0 30px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.9); gap: 8px;
}
.ticker-item::before { content: '◆'; font-size: 7px; color: var(--gold-lt); opacity: .8; }
.ticker-item a { color: rgba(255,255,255,.9); }
.ticker-item a:hover { color: #fff; }
@keyframes marquee { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }

/* ═══════════════════════════════════════════════════════════
   HEADER — ultra-dark purple with gold logo accent
═══════════════════════════════════════════════════════════ */
.site-header {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 28px rgba(15,10,30,.35), 0 0 0 1px rgba(124,58,237,.18);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  height: var(--header-h); display: flex;
  align-items: center; justify-content: space-between; gap: 20px;
}
.site-branding { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.site-branding .logo-img { height: 44px; width: auto; }
.site-title {
  font-family: var(--font-head); font-weight: 900; font-size: 27px;
  color: var(--white); line-height: 1.1; letter-spacing: -.5px;
}
.site-title a { color: var(--white); }
.site-title span { color: var(--gold-lt); }
.site-subtitle { font-size: 11px; color: rgba(255,255,255,.38); letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.header-search-form {
  display: flex; align-items: center;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.header-search-form:focus-within {
  background: rgba(124,58,237,.18); border-color: rgba(167,139,250,.45);
}
.header-search-form input[type="search"] {
  background: none; border: none; color: var(--white);
  padding: 8px 16px; font-size: 13px; width: 210px; outline: none;
}
.header-search-form input::placeholder { color: rgba(255,255,255,.35); }
.header-search-form button {
  background: none; border: none; color: rgba(255,255,255,.58);
  padding: 8px 14px; cursor: pointer; transition: color var(--transition);
}
.header-search-form button:hover { color: var(--gold-lt); }
.header-date { font-size: 12px; color: rgba(255,255,255,.42); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header-date .date-main { color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION — white bar, purple active underline
═══════════════════════════════════════════════════════════ */
.site-nav {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 14px rgba(15,10,30,.08);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px; display: flex; align-items: center; height: var(--nav-h);
}
.main-menu { display: flex; align-items: center; gap: 0; flex: 1; }
.main-menu li a {
  display: flex; align-items: center; height: var(--nav-h);
  padding: 0 14px; font-size: 13.5px; font-weight: 700; color: var(--text);
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  transition: all var(--transition); white-space: nowrap; position: relative;
}
.main-menu li a::after {
  content: ''; position: absolute; bottom: -3px; right: 50%; left: 50%;
  height: 3px; background: var(--primary); transition: all .3s ease;
}
.main-menu li a:hover::after,
.main-menu li a[aria-current="page"]::after { right: 0; left: 0; }
.main-menu li a:hover,
.main-menu li a[aria-current="page"] { color: var(--primary); }
.nav-home a { color: var(--primary) !important; }
.mobile-menu-btn {
  display: none; color: var(--dark); font-size: 22px;
  padding: 8px; border-radius: var(--radius); transition: background var(--transition);
}
.mobile-menu-btn:hover { background: var(--primary-xlt); }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */
.site-main { max-width: 1280px; margin: 0 auto; padding: 24px 20px; }
.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.site-content { min-width: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS — purple gradient underlines
═══════════════════════════════════════════════════════════ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border-std); position: relative;
}
.section-header::after {
  content: ''; position: absolute; bottom: -2px; right: 0;
  width: 70px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lt));
  border-radius: 2px; transition: width .3s ease;
}
.section-header:hover::after { width: 130px; }
.section-title-wrap { display: flex; align-items: center; gap: 10px; }
.section-icon { color: var(--primary); font-size: 18px; }
.section-title { font-family: var(--font-head); font-weight: 900; font-size: 18px; color: var(--dark); }
.section-more {
  font-size: 13px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 6px 18px; border: 1.5px solid var(--primary);
  border-radius: var(--radius-xl); transition: all var(--transition);
}
.section-more:hover {
  background: var(--primary); color: var(--white);
  box-shadow: var(--shadow-purple); transform: translateX(-2px);
}

/* Per-category color overrides */
.section-header.economy::after  { background: linear-gradient(90deg,#059669,#34D399); }
.section-header.world::after    { background: linear-gradient(90deg,#0369A1,#38BDF8); }
.section-header.sports::after   { background: linear-gradient(90deg,#B45309,#FBBF24); }
.section-header.tech::after     { background: linear-gradient(90deg,#7C3AED,#C4B5FD); }
.section-header.energy::after   { background: linear-gradient(90deg,#B91C1C,#F87171); }
.section-header.arts::after     { background: linear-gradient(90deg,#BE185D,#F9A8D4); }
.section-header.health::after   { background: linear-gradient(90deg,#0E7490,#67E8F9); }
.section-header.security::after { background: linear-gradient(90deg,#374151,#9CA3AF); }
.section-header.opinion::after  { background: linear-gradient(90deg,#6D28D9,#A78BFA); }

.section-economy  .section-icon,.section-economy  .section-title,.section-economy  .section-more { color:#059669; }
.section-economy  .section-more:hover { background:#059669;border-color:#059669;color:#fff; }
.section-world    .section-icon,.section-world    .section-title,.section-world    .section-more { color:#0369A1; }
.section-world    .section-more:hover { background:#0369A1;border-color:#0369A1;color:#fff; }
.section-sports   .section-icon,.section-sports   .section-title,.section-sports   .section-more { color:#B45309; }
.section-sports   .section-more:hover { background:#B45309;border-color:#B45309;color:#fff; }
.section-tech     .section-icon,.section-tech     .section-title,.section-tech     .section-more { color:var(--primary); }
.section-tech     .section-more:hover { background:var(--primary);border-color:var(--primary);color:#fff; }
.section-energy   .section-icon,.section-energy   .section-title,.section-energy   .section-more { color:#B91C1C; }
.section-energy   .section-more:hover { background:#B91C1C;border-color:#B91C1C;color:#fff; }
.section-arts     .section-icon,.section-arts     .section-title,.section-arts     .section-more { color:#BE185D; }
.section-arts     .section-more:hover { background:#BE185D;border-color:#BE185D;color:#fff; }
.section-health   .section-icon,.section-health   .section-title,.section-health   .section-more { color:#0E7490; }
.section-health   .section-more:hover { background:#0E7490;border-color:#0E7490;color:#fff; }
.section-security .section-icon,.section-security .section-title,.section-security .section-more { color:#374151; }
.section-security .section-more:hover { background:#374151;border-color:#374151;color:#fff; }
.section-opinion  .section-icon,.section-opinion  .section-title,.section-opinion  .section-more { color:var(--primary-dk); }
.section-opinion  .section-more:hover { background:var(--primary-dk);border-color:var(--primary-dk);color:#fff; }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero-section { margin-bottom: 32px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 360px;
  grid-template-rows: auto auto; gap: 6px;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-main { grid-row: 1/3; position: relative; }
.hero-main-img { width: 100%; height: 480px; object-fit: cover; }
.hero-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(15,10,30,.96) 0%, rgba(15,10,30,.55) 45%,
    rgba(15,10,30,.08) 75%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 28px;
}
.hero-main-cat {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--white); font-size: 11px; font-weight: 900;
  padding: 4px 14px; border-radius: var(--radius-sm);
  display: inline-block; margin-bottom: 12px; letter-spacing: .5px; text-transform: uppercase;
}
.hero-main-title {
  font-family: var(--font-head); font-size: 26px; font-weight: 900;
  color: var(--white); line-height: 1.45; margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.hero-main-title a { color: var(--white); }
.hero-main-title a:hover { color: var(--primary-lt); }
.hero-main-meta { color: rgba(255,255,255,.6); font-size: 13px; display: flex; gap: 18px; }
.hero-main-meta i { color: var(--gold-lt); }

.hero-side { display: flex; flex-direction: column; gap: 6px; }
.hero-side-item { flex: 1; position: relative; overflow: hidden; }
.hero-side-img { width: 100%; height: 100%; min-height: 155px; object-fit: cover; transition: transform .5s ease; }
.hero-side-item:hover .hero-side-img { transform: scale(1.05); }
.hero-side-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,10,30,.92) 0%, rgba(15,10,30,.22) 60%, transparent 100%);
  padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-side-cat {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--white); font-size: 10px; font-weight: 900;
  padding: 2px 10px; border-radius: var(--radius-sm);
  display: inline-block; margin-bottom: 7px; text-transform: uppercase;
}
.hero-side-title { font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.45; }
.hero-side-title a { color: var(--white); }
.hero-side-title a:hover { color: var(--primary-lt); }

/* ═══════════════════════════════════════════════════════════
   ARTICLE CARDS — purple-tinted, premium
═══════════════════════════════════════════════════════════ */
.article-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border);
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border-md); }
.article-card-img { position: relative; overflow: hidden; aspect-ratio: 16/9; flex-shrink: 0; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-badge { position: absolute; top: 10px; right: 10px; }

.cat-badge {
  display: inline-block; background: var(--primary);
  color: var(--white); font-size: 11px; font-weight: 900;
  padding: 3px 10px; border-radius: var(--radius-sm); letter-spacing: .3px; text-transform: uppercase;
}
.cat-badge.economy  { background: #059669; }
.cat-badge.world    { background: #0369A1; }
.cat-badge.sports   { background: #B45309; }
.cat-badge.tech     { background: var(--primary); }
.cat-badge.energy   { background: #B91C1C; }
.cat-badge.arts     { background: #BE185D; }
.cat-badge.health   { background: #0E7490; }
.cat-badge.opinion  { background: var(--primary-dk); }
.cat-badge.security { background: #374151; }

.article-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.article-card-title { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; color: var(--dark); line-height: 1.55; }
.article-card-title a:hover { color: var(--primary); }
.article-card-excerpt { font-size: 13.5px; color: var(--text-3); line-height: 1.7; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
}
.article-card-time { font-size: 12px; color: var(--mid-lt); display: flex; align-items: center; gap: 5px; }
.article-card-time i { color: var(--gold); }
.article-card-author { font-size: 12px; color: var(--primary); font-weight: 700; }

.article-card-h {
  display: flex; flex-direction: row; background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); border: 1px solid var(--border);
}
.article-card-h:hover { box-shadow: var(--shadow); }
.article-card-h .card-img-h { width: 130px; min-height: 100px; flex-shrink: 0; overflow: hidden; }
.article-card-h .card-img-h img { width: 100%; height: 100%; object-fit: cover; }
.article-card-h .card-body-h { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.article-card-h .card-title-h { font-size: 14.5px; font-weight: 700; color: var(--dark); line-height: 1.5; }
.article-card-h .card-title-h a:hover { color: var(--primary); }
.article-card-h .card-meta-h { font-size: 12px; color: var(--mid-lt); display: flex; gap: 12px; }
.article-card.large .article-card-title { font-size: 20px; }
.article-card.large .article-card-img { aspect-ratio: 16/10; }

/* ═══════════════════════════════════════════════════════════
   GRIDS & LAYOUTS
═══════════════════════════════════════════════════════════ */
.articles-grid { display: grid; gap: 18px; }
.articles-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.articles-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.articles-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.articles-list { display: flex; flex-direction: column; gap: 14px; }

.mixed-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.mixed-main { grid-row: 1/3; }
.mixed-sub { display: flex; flex-direction: column; gap: 6px; }
.mixed-sub-item { flex: 1; position: relative; overflow: hidden; }
.mixed-sub-item img { width: 100%; height: 100%; min-height: 155px; object-fit: cover; transition: transform .4s ease; }
.mixed-sub-item:hover img { transform: scale(1.04); }
.mixed-sub-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,10,30,.92) 0%, transparent 65%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
}
.mixed-sub-title { font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.45; }
.mixed-sub-title a { color: var(--white); }
.mixed-sub-title a:hover { color: var(--primary-lt); }
.category-section { margin-bottom: 42px; }

/* Opinion cards */
.opinion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.opinion-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: box-shadow var(--transition), transform var(--transition);
}
.opinion-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.opinion-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px; border: 3px solid var(--primary-xlt);
  box-shadow: 0 0 0 2.5px var(--primary-lt);
}
.opinion-author { font-size: 14px; font-weight: 800; color: var(--dark); margin-bottom: 7px; }
.opinion-title { font-size: 13.5px; color: var(--text-3); line-height: 1.65; }
.opinion-title a:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.widget-title {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white); font-family: var(--font-head); font-weight: 800;
  font-size: 13.5px; padding: 12px 16px; display: flex; align-items: center; gap: 8px;
  border-bottom: 3px solid var(--gold-lt);
}
.widget-title i { color: var(--gold-lt); }
.widget-body { padding: 16px; }

.trending-list { display: flex; flex-direction: column; }
.trending-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-num {
  font-family: var(--font-head); font-size: 22px; font-weight: 900;
  color: var(--primary); opacity: .22; line-height: 1; flex-shrink: 0; width: 28px; padding-top: 3px;
}
.trending-img { width: 72px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.trending-img img { width: 100%; height: 100%; object-fit: cover; }
.trending-body { flex: 1; min-width: 0; }
.trending-title { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.5; margin-bottom: 4px; }
.trending-title a:hover { color: var(--primary); }
.trending-time { font-size: 11.5px; color: var(--mid-lt); display: flex; align-items: center; gap: 4px; }
.trending-time i { color: var(--gold); }

.currency-list { display: flex; flex-direction: column; }
.currency-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.currency-item:last-child { border-bottom: none; }
.currency-name { font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.currency-flag { font-size: 18px; }
.currency-val { font-weight: 700; color: var(--dark-2); }
.currency-chg { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.currency-chg.up { background: #D1FAE5; color: #065F46; }
.currency-chg.dn { background: #FEE2E2; color: #991B1B; }

.weather-widget { text-align: center; padding: 22px 16px; }
.weather-city { font-size: 18px; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.weather-temp {
  font-size: 56px; font-weight: 900; line-height: 1; margin: 10px 0;
  background: linear-gradient(135deg, var(--primary), var(--gold-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.weather-desc { font-size: 14px; color: var(--mid); margin-bottom: 14px; }
.weather-row { display: flex; justify-content: space-around; font-size: 13px; color: var(--text-2); }
.weather-row div { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.weather-row i { font-size: 16px; color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   SINGLE ARTICLE
═══════════════════════════════════════════════════════════ */
.article-single { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.article-hero { position: relative; }
.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; }
.article-header { padding: 28px 32px 0; }
.article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mid-lt); margin-bottom: 16px; flex-wrap: wrap; }
.article-breadcrumb a { color: var(--mid); }
.article-breadcrumb a:hover { color: var(--primary); }
.article-cat-badge { background: var(--primary); color: var(--white); padding: 4px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 900; display: inline-block; margin-bottom: 14px; text-transform: uppercase; }
.article-title { font-family: var(--font-head); font-size: 28px; font-weight: 900; color: var(--dark); line-height: 1.5; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.article-author { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--dark); }
.article-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-md); }
.article-date { font-size: 13px; color: var(--mid); display: flex; align-items: center; gap: 6px; }
.article-date i { color: var(--gold); }
.article-source { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.article-source a { color: var(--primary); font-weight: 700; }
.article-share { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.share-btn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--white); transition: transform var(--transition), box-shadow var(--transition); }
.share-btn:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter  { background: #0F0F0F; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.telegram { background: #2AABEE; }
.share-btn.copy     { background: var(--mid); }

.article-body { padding: 0 32px 32px; }
.article-body p { margin-bottom: 20px; font-size: 16.5px; line-height: 1.95; color: var(--text-2); }
.article-body h2 { font-family: var(--font-head); font-size: 22px; font-weight: 900; color: var(--dark); margin: 32px 0 14px; padding: 10px 16px; border-right: 4px solid var(--primary); background: var(--primary-xlt); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.article-body blockquote { border-right: 4px solid var(--gold-lt); padding: 16px 20px; margin: 24px 0; background: var(--gold-pale); border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; color: var(--text-2); }
.article-body ul, .article-body ol { padding-right: 24px; margin-bottom: 20px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; font-size: 15.5px; }
.article-body img { border-radius: var(--radius); margin: 20px 0; }
.article-source-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-xlt); border: 1px solid rgba(124,58,237,.18); padding: 8px 16px; border-radius: var(--radius-xl); font-size: 13px; color: var(--mid); margin-bottom: 24px; }
.article-source-tag a { color: var(--primary); font-weight: 700; }
.article-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border); }
.article-tag { background: var(--primary-xlt); border: 1px solid var(--border-md); color: var(--primary); font-size: 12.5px; padding: 4px 14px; border-radius: var(--radius-xl); transition: all var(--transition); }
.article-tag:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.related-section { padding: 28px 32px; border-top: 2px solid var(--light); background: var(--primary-xlt); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE
═══════════════════════════════════════════════════════════ */
.archive-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--white); padding: 30px 0; margin-bottom: 28px; border-bottom: 4px solid var(--primary); }
.archive-title { font-family: var(--font-head); font-size: 26px; font-weight: 900; color: var(--white); }
.archive-desc { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 4px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 32px 0; }
.page-numbers { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--white); color: var(--text-2); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); border: 1.5px solid var(--border-std); transition: all var(--transition); }
.page-numbers:hover { background: var(--primary-xlt); color: var(--primary); border-color: var(--border-md); }
.page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: var(--shadow-purple); }
.page-numbers.dots { background: none; border: none; box-shadow: none; cursor: default; }

/* ═══════════════════════════════════════════════════════════
   FOOTER — ultra-dark purple with gold accent line
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white); margin-top: 52px; border-top: 4px solid var(--primary);
}
.footer-top { padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.footer-grid { display: grid; grid-template-columns: 280px 1fr 1fr 1fr; gap: 40px; }
.footer-brand .site-title { font-size: 22px; margin-bottom: 12px; }
.footer-brand .site-title span { color: var(--gold-lt); }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.46); line-height: 1.85; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.48); font-size: 15px; transition: all var(--transition); }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); transform: translateY(-2px); }
.footer-col-title { font-family: var(--font-head); font-weight: 900; font-size: 14.5px; color: var(--white); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 8px; }
.footer-col-title i { color: var(--gold-lt); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.48); display: flex; align-items: center; gap: 7px; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-links a::before { content: '›'; color: var(--gold-lt); font-size: 16px; font-weight: 900; }
.footer-bottom { padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.33); }
.footer-bottom a { color: rgba(255,255,255,.52); }
.footer-bottom a:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   404 & SEARCH
═══════════════════════════════════════════════════════════ */
.not-found-section { text-align: center; padding: 80px 20px; }
.not-found-code { font-size: 120px; font-weight: 900; color: var(--primary); opacity: .1; line-height: 1; font-family: var(--font-head); }
.not-found-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.search-form-wrap { display: flex; max-width: 480px; margin: 0 auto 20px; border: 2px solid var(--border-md); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.search-form-wrap input { flex: 1; padding: 12px 20px; border: none; outline: none; font-size: 15px; font-family: var(--font-main); color: var(--dark); }
.search-form-wrap button { background: var(--primary); color: var(--white); border: none; padding: 12px 24px; font-size: 15px; cursor: pointer; transition: background var(--transition); }
.search-form-wrap button:hover { background: var(--primary-dk); }

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP — purple gradient
═══════════════════════════════════════════════════════════ */
#back-to-top {
  position: fixed; bottom: 28px; left: 28px; width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary-dk), var(--primary-lt));
  color: var(--white); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; box-shadow: var(--shadow-purple);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 999;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-4px) scale(1.07); }

/* ═══════════════════════════════════════════════════════════
   UTILITIES & RESPONSIVE
═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .content-with-sidebar { grid-template-columns: 1fr 280px; gap: 20px; }
  .hero-grid { grid-template-columns: 1fr 300px; }
  .footer-grid { grid-template-columns: 220px 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
}
@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .articles-grid.cols-3, .articles-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-row: auto; }
  .hero-main-img { height: 360px; }
  .hero-side { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .related-grid, .opinion-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search-form input { width: 140px; }
}
@media (max-width: 640px) {
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .main-menu { display: none; }
  .main-menu.open { display: flex; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0; background: var(--dark); z-index: 200; padding: 8px 0; box-shadow: var(--shadow-lg); }
  .main-menu.open li a { height: auto; padding: 12px 20px; border-bottom: none; }
  .main-menu.open li a::after { display: none; }
  .main-menu.open li a:hover { border-right: 3px solid var(--primary); padding-right: 17px; background: rgba(255,255,255,.04); }
  .site-nav { position: relative; }
  .articles-grid.cols-2, .articles-grid.cols-3, .articles-grid.cols-4 { grid-template-columns: 1fr; }
  .hero-side { flex-direction: column; }
  .opinion-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .archive-grid, .related-grid, .sidebar { grid-template-columns: 1fr; }
  .article-header { padding: 20px 20px 0; }
  .article-body { padding: 0 20px 24px; }
  .article-title { font-size: 22px; }
  .header-search-form { display: none; }
  .mixed-layout { grid-template-columns: 1fr; }
  #back-to-top { bottom: 18px; left: 18px; width: 40px; height: 40px; font-size: 15px; }
}
@media print {
  .site-header, .breaking-ticker, .site-nav, .sidebar, .site-footer, #back-to-top, .article-share { display: none !important; }
  .content-with-sidebar { grid-template-columns: 1fr; }
}
