/* ===================================
   إسبانيا اليوم — España Hoy
   Main Stylesheet — RTL Arabic News
   =================================== */

:root {
  --primary: #C0272D;
  --primary-dark: #9B1F24;
  --primary-light: #E8383F;
  --accent: #F5A623;
  --dark: #1A1A1A;
  --dark-2: #242424;
  --dark-3: #2E2E2E;
  --mid: #555;
  --light-mid: #888;
  --border: #E0E0E0;
  --border-dark: #333;
  --bg: #F7F7F7;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #666;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.14);
  --radius: 8px;
  --radius-sm: 4px;
  --font-ar: 'Cairo', 'Amiri', system-ui, sans-serif;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #141414;
  --white: #1E1E1E;
  --text: #E8E8E8;
  --text-light: #AAA;
  --border: #333;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.5);
  --dark-2: #252525;
  --dark-3: #2E2E2E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* =====================
   TOP BAR
   ===================== */
.top-bar {
  background: var(--dark);
  color: #DDD;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-dark);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar .date-time { display: flex; gap: 16px; align-items: center; }
.top-bar .date-time span { opacity: 0.8; }
.top-bar .top-links { display: flex; gap: 12px; }
.top-bar .top-links a {
  color: #BBB;
  font-size: 11px;
  transition: color var(--transition);
}
.top-bar .top-links a:hover { color: var(--primary-light); }
.top-bar .top-social { display: flex; gap: 8px; }
.top-bar .top-social a {
  color: #999;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
  font-size: 12px;
}
.top-bar .top-social a:hover { background: var(--primary); color: white; }

/* =====================
   HEADER
   ===================== */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 900;
  font-family: Georgia, serif;
  letter-spacing: -1px;
}
.logo-text { line-height: 1.2; }
.logo-text .ar { font-size: 20px; font-weight: 800; color: var(--primary); }
.logo-text .es { font-size: 11px; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }

.header-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 9px 40px 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
}
.header-search input:focus { border-color: var(--primary); }
.header-search input::placeholder { color: var(--text-light); }
.header-search .search-btn {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-light); cursor: pointer;
  font-size: 16px;
  transition: color var(--transition);
}
.header-search .search-btn:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.dark-toggle {
  background: none; border: none;
  cursor: pointer; padding: 6px;
  border-radius: 50%;
  color: var(--text-light);
  font-size: 18px;
  transition: all var(--transition);
}
.dark-toggle:hover { background: var(--bg); color: var(--primary); }

/* =====================
   NAVIGATION
   ===================== */
.main-nav {
  background: var(--primary);
  position: relative;
}
.main-nav .container { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  color: rgba(255,255,255,0.92);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}
.nav-item > a:hover,
.nav-item > a.active {
  color: white;
  background: rgba(0,0,0,0.15);
  border-bottom-color: var(--accent);
}
.nav-item.has-sub > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.7;
}
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--white);
  box-shadow: var(--card-shadow-hover);
  border-top: 3px solid var(--primary);
  z-index: 100;
  border-radius: 0 0 var(--radius) var(--radius);
}
.nav-item.has-sub:hover .sub-menu { display: block; }
.sub-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.sub-menu a:hover { background: var(--bg); color: var(--primary); padding-right: 20px; }

.nav-hamburger {
  display: none;
  background: none; border: none;
  color: white; font-size: 22px; cursor: pointer;
  padding: 8px;
}

/* =====================
   BREAKING NEWS TICKER
   ===================== */
.breaking-bar {
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
}
.breaking-label {
  background: var(--primary);
  padding: 0 16px;
  height: 100%;
  display: flex; align-items: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}
.breaking-label .dot {
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ticker-wrap { flex: 1; overflow: hidden; position: relative; }
.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  align-items: center;
  height: 38px;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.ticker-item {
  font-size: 13px;
  color: #DDD;
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
}
.ticker-item:hover { color: var(--accent); }
.ticker-item::before { content: '◆ '; color: var(--accent); font-size: 9px; }

/* =====================
   CONTAINER
   ===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================
   SECTION HEADERS
   ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px; height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.see-all {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  transition: gap var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.see-all:hover { gap: 8px; }

/* =====================
   HERO — FEATURED GRID
   ===================== */
.hero-section { padding: 28px 0 0; }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 16px;
}
.hero-card {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: var(--dark);
  cursor: pointer;
}
.hero-card:hover .hero-img { transform: scale(1.04); }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  opacity: 0.75;
  position: absolute; inset: 0;
}
.hero-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.hero-content {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  padding: 40px 24px 24px;
}
.hero-cat {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 40px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: 24px; font-weight: 800;
  color: white; line-height: 1.4;
  margin-bottom: 10px;
}
.hero-meta { font-size: 12px; color: rgba(255,255,255,0.65); display: flex; gap: 12px; }

.side-cards { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}
.side-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.side-card-img {
  width: 110px; height: 100%;
  min-height: 90px;
  object-fit: cover;
  background: linear-gradient(135deg, #e8e8e8, #ccc);
}
.side-card-img-placeholder {
  width: 110px;
  min-height: 90px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 24px;
}
.side-card-body { padding: 12px 12px 12px 0; }
.side-card-cat {
  font-size: 11px; font-weight: 700;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 6px;
}
.side-card-title {
  font-size: 14px; font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.side-card-date { font-size: 11px; color: var(--text-light); margin-top: 6px; }

/* =====================
   ARTICLE GRID
   ===================== */
.articles-section { padding: 32px 0; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}
.article-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #eee, #ddd);
}
.article-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 40px;
}
.article-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.article-cat-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 40px;
  padding: 2px 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.article-card-title {
  font-size: 16px; font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.article-card-summary {
  font-size: 13px; color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.article-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 10px; margin-top: auto;
}
.article-read-time { display: flex; align-items: center; gap: 4px; }

/* =====================
   LOAD MORE
   ===================== */
.load-more-wrap { text-align: center; margin-top: 32px; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 32px;
  border-radius: 40px;
  font-family: var(--font-ar);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.load-more-btn:hover { background: var(--primary); color: white; }
.load-more-btn.loading { opacity: 0.6; pointer-events: none; }

/* =====================
   TWO-COLUMN LAYOUT
   ===================== */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 0 0 40px;
}
.main-col {}
.sidebar {}

/* =====================
   SIDEBAR WIDGETS
   ===================== */
.widget {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}
.widget-header {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 16px; }

/* Most Read */
.most-read-list { display: flex; flex-direction: column; gap: 0; }
.most-read-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.most-read-item:last-child { border-bottom: none; }
.most-read-item:hover .most-read-title { color: var(--primary); }
.most-read-num {
  font-size: 22px; font-weight: 900;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  flex-shrink: 0;
  width: 28px; text-align: center;
}
.most-read-title { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text); }

/* Categories widget */
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { color: var(--primary); padding-right: 6px; }
.cat-item .cat-name { display: flex; align-items: center; gap: 8px; }
.cat-badge {
  background: var(--bg);
  font-size: 11px; color: var(--text-light);
  padding: 2px 8px;
  border-radius: 40px;
  border: 1px solid var(--border);
}

/* Newsletter */
.newsletter-widget { padding: 20px; text-align: center; }
.newsletter-widget h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.newsletter-widget p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ar); font-size: 13px;
  background: var(--bg); color: var(--text);
  outline: none;
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button {
  background: var(--primary); color: white;
  border: none; padding: 10px;
  border-radius: var(--radius);
  font-family: var(--font-ar); font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--primary-dark); }

/* Ad widget */
.ad-widget {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  min-height: 250px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--border);
  color: var(--text-light);
  font-size: 12px;
}

/* =====================
   CATEGORY TABS
   ===================== */
.category-tabs {
  display: flex; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 20px;
  padding-bottom: 4px;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 7px 16px;
  border-radius: 40px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  transition: all var(--transition);
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

/* =====================
   ARTICLE PAGE
   ===================== */
.article-page { padding: 32px 0 48px; }
.article-breadcrumb {
  font-size: 12px; color: var(--text-light);
  margin-bottom: 20px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--primary); }
.article-breadcrumb span { opacity: 0.5; }
.article-headline { font-size: 30px; font-weight: 900; line-height: 1.4; margin-bottom: 16px; }
.article-summary {
  font-size: 17px; color: var(--text-light);
  border-right: 4px solid var(--primary);
  padding-right: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.article-info-bar {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 13px; color: var(--text-light);
}
.article-info-bar .info-item { display: flex; align-items: center; gap: 6px; }
.article-hero-img {
  width: 100%; border-radius: var(--radius);
  margin-bottom: 24px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-body { font-size: 17px; line-height: 1.9; }
.article-body p { margin-bottom: 18px; }
.article-body h2 {
  font-size: 22px; font-weight: 800;
  margin: 28px 0 14px;
  color: var(--text);
  border-right: 4px solid var(--primary);
  padding-right: 14px;
}
.article-body h3 { font-size: 18px; font-weight: 700; margin: 22px 0 12px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 20px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  background: var(--bg);
  border-right: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: var(--radius);
  font-style: italic;
  color: var(--text-light);
}
.share-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.share-bar span { font-size: 14px; font-weight: 700; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 40px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  font-family: var(--font-ar);
}
.share-fb { background: #1877F2; color: white; }
.share-wa { background: #25D366; color: white; }
.share-tw { background: #1DA1F2; color: white; }
.share-cp { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }

/* FAQ */
.faq-section { margin-top: 36px; }
.faq-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 16px;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white);
  transition: background var(--transition);
}
.faq-q:hover { background: var(--bg); }
.faq-q .arrow { transition: transform var(--transition); font-size: 12px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 16px 14px;
  font-size: 14px; line-height: 1.7; color: var(--text-light);
  background: var(--white);
}
.faq-item.open .faq-a { display: block; }

/* Tags */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-light);
  padding: 4px 14px; border-radius: 40px;
  font-size: 12px;
  transition: all var(--transition);
  cursor: pointer;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }

/* =====================
   FOOTER
   ===================== */
.main-footer {
  background: var(--dark);
  color: #CCC;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-wrap { margin-bottom: 14px; }
.footer-brand .logo-text .ar { color: white; }
.footer-brand .logo-text .es { color: rgba(255,255,255,0.4); }
.footer-brand .logo-icon { background: var(--primary-dark); }
.footer-desc { font-size: 13px; line-height: 1.8; color: #999; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #444;
  display: flex; align-items: center; justify-content: center;
  color: #999; font-size: 15px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-col h4 {
  color: white; font-size: 15px; font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px; color: #999;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--primary-light); padding-right: 4px; }
.footer-links a::before { content: '◂'; font-size: 9px; color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #2A2A2A;
  padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #666;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: #666; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* =====================
   STATIC PAGES
   ===================== */
.static-page { padding: 40px 0 60px; max-width: 800px; margin: 0 auto; }
.static-page h1 { font-size: 30px; font-weight: 900; margin-bottom: 12px; }
.static-page .page-lead {
  font-size: 17px; color: var(--text-light);
  border-right: 4px solid var(--primary);
  padding-right: 16px; margin-bottom: 28px;
}
.static-page h2 { font-size: 20px; font-weight: 800; margin: 28px 0 12px; color: var(--primary); }
.static-page p { font-size: 15px; line-height: 1.9; margin-bottom: 14px; color: var(--text-light); }
.static-page ul { margin: 12px 0 14px 20px; }
.static-page li { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 6px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 700; }
.form-group input, .form-group textarea, .form-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ar); font-size: 14px;
  background: var(--bg); color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit {
  background: var(--primary); color: white; border: none;
  padding: 12px 32px; border-radius: var(--radius);
  font-family: var(--font-ar); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background var(--transition);
  align-self: flex-start;
}
.form-submit:hover { background: var(--primary-dark); }

/* =====================
   ADS ZONES
   ===================== */
.ad-zone {
  width: 100%; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 11px; color: var(--text-light);
  overflow: hidden;
}
.ad-zone.ad-banner { min-height: 90px; }
.ad-zone.ad-rectangle { min-height: 250px; width: 300px; }
.ad-zone.ad-leaderboard { min-height: 90px; }
.ad-label {
  font-size: 10px; color: var(--text-light);
  text-align: center; margin-bottom: 2px;
  text-transform: uppercase; letter-spacing: 1px;
}

/* =====================
   SKELETON LOADING
   ===================== */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* =====================
   ALERTS / TOASTS
   ===================== */
.toast {
  position: fixed; bottom: 24px; left: 24px;
  background: var(--dark); color: white;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 9999;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* =====================
   MOBILE NAV OVERLAY
   ===================== */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-panel {
  position: fixed; top: 0; right: -100%;
  width: 280px; height: 100%;
  background: var(--white);
  z-index: 1200;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.mobile-nav-panel.open { right: 0; }
.mobile-nav-header {
  background: var(--primary);
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav-header span { color: white; font-size: 16px; font-weight: 700; }
.mobile-close {
  background: none; border: none;
  color: white; font-size: 22px; cursor: pointer;
}
.mobile-nav-links a {
  display: block; padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-weight: 600;
  transition: all var(--transition);
}
.mobile-nav-links a:hover { background: var(--bg); color: var(--primary); padding-right: 26px; }

/* =====================
   SEARCH RESULTS
   ===================== */
.search-results-page { padding: 28px 0 48px; }
.search-input-big {
  width: 100%; padding: 14px 20px;
  border: 2px solid var(--primary);
  border-radius: 40px;
  font-family: var(--font-ar); font-size: 16px;
  background: var(--white); color: var(--text);
  outline: none; margin-bottom: 24px;
}

/* =====================
   BACK TO TOP
   ===================== */
.back-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 44px; height: 44px;
  background: var(--primary); color: white;
  border: none; border-radius: 50%;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(192,39,45,0.4);
  transition: all var(--transition);
  display: none; align-items: center; justify-content: center;
  z-index: 500;
}
.back-top.visible { display: flex; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }


/* =====================
   RELATED ARTICLES SECTION
   ===================== */
.related-section {
  padding: 32px 0 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: var(--primary);
}
.related-card-media {
  height: 160px;
  overflow: hidden;
  background: var(--border);
}
.related-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s;
}
.related-card:hover .related-card-img { transform: scale(1.05); }
.related-card-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: var(--bg);
}
.related-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.related-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}
.related-card-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: auto;
}

/* =====================
   ARTICLE INFO BAR
   ===================== */
.article-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 14px 0 20px;
}
.info-item {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}
.info-item i { color: var(--primary); }

/* =====================
   TAGS IMPROVED
   ===================== */
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 13px;
  text-decoration: none;
  transition: all var(--transition);
}
.tag:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* =====================
   SHARE BAR IMPROVED
   ===================== */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}
.share-bar span { font-weight: 700; font-size: 14px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 40px;
  border: none; font-family: var(--font-ar); font-size: 13px;
  font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.share-fb { background: #1877f2; color: white; }
.share-wa { background: #25d366; color: white; }
.share-tw { background: #000; color: white; }
.share-cp { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* =====================
   ARTICLE HERO IMG
   ===================== */
.article-hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 16px 0;
}

/* =====================
   FAQ SECTION
   ===================== */
.faq-section { margin: 28px 0; }
.faq-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 18px;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background var(--transition);
}
.faq-q:hover { background: var(--bg); }
.faq-q .arrow { color: var(--primary); font-size: 18px; transition: transform 0.3s; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 500px; padding: 14px 18px; }

/* =====================
   ARTICLE BREADCRUMB
   ===================== */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--primary); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }

/* =====================
   ARTICLE BODY TYPOGRAPHY
   ===================== */
.article-body { line-height: 1.9; font-size: 16px; color: var(--text); }
.article-body h2 { font-size: 22px; font-weight: 800; margin: 28px 0 12px; color: var(--primary); }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 12px 0 16px; padding-right: 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--primary); }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote {
  border-right: 4px solid var(--primary);
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-style: italic;
}

/* =====================
   ARTICLE HEADLINE & SUMMARY
   ===================== */
.article-headline {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
}
.article-summary {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  border-right: 4px solid var(--primary);
  padding-right: 16px;
  margin-bottom: 16px;
}

/* =====================
   SIDE CARD DATE
   ===================== */
.side-card-date {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* =====================
   RESPONSIVE RELATED
   ===================== */
@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .article-headline { font-size: 22px; }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 960px) {
  .featured-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 300px; grid-row: auto; }
  .side-cards { flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1; min-width: 250px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .top-bar .top-social, .top-bar .top-links { display: none; }
  .main-nav .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .article-headline { font-size: 22px; }
  .sidebar { display: block; }
  .header-search { display: none; }
  .hero-title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Cookie Consent Banner ===== */
.cc-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--dark);
  color: #fff;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  padding: 18px 20px;
  display: none;
}
.cc-banner.cc-show { display: block; animation: ccSlideUp .3s ease; }
@keyframes ccSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cc-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cc-banner-text { flex: 1; min-width: 220px; font-size: 14px; line-height: 1.7; color: #ddd; }
.cc-banner-text a { color: var(--accent); text-decoration: underline; }
.cc-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btn {
  border: none; cursor: pointer; font-family: var(--font-ar);
  font-size: 14px; font-weight: 700; padding: 10px 20px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.cc-btn-accept { background: var(--primary); color: #fff; }
.cc-btn-accept:hover { background: var(--primary-dark); }
.cc-btn-reject { background: transparent; color: #ddd; border: 1px solid #555; }
.cc-btn-reject:hover { background: rgba(255,255,255,0.08); }
.cc-btn-settings { background: transparent; color: var(--accent); text-decoration: underline; padding: 10px 4px; }
@media (max-width: 640px) {
  .cc-banner-inner { flex-direction: column; align-items: stretch; }
  .cc-banner-actions { justify-content: stretch; }
  .cc-btn { flex: 1; }
}
