/*
Theme Name: مسار الحدث
Theme URI: https://massaralhadas.com
Author: Massar AlHadas
Author URI: https://massaralhadas.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: massar-alhadas
Tags: rtl, arabic, news, newspaper, blog, two-columns, right-sidebar
*/

/* ═══════════════════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════════════════ */
:root {
  --primary:    #C0392B;
  --primary-dk: #922B21;
  --primary-lt: #E74C3C;
  --dark:       #1C2833;
  --dark-2:     #2C3E50;
  --mid:        #566573;
  --light:      #F4F6F8;
  --white:      #FFFFFF;
  --border:     #DCE1E7;
  --text:       #212529;
  --text-2:     #495057;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius:     6px;
  --radius-lg:  12px;
  --ticker-h:   42px;
  --header-h:   74px;
  --nav-h:      48px;
  --font-main:  'Noto Kufi Arabic', 'Cairo', Tahoma, Arial, sans-serif;
  --font-head:  'Cairo', 'Noto Kufi Arabic', Tahoma, Arial, sans-serif;
  --transition: .22s ease;
}

*, *::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);
  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
═══════════════════════════════════════════════════════════ */
.breaking-ticker {
  background: var(--primary);
  color: var(--white);
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 200;
}
.ticker-label {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  letter-spacing: .5px;
  position: relative;
  z-index: 1;
}
.ticker-label::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 42px 0 0 10px;
  border-color: transparent transparent transparent var(--dark);
}
.ticker-label i { font-size: 11px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-inner {
  display: flex;
  gap: 0;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  gap: 10px;
}
.ticker-item::before {
  content: '◆';
  font-size: 8px;
  opacity: .7;
}
.ticker-item a { color: var(--white); }
.ticker-item a:hover { color: rgba(255,255,255,.75); }
@keyframes marquee {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  background: var(--dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.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: 26px; color: var(--white); line-height: 1.1; }
.site-title a { color: var(--white); }
.site-subtitle { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: 1px; text-transform: uppercase; }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-search-form { display: flex; align-items: center; gap: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; overflow: hidden; }
.header-search-form input[type="search"] { background: none; border: none; color: var(--white); padding: 7px 14px; font-size: 13px; width: 200px; outline: none; }
.header-search-form input::placeholder { color: rgba(255,255,255,.5); }
.header-search-form button { background: none; border: none; color: rgba(255,255,255,.7); padding: 7px 12px; cursor: pointer; }
.header-search-form button:hover { color: var(--white); }
.header-date { font-size: 12px; color: rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.site-nav {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 0;
}
.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 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all var(--transition);
  white-space: nowrap;
}
.main-menu li a:hover,
.main-menu li a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-home a { color: var(--primary) !important; }
.mobile-menu-btn { display: none; color: var(--dark); font-size: 22px; padding: 8px; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT & CONTAINERS
═══════════════════════════════════════════════════════════ */
.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
═══════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 80px;
  height: 2px;
  background: var(--primary);
}
.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: 4px;
  white-space: nowrap;
  padding: 5px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  transition: all var(--transition);
}
.section-more:hover { background: var(--primary); color: var(--white); }

/* Color variants for section bars */
.section-header.economy::after  { background: #27AE60; }
.section-header.world::after    { background: #2980B9; }
.section-header.sports::after   { background: #E67E22; }
.section-header.tech::after     { background: #8E44AD; }
.section-header.energy::after   { background: #F39C12; }
.section-header.arts::after     { background: #E91E63; }
.section-header.health::after   { background: #16A085; }
.section-header.security::after { background: #7F8C8D; }
.section-header.opinion::after  { background: #2C3E50; }

.section-economy .section-icon, .section-economy .section-title,
.section-economy .section-more { color: #27AE60; }
.section-economy .section-more:hover { background: #27AE60; color: #fff; border-color: #27AE60; }
.section-world   .section-icon, .section-world .section-title,
.section-world   .section-more { color: #2980B9; }
.section-world   .section-more:hover { background: #2980B9; color: #fff; border-color: #2980B9; }
.section-sports  .section-icon, .section-sports .section-title,
.section-sports  .section-more { color: #E67E22; }
.section-sports  .section-more:hover { background: #E67E22; color: #fff; border-color: #E67E22; }
.section-tech    .section-icon, .section-tech .section-title,
.section-tech    .section-more { color: #8E44AD; }
.section-tech    .section-more:hover { background: #8E44AD; color: #fff; border-color: #8E44AD; }
.section-energy  .section-icon, .section-energy .section-title,
.section-energy  .section-more { color: #E67E00; }
.section-energy  .section-more:hover { background: #E67E00; color: #fff; border-color: #E67E00; }
.section-arts    .section-icon, .section-arts .section-title,
.section-arts    .section-more { color: #E91E63; }
.section-arts    .section-more:hover { background: #E91E63; color: #fff; border-color: #E91E63; }
.section-health  .section-icon, .section-health .section-title,
.section-health  .section-more { color: #16A085; }
.section-health  .section-more:hover { background: #16A085; color: #fff; border-color: #16A085; }
.section-opinion .section-icon, .section-opinion .section-title,
.section-opinion .section-more { color: #2C3E50; }
.section-opinion .section-more:hover { background: #2C3E50; color: #fff; border-color: #2C3E50; }
.section-security .section-icon, .section-security .section-title,
.section-security .section-more { color: #7F8C8D; }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero-section { margin-bottom: 32px; }
.hero-grid { display: grid; grid-template-columns: 1fr 360px; grid-template-rows: auto auto; gap: 4px; border-radius: var(--radius-lg); overflow: hidden; }
.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(0,0,0,.85) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.hero-main-cat {
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.hero-main-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-main-title a { color: var(--white); }
.hero-main-title a:hover { color: rgba(255,255,255,.85); }
.hero-main-meta { color: rgba(255,255,255,.7); font-size: 13px; display: flex; gap: 16px; }

.hero-side { display: flex; flex-direction: column; gap: 4px; }
.hero-side-item { flex: 1; position: relative; overflow: hidden; }
.hero-side-img { width: 100%; height: 100%; min-height: 155px; object-fit: cover; }
.hero-side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-side-cat { background: var(--primary); color: var(--white); font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 3px; display: inline-block; margin-bottom: 6px; }
.hero-side-title { font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.hero-side-title a { color: var(--white); }
.hero-side-title a:hover { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════════════
   ARTICLE CARDS
═══════════════════════════════════════════════════════════ */
.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%;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.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 .4s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.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: 3px;
  letter-spacing: .3px;
}
.cat-badge.economy  { background: #27AE60; }
.cat-badge.world    { background: #2980B9; }
.cat-badge.sports   { background: #E67E22; }
.cat-badge.tech     { background: #8E44AD; }
.cat-badge.energy   { background: #E67E00; }
.cat-badge.arts     { background: #E91E63; }
.cat-badge.health   { background: #16A085; }
.cat-badge.opinion  { background: #2C3E50; }
.cat-badge.security { background: #7F8C8D; }

.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-2); 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); display: flex; align-items: center; gap: 5px; }
.article-card-author { font-size: 12px; color: var(--primary); font-weight: 600; }

/* Horizontal card (list style) */
.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);
}
.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); display: flex; gap: 12px; }

/* Large card (hero sub) */
.article-card.large .article-card-title { font-size: 20px; }
.article-card.large .article-card-img { aspect-ratio: 16/10; }

/* ═══════════════════════════════════════════════════════════
   ARTICLE GRIDS
═══════════════════════════════════════════════════════════ */
.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: 1 large + small grid */
.mixed-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.mixed-main { grid-row: 1/3; }
.mixed-sub { display: flex; flex-direction: column; gap: 4px; }
.mixed-sub-item { flex: 1; position: relative; overflow: hidden; }
.mixed-sub-item img { width: 100%; height: 100%; min-height: 155px; object-fit: cover; }
.mixed-sub-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 60%);
  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); }

/* ═══════════════════════════════════════════════════════════
   CATEGORY SECTIONS
═══════════════════════════════════════════════════════════ */
.category-section { margin-bottom: 40px; }

/* Opinion section — author avatars */
.opinion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.opinion-card { background: var(--white); border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.opinion-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--border); }
.opinion-author { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.opinion-title { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.opinion-title a:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.widget-title {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid var(--primary);
}
.widget-body { padding: 16px; }

/* Trending posts widget */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.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: .25;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  padding-top: 3px;
}
.trending-img { width: 72px; height: 56px; border-radius: 4px; 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); }

/* Currency widget */
.currency-list { display: flex; flex-direction: column; gap: 0; }
.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: #d4edda; color: #155724; }
.currency-chg.dn { background: #f8d7da; color: #721c24; }

/* Weather widget */
.weather-widget { text-align: center; padding: 20px 16px; }
.weather-city { font-size: 18px; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.weather-temp { font-size: 52px; font-weight: 900; color: var(--primary); line-height: 1; margin: 10px 0; }
.weather-desc { font-size: 14px; color: var(--mid); margin-bottom: 12px; }
.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: 4px; }
.weather-row i { font-size: 16px; color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   ARTICLE SINGLE PAGE
═══════════════════════════════════════════════════════════ */
.article-single { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.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); margin-bottom: 16px; flex-wrap: wrap; }
.article-breadcrumb a { color: var(--mid); }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb span { color: var(--border); }
.article-cat-badge { background: var(--primary); color: var(--white); padding: 4px 14px; border-radius: 4px; font-size: 12px; font-weight: 900; display: inline-block; margin-bottom: 14px; }
.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; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.article-author { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--dark); }
.article-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-date { font-size: 13px; color: var(--mid); display: flex; align-items: center; gap: 6px; }
.article-source { font-size: 13px; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.article-source a { color: var(--primary); font-weight: 600; }
.article-share { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.share-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--white);
  transition: transform var(--transition);
}
.share-btn:hover { transform: scale(1.12); }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter  { background: #1DA1F2; }
.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: 16px; line-height: 1.9; color: var(--text); }
.article-body h2 { font-family: var(--font-head); font-size: 22px; font-weight: 900; color: var(--dark); margin: 32px 0 14px; padding-right: 14px; border-right: 4px solid var(--primary); }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.article-body blockquote { border-right: 4px solid var(--primary); padding: 16px 20px; margin: 24px 0; background: var(--light); border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; color: var(--mid); font-style: italic; }
.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; max-width: 100%; }
.article-source-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--light); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; color: var(--mid); margin-bottom: 24px;
}
.article-source-tag a { color: var(--primary); font-weight: 600; }
.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(--light); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; padding: 4px 12px; border-radius: 20px; transition: all var(--transition); }
.article-tag:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Related articles */
.related-section { padding: 28px 32px; border-top: 2px solid var(--light); background: var(--light); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY PAGES
═══════════════════════════════════════════════════════════ */
.archive-header {
  background: var(--dark);
  color: var(--white);
  padding: 28px 0;
  margin-bottom: 28px;
}
.archive-title { font-family: var(--font-head); font-size: 26px; font-weight: 900; color: var(--white); }
.archive-desc { color: rgba(255,255,255,.65); 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: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.page-numbers.dots { background: none; border: none; box-shadow: none; cursor: default; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: var(--white);
  margin-top: 48px;
}
.footer-top { padding: 44px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 280px 1fr 1fr 1fr; gap: 40px; }
.footer-brand .site-title { font-size: 22px; margin-bottom: 10px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: 15px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-col-title { font-family: var(--font-head); font-weight: 900; font-size: 15px; color: var(--white); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 8px; }
.footer-col-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.55); 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(--primary); font-size: 16px; }
.footer-bottom { padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.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: .15; line-height: 1; }
.not-found-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.search-form-wrap { display: flex; gap: 0; max-width: 460px; margin: 0 auto 20px; border: 2px solid var(--border); border-radius: 28px; overflow: hidden; }
.search-form-wrap input { flex: 1; padding: 12px 20px; border: none; outline: none; font-size: 15px; font-family: var(--font-main); }
.search-form-wrap button { background: var(--primary); color: var(--white); border: none; padding: 12px 24px; font-size: 15px; cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow);
  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(-3px); }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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; }
.loading-placeholder { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@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 { grid-template-columns: repeat(2, 1fr); }
  .articles-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .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 { grid-template-columns: repeat(2, 1fr); }
  .opinion-grid { grid-template-columns: repeat(2, 1fr); }
  .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; gap: 0; position: absolute; top: 100%; right: 0; left: 0; background: var(--dark); z-index: 200; padding: 8px 0; }
  .main-menu.open li a { height: auto; padding: 12px 20px; border-bottom: none; border-left: 3px solid transparent; }
  .main-menu.open li a:hover { border-left-color: var(--primary); background: rgba(255,255,255,.05); }
  .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 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .related-grid { 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; }
}
@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; }
  .article-body { font-size: 12pt; }
}
