/* ================================================
   مدونة فضل محمد خير - التصميم الرئيسي
   Cairo Font | RTL | Professional News Design
   ================================================ */

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --accent: #D4A017;
  --accent-dark: #B8860B;
  --breaking: #C62828;
  --success: #2E7D32;
  --bg: #ECEFF1;
  --bg-dark: #CFD8DC;
  --card-bg: #FFFFFF;
  --text: #212121;
  --text-muted: #607D8B;
  --text-light: #90A4AE;
  --border: #E0E0E0;
  --header-bg: linear-gradient(135deg, #0D1B2A 0%, #1565C0 100%);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.15);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Cairo', 'Arial', sans-serif;
  --font-fallback: 'Arial', sans-serif;
}

/* ── Font fallback to reduce CLS ── */
@font-face {
  font-family: 'Cairo-Fallback';
  src: local('Arial');
  size-adjust: 105%;
  ascent-override: 105%;
  descent-override: 35%;
  line-gap-override: 0%;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: all 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Topbar ── */
.topbar {
  background: #0D1B2A;
  color: #CFD8DC;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid var(--accent);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar-right, .topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.topbar-date { font-size: 0.78rem; }
.topbar-social {
  color: #90A4AE;
  padding: 0.15rem;
  transition: color 0.2s;
}
.topbar-social:hover { color: var(--accent); }
.topbar-social svg, .topbar-social i { width: 14px; height: 14px; }
.topbar-admin-link {
  color: #B0BEC5;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}
.topbar-admin-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.topbar-admin-link i { width: 13px; height: 13px; }

/* ── Header ── */
.site-header {
  background: var(--header-bg);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-img { height: 50px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.logo-tagline {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.2); }
.mobile-menu-btn i { width: 22px; height: 22px; }

/* ── Navigation ── */
.main-nav {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  flex-wrap: wrap;
}
.nav-list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); border-bottom-color: var(--primary); }
.nav-link i { width: 14px; height: 14px; }
.nav-count {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
  font-weight: 500;
}
.nav-search { display: flex; align-items: center; padding: 0.5rem 0; }
.search-form-nav { display: flex; align-items: center; }
.search-input-nav {
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  width: 180px;
  transition: border-color 0.2s;
  direction: rtl;
}
.search-input-nav:focus { outline: none; border-color: var(--primary); }
.search-btn-nav {
  padding: 0.45rem 0.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: background 0.2s;
}
.search-btn-nav:hover { background: var(--primary-dark); }
.search-btn-nav i { width: 16px; height: 16px; }

/* ── Breaking News Ticker ── */
.breaking-bar {
  background: var(--breaking);
  color: #fff;
  overflow: hidden;
  border-bottom: 2px solid #B71C1C;
}
.breaking-inner {
  display: flex;
  align-items: stretch;
  height: 42px;
}
.breaking-label {
  background: #B71C1C;
  padding: 0 1.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.breaking-label i { width: 14px; height: 14px; }
.breaking-ticker { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
@keyframes ticker {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}
.ticker-item { font-size: 0.85rem; font-weight: 500; color: #fff; transition: color 0.2s; }
.ticker-item:hover { color: #FFE082; }
.ticker-sep { color: #EF9A9A; font-size: 1rem; }

/* ── Main Content ── */
.main-content { padding: 2rem 0; }

/* ── Hero Section ── */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.hero-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}
.hero-card:hover { box-shadow: var(--shadow-hover); }
.hero-img-wrap { position: relative; overflow: hidden; height: 360px; }
.hero-img { aspect-ratio: 16/9; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.hero-card:hover .hero-img { transform: scale(1.03); }
.hero-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%); }
.hero-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.hero-body { padding: 1.25rem 1.5rem 1.5rem; }
.hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.hero-card:hover .hero-title { color: var(--primary); }
.hero-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero-meta span { display: flex; align-items: center; gap: 0.3rem; }
.hero-meta i { width: 13px; height: 13px; }

.hero-side { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-side-card {
  display: flex;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  flex: 1;
}
.hero-side-card:hover { box-shadow: var(--shadow-hover); }
.hero-side-img { width: 110px; height: 90px; object-fit: cover; flex-shrink: 0; }
.hero-side-img-placeholder { width: 110px; background: linear-gradient(135deg, #1565C0, #42A5F5); flex-shrink: 0; }
.hero-side-body { padding: 0.65rem 0.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.cat-badge {
  display: inline-block;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}
.hero-side-title { font-size: 0.88rem; font-weight: 700; line-height: 1.4; }
.hero-side-date { font-size: 0.74rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; margin-top: auto; }
.hero-side-date i { width: 11px; height: 11px; }

/* ── Content-Sidebar Grid ── */
.content-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.content-main { min-width: 0; }

/* ── Section Header ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary);
}
.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title i { width: 18px; height: 18px; }
.section-more {
  font-size: 0.82rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}
.section-more:hover { text-decoration: underline; }
.section-more i { width: 13px; height: 13px; }

/* ── Articles Grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── Article Card ── */
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-img-link { display: block; position: relative; overflow: hidden; }
.card-img { width: 100%; height: 180px; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .card-img { transform: scale(1.05); }
.card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
}
.card-img-placeholder i { width: 32px; height: 32px; }
.card-body { padding: 0.9rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.card-cat {
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.card-cat i { width: 11px; height: 11px; }
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  flex: 1;
}
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: auto;
}
.card-meta span { display: flex; align-items: center; gap: 0.25rem; }
.card-meta i { width: 11px; height: 11px; }

/* ── Badges ── */
.badge {
  position: absolute;
  top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #fff;
  letter-spacing: 0.3px;
}
.badge-breaking { left: 0.5rem; background: var(--breaking); }
.badge-featured { right: 0.5rem; background: var(--accent); }
.badge-breaking-lg {
  display: inline-block;
  background: var(--breaking);
  color: #fff;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 80px; }
.widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.widget-title i { width: 16px; height: 16px; }

/* Popular List */
.popular-list { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.popular-item { display: flex; align-items: center; gap: 0.6rem; }
.popular-num {
  min-width: 26px; height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800; flex-shrink: 0;
}
.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-size: 0.82rem; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.popular-title:hover { color: var(--primary); }
.popular-views { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.2rem; }
.popular-views i { width: 10px; height: 10px; }
.popular-img { width: 55px; height: 45px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }

/* Categories Widget */
.cat-list { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border-right: 4px solid var(--primary);
  background: var(--bg);
  transition: all 0.2s;
}
.cat-item:hover, .cat-item.active { background: #E3F2FD; }
.cat-name { font-size: 0.85rem; font-weight: 600; }
.cat-count {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}

/* Social Follow */
.widget-social .social-follow { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.follow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}
.follow-btn:hover { opacity: 0.9; transform: translateX(-3px); }
.follow-fb { background: #1877F2; }
.follow-tw { background: #000; }
.follow-li { background: #0A66C2; }

/* ── Article Page ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}
.article-main {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.article-header { padding: 1.75rem 2rem 1.25rem; }
.article-cat {
  display: inline-block;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.article-title {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }
.article-meta i { width: 13px; height: 13px; }
.article-figure { margin: 0; }
.article-hero-img { width: 100%; max-height: 500px; object-fit: cover; }
.article-caption {
  background: #F5F5F5;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}
.article-body {
  padding: 1.75rem 2rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}
.article-tags {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.article-tags i { width: 15px; height: 15px; color: var(--text-muted); }
.tag-pill {
  padding: 0.25rem 0.75rem;
  background: #E3F2FD;
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.tag-pill:hover { background: var(--primary); color: #fff; }

/* Share Section */
.share-section {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background: #F8F9FA;
}
.share-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.share-title i { width: 15px; height: 15px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.share-btn i, .share-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.share-fb { background: #1877F2; }
.share-tw { background: #000; }
.share-li { background: #0A66C2; }
.share-wa { background: #25D366; }
.share-copy { background: #607D8B; }

/* Admin Edit Bar */
.admin-edit-bar {
  padding: 1rem 2rem;
  background: #FFF8E1;
  border-top: 2px dashed var(--accent);
  display: flex;
  justify-content: center;
}
.admin-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s;
}
.admin-edit-btn:hover { background: var(--accent-dark); }
.admin-edit-btn i { width: 15px; height: 15px; }

/* Related Articles */
.article-sidebar { position: sticky; top: 80px; }
.related-list { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.related-item { display: flex; gap: 0.65rem; transition: opacity 0.2s; }
.related-item:hover { opacity: 0.8; }
.related-img { width: 75px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-img-placeholder { width: 75px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); }
.related-img-placeholder i { width: 18px; height: 18px; }
.related-body { flex: 1; min-width: 0; }
.related-title { font-size: 0.83rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related-title:hover { color: var(--primary); }
.related-date { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; margin-top: 0.25rem; }
.related-date i { width: 10px; height: 10px; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.6rem 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { width: 12px; height: 12px; flex-shrink: 0; }

/* ── Category Page ── */
.category-hero {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border-right: 6px solid var(--primary);
}
.category-hero-inner { display: flex; flex-direction: column; gap: 0.5rem; }
.cat-badge-lg {
  display: inline-block;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.category-title { font-size: 2rem; font-weight: 900; }
.category-desc { color: var(--text-muted); }
.category-count { font-size: 0.85rem; color: var(--text-muted); }

/* ── Search Page ── */
.search-hero {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.search-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.search-q { color: var(--primary); }
.search-count { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.search-form-main { display: flex; gap: 0; max-width: 600px; }
.search-input-main {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  direction: rtl;
  transition: border-color 0.2s;
}
.search-input-main:focus { outline: none; border-color: var(--primary); }
.search-btn-main {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}
.search-btn-main:hover { background: var(--primary-dark); }
.search-btn-main i { width: 16px; height: 16px; }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; }
.page-btn i { width: 13px; height: 13px; }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state i { width: 64px; height: 64px; margin: 0 auto 1rem; display: block; opacity: 0.4; }
.empty-state p { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.75rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.75rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  font-family: var(--font);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 6rem 2rem;
}
.not-found-number {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.15;
}
.not-found-title { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.not-found-desc { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }
.not-found-actions { display: flex; justify-content: center; gap: 1rem; }

/* ── Footer ── */
.site-footer {
  background: #0D1B2A;
  color: #B0BEC5;
  margin-top: 4rem;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding: 3rem 0;
}
.footer-brand { max-width: 280px; }
.footer-logo { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; color: #90A4AE; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.6rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform 0.2s, opacity 0.2s;
}
.social-btn:hover { transform: translateY(-3px); opacity: 0.85; }
.social-btn i, .social-btn svg { width: 17px; height: 17px; }
.social-btn.fb { background: #1877F2; }
.social-btn.tw { background: #000; }
.social-btn.li { background: #0A66C2; }
.footer-section { }
.footer-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: #90A4AE;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s, padding-right 0.2s;
}
.footer-links a:hover { color: var(--accent); padding-right: 0.3rem; }
.footer-search { display: flex; margin-bottom: 0.75rem; }
.footer-search-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  direction: rtl;
}
.footer-search-input::placeholder { color: #607D8B; }
.footer-search-input:focus { outline: none; border-color: var(--accent); }
.footer-search button {
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: background 0.2s;
}
.footer-search button:hover { background: var(--accent-dark); }
.footer-search button i { width: 15px; height: 15px; display: flex; align-items: center; }
.footer-contact {
  font-size: 0.82rem;
  color: #78909C;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-contact i { width: 13px; height: 13px; }
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: #546E7A;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-section { grid-template-columns: 1fr 300px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .hero-side-card { min-width: calc(50% - 0.375rem); }
  .content-sidebar-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .nav-search { display: none; }
}

@media (max-width: 700px) {
  .main-nav .nav-list { display: none; flex-direction: column; width: 100%; }
  .main-nav.open .nav-list { display: flex; }
  .mobile-menu-btn { display: flex; align-items: center; }
  .nav-inner { flex-wrap: wrap; }
  .hero-img-wrap { height: 220px; }
  .hero-title { font-size: 1.2rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 1.4rem; }
  .article-body { padding: 1.25rem; }
  .article-header { padding: 1.25rem; }
  .share-section { padding: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .logo-main { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .share-btns { flex-direction: column; }
  .share-btn { justify-content: center; }
  .topbar-right { flex-wrap: wrap; }
}

/* ── Print ── */
@media print {
  .site-header, .main-nav, .breaking-bar, .topbar, .sidebar, .share-section,
  .admin-edit-bar, .site-footer, .breadcrumb, .article-sidebar { display: none !important; }
  .article-layout, .content-sidebar-grid { grid-template-columns: 1fr !important; }
  .article-main { box-shadow: none !important; }
  body { background: #fff !important; }
}

/* ── SEO: Visually hidden (screen readers only) ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
