/*
Theme Name: Al-Sehhy
Theme URI: https://yourdomain.com
Author: Al-Sehhy Team
Description: قالب موقع الصحي - دليلك الشامل لحياة صحية. قالب عربي متكامل مع دعم RTL وتصميم عصري ومتوافق مع Google AdSense.
Version: 15.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: al-sehhy
Tags: rtl-language, arabic, health, blog, responsive, adsense
*/

/* =========================================================
   FONTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --primary:       #3aafa9;   /* أخضر مائي */
  --primary-light: #5ec6c1;   /* أخضر مائي فاتح */
  --primary-bg:    #e6f7f6;   /* خلفية خضراء مائية */
  --accent:        #ffffff;
  --foreground:    #111111;   /* أسود للنصوص */
  --muted:         #444444;   /* رمادي داكن للنصوص الثانوية */
  --background:    hsl(177, 18%, 97%);
  --card:          #ffffff;
  --border:        hsl(177, 18%, 86%);
  --radius:        1rem;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.12);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Tajawal", "Cairo", sans-serif;
  background: var(--background);
  color: var(--foreground);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main { min-height: 70vh; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #4ecdc4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px hsla(213,70%,28%,.3);
  transition: transform .3s;
}

.site-logo:hover .logo-icon { transform: scale(1.07); }

.logo-icon svg { width: 24px; height: 24px; fill: none; stroke: white; stroke-width: 2; }

.logo-text { display: flex; flex-direction: column; }
.logo-name  { font-size: 1.5rem; font-weight: 900; color: var(--foreground); line-height: 1; }
.logo-sub   { font-size: .6rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .15em; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2.5rem; }

.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(177,30%,40%);
  padding: .5rem 0;
  position: relative;
  transition: color .25s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s;
}

.main-nav a:hover,
.main-nav a.current-menu-item { color: var(--primary); }
.main-nav a:hover::after,
.main-nav a.current-menu-item::after { transform: scaleX(1); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: .75rem;
  transition: background .2s;
}
.menu-toggle:hover { background: var(--primary-bg); }
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--foreground);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  gap: .5rem;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 700;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  color: var(--foreground);
  transition: background .2s, color .2s;
}

.mobile-nav a:hover,
.mobile-nav a.current-menu-item {
  background: var(--primary-bg);
  color: var(--primary);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(58,175,169,.92) 0%, rgba(58,175,169,.75) 50%, rgba(58,175,169,.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 5rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.5);
  color: #ffffff;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title .highlight {
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 500;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(58,175,169,.25);
}
.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58,175,169,.30);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 5rem 0; }
.section-alt { background: hsl(177,30%,97%); }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 999px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--foreground);
  margin-bottom: .75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================
   CATEGORIES GRID
   ========================================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--foreground);
  display: block;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--foreground);
}

.category-icon {
  width: 72px; height: 72px;
  border-radius: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}
.category-icon svg {
  width: 32px; height: 32px;
  stroke: currentColor;
}

.category-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; }
.category-card p  { font-size: .9rem; color: var(--muted); }

/* =========================================================
   ARTICLES GRID
   ========================================================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.article-card:hover .article-card-image img { transform: scale(1.05); }

.article-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #3aafa9;
  color: #ffffff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 999px;
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .75rem;
  line-height: 1.4;
  color: var(--foreground);
}

.article-card-excerpt {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--primary);
  font-weight: 700;
  font-size: .9rem;
  transition: gap .2s;
}
.article-read-more:hover { gap: .7rem; color: var(--primary); }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post { padding: 4rem 0; }

.single-post-header { margin-bottom: 2.5rem; }

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.post-category-badge {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .9rem;
  color: var(--muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-meta strong { color: var(--foreground); }

.post-featured-image {
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  height: 420px;
  margin-bottom: 2.5rem;
}

.post-featured-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.post-content {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--foreground);
}

.post-content p   { margin-bottom: 1.6rem; }
.post-content h2  { font-size: 1.65rem; font-weight: 800; margin: 2.75rem 0 1.1rem; color: var(--foreground); border-right: 4px solid var(--primary); padding-right: .85rem; }
.post-content h3  { font-size: 1.28rem; font-weight: 700; margin: 2rem 0 .8rem; color: var(--foreground); }
.post-content ul,
.post-content ol  { padding-right: 2rem; margin-bottom: 1.5rem; }
.post-content li  { margin-bottom: .6rem; line-height: 1.85; }
.post-content blockquote {
  border-right: 4px solid var(--primary);
  padding: 1.25rem 1.75rem;
  background: var(--primary-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.25);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--primary-bg);
  color: var(--foreground);
}

/* =========================================================
   ARCHIVE / BLOG PAGE
   ========================================================= */
.page-header {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: .75rem;
}

/* Search bar */
.search-form { display: flex; gap: .75rem; max-width: 500px; margin: 1.5rem auto 0; }

.search-form input {
  flex: 1;
  padding: .8rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--card);
  color: var(--foreground);
  outline: none;
  transition: border-color .2s;
}
.search-form input:focus { border-color: var(--primary); }

.search-form button {
  padding: .8rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.search-form button:hover { background: var(--primary-light); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #b2ebf2;
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub  { color: var(--primary-light); }

.footer-desc {
  font-size: .95rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  color: rgba(255,255,255,.75);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .65rem; }
.footer-col a  { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
  gap: .75rem;
}

/* =========================================================
   STATS SECTION
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.5rem 1.5rem;
}

.stat-value { font-size: 2.5rem; font-weight: 900; color: var(--primary); display: block; }
.stat-label { font-size: .9rem; color: var(--muted); margin-top: .4rem; font-weight: 600; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: .75rem;
  font-weight: 700;
  font-size: .95rem;
  border: 1.5px solid var(--border);
  color: var(--foreground);
  transition: all .2s;
}

.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; flex-direction: column; }
  .mobile-nav.open { display: flex; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 3rem 0; }
  .page-header { padding: 2.5rem 0 2rem; }
}

/* =========================================================
   ACCESSIBILITY: Skip to content
   ========================================================= */
.skip-to-content {
  position: absolute;
  top: -100px;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-to-content:focus { top: 0; color: #fff; }

/* =========================================================
   HEADER: Search Bar
   ========================================================= */
.header-actions { display: flex; align-items: center; gap: .5rem; }

.search-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: .75rem;
  padding: .5rem .65rem;
  cursor: pointer;
  color: var(--foreground);
  display: flex;
  align-items: center;
  transition: background .2s, border-color .2s;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.search-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.search-dropdown.open {
  max-height: 100px;
  padding: .75rem 0 1rem;
}

.header-search-form {
  display: flex;
  gap: .5rem;
  max-width: 600px;
}
.header-search-form input {
  flex: 1;
  padding: .65rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  background: var(--background);
  color: var(--foreground);
  direction: rtl;
  outline: none;
  transition: border-color .2s;
}
.header-search-form input:focus { border-color: var(--primary); }
.header-search-form button {
  padding: .65rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .2s;
}
.header-search-form button:hover { background: var(--primary-light); }

/* =========================================================
   HERO: Quick Search
   ========================================================= */
.hero-search {
  display: flex;
  gap: .5rem;
  max-width: 480px;
  margin-top: 2rem;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem .4rem .4rem 1rem;
  box-shadow: var(--shadow-md);
}
.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: .95rem;
  color: var(--foreground);
  direction: rtl;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: calc(var(--radius) - .3rem);
  padding: .6rem .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .2s;
}
.hero-search button:hover { background: var(--primary-light); }

/* =========================================================
   ADS: مناطق إعلانية واضحة — AdSense Optimized
   ========================================================= */
.ad-unit {
  text-align: center;
  overflow: hidden;
  position: relative;
}
/* تسمية "إعلان" فوق كل وحدة */
.ad-unit::before {
  content: 'إعلان';
  display: block;
  font-size: .68rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: .3rem;
  opacity: .65;
  letter-spacing: .08em;
}
.ad-unit--content {
  margin: 2.5rem 0;
  padding: 1.25rem 1rem;
  background: hsl(177, 40%, 98%);
  border: 1px solid hsl(177, 30%, 90%);
  border-radius: var(--radius);
  /* CLS prevention: حجز مساحة مسبقاً للإعلان */
  min-height: 120px;
}
/* إعلان الشريط الجانبي */
.ad-unit--sidebar {
  padding: .5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: hsl(177, 40%, 98%);
  min-height: 280px;
}
.ad-banner-section {
  padding: 1rem 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   TRUST SECTION
   ========================================================= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.25);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust-icon { font-size: 2.25rem; margin-bottom: 1rem; }
.trust-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .5rem; color: var(--foreground); }
.trust-card p  { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* =========================================================
   NEWSLETTER SECTION
   ========================================================= */
.newsletter-section { background: linear-gradient(135deg, var(--primary) 0%, #4ecdc4 100%); }
.newsletter-section .section-title,
.newsletter-section h2,
.newsletter-section p { color: #fff; }
.newsletter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-content h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: .5rem; }
.newsletter-content p  { font-size: 1rem; opacity: .9; }
.newsletter-box .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.newsletter-box .btn-primary:hover { background: #f0faf7; color: var(--primary); }

/* =========================================================
   STATS: expanded grid
   ========================================================= */
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   SINGLE POST: Social share + Medical disclaimer
   ========================================================= */
.share-buttons {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.5rem;
  padding: 1.25rem;
  background: var(--primary-bg);
  border-radius: var(--radius);
}
.share-label { font-weight: 700; font-size: .9rem; color: var(--foreground); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  color: #fff;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.share-btn--twitter   { background: #000; }
.share-btn--facebook  { background: #1877f2; }
.share-btn--whatsapp  { background: #25d366; }

.medical-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.1rem 1.25rem;
  margin: 2rem 0;
  background: #fff8e1;
  border-right: 4px solid #ffffff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .88rem;
  color: #78350f;
  line-height: 1.6;
}
.medical-disclaimer svg { flex-shrink: 0; color: #ffffff; margin-top: .1rem; }
.medical-disclaimer p { margin: 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.post-tags .tags-label { font-weight: 700; color: var(--foreground); font-size: .9rem; }
.post-tags a {
  background: var(--primary-bg);
  color: var(--primary);
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  transition: background .2s;
}
.post-tags a:hover { background: var(--primary); color: #fff; }

/* Related posts in sidebar */
.related-post-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--foreground);
}
.related-post-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-post-thumb {
  width: 72px;
  height: 60px;
  flex-shrink: 0;
  border-radius: .6rem;
  overflow: hidden;
}
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-info h4 {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .25rem;
  transition: color .2s;
}
.related-post-item:hover .related-post-info h4 { color: var(--primary); }
.related-post-info span { font-size: .78rem; color: var(--muted); }

/* Categories list in sidebar */
.categories-list { list-style: none; }
.categories-list li { margin-bottom: .5rem; }
.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--foreground);
  font-size: .9rem;
  font-weight: 600;
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.categories-list a:hover { color: var(--primary); }
.cat-count {
  background: var(--primary-bg);
  color: var(--primary);
  font-size: .75rem;
  padding: .1rem .55rem;
  border-radius: 999px;
}

/* =========================================================
   FOOTER: improved
   ========================================================= */
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: hsla(180,10%,30%,1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s, transform .2s;
  font-size: .85rem;
  text-decoration: none;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); color: #fff; }

/* =========================================================
   SCREEN READER ONLY
   ========================================================= */
.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;
}

/* =========================================================
   NO CONTENT MESSAGE
   ========================================================= */
.no-content-msg {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* =========================================================
   RESPONSIVE ADDITIONS
   ========================================================= */
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-box { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .hero-search { max-width: 100%; }
  .share-buttons { gap: .5rem; }
  .trust-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   AdSense: وسم "إعلان" مرئي (مطلوب بسياسات AdSense)
   ========================================================= */
.ad-unit {
  position: relative;
  margin: 2rem auto;
  max-width: 100%;
  text-align: center;
}
.ad-unit::before {
  content: 'إعلان';
  display: block;
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-align: center;
  margin-bottom: .35rem;
  text-transform: uppercase;
  opacity: .7;
}
.ad-banner-section {
  padding: 1rem 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   TRUST BADGES: شارات الثقة في المقالات
   ========================================================= */
.post-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: hsl(177,60%,97%);
  border: 1px solid hsl(177,60%,85%);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius);
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  background: white;
  border: 1px solid hsl(177,60%,80%);
  border-radius: 999px;
  padding: .25rem .75rem;
}
.trust-badge svg { flex-shrink: 0; }

/* =========================================================
   AUTHOR BOX: صندوق المؤلف
   ========================================================= */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary-bg);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar svg { color: var(--primary); }
.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--foreground);
}
.author-info .author-title {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: .5rem;
}
.author-info p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================================
   TABLE OF CONTENTS: فهرس المقال
   ========================================================= */
.toc-box {
  background: hsl(177,30%,97%);
  border: 1px solid var(--border);
  border-right: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.toc-box-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.toc-list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}
.toc-list li {
  counter-increment: toc;
  font-size: .875rem;
  padding: .25rem 0;
  border-bottom: 1px solid var(--border);
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  color: var(--foreground);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
}
.toc-list a::before {
  content: counter(toc);
  min-width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.toc-list a:hover { color: var(--primary); }

/* =========================================================
   MEDICAL SOURCE BOX: مصدر طبي
   ========================================================= */
.medical-source-box {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: hsl(220,60%,97%);
  border: 1px solid hsl(220,60%,85%);
  border-radius: calc(var(--radius) * .6);
  margin: 1.5rem 0;
  font-size: .85rem;
}
.medical-source-box svg { color: hsl(220,60%,50%); flex-shrink: 0; margin-top: .1rem; }
.medical-source-box a { color: hsl(220,60%,45%); font-weight: 600; }

/* =========================================================
   ENHANCED PAGINATION
   ========================================================= */
.pagination { display: flex; justify-content: center; margin: 2.5rem 0; }
.pagination .page-numbers {
  display: inline-flex;
  gap: .4rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .page-numbers li a,
.pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all .2s;
  text-decoration: none;
}
.pagination .page-numbers li a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.pagination .page-numbers li .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =========================================================
   BREADCRUMB: مسار التنقل
   ========================================================= */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.post-breadcrumb a { color: var(--primary); transition: color .2s; }
.post-breadcrumb a:hover { color: var(--primary-light); }
.post-breadcrumb span[aria-hidden] { opacity: .5; }
.post-breadcrumb span[aria-current] { color: var(--muted); }

/* =========================================================
   SKIP LINK: وصول سريع للمحتوى
   ========================================================= */
.skip-to-content {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--primary);
  color: white;
  padding: .5rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
  z-index: 10000;
  transition: top .2s;
  text-decoration: none;
}
.skip-to-content:focus { top: 0; }

/* =========================================================
   ADMIN: Dashboard widget styles
   ========================================================= */
.al-sehhy-admin-notice {
  direction: rtl;
  text-align: right;
  padding: 1rem 1.5rem;
}
.al-sehhy-checklist {
  list-style: none;
  padding: 0;
  margin: .5rem 0;
}
.al-sehhy-checklist li {
  padding: .3rem 0;
  font-size: .9rem;
}

/* =========================================================
   IMPROVED ARTICLE CONTENT TYPOGRAPHY
   ========================================================= */
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2rem;
  margin-bottom: .75rem;
  line-height: 1.4;
  color: var(--foreground);
  font-weight: 700;
}
.post-content h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--primary-bg);
  padding-bottom: .4rem;
}
.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.1rem; }
.post-content p {
  margin-bottom: 1.2rem;
  line-height: 1.85;
  color: hsl(177,22%,25%);
}
.post-content ul,
.post-content ol {
  padding-right: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-content li { margin-bottom: .45rem; line-height: 1.75; }
.post-content blockquote {
  border-right: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--primary-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--foreground);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
  overflow-x: auto;
  display: block;
}
.post-content th,
.post-content td {
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  text-align: right;
}
.post-content th {
  background: var(--primary-bg);
  font-weight: 700;
  color: var(--primary);
}
.post-content tr:nth-child(even) { background: hsl(177,20%,98%); }
.post-content img {
  border-radius: calc(var(--radius) * .6);
  box-shadow: var(--shadow-md);
  margin: 1.5rem auto;
}
.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content strong { font-weight: 700; color: var(--foreground); }
.post-content code {
  background: hsl(177,30%,95%);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .88em;
  font-family: monospace;
  direction: ltr;
  display: inline-block;
}

/* =========================================================
   PAGE.PHP STYLES
   ========================================================= */
.page-content-wrap {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.page-content-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.page-content-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.3;
  margin-bottom: .5rem;
}
.page-content-meta {
  font-size: .85rem;
  color: var(--muted);
}

/* =========================================================
   SEARCH RESULTS
   ========================================================= */
.search-results-header {
  background: var(--primary-bg);
  padding: 2rem 0;
  margin-bottom: 2rem;
}
.search-results-count {
  font-size: .9rem;
  color: var(--muted);
  margin-top: .4rem;
}

/* =========================================================
   IMPROVED CARD HOVER EFFECTS
   ========================================================= */
.article-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card-image img {
  transition: transform .4s ease;
}
.article-card:hover .article-card-image img {
  transform: scale(1.04);
}

/* =========================================================
   NEWSLETTER FORM: تحسين نموذج القائمة البريدية
   ========================================================= */
.newsletter-section { background: linear-gradient(135deg, #00acc1, #b2ebf2); }
.newsletter-box { gap: 2.5rem; }
.newsletter-section .newsletter-content h2 { color: white; }
.newsletter-section .newsletter-content p { color: rgba(255,255,255,.8); }
.mc4wp-form input[type="email"] {
  padding: .75rem 1.25rem;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,.15);
  color: white;
  font-size: 1rem;
  width: 100%;
  outline: none;
  font-family: inherit;
}
.mc4wp-form input[type="email"]::placeholder { color: rgba(255,255,255,.6); }
.mc4wp-form input[type="email"]:focus { border-color: white; }
.mc4wp-form input[type="submit"] {
  padding: .75rem 1.75rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.mc4wp-form input[type="submit"]:hover { background: var(--primary-bg); }

/* =========================================================
   PRINT STYLES: للطباعة
   ========================================================= */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .share-buttons,
  .ad-unit,
  #back-to-top { display: none !important; }
  .post-content { font-size: 12pt; line-height: 1.6; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* =========================================================
   FOCUS VISIBLE: وصولية لوحة المفاتيح
   ========================================================= */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible { box-shadow: 0 0 0 3px rgba(26,58,107,.35); }

/* =========================================================
   DARK MODE: وضع الليل
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --background:  hsl(215,28%,9%);
    --card:        hsl(215,25%,13%);
    --foreground:  hsl(177,15%,90%);
    --muted:       hsl(177,10%,55%);
    --border:      hsl(177,15%,20%);
    --primary-bg:  hsl(177,40%,15%);
    --shadow-sm:   0 1px 3px rgba(0,0,0,.4);
    --shadow-md:   0 4px 16px rgba(0,0,0,.45);
    --shadow-lg:   0 10px 40px rgba(0,0,0,.55);
  }
  .site-header { background: rgba(20,28,32,.92); }
  .article-card,
  .sidebar-widget,
  .trust-card,
  .author-box,
  .toc-box { background: var(--card); }
  .section-alt { background: hsl(177,18%,12%); }
  .hero-search input { background: rgba(255,255,255,.12); color: white; }
  .hero-search input::placeholder { color: rgba(255,255,255,.5); }
  .post-content p { color: hsl(177,15%,78%); }
  .post-content h2,
  .post-content h3,
  .post-content h4 { color: hsl(177,15%,90%); }
  .post-content code { background: hsl(177,20%,18%); }
  .post-content blockquote { background: hsl(177,30%,13%); }
  .medical-disclaimer { background: hsl(35,60%,12%); border-color: hsl(35,60%,25%); }
  .post-trust-badges { background: hsl(177,50%,20%); border-color: hsl(177,30%,22%); }
  .toc-box { background: hsl(177,18%,14%); }
  .medical-source-box { background: hsl(220,40%,14%); border-color: hsl(220,40%,22%); }
  .footer-social a { background: hsl(177,15%,20%); }
  .stats-section { background: var(--card); }
  .stat-card { background: hsl(177,18%,16%); }
  .pagination .page-numbers li a,
  .pagination .page-numbers li span { background: var(--card); color: var(--foreground); border-color: var(--border); }
  .categories-list a { color: var(--foreground); }
}

/* =========================================================
   HIGH CONTRAST: تباين عالٍ
   ========================================================= */
@media (forced-colors: active) {
  .btn, .article-read-more { border: 2px solid ButtonText; }
  .hero { background: Canvas; }
  .hero-overlay { display: none; }
}

/* =========================================================
   POST NAVIGATION: التنقل بين المقالات
   ========================================================= */
.post-navigation {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.post-nav-item {
  flex: 1;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--foreground);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.post-nav-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--foreground);
}
.post-nav-next { text-align: left; align-items: flex-start; }
.post-nav-prev { text-align: right; align-items: flex-end; }
.post-nav-label {
  font-size: .75rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post-nav-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* =========================================================
   POST TAGS: وسوم المقال
   ========================================================= */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin: 1.5rem 0;
}
.post-tags .tags-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
}
.post-tags a {
  display: inline-flex;
  align-items: center;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid hsl(177,60%,80%);
  border-radius: 999px;
  padding: .25rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.post-tags a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */
@media (max-width: 768px) {
  .page-contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   IMAGE ZOOM cursor
   ========================================================= */
.post-content img { cursor: zoom-in; }

/* =========================================================
   CODE BLOCK COPY BUTTON
   ========================================================= */
.post-content pre {
  position: relative;
  background: hsl(177,20%,12%);
  color: hsl(177,15%,88%);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.7;
  margin: 1.5rem 0;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* =========================================================
   ADMIN WORD COUNT COLUMN
   ========================================================= */
.column-word_count { width: 80px; text-align: center; }

/* =========================================================
   READING PROGRESS: visible while scrolling
   ========================================================= */
#reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #4ec9c3);
  z-index: 9999;
  transition: width .1s linear;
}

/* =========================================================
   CONTACT FORM INPUT FOCUS ring
   ========================================================= */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(26,58,107,.15);
}

/* =========================================================
   FOOTER SOCIAL LINKS — hover color per platform
   ========================================================= */
.footer-social a:nth-child(1):hover { background: #000; }   /* X */
.footer-social a:nth-child(2):hover { background: #1877f2; } /* Facebook */
.footer-social a:nth-child(3):hover { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); } /* IG */

/* =========================================================
   CATEGORY ARCHIVE: empty state
   ========================================================= */
.no-content-msg {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* =========================================================
   SCREEN READER ONLY
   ========================================================= */
.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;
}

/* =========================================================
   STATS SECTION ANIMATION
   ========================================================= */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-card { animation: countUp .5s ease both; }
.stat-card:nth-child(2) { animation-delay: .1s; }
.stat-card:nth-child(3) { animation-delay: .2s; }
.stat-card:nth-child(4) { animation-delay: .3s; }

/* =========================================================
   MOBILE: stack contact grid
   ========================================================= */
@media (max-width: 700px) {
  .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   V4 IMPROVEMENTS
   ═══════════════════════════════════════════════════════════ */

/* ── Hero v4: إحصائيات داخل الهيرو ──────────────────────── */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  color: rgba(255,255,255,.9);
}
.hero-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat span {
  font-size: .8rem;
  opacity: .8;
  letter-spacing: .03em;
}

/* ── Hero: btn variants ────────────────────────────────────── */
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border: 2px solid transparent;
}
.btn-white:hover { background: var(--primary-bg); }

/* ── Category card: arrow indicator ────────────────────────── */
.category-card { position: relative; overflow: hidden; }
.cat-arrow {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.category-card:hover .cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Why Section ────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.why-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--foreground);
}
.why-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ── Per Category Section ──────────────────────────────────── */
.per-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 700px) { .per-cat-grid { grid-template-columns: 1fr; } }

.per-cat-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.per-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1.25rem;
  background: var(--primary-bg);
}
.per-cat-list {
  list-style: none;
  padding: .5rem 0;
}
.per-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  text-decoration: none;
  color: var(--foreground);
  transition: background .2s, color .2s;
  border-bottom: 1px solid var(--border);
}
.per-cat-list li:last-child .per-cat-link { border-bottom: none; }
.per-cat-link:hover { background: var(--primary-bg); color: var(--primary); }
.per-cat-title { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.per-cat-meta { font-size: .75rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.empty-state h3 { font-size: 1.2rem; margin: .75rem 0 .5rem; color: var(--foreground); }

/* ── Article card: link color reset ────────────────────────── */
.article-card-title a {
  color: inherit;
  text-decoration: none;
}
.article-card-title a:hover { color: var(--primary); }

/* ── Improved hero search: icon inside ─────────────────────── */
.hero-search { position: relative; }
.hero-search input { padding-right: 3rem !important; }

/* ── Improved trust card ────────────────────────────────────── */
.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ── dark mode additions ────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .why-card { background: var(--card); }
  .per-cat-col { background: var(--card); }
  .per-cat-header { background: hsl(177,30%,13%); }
  .hero-stat { color: rgba(255,255,255,.85); }
}

/* ── Improved archive page header ──────────────────────────── */
.archive-header-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1rem;
}
.archive-header-inner h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }

/* ── Single: sticky sidebar on large screens ────────────────── */
@media (min-width: 1024px) {
  .sidebar { position: sticky; top: 90px; align-self: start; }
}

/* ── Footer: about desc ─────────────────────────────────────── */
.footer-desc { line-height: 1.75; font-size: .88rem; color: hsl(180,10%,55%); margin-top: .75rem; }

/* ── Smooth hero image transition ──────────────────────────── */
.hero-bg img { object-position: center; }

/* ── Print: hide ads ────────────────────────────────────────── */
@media print { .ad-unit, .ad-banner-section { display: none !important; } }

/* ── Category Filter Bar ─────────────────────────────────── */
.cat-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--foreground);
  text-decoration: none;
  transition: all .2s;
}
.cat-filter-btn:hover,
.cat-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.cat-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .7rem;
  padding: 0 .35rem;
}
.cat-filter-btn.active .cat-filter-count { background: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════════════════
   V5 — تحسينات الواجهة والأيقونات
   ═══════════════════════════════════════════════════════════ */

/* ── Hero Search: أيقونة داخل الحقل ──────────────────────── */
.hero-search-inner {
  position: relative;
  display: flex;
  gap: .5rem;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: .35rem .35rem .35rem 1.25rem;
  backdrop-filter: blur(8px);
  max-width: 520px;
}
.hero-search-inner input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  padding: .4rem 0;
  min-width: 0;
}
.hero-search-inner input::placeholder { color: rgba(255,255,255,.65); }
.hero-search-inner button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .55rem 1.4rem;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  white-space: nowrap;
}
.hero-search-inner button:hover { background: var(--primary-light); }
.search-icon-inner {
  color: rgba(255,255,255,.6);
  flex-shrink: 0;
  margin-right: -.25rem;
}

/* ── Category Card: محسّن ───────────────────────────────── */
.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--foreground);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--foreground);
}
.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .22s;
}
.category-card:hover .category-icon { transform: scale(1.08); }
.category-info { flex: 1; min-width: 0; }
.category-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.category-info p { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.cat-arrow {
  color: var(--primary);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity .22s, transform .22s;
  flex-shrink: 0;
}
.category-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* ── Section Header: عنوان القسم ─────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}
.section-header .section-title { margin-bottom: 0; }
.section-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: gap .2s;
}
.section-more:hover { gap: .55rem; }

/* ── Tag Pills في صفحة المقال ───────────────────────────── */
.post-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .85rem 0 0;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.tag-pill--date {
  background: var(--primary-bg);
  color: var(--primary);
}

/* ── Why Card: أيقونات SVG بدل Emoji ────────────────────── */
.why-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── Per Cat: تحسينات ────────────────────────────────────── */
.per-cat-more {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.per-cat-more:hover { color: var(--primary); }

/* ── Admin: إضافة مقال سريعة ─────────────────────────────── */
.al-quick-add-bar {
  background: var(--primary);
  color: #fff;
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  border-radius: 6px;
  margin: .75rem 0;
}
.al-quick-add-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255,255,255,.2);
  padding: .25rem .75rem;
  border-radius: 999px;
  transition: background .2s;
}
.al-quick-add-bar a:hover { background: rgba(255,255,255,.35); }

/* ── Images: نسبة عرض محافظة على الجودة ─────────────────── */
.article-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .article-card-image img { transform: scale(1.05); }

/* ── Post Featured Image ─────────────────────────────────── */
.post-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  aspect-ratio: 16/7;
}
.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Responsive fixes ────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-search-inner { border-radius: 12px; flex-wrap: wrap; }
  .hero-search-inner button { width: 100%; justify-content: center; border-radius: 8px; }
  .category-card { padding: .9rem 1rem; }
  .why-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: .5rem; }
}

/* ── Dark Mode تحسينات ───────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .category-card { background: var(--card); border-color: var(--border); }
  .hero-search-inner { background: rgba(255,255,255,.08); }
  .tag-pill--date { background: hsl(177,30%,18%); }
}

/* ═══════════════════════════════════════════════════════════
   V6 — تحسينات شاملة
   ═══════════════════════════════════════════════════════════ */

/* ── NAV: قائمة أفضل مع تأثيرات hover ──────────────────── */
.main-nav li { display: inline-block; }
.main-nav li a {
  display: inline-block;
  padding: .5rem .85rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  border-radius: 8px;
  transition: background .18s, color .18s;
  position: relative;
}
.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 2px; right: 12px; left: 12px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .22s;
}
.main-nav li a:hover { color: var(--primary); background: var(--primary-bg); }
.main-nav li.current-menu-item a { color: var(--primary); }
.main-nav li.current-menu-item a::after { transform: scaleX(1); }

/* ── HERO: لا hero-badge، تحسين نص ──────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.95);
  padding: .35rem .95rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}
.hero-title { font-size: clamp(1.8rem, 5vw, 2.9rem); line-height: 1.2; margin-bottom: 1rem; }
.hero-title .highlight {
  color: #4ec9c3;
  position: relative;
}
.hero-desc { font-size: clamp(.9rem, 2vw, 1.1rem); max-width: 560px; opacity: .9; margin-bottom: 1.5rem; line-height: 1.75; }

/* ── CATEGORIES GRID: 2 عمود في الموبايل ────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
@media (max-width: 560px) {
  .categories-grid { grid-template-columns: 1fr; }
}

/* ── ARTICLE CARDS: grid ─────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 480px) {
  .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── ARTICLE CARD: تحسين كامل ───────────────────────────── */
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .6rem;
}
.article-card-meta {
  display: flex;
  gap: .75rem;
  font-size: .78rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.article-card-title a { color: var(--foreground); text-decoration: none; }
.article-card-title a:hover { color: var(--primary); }
.article-card-excerpt {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: .5rem;
  transition: gap .2s;
}
.article-read-more:hover { gap: .65rem; }
.article-category-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: #3aafa9; color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  letter-spacing: .02em;
}

/* ── SINGLE POST: محتوى أفضل ────────────────────────────── */
.single-article-inner { background: var(--card); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
@media (max-width: 768px) { .single-article-inner { padding: 1.25rem; } }
.post-category-badge {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .85rem;
  text-decoration: none;
}
.post-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--foreground);
}
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  margin-top: 1.75rem;
  align-items: start;
}
@media (max-width: 900px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── RELATED POSTS ───────────────────────────────────────── */
.related-post-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--foreground);
  transition: color .2s;
}
.related-post-item:last-child { border-bottom: none; }
.related-post-item:hover { color: var(--primary); }
.related-post-thumb {
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-info h4 { font-size: .85rem; font-weight: 600; line-height: 1.35; margin-bottom: .2rem; }
.related-post-info span { font-size: .75rem; color: var(--muted); }

/* ── SHARE BUTTONS ───────────────────────────────────────── */
.share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.5rem 0;
}
.share-label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  color: #fff;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn--twitter   { background: #000; }
.share-btn--facebook  { background: #1877f2; }
.share-btn--whatsapp  { background: #25d366; }

/* ── MEDICAL DISCLAIMER ──────────────────────────────────── */
.medical-disclaimer {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: hsl(40,90%,97%);
  border: 1px solid hsl(40,80%,85%);
  border-right: 4px solid hsl(40,80%,55%);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: .85rem;
  line-height: 1.65;
  color: hsl(40,50%,25%);
}
.medical-disclaimer svg { flex-shrink: 0; color: hsl(40,80%,45%); margin-top: .1rem; }

/* ── FOOTER: أفضل ────────────────────────────────────────── */
.site-footer {
  background: hsl(177,25%,12%);
  color: hsl(177,10%,65%);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
  color: hsl(177,10%,55%);
  text-decoration: none;
  font-size: .86rem;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a::before { content: '›'; color: var(--primary); font-weight: 900; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.25rem 0;
  font-size: .8rem;
  color: hsl(177,10%,45%);
}
.footer-social {
  display: flex;
  gap: .5rem;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: hsl(177,20%,18%);
  display: flex; align-items: center; justify-content: center;
  color: hsl(177,10%,60%);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  margin: 3rem 0 0;
}
.page-numbers { display: inline-flex; gap: .4rem; list-style: none; flex-wrap: wrap; justify-content: center; }
.page-numbers li a,
.page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--card);
  border: 1.5px solid var(--border);
  transition: all .2s;
  text-decoration: none;
  padding: 0 .75rem;
}
.page-numbers li a:hover,
.page-numbers li .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── SIDEBAR WIDGET ──────────────────────────────────────── */
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.widget-title {
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--primary-bg);
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.widget-title::before {
  content: '';
  display: block;
  width: 4px; height: 18px;
  background: var(--primary);
  border-radius: 2px;
}
.categories-list { list-style: none; }
.categories-list li { margin-bottom: .35rem; }
.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .6rem;
  border-radius: 8px;
  color: var(--foreground);
  text-decoration: none;
  font-size: .88rem;
  transition: background .2s, color .2s;
}
.categories-list a:hover { background: var(--primary-bg); color: var(--primary); }
.cat-count {
  background: var(--primary-bg);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
}

/* ── SEARCH PAGE ─────────────────────────────────────────── */
.search-highlight { background: hsl(60,90%,85%); border-radius: 3px; padding: 0 .15rem; }

/* ── 404 PAGE ────────────────────────────────────────────── */
.error-404-wrap { text-align: center; padding: 5rem 1rem; }
.error-404-wrap h1 { font-size: 6rem; color: var(--primary); line-height: 1; margin-bottom: .5rem; }

/* ── READING PROGRESS BAR ────────────────────────────────── */
#reading-progress {
  position: fixed; top: 0; right: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), #4ec9c3);
  z-index: 9999;
  transition: width .1s linear;
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 1.75rem; left: 1.75rem;
  width: 42px; height: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .25s;
  box-shadow: 0 4px 16px rgba(26,58,107,.4);
  z-index: 999;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-3px); }

/* ── DARK MODE ───────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .article-card { background: var(--card); }
  .single-article-inner { background: var(--card); }
  .sidebar-widget { background: var(--card); }
  .medical-disclaimer { background: hsl(40,30%,12%); border-color: hsl(40,30%,25%); color: hsl(40,30%,75%); }
  .toc-box { background: hsl(177,20%,14%); }
}

/* ═══════════════════════════════════════════════════════════
   V7 FINAL — تحسينات اكتمال الموقع
   ═══════════════════════════════════════════════════════════ */

/* ── ROOT VARIABLES: ضبط متغيرات CSS الأساسية ────────────── */
:root {
  --primary:     #3aafa9;
  --primary-light:#4ec9c3;
  --primary-bg:  #e0f2fe;
  --accent:      #ffffff;
  --background:  #f8fafc;
  --card:        #ffffff;
  --foreground:  #000000;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --radius:      12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.14);
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  direction: rtl;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }

/* ── CONTAINER ────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--primary-bg); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.5rem; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: .92rem;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: all .22s; white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost    { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-white    { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-bg); }
.btn-lg { padding: .82rem 2rem; font-size: 1rem; }

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1.5rem;
}
.site-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 1.1rem; font-weight: 900; color: var(--foreground); }
.logo-sub  { font-size: .68rem; color: var(--muted); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav li { list-style: none; }
.main-nav li a {
  display: inline-block; padding: .45rem .85rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600; color: var(--foreground);
  text-decoration: none; transition: background .18s, color .18s;
}
.main-nav li a:hover,
.main-nav li.current-menu-item > a { color: var(--primary); background: var(--primary-bg); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.header-icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--foreground); transition: all .2s;
}
.header-icon-btn:hover { background: var(--primary-bg); color: var(--primary); border-color: var(--primary); }

/* Search dropdown */
.search-wrap { position: relative; }
.search-dropdown {
  position: absolute; top: calc(100% + .5rem); left: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .75rem; min-width: 300px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .22s;
}
.search-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.search-dropdown form { display: flex; gap: .5rem; }
.search-dropdown input {
  flex: 1; padding: .6rem .9rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: .9rem; outline: none;
}
.search-dropdown input:focus { border-color: var(--primary); }
.search-dropdown button { padding: .6rem 1rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: .5rem; cursor: pointer; color: var(--foreground);
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; transition: all .25s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column; gap: .25rem;
  position: absolute; top: 100%; right: 0; left: 0;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-md);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s ease, opacity .25s;
}
.mobile-nav.active { display: flex; max-height: 500px; opacity: 1; }
.mobile-nav li { list-style: none; }
.mobile-nav li a {
  display: block; padding: .65rem .85rem; border-radius: 8px;
  font-size: .95rem; font-weight: 600; color: var(--foreground); text-decoration: none;
}
.mobile-nav li a:hover { background: var(--primary-bg); color: var(--primary); }

@media (max-width: 900px) { .main-nav { display: none; } .menu-toggle { display: flex; } }
@media (min-width: 901px) { .mobile-nav { display: none !important; } }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(37,99,168,.55) 100%); }
.hero .container { position: relative; z-index: 1; padding: 5rem 1.25rem; }
.hero-content { max-width: 650px; color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px); padding: .3rem .9rem;
  border-radius: 999px; font-size: .8rem; font-weight: 600;
  margin-bottom: 1.1rem; color: rgba(255,255,255,.9);
}
.hero-title { font-size: clamp(1.8rem,5vw,2.9rem); font-weight: 900; line-height: 1.2; margin-bottom: .85rem; }
.hero-title .highlight { color: #4ec9c3; }
.hero-desc { font-size: 1.05rem; opacity: .88; line-height: 1.75; margin-bottom: 1.5rem; max-width: 540px; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 900; }
.hero-stat span   { font-size: .78rem; opacity: .75; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* Hero search */
.hero-search-inner {
  display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: .3rem .3rem .3rem 1.1rem;
  backdrop-filter: blur(8px); max-width: 500px;
}
.hero-search-inner input {
  flex: 1; background: none; border: none; color: #fff;
  font-family: inherit; font-size: .92rem; outline: none; min-width: 0;
}
.hero-search-inner input::placeholder { color: rgba(255,255,255,.55); }
.hero-search-inner button {
  background: var(--primary); color: #fff; border: none;
  border-radius: 999px; padding: .5rem 1.25rem;
  font-family: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.hero-search-inner button:hover { background: var(--primary-light); }
.search-icon-inner { color: rgba(255,255,255,.55); flex-shrink: 0; }

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem;
}
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--foreground); }
.section-desc  { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.section-more {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem; font-weight: 700; color: var(--primary); text-decoration: none;
  transition: gap .2s;
}
.section-more:hover { gap: .55rem; }

/* ── CATEGORIES GRID ──────────────────────────────────────── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1rem; }
.category-card {
  display: flex; align-items: center; gap: .9rem;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  text-decoration: none; color: var(--foreground);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-icon {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .22s;
}
.category-card:hover .category-icon { transform: scale(1.08); }
.category-info h3 { font-size: .92rem; font-weight: 700; margin-bottom: .12rem; }
.category-info p  { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.cat-arrow {
  margin-right: auto; color: var(--primary); opacity: 0;
  transform: translateX(4px); transition: opacity .22s, transform .22s; flex-shrink: 0;
}
.category-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* ── ARTICLE CARDS ────────────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 1.5rem; }
.article-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card-image { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card-image img { transform: scale(1.05); }
.article-category-badge {
  position: absolute; top: .75rem; right: .75rem;
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: 999px;
  text-decoration: none; backdrop-filter: blur(4px);
}
.article-card-body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.article-card-meta { display: flex; gap: .75rem; font-size: .76rem; color: var(--muted); flex-wrap: wrap; }
.article-card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.article-card-title a { color: var(--foreground); text-decoration: none; }
.article-card-title a:hover { color: var(--primary); }
.article-card-excerpt {
  font-size: .85rem; color: var(--muted); line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-read-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .83rem; font-weight: 700; color: var(--primary);
  text-decoration: none; margin-top: auto; padding-top: .5rem;
  transition: gap .2s;
}
.article-read-more:hover { gap: .65rem; }

/* ── WHY SECTION ──────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width:900px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:540px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: .85rem;
}
.why-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.why-card p  { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ── PER CATEGORY ─────────────────────────────────────────── */
.per-cat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
@media (max-width:680px) { .per-cat-grid { grid-template-columns: 1fr; } }
.per-cat-col { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.per-cat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.1rem; background: var(--primary-bg);
}
.per-cat-list { list-style: none; }
.per-cat-link {
  display: flex; justify-content: space-between; align-items: center;
  gap: .5rem; padding: .62rem 1.1rem; text-decoration: none; color: var(--foreground);
  font-size: .88rem; border-bottom: 1px solid var(--border);
  transition: background .18s, color .18s;
}
.per-cat-list li:last-child .per-cat-link { border-bottom: none; }
.per-cat-link:hover { background: var(--primary-bg); color: var(--primary); }
.per-cat-title { font-weight: 600; line-height: 1.35; }
.per-cat-meta { font-size: .73rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.per-cat-more { font-size: .78rem; color: var(--muted); text-decoration: none; }
.per-cat-more:hover { color: var(--primary); }

/* ── NEWSLETTER ───────────────────────────────────────────── */
.newsletter-section { background: linear-gradient(135deg, #b2ebf2, var(--primary)); }
.newsletter-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.newsletter-content h2 { color: #fff; font-size: 1.4rem; margin-bottom: .4rem; }
.newsletter-content p  { color: rgba(255,255,255,.8); font-size: .92rem; }

/* ── SINGLE POST ──────────────────────────────────────────── */
.single-post { padding: 2.5rem 0 4rem; }
.single-article-inner {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 2.5rem;
}
@media (max-width:768px) { .single-article-inner { padding: 1.25rem; } }
.single-post-header { margin-bottom: 1.75rem; }
.post-category-badge {
  display: inline-block; padding: .28rem .85rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; margin-bottom: .75rem; text-decoration: none;
}
.post-title { font-size: clamp(1.5rem,4vw,2.1rem); font-weight: 900; line-height: 1.3; margin-bottom: .85rem; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem;
  color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.post-meta span { display: flex; align-items: center; gap: .35rem; }
.post-tag-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.tag-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 600;
}
.tag-pill--date { background: var(--primary-bg); color: var(--primary); }

/* Post image */
.post-featured-image { border-radius: calc(var(--radius)*.8); overflow: hidden; margin-bottom: 1.75rem; aspect-ratio: 16/7; }
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* Content sidebar layout */
.content-sidebar-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; margin-top: 1.5rem; align-items: start; }
@media (max-width:900px) { .content-sidebar-wrap { grid-template-columns: 1fr; } .sidebar { display: none; } }
@media (min-width:1024px) { .sidebar { position: sticky; top: 90px; } }

/* Post content typography */
.post-content { font-size: .98rem; line-height: 1.9; }
.post-content h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--primary-bg); }
.post-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 .6rem; }
.post-content p  { margin-bottom: 1.1rem; color: hsl(177,15%,25%); }
.post-content ul, .post-content ol { padding-right: 1.5rem; margin-bottom: 1.1rem; }
.post-content li { margin-bottom: .4rem; }
.post-content blockquote { border-right: 4px solid var(--primary); padding: 1rem 1.25rem; margin: 1.5rem 0; background: var(--primary-bg); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content strong { font-weight: 700; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.post-content th, .post-content td { padding: .6rem .9rem; border: 1px solid var(--border); text-align: right; }
.post-content th { background: var(--primary-bg); font-weight: 700; color: var(--primary); }

/* Disclaimer */
.medical-disclaimer {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .95rem 1.2rem; margin: 1.5rem 0;
  background: hsl(40,90%,97%); border: 1px solid hsl(40,80%,85%);
  border-right: 4px solid hsl(40,80%,55%); border-radius: var(--radius);
  font-size: .84rem; line-height: 1.65; color: hsl(40,50%,28%);
}
.medical-disclaimer svg { flex-shrink: 0; color: hsl(40,80%,45%); margin-top: .1rem; }

/* Share buttons */
.share-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 1.1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 1.5rem 0; }
.share-label { font-size: .84rem; font-weight: 700; color: var(--muted); }
.share-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .95rem; border-radius: 8px; font-size: .8rem; font-weight: 700; text-decoration: none; color: #fff; transition: opacity .2s, transform .18s; }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn--twitter  { background: #000; }
.share-btn--facebook { background: #1877f2; }
.share-btn--whatsapp { background: #25d366; }

/* Post navigation */
.post-navigation { display: flex; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.post-nav-item {
  flex: 1; min-width: 200px; background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none; color: var(--foreground);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.post-nav-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-nav-label { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--primary); font-weight: 700; margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .04em; }
.post-nav-title { font-size: .88rem; font-weight: 600; line-height: 1.35; }
.post-nav-next { text-align: left; }

/* Sidebar */
.sidebar-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; }
.widget-title { font-size: .92rem; font-weight: 800; margin-bottom: .9rem; padding-bottom: .55rem; border-bottom: 2px solid var(--primary-bg); color: var(--foreground); display: flex; align-items: center; gap: .4rem; }
.widget-title::before { content: ''; display: block; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.categories-list { list-style: none; }
.categories-list a { display: flex; justify-content: space-between; align-items: center; padding: .42rem .5rem; border-radius: 8px; color: var(--foreground); text-decoration: none; font-size: .86rem; transition: background .18s, color .18s; }
.categories-list a:hover { background: var(--primary-bg); color: var(--primary); }
.cat-count { background: var(--primary-bg); color: var(--primary); font-size: .7rem; font-weight: 700; padding: .12rem .45rem; border-radius: 999px; }
.related-post-item { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--foreground); transition: color .2s; }
.related-post-item:last-child { border-bottom: none; }
.related-post-item:hover { color: var(--primary); }
.related-post-thumb { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-info h4 { font-size: .83rem; font-weight: 600; line-height: 1.3; margin-bottom: .18rem; }
.related-post-info span { font-size: .73rem; color: var(--muted); }

/* Author box */
.author-box { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--primary-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1.75rem 0; }
.author-avatar { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.author-info .author-title { font-size: .78rem; color: var(--primary); font-weight: 600; margin-bottom: .4rem; }
.author-info p { font-size: .84rem; color: var(--muted); line-height: 1.65; }

/* TOC */
.toc-box { background: hsl(177,30%,97%); border: 1px solid var(--border); border-right: 4px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.toc-box-title { font-size: .88rem; font-weight: 700; margin-bottom: .7rem; display: flex; align-items: center; gap: .4rem; }
.toc-list { list-style: none; counter-reset: toc; }
.toc-list li { counter-increment: toc; font-size: .84rem; padding: .22rem 0; border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { color: var(--foreground); text-decoration: none; display: flex; align-items: center; gap: .5rem; transition: color .2s; }
.toc-list a::before { content: counter(toc); min-width: 20px; height: 20px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; flex-shrink: 0; }
.toc-list a:hover, .toc-list a.active { color: var(--primary); }

/* Source box */
.medical-source-box { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1.1rem; background: hsl(220,60%,97%); border: 1px solid hsl(220,60%,85%); border-radius: calc(var(--radius)*.7); margin: 1.25rem 0; font-size: .83rem; }
.medical-source-box a { color: hsl(220,60%,45%); font-weight: 600; }

/* Post tags */
.post-tags { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 1.25rem 0; }
.post-tags .tags-label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.post-tags a { display: inline-flex; align-items: center; background: var(--primary-bg); color: var(--primary); border: 1px solid hsl(177,60%,80%); border-radius: 999px; padding: .22rem .8rem; font-size: .78rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.post-tags a:hover { background: var(--primary); color: #fff; }

/* ── ARCHIVE PAGE ─────────────────────────────────────────── */
.archive-hero { background: var(--primary-bg); padding: 3rem 0; text-align: center; border-bottom: 1px solid var(--border); }
.archive-hero h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: .4rem; }
.cat-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.25rem; }
.cat-filter-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .38rem .95rem; border-radius: 999px; font-size: .83rem; font-weight: 600;
  background: var(--card); border: 1.5px solid var(--border); color: var(--foreground);
  text-decoration: none; transition: all .2s;
}
.cat-filter-btn:hover, .cat-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; background: rgba(0,0,0,.1); border-radius: 999px; font-size: .68rem; padding: 0 .3rem; }
.cat-filter-btn.active .cat-filter-count { background: rgba(255,255,255,.25); }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; margin: 3rem 0 0; }
.page-numbers { display: inline-flex; gap: .35rem; list-style: none; flex-wrap: wrap; justify-content: center; }
.page-numbers li a, .page-numbers li span { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--foreground); background: var(--card); border: 1.5px solid var(--border); text-decoration: none; padding: 0 .65rem; transition: all .2s; }
.page-numbers li a:hover, .page-numbers li .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer { background: #e0f2fe; color: hsl(177,10%,60%); padding: 3.5rem 0 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid hsl(177,20%,18%); }
@media (max-width:768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
@media (max-width:480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: .9rem; padding-bottom: .45rem; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { color: hsl(177,10%,52%); text-decoration: none; font-size: .84rem; display: flex; align-items: center; gap: .4rem; transition: color .2s; }
.footer-col ul li a::before { content: '›'; color: var(--primary); font-weight: 900; }
.footer-col ul li a:hover { color: #fff; }
.footer-desc { font-size: .85rem; line-height: 1.75; color: hsl(177,10%,50%); margin-top: .65rem; }
.footer-social { display: flex; gap: .45rem; margin-top: .9rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 8px; background: hsl(177,20%,16%); display: flex; align-items: center; justify-content: center; color: hsl(177,10%,58%); text-decoration: none; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-disclaimer { padding: 1.1rem 0; border-bottom: 1px solid hsl(177,20%,17%); }
.footer-disclaimer p { font-size: .78rem; color: hsl(177,10%,42%); text-align: center; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; padding: 1rem 0; font-size: .78rem; color: hsl(177,10%,40%); }
.footer-bottom a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── 404 ──────────────────────────────────────────────────── */
.error-404-wrap { text-align: center; padding: 5rem 1rem; }
.error-404-code { font-size: 5rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: .5rem; }

/* ── SEARCH ───────────────────────────────────────────────── */
.search-hero { background: var(--primary-bg); padding: 2.5rem 0; border-bottom: 1px solid var(--border); text-align: center; }

/* ── UTILITIES ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state h3 { font-size: 1.15rem; margin: .75rem 0 .5rem; color: var(--foreground); }
.breadcrumb { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* ── READING PROGRESS & BACK-TO-TOP ──────────────────────── */
#reading-progress { position: fixed; top: 0; right: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), #4ec9c3); z-index: 9999; transition: width .1s linear; }
#back-to-top { position: fixed; bottom: 1.75rem; left: 1.75rem; width: 42px; height: 42px; background: var(--primary); color: #fff; border: none; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, transform .25s; box-shadow: 0 4px 16px rgba(26,58,107,.4); z-index: 999; }
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-3px); }

/* ── AD UNITS ─────────────────────────────────────────────── */
.ad-unit { position: relative; margin: 1.75rem auto; text-align: center; }
.ad-unit::before { content: 'إعلان'; display: block; font-size: .68rem; color: var(--muted); text-align: center; margin-bottom: .3rem; opacity: .6; letter-spacing: .06em; }
.ad-banner-section { padding: .75rem 0; background: var(--card); border-bottom: 1px solid var(--border); }

/* ── DARK MODE ────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root { --background: hsl(177,22%,9%); --card: hsl(177,20%,12%); --foreground: hsl(177,15%,88%); --muted: hsl(177,12%,52%); --border: hsl(177,18%,19%); --primary-bg: hsl(177,35%,14%); }
  .site-header { background: rgba(15,25,32,.92); }
  .hero-overlay { background: linear-gradient(135deg, rgba(10,18,28,.9) 0%, rgba(37,99,168,.5) 100%); }
  .medical-disclaimer { background: hsl(40,30%,11%); border-color: hsl(40,30%,22%); color: hsl(40,30%,72%); }
  .toc-box { background: hsl(177,20%,13%); }
  .post-content p { color: hsl(177,12%,76%); }
  .footer-col ul li a::before { content: '›'; }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width:640px) {
  .section { padding: 2.5rem 0; }
  .hero .container { padding: 3.5rem 1.25rem; }
  .hero-title { font-size: 1.75rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
  .newsletter-box { flex-direction: column; text-align: center; }
  .hero-stats { gap: 1.25rem; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .share-buttons { gap: .4rem; }
  .post-meta { gap: .65rem; }
}

/* ── PRINT ────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sidebar, .share-buttons, .ad-unit, #back-to-top, #reading-progress, .post-navigation { display: none !important; }
  .single-article-inner { border: none; padding: 0; }
  .post-content p { color: #000; }
}

/* ── FOCUS/ACCESSIBILITY ──────────────────────────────────── */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   V8 — تحسينات شاملة: تصميم، أداء، UX، AdSense
   ═══════════════════════════════════════════════════════════ */

/* ── SCROLL ANIMATIONS ────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
  }
  .animate-on-scroll[data-delay="1"] { transition-delay: .1s; }
  .animate-on-scroll[data-delay="2"] { transition-delay: .2s; }
  .animate-on-scroll[data-delay="3"] { transition-delay: .3s; }
  .animate-on-scroll[data-delay="4"] { transition-delay: .4s; }
  .animate-on-scroll[data-delay="5"] { transition-delay: .5s; }
}

/* ── HERO: تحسين الشكل ─────────────────────────────────────── */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 20, 50, .90) 0%,
    rgba(26, 58, 107, .72) 55%,
    rgba(37, 99, 168, .40) 100%
  ) !important;
}
.hero-title .highlight {
  color: #ffffff !important;  /* ذهبي يبرز على الأزرق الداكن */
}
.hero-search-inner button {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 800 !important;
}
.hero-search-inner button:hover {
  background: #ffffff !important;
}

/* ── GRADIENT ACCENT LINE تحت الهيدر ─────────────────────── */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), #3aafa9, var(--primary));
  opacity: 0;
  transition: opacity .3s;
}
.site-header.scrolled::after { opacity: 1; }

/* ── ARTICLE CARD: تحسين البطاقة ─────────────────────────── */
.article-card {
  box-shadow: var(--shadow-sm);
  border-radius: 16px !important;
}
.article-card:hover {
  box-shadow: 0 16px 48px rgba(26,58,107,.14) !important;
}
.article-card-title a {
  transition: color .2s;
}
/* شريط لوني أسفل البطاقة عند الهوفر */
.article-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), #3aafa9);
  opacity: 0;
  transition: opacity .3s;
  border-radius: 0 0 16px 16px;
}
.article-card { position: relative; }
.article-card:hover::after { opacity: 1; }

/* ── READING PROGRESS: تدرج ذهبي ─────────────────────────── */
#reading-progress {
  background: linear-gradient(90deg, var(--primary), #ffffff) !important;
  height: 3px !important;
}

/* ── BACK TO TOP: محسّن ───────────────────────────────────── */
#back-to-top {
  border-radius: 50% !important;
  width: 46px !important; height: 46px !important;
  box-shadow: 0 6px 20px rgba(26,58,107,.35) !important;
}
#back-to-top:hover { transform: translateY(-4px) scale(1.08) !important; }

/* ── BUTTONS: تحسين الظل ──────────────────────────────────── */
.btn-primary {
  box-shadow: 0 4px 18px rgba(58,175,169,.20);
  letter-spacing: .02em;
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(58,175,169,.30);
}

/* ── CATEGORY CARDS: تحسين ────────────────────────────────── */
.category-card {
  border-radius: 14px !important;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  box-shadow: 0 8px 30px rgba(58,175,169,.10) !important;
}

/* ── WHY CARDS: تحسين ─────────────────────────────────────── */
.why-card {
  border-radius: 14px !important;
  box-shadow: var(--shadow-sm);
}
.why-icon {
  border-radius: 14px !important;
}

/* ── AD UNITS: مزيد من الوضوح ─────────────────────────────── */
.ad-unit--content {
  border-radius: 14px !important;
  border: 1.5px solid hsl(177, 35%, 88%) !important;
  background: hsl(177, 50%, 98%) !important;
  position: relative;
}
/* شارة "محتوى برعاية" أكثر وضوحاً */
.ad-unit::before {
  font-size: .72rem !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  opacity: .7 !important;
}

/* ── SIDEBAR WIDGET: تحسين ────────────────────────────────── */
.sidebar-widget {
  border-radius: 14px !important;
  box-shadow: var(--shadow-sm);
}

/* ── TOC BOX: تحسين ───────────────────────────────────────── */
.toc-box {
  border-radius: 14px !important;
  border-right: 4px solid var(--primary) !important;
  background: var(--primary-bg) !important;
}

/* ── SECTION DIVIDER ──────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  border: none;
}

/* ── FOOTER: تحسين ────────────────────────────────────────── */
.site-footer {
  border-top: 3px solid var(--primary);
}

/* ── NEWSLETTER SECTION: تدرج أزرق بحري ─────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, #b2ebf2, #e0f7fa) !important;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── DARK MODE: تحسين شامل ────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --primary:      #3aafa9;
    --primary-light:#4ec9c3;
    --primary-bg:   hsl(177,35%,14%);
    --background:   hsl(215,28%,9%);
    --card:         hsl(215,25%,13%);
    --foreground:   hsl(210,20%,92%);
    --muted:        hsl(215,15%,58%);
    --border:       hsl(215,22%,22%);
  }
  .site-header {
    background: rgba(12,18,32,.94) !important;
    border-bottom-color: hsl(215,22%,20%) !important;
  }
  .article-card,
  .category-card,
  .why-card,
  .sidebar-widget,
  .single-article-inner,
  .toc-box,
  .per-cat-col {
    background: var(--card) !important;
    border-color: var(--border) !important;
  }
  .section-alt { background: hsl(215,28%,11%) !important; }
  .hero-overlay {
    background: linear-gradient(135deg, rgba(5,10,25,.95) 0%, rgba(20,45,95,.8) 100%) !important;
  }
  .medical-disclaimer {
    background: hsl(40,25%,12%) !important;
    border-color: hsl(40,30%,22%) !important;
    color: hsl(40,25%,72%) !important;
  }
  .ad-unit--content, .ad-unit--sidebar {
    background: hsl(177,50%,20%) !important;
    border-color: hsl(177,25%,20%) !important;
  }
  .post-content p { color: hsl(210,15%,82%) !important; }
  .newsletter-section {
    background: linear-gradient(135deg, hsl(177,75%,10%), hsl(177,65%,18%)) !important;
  }
}

/* ── MOBILE: تحسينات إضافية ───────────────────────────────── */
@media (max-width: 640px) {
  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(1.65rem, 6vw, 2.2rem) !important; }
  .hero-stats { gap: 1.25rem !important; }
  .hero-stat strong { font-size: 1.3rem !important; }
  .articles-grid { grid-template-columns: 1fr !important; }
  .categories-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr 1fr !important; }
  .post-navigation { flex-direction: column !important; }
  .share-buttons { gap: .4rem !important; }
  .share-btn { padding: .35rem .7rem !important; font-size: .75rem !important; }
}

/* ── FOCUS & ACCESSIBILITY ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible { outline-color: var(--primary); }

/* ── PRINT: تحسين ────────────────────────────────────────────*/
@media print {
  .ad-unit, .ad-banner-section, .share-buttons,
  .site-header, .site-footer, .sidebar,
  #back-to-top, #reading-progress, .post-navigation { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .post-content { max-width: 100%; font-size: 11pt; line-height: 1.7; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* ── SKELETON LOADING (للصور البطيئة) ────────────────────── */
.article-card-image img,
.post-featured-image img,
.related-post-thumb img {
  background: linear-gradient(90deg, var(--border) 25%, hsl(177,20%,93%) 50%, var(--border) 75%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .article-card-image img:not([src]),
  .post-featured-image img:not([src]) {
    animation: skeleton-shimmer 1.5s infinite;
  }
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── SEARCH HIGHLIGHT ─────────────────────────────────────── */
mark, .search-highlight {
  background: rgba(251,191,36,.3);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

/* ── SMOOTH IMAGE REVEAL ──────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .article-card-image img,
  .post-featured-image img {
    transition: transform .45s ease, opacity .35s ease;
    opacity: 0;
  }
  .article-card-image img.loaded,
  .post-featured-image img.loaded {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   V8.1 — صفحات كاملة + تحسينات شاملة
   ═══════════════════════════════════════════════════════════ */

/* ── PAGE HERO BAR (للصفحات والأرشيف) ──────────────────── */
.page-hero-bar {
  background: linear-gradient(135deg, #b2ebf2 0%, #e0f7fa 100%);
  padding: 2.75rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='15'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero-bar .post-breadcrumb { color: rgba(255,255,255,.65); margin-bottom: .75rem; }
.page-hero-bar .post-breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero-bar .post-breadcrumb a:hover { color: #fff; }
.page-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.search-results-label { color: rgba(255,255,255,.7); font-size: .85rem; margin-bottom: .3rem; }
.search-results-count { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: .5rem; }
.search-results-count strong { color: #ffffff; }

/* Archive search form */
.archive-search-form {
  display: flex; gap: .5rem; max-width: 480px; margin-top: 1.25rem;
}
.archive-search-form input {
  flex: 1; padding: .7rem 1rem;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius); color: #fff;
  font-family: inherit; font-size: .92rem; outline: none;
  transition: border-color .2s, background .2s;
}
.archive-search-form input::placeholder { color: rgba(255,255,255,.5); }
.archive-search-form input:focus {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.18);
}
.archive-search-form .btn-primary {
  background: #3aafa9; color: #ffffff;
  border-color: transparent; white-space: nowrap;
}
.archive-search-form .btn-primary:hover { background: #ffffff; }

/* ── 404 PAGE ─────────────────────────────────────────────── */
.error-404-wrap { padding: 5rem 0; }
.error-404-content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 4rem;
}
.error-404-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100px; height: 100px;
  background: var(--primary-bg);
  border-radius: 50%;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.error-404-content h1 {
  font-size: 5rem; font-weight: 900; color: var(--primary);
  line-height: 1; margin-bottom: .25rem;
  background: linear-gradient(135deg, var(--primary), #3aafa9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.error-404-content h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--foreground);
  margin-bottom: .75rem;
}
.error-404-content p {
  color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1.75rem;
}
.error-404-search {
  display: flex; gap: .5rem; margin-bottom: 1.25rem;
}
.error-404-search input {
  flex: 1; padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; outline: none;
  transition: border-color .2s;
}
.error-404-search input:focus { border-color: var(--primary); }
.error-404-suggestions h3 {
  font-size: 1.15rem; font-weight: 800;
  margin-bottom: 1.5rem; color: var(--foreground);
  display: flex; align-items: center; gap: .5rem;
}
.error-404-suggestions h3::before {
  content: '';
  display: block; width: 4px; height: 20px;
  background: var(--primary); border-radius: 2px;
}

/* ── STATIC PAGE ──────────────────────────────────────────── */
.static-page-wrap .post-content {
  max-width: 820px; margin: 0 auto;
}
.page-hero-bar + .section .static-page-wrap .post-content {
  font-size: 1.05rem;
}

/* ── ARCHIVE: cat filter bar ─────────────────────────────── */
.cat-filter-bar {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.5rem;
}
.cat-filter-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700;
  background: var(--card); border: 1.5px solid var(--border);
  color: var(--foreground); text-decoration: none;
  transition: all .2s;
}
.cat-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-filter-count {
  background: rgba(255,255,255,.25); color: inherit;
  font-size: .7rem; padding: .1rem .4rem; border-radius: 999px;
  font-weight: 700;
}
.cat-filter-btn:not(.active) .cat-filter-count {
  background: var(--primary-bg); color: var(--primary);
}

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 5rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.empty-state svg { color: var(--muted); opacity: .5; }
.empty-state h2 { font-size: 1.35rem; font-weight: 800; color: var(--foreground); }
.empty-state p { color: var(--muted); max-width: 380px; line-height: 1.7; }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: .4rem; list-style: none; flex-wrap: wrap; justify-content: center; }
.pagination a,
.pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .65rem;
  border-radius: var(--radius); font-size: .88rem; font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--card); color: var(--foreground);
  text-decoration: none; transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .dots { border: none; background: none; }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.post-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .4rem; font-size: .82rem; color: var(--muted);
}
.post-breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.post-breadcrumb a:hover { color: var(--primary); }
.post-breadcrumb span[aria-current] { color: var(--foreground); font-weight: 600; }

/* ── FOOTER: تحسين ───────────────────────────────────────── */
.site-footer {
  background: #112220;
  color: #ffffff;
  border-top: 3px solid #3aafa9 !important;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 0 1.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-col h4 {
  font-size: .9rem; font-weight: 800;
  color: #fff; margin-bottom: 1rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a {
  color: #ffffff; font-size: .88rem; text-decoration: none;
  transition: color .2s; display: inline-flex; align-items: center; gap: .3rem;
}
.footer-col ul a:hover { color: #4ec9c3; }
.footer-col ul a::before {
  content: '›'; color: #4ec9c3; font-size: 1.1rem; line-height: 1;
}
.footer-desc {
  font-size: .86rem; line-height: 1.75;
  color: hsl(215,15%,60%); margin-top: .75rem;
}
.footer-social {
  display: flex; gap: .6rem; margin-top: 1.25rem;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; color: hsl(215,15%,70%);
  transition: all .2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-medical-notice {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  text-align: center;
}
.footer-medical-notice p {
  font-size: .78rem; color: hsl(215,12%,48%); line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .82rem; color: hsl(215,12%,50%); }
.footer-bottom a { color: hsl(215,12%,60%); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ── LOGO: تحسين ──────────────────────────────────────────── */
.logo-icon {
  background: linear-gradient(135deg, var(--primary), #4ecdc4) !important;
  box-shadow: 0 4px 14px rgba(26,58,107,.35) !important;
}
.logo-icon svg {
  width: 20px; height: 20px; fill: none;
  stroke: white; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.logo-name { font-weight: 900 !important; letter-spacing: -.01em; }

/* ── HERO SEARCH: تحسين ───────────────────────────────────── */
.hero-search { margin-top: 1.5rem; }
.hero-search-inner {
  max-width: 480px;
  border-radius: 14px !important;
  padding: .45rem .45rem .45rem 1.25rem !important;
  background: rgba(255,255,255,.14) !important;
  border: 1.5px solid rgba(255,255,255,.3) !important;
}
.hero-search-inner button {
  border-radius: 10px !important;
  padding: .55rem 1.35rem !important;
}

/* ── SECTION HEADER: تحسين ───────────────────────────────── */
.section-header {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2.25rem !important;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--primary), #3aafa9);
  border-radius: 2px;
}

/* ── POST CONTENT: تحسين الروابط ─────────────────────────── */
.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26,58,107,.3);
  transition: text-decoration-color .2s;
}
.post-content a:hover { text-decoration-color: var(--primary); }

/* ── MEDICAL DISCLAIMER: تحسين ───────────────────────────── */
.medical-disclaimer {
  background: hsl(38,95%,96%) !important;
  border-color: hsl(38,80%,80%) !important;
  border-right-color: hsl(38,80%,50%) !important;
  border-right-width: 4px !important;
}

/* ── INPUT FOCUS: تحسين ──────────────────────────────────── */
input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(58,175,169,.10);
}

/* ── TAG LINKS ────────────────────────────────────────────── */
.post-tags a {
  display: inline-flex; align-items: center;
  padding: .25rem .75rem; border-radius: 999px;
  background: var(--primary-bg); color: var(--primary);
  font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
  border: 1px solid transparent;
}
.post-tags a:hover { background: var(--primary); color: #fff; }

/* ── DARK MODE 404/pages ──────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .error-404-search input,
  .archive-search-form input {
    background: var(--card);
    border-color: var(--border);
    color: var(--foreground);
  }
  .cat-filter-btn {
    background: var(--card);
    border-color: var(--border);
    color: var(--foreground);
  }
  .page-hero-bar { background: linear-gradient(135deg, hsl(177,75%,10%), hsl(177,65%,18%)); }
}

/* ── MOBILE: 404 ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .error-404-search { flex-direction: column; }
  .error-404-content h1 { font-size: 4rem; }
  .page-hero-bar { padding: 2rem 0 1.75rem; }
  .archive-search-form { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   V8.2 — تحسينات نهائية شاملة
   ═══════════════════════════════════════════════════════════ */

/* ── ARTICLE CARD: تحسين شامل ───────────────────────────── */
.article-card {
  border-radius: 16px !important;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
  background: var(--card);
}
.article-card:hover { transform: translateY(-5px) !important; }

.article-card-image {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--primary-bg);
}
.article-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease !important;
}
.article-card:hover .article-card-image img { transform: scale(1.06); }

.article-category-badge {
  position: absolute; top: .75rem; right: .75rem;
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800;
  background: #3aafa9; color: #fff; text-decoration: none;
  letter-spacing: .03em; backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.article-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.article-card-meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; color: var(--muted);
}
.article-card-meta time::before { content: '📅 '; font-size: .7rem; }
.article-card-meta span::before { content: '⏱ '; font-size: .7rem; }

.article-card-title {
  font-size: 1.1rem; font-weight: 800;
  line-height: 1.45; margin: 0;
}
.article-card-title a {
  color: var(--foreground); text-decoration: none;
  transition: color .2s;
}
.article-card-title a:hover { color: var(--primary); }

.article-card-excerpt {
  font-size: .88rem; color: var(--muted);
  line-height: 1.7; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.article-read-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700;
  color: var(--primary); text-decoration: none;
  margin-top: .25rem; transition: gap .2s;
}
.article-read-more:hover { gap: .65rem; }

/* ── ARTICLES GRID ────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── CATEGORY CARDS: تحسين ────────────────────────────────── */
.category-card {
  border-radius: 14px !important;
  padding: 1.5rem !important;
  text-decoration: none;
  border: 1.5px solid var(--border) !important;
  background: var(--card) !important;
  transition: all .25s ease;
  display: flex; flex-direction: column; gap: .5rem;
}
.category-card:hover {
  border-color: var(--primary) !important;
  transform: translateY(-3px);
}
.category-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.category-card-name {
  font-weight: 800; color: var(--foreground); font-size: 1rem;
}
.category-card-desc {
  font-size: .82rem; color: var(--muted); line-height: 1.6;
}

/* ── SINGLE POST: تحسين صندوق المؤلف ─────────────────────── */
.author-box {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--primary-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.author-box-avatar img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}
.author-box-name { font-weight: 800; font-size: 1rem; color: var(--foreground); }
.author-box-bio  { font-size: .86rem; color: var(--muted); line-height: 1.7; margin-top: .3rem; }

/* ── SINGLE POST: تنقل بين المقالات ─────────────────────── */
.post-navigation {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2.5rem;
}
.post-nav-item {
  padding: 1.25rem; border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card); text-decoration: none;
  transition: all .22s; display: flex; flex-direction: column; gap: .4rem;
}
.post-nav-item:hover { border-color: var(--primary); background: var(--primary-bg); }
.post-nav-label {
  display: flex; align-items: center; gap: .3rem;
  font-size: .75rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase; letter-spacing: .06em;
}
.post-nav-title { font-size: .9rem; font-weight: 700; color: var(--foreground); line-height: 1.4; }
@media (max-width: 640px) {
  .post-navigation { grid-template-columns: 1fr; }
}

/* ── SHARE BUTTONS: تحسين ─────────────────────────────────── */
.share-buttons {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  margin: 2rem 0 1.5rem;
}
.share-label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
  text-decoration: none; transition: all .2s;
  border: 1.5px solid transparent;
}
.share-btn--twitter  { background: #000; color: #fff; }
.share-btn--facebook { background: #1877f2; color: #fff; }
.share-btn--whatsapp { background: #25d366; color: #fff; }
.share-btn:hover { opacity: .85; transform: translateY(-2px); }

/* ── HERO: تحسين احترافي ──────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(480px, 70vh, 720px);
  display: flex; align-items: center;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  padding: .3rem .9rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem) !important;
  font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  line-height: 1.75; margin-bottom: 1.75rem;
  max-width: 560px;
}
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 1.6rem; font-weight: 900;
  color: #ffffff; line-height: 1;
}
.hero-stat span { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: .2rem; display: block; }

/* ── SECTION: تحسين spacing ──────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: hsl(177,30%,97%); }
@media (max-width: 768px) { .section { padding: 2.5rem 0; } }

/* ── TOC: تحسين ───────────────────────────────────────────── */
.toc-box {
  background: var(--primary-bg) !important;
  border-right: 4px solid var(--primary) !important;
  border-radius: 12px !important;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 2rem;
}
.toc-box-title {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: .9rem;
  color: var(--primary); margin-bottom: .75rem;
}
.toc-list { padding-right: 1rem; }
.toc-list li { margin-bottom: .4rem; }
.toc-list a {
  color: var(--foreground); font-size: .88rem;
  text-decoration: none; transition: color .2s;
  display: block; padding: .2rem 0;
}
.toc-list a:hover,
.toc-list a.active { color: var(--primary); font-weight: 700; }

/* ── WIDGET TITLE ─────────────────────────────────────────── */
.widget-title {
  font-size: .88rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--primary-bg);
}

/* ── RELATED POST ITEMS ──────────────────────────────────── */
.related-post-item {
  display: flex; gap: .75rem; align-items: flex-start;
  text-decoration: none; padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .2s;
}
.related-post-item:last-child { border-bottom: none; }
.related-post-item:hover { opacity: .8; }
.related-post-thumb {
  width: 70px; height: 55px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
}
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-info h4 {
  font-size: .84rem; font-weight: 700;
  color: var(--foreground); line-height: 1.4; margin-bottom: .25rem;
}
.related-post-info span { font-size: .75rem; color: var(--muted); }

/* ── CATEGORIES LIST (SIDEBAR) ────────────────────────────── */
.categories-list { list-style: none; }
.categories-list li { border-bottom: 1px solid var(--border); }
.categories-list li:last-child { border-bottom: none; }
.categories-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 0; color: var(--foreground);
  font-size: .88rem; text-decoration: none; transition: color .2s;
}
.categories-list a:hover { color: var(--primary); }
.cat-count {
  background: var(--primary-bg); color: var(--primary);
  font-size: .72rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px;
}

/* ── MEDICAL SOURCE BOX ───────────────────────────────────── */
.medical-source-box {
  display: flex; gap: .75rem; align-items: center;
  padding: .85rem 1rem; border-radius: 10px;
  background: var(--primary-bg); border: 1px solid var(--border);
  font-size: .85rem; margin: 1.5rem 0;
}
.medical-source-box a { color: var(--primary); }

/* ── SKIP LINK ────────────────────────────────────────────── */
.skip-to-content {
  position: absolute; top: -100px; right: 0;
  background: var(--primary); color: #fff;
  padding: .6rem 1.2rem; border-radius: 0 0 8px 8px;
  font-weight: 700; text-decoration: none; z-index: 9999;
  transition: top .2s;
}
.skip-to-content:focus { top: 0; }

/* ── SECTION HEADER: محاذاة RTL ──────────────────────────── */
.section-header::after {
  right: 0; left: auto;
}

/* ── DARK MODE: باقي المكونات ─────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .article-card { border-color: var(--border) !important; }
  .post-nav-item { border-color: var(--border) !important; }
  .toc-box { border-color: var(--primary) !important; }
  .medical-source-box,
  .medical-disclaimer { color: var(--foreground) !important; }
  .author-box { background: var(--card) !important; }
  .footer-social a { background: rgba(255,255,255,.06) !important; }
}

/* ── CONTAINER: max-width ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1400px) { .container { max-width: 1280px; } }

/* ═══════════════════════════════════════════════════════════
   V8.3 — E-E-A-T Trust Signals + Legal Pages
   ═══════════════════════════════════════════════════════════ */

/* ── EEAT AUTHOR BOX ──────────────────────────────────────── */
.eeat-box {
  background: linear-gradient(135deg, hsl(177,50%,97%), hsl(177,40%,95%)) !important;
  border: 1.5px solid hsl(177,35%,88%) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden;
  margin: 2.5rem 0;
}
.eeat-verified-badge {
  display: flex; align-items: center; gap: .4rem;
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem 1rem;
}
.author-box-inner {
  display: flex; gap: 1.25rem; padding: 1.25rem 1.5rem;
}
.author-avatar-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-avatar img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--primary);
  flex-shrink: 0;
}
.author-name-row {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.author-name-row h4 { font-size: 1rem; font-weight: 800; margin: 0; }
.author-credentials {
  background: var(--primary); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 4px;
  letter-spacing: .04em;
}
.author-title { font-size: .82rem; color: var(--primary); font-weight: 600; margin: .2rem 0 .4rem; }
.author-bio   { font-size: .86rem; color: var(--muted); line-height: 1.65; margin: 0 0 .75rem; }
.author-trust-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.trust-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(26,58,107,.08); color: var(--primary);
  font-size: .72rem; font-weight: 700;
  padding: .25rem .65rem; border-radius: 999px;
  border: 1px solid rgba(26,58,107,.15);
}

/* ── DISCLAIMER PAGE ──────────────────────────────────────── */
.disclaimer-alert {
  display: flex; gap: 1rem; align-items: flex-start;
  background: hsl(38,90%,95%);
  border: 1.5px solid hsl(38,75%,80%);
  border-right: 4px solid hsl(38,75%,55%);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  color: hsl(38,40%,25%);
  font-size: .95rem; line-height: 1.7;
}
.disclaimer-alert svg { color: hsl(38,75%,45%); flex-shrink: 0; margin-top: .2rem; }
.disclaimer-last-update {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--muted);
}

/* ── FOOTER: إضافة الصفحات القانونية ─────────────────────── */
.footer-legal-links {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .78rem;
}
.footer-legal-links a {
  color: hsl(215,12%,55%); text-decoration: none; transition: color .2s;
}
.footer-legal-links a:hover { color: #fff; }
.footer-legal-sep { color: rgba(255,255,255,.15); }

/* ── DARK MODE ────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .eeat-box {
    background: var(--card) !important;
    border-color: var(--border) !important;
  }
  .disclaimer-alert {
    background: hsl(38,20%,14%);
    border-color: hsl(38,25%,25%);
    color: hsl(38,20%,75%);
  }
}

/* ═══════════════════════════════════════════════════════════
   V10 LEGENDARY — تصميم خرافي كامل
   الفونت: Cairo + Playfair Display
   الألوان: أزرق بحري داكن + ذهبي + أبيض
   ═══════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */


/* ── ROOT TOKENS ──────────────────────────────────────────── */
:root {
  --navy-900: #e0f2fe;
  --navy-800: #bae6fd;
  --navy-700: #3aafa9;
  --navy-600: #7dd3fc;
  --navy-500: #4ec9c3;
  --navy-400: #3aafa9;
  --navy-300: #4ec9c3;
  --gold-500:  #ffffff;
  --gold-400:  #e0f2fe;
  --gold-300:  #e0f2fe;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-600:  #475569;
  --gray-800:  #e0f7fa;

  --font-body:    'Cairo', 'Segoe UI', sans-serif;
  --font-display: 'Amiri', 'Cairo', serif;

  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --ease-smooth: cubic-bezier(.4,0,.2,1);
}

/* ── BASE ─────────────────────────────────────────────────── */
body {
  font-family: var(--font-body) !important;
  background: var(--gray-50) !important;
}

/* ── HEADER: زجاجي احترافي ────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(26,58,107,.08) !important;
  box-shadow: none !important;
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(10,22,40,.1) !important;
}
/* خط ذهبي رفيع أسفل الهيدر */
.site-header::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ffffff 30%, var(--navy-500) 70%, transparent 100%);
  opacity: 0;
  transition: opacity .4s;
  z-index: 1;
}
.site-header.scrolled::before { opacity: 1; }
.site-header::after { display: none !important; }

/* Logo */
.logo-name {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #000000 !important;
  background-clip: unset !important;
  color: #000000 !important;
}
.logo-icon {
  background: #000000 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.25) !important;
}

/* Nav links */
#primary-menu li a {
  font-weight: 700 !important;
  font-size: .88rem !important;
  color: var(--gray-800) !important;
  position: relative;
  padding-bottom: 2px !important;
}
#primary-menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0; left: 0; height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform .25s var(--ease-smooth);
  transform-origin: right;
}
#primary-menu li a:hover { color: var(--navy-700) !important; }
#primary-menu li a:hover::after,
#primary-menu li.current-menu-item a::after { transform: scaleX(1); }

/* ── HERO: خرافي ──────────────────────────────────────────── */
.hero {
  min-height: 100svh !important;
  position: relative;
  overflow: hidden;
  background: var(--navy-900) !important;
}
.hero-bg img { object-fit: cover; opacity: .22 !important; filter: saturate(.6); }
/* Mesh gradient overlay */
.hero-overlay {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(37,99,168,.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212,168,67,.15) 0%, transparent 55%),
    linear-gradient(165deg, rgba(10,22,40,.97) 0%, rgba(15,32,68,.88) 50%, rgba(26,58,107,.75) 100%)
    !important;
}

/* Decorative grid lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* Gold accent line left */
.hero::after {
  content: '';
  position: absolute;
  top: 15%; bottom: 15%;
  right: 0; width: 3px;
  background: linear-gradient(180deg, transparent, #ffffff, transparent);
  opacity: .5;
  z-index: 2;
}

.hero-content { position: relative; z-index: 3 !important; }

.hero-badge {
  background: rgba(212,168,67,.12) !important;
  border: 1px solid rgba(212,168,67,.35) !important;
  color: #ffffff !important;
  font-size: .78rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(8px) !important;
}

.hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2.2rem, 6vw, 3.8rem) !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  line-height: 1.25 !important;
  text-shadow: 0 4px 32px rgba(0,0,0,.4) !important;
  letter-spacing: -.01em !important;
}
.hero-title .highlight {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  font-style: italic;
  text-shadow: 0 0 40px rgba(255,255,255,.35);
}
.hero-desc {
  font-size: 1.12rem !important;
  color: rgba(255,255,255,.78) !important;
  line-height: 1.85 !important;
}

/* Hero Stats: احترافية */
.hero-stats {
  display: flex; gap: 0 !important; flex-wrap: wrap;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  margin-top: 2rem !important;
  width: fit-content;
}
.hero-stat {
  padding: 1rem 1.75rem;
  border-left: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.hero-stat:first-child { border-left: none; }
.hero-stat strong {
  display: block;
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  font-family: var(--font-body) !important;
}
.hero-stat span {
  font-size: .75rem !important;
  color: rgba(255,255,255,.6) !important;
  display: block; margin-top: .15rem !important;
  letter-spacing: .04em;
}

/* Hero Buttons */
.btn-primary {
  background: #ffffff !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.25) !important;
  letter-spacing: .02em;
}
.btn-primary:hover {
  background: #e0f2fe !important;
  box-shadow: 0 12px 36px rgba(2,132,199,.35) !important;
  transform: translateY(-2px) !important;
}
.btn-ghost {
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.9) !important;
  border: 1.5px solid rgba(255,255,255,.2) !important;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.4) !important;
}

/* Hero Search */
.hero-search-inner {
  background: rgba(255,255,255,.1) !important;
  border: 1.5px solid rgba(255,255,255,.2) !important;
  border-radius: 16px !important;
  padding: .5rem .5rem .5rem 1.25rem !important;
  max-width: 500px !important;
  backdrop-filter: blur(12px) !important;
}
.hero-search-inner input {
  background: transparent !important;
  color: #fff !important;
  font-size: .95rem !important;
}
.hero-search-inner input::placeholder { color: rgba(255,255,255,.45) !important; }
.hero-search-inner button {
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  padding: .55rem 1.4rem !important;
}
.hero-search-inner button:hover { background: #e0f2fe !important; }

/* ── CATEGORY CARDS: خرافية ───────────────────────────────── */
.section-alt { background: var(--gray-100) !important; }

.categories-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.25rem !important;
}
@media (max-width: 900px) { .categories-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 560px) { .categories-grid { grid-template-columns: 1fr !important; } }

.category-card {
  background: var(--white) !important;
  border: 1.5px solid var(--gray-200) !important;
  border-radius: 20px !important;
  padding: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-direction: row !important;
  text-decoration: none !important;
  transition: all .25s var(--ease-smooth) !important;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,107,.04), rgba(26,58,107,.01));
  opacity: 0;
  transition: opacity .25s;
}
.category-card:hover {
  border-color: var(--navy-400) !important;
  box-shadow: 0 12px 40px rgba(58,175,169,.10) !important;
  transform: translateY(-4px) !important;
}
.category-card:hover::before { opacity: 1; }

.category-icon, .category-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: transform .3s var(--ease-bounce) !important;
}
.category-card:hover .category-icon,
.category-card:hover .category-card-icon { transform: scale(1.1) rotate(-5deg) !important; }

.category-info h3, .category-card-name {
  font-size: .98rem !important;
  font-weight: 800 !important;
  color: var(--gray-800) !important;
  margin: 0 0 .25rem !important;
}
.category-info p, .category-card-desc {
  font-size: .78rem !important;
  color: var(--gray-600) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.cat-arrow {
  margin-right: auto !important;
  color: var(--navy-400) !important;
  opacity: 0;
  transform: translateX(6px);
  transition: all .25s;
}
.category-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* ── SECTION HEADERS: محسّنة ──────────────────────────────── */
.section-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem) !important;
  font-weight: 700 !important;
  color: #000000 !important;
}
.section-desc {
  color: var(--gray-600) !important;
  font-size: .95rem !important;
  margin-top: .4rem !important;
}
.section-header::after {
  width: 48px !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--navy-600), #ffffff) !important;
  border-radius: 2px !important;
}
.section-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700;
  color: #000000 !important;
  text-decoration: none;
  border: 1.5px solid var(--navy-200, #bfdbfe);
  padding: .35rem .9rem; border-radius: 999px;
  transition: all .2s;
}
.section-more:hover { background: var(--navy-700); color: #fff !important; border-color: var(--navy-700); }

/* ── ARTICLE CARDS: خرافية ────────────────────────────────── */
.article-card {
  background: var(--white) !important;
  border: 1.5px solid var(--gray-200) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(10,22,40,.05) !important;
  transition: all .3s var(--ease-smooth) !important;
  position: relative;
}
.article-card:hover {
  border-color: rgba(26,58,107,.2) !important;
  box-shadow: 0 20px 60px rgba(10,22,40,.12) !important;
  transform: translateY(-6px) !important;
}
.article-card::after {
  background: linear-gradient(90deg, var(--navy-600), #ffffff) !important;
  height: 3px !important;
  border-radius: 0 !important;
}
.article-card-image { aspect-ratio: 16/9 !important; }

.article-category-badge {
  font-family: var(--font-body) !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  padding: .28rem .8rem !important;
  border-radius: 999px !important;
}
.article-card-body { padding: 1.5rem !important; gap: .6rem !important; }

.article-card-meta {
  font-size: .75rem !important;
  color: var(--gray-600) !important;
}
.article-card-title { font-size: 1.05rem !important; font-weight: 800 !important; line-height: 1.4 !important; }
.article-card-title a { color: #000000 !important; }
.article-card-title a:hover { color: #000000 !important; }
.article-card-excerpt { font-size: .86rem !important; color: var(--gray-600) !important; }
.article-read-more { color: #000000 !important; font-size: .82rem !important; font-weight: 800 !important; }

/* ── WHY CARDS: محسّنة ────────────────────────────────────── */
.why-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr !important; } }

.why-card {
  background: var(--white) !important;
  border: 1.5px solid var(--gray-200) !important;
  border-radius: 20px !important;
  padding: 1.75rem 1.5rem !important;
  box-shadow: 0 2px 12px rgba(10,22,40,.04) !important;
  transition: all .25s var(--ease-smooth) !important;
  position: relative; overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-600), #ffffff);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-smooth);
}
.why-card:hover { box-shadow: 0 12px 40px rgba(10,22,40,.1) !important; transform: translateY(-3px) !important; }
.why-card:hover::before { transform: scaleX(1); }

.why-icon {
  border-radius: 14px !important;
  width: 52px !important; height: 52px !important;
  margin-bottom: 1rem !important;
  transition: transform .3s var(--ease-bounce) !important;
}
.why-card:hover .why-icon { transform: scale(1.1) rotate(-8deg) !important; }
.why-card h3 { font-size: 1rem !important; font-weight: 800 !important; color: #000000 !important; margin-bottom: .4rem !important; }
.why-card p  { font-size: .84rem !important; color: var(--gray-600) !important; line-height: 1.7 !important; }

/* ── PER CATEGORY SECTION ─────────────────────────────────── */
.per-cat-grid {
  display: grid !important;
  grid-template-columns: repeat(4,1fr) !important;
  gap: 1.5rem !important;
}
@media (max-width: 900px) { .per-cat-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 560px) { .per-cat-grid { grid-template-columns: 1fr !important; } }

.per-cat-col {
  background: var(--white) !important;
  border: 1.5px solid var(--gray-200) !important;
  border-radius: 20px !important;
  padding: 1.5rem !important;
  box-shadow: 0 2px 12px rgba(10,22,40,.04) !important;
}
.per-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-right: .75rem !important;
  margin-bottom: 1.1rem !important;
  padding-bottom: .85rem !important;
  border-bottom: 1px solid var(--gray-200) !important;
  border-right-width: 3px !important;
}
.per-cat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid var(--gray-100) !important;
  text-decoration: none;
  gap: .5rem;
  transition: padding-right .2s;
}
.per-cat-link:last-child { border-bottom: none !important; }
.per-cat-link:hover { padding-right: .3rem; }
.per-cat-title { font-size: .86rem !important; font-weight: 700 !important; color: var(--gray-800) !important; line-height: 1.4 !important; }
.per-cat-meta  { font-size: .72rem !important; color: var(--gray-600) !important; white-space: nowrap; flex-shrink: 0; }
.per-cat-more  { font-size: .75rem !important; font-weight: 700 !important; }

/* ── NEWSLETTER / CTA ─────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%) !important;
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 50%, rgba(212,168,67,.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(37,99,168,.2) 0%, transparent 55%);
  pointer-events: none;
}
.newsletter-box { position: relative; z-index: 1; }
.newsletter-content h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  color: var(--white) !important;
}
.newsletter-content p { color: rgba(255,255,255,.7) !important; }
.btn-white {
  background: var(--white) !important;
  color: #000000 !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.2) !important;
}
.btn-white:hover { background: #bae6fd !important; }

/* ── READING PROGRESS: ذهبي ───────────────────────────────── */
#reading-progress {
  background: linear-gradient(90deg, var(--navy-600), #ffffff) !important;
  height: 3px !important;
}

/* ── BACK TO TOP ──────────────────────────────────────────── */
#back-to-top {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600)) !important;
  box-shadow: 0 8px 24px rgba(10,22,40,.3) !important;
}
#back-to-top:hover {
  background: linear-gradient(135deg, #ffffff, #e0f2fe) !important;
  box-shadow: 0 12px 32px rgba(212,168,67,.4) !important;
}

/* ── PAGE HERO BAR ────────────────────────────────────────── */
.page-hero-bar {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%) !important;
}

/* ── SINGLE POST: هيدر محسّن ──────────────────────────────── */
.post-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.6rem, 4vw, 2.4rem) !important;
  font-weight: 700 !important;
  color: #000000 !important;
  line-height: 1.35 !important;
}
.post-category-badge {
  font-size: .72rem !important; font-weight: 900 !important;
  letter-spacing: .06em !important; text-transform: uppercase !important;
}

/* ── FOOTER: أقوى ─────────────────────────────────────────── */
.site-footer { background: var(--navy-900) !important; }
.footer-grid { border-bottom: 1px solid rgba(255,255,255,.06); }

/* ── SCROLLBAR: مخصص ──────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--navy-600), var(--navy-700));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #ffffff; }

/* ── SELECTION ────────────────────────────────────────────── */
::selection { background: rgba(212,168,67,.25); color: #000000; }

/* ── DARK MODE V10 ────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  body { background: var(--navy-900) !important; }
  .site-header {
    background: rgba(224,242,254,.97) !important;
    border-bottom-color: rgba(255,255,255,.06) !important;
  }
  .logo-name {
    background: linear-gradient(135deg, var(--navy-300), #e0f2fe) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
  }
  #primary-menu li a { color: rgba(255,255,255,.8) !important; }
  #primary-menu li a:hover { color: #e0f2fe !important; }
  .section-alt { background: rgba(255,255,255,.03) !important; }
  .article-card,
  .category-card,
  .why-card,
  .per-cat-col {
    background: rgba(255,255,255,.05) !important;
    border-color: rgba(255,255,255,.08) !important;
  }
  .section-title { color: var(--white) !important; }
  .article-card-title a { color: var(--white) !important; }
  .article-card-title a:hover { color: #e0f2fe !important; }
  .category-info h3 { color: var(--white) !important; }
  .why-card h3 { color: var(--white) !important; }
  .per-cat-title { color: rgba(255,255,255,.85) !important; }
  .per-cat-col { border-color: rgba(255,255,255,.07) !important; }
  .per-cat-header { border-color: rgba(255,255,255,.07) !important; }
  .per-cat-link { border-color: rgba(255,255,255,.05) !important; }
  ::-webkit-scrollbar-track { background: var(--navy-800); }
}

/* ── MOBILE V10 ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-stats { width: 100% !important; }
  .hero-stat { flex: 1; padding: .85rem 1rem; }
  .hero-stat strong { font-size: 1.6rem !important; }
  .per-cat-grid { grid-template-columns: 1fr !important; }
}

/* ── ANIMATIONS: دخول سلس ────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-badge   { animation: fadeSlideUp .6s var(--ease-smooth) .1s both; }
.hero-title   { animation: fadeSlideUp .7s var(--ease-smooth) .2s both; }
.hero-desc    { animation: fadeSlideUp .7s var(--ease-smooth) .35s both; }
.hero-stats   { animation: fadeSlideUp .7s var(--ease-smooth) .45s both; }
.hero-actions { animation: fadeSlideUp .7s var(--ease-smooth) .55s both; }
.hero-search  { animation: fadeSlideUp .7s var(--ease-smooth) .65s both; }

/* =========================================================
   V12-FIX: إلغاء Dark Mode تماماً — فرض الوضع الفاتح دائماً
   + اللون السماوي الجديد + نص المقالات أسود
   ========================================================= */

/* ── فرض Light Mode بغض النظر عن إعداد الجهاز ──────────── */
:root,
:root[data-theme="dark"],
:root[color-scheme="dark"] {
  --primary:       #3aafa9 !important;
  --primary-light: #4ec9c3 !important;
  --primary-bg:    #f0f9ff !important;
  --background:    #ffffff !important;
  --card:          #ffffff !important;
  --foreground:    #000000 !important;
  --muted:         #475569 !important;
  --border:        #e2e8f0 !important;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08) !important;
  --shadow-md:     0 4px 16px rgba(0,0,0,.10) !important;
  --shadow-lg:     0 10px 40px rgba(0,0,0,.14) !important;
}

/* إلغاء Dark Mode من prefers-color-scheme */
@media (prefers-color-scheme: dark) {
  :root {
    --background:  #ffffff !important;
    --card:        #ffffff !important;
    --foreground:  #000000 !important;
    --muted:       #475569 !important;
    --border:      #e2e8f0 !important;
    --primary-bg:  #f0f9ff !important;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.08) !important;
    --shadow-md:   0 4px 16px rgba(0,0,0,.10) !important;
    --shadow-lg:   0 10px 40px rgba(0,0,0,.14) !important;
    color-scheme: light !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .site-header {
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .site-header .site-name,
  .site-header .site-tagline,
  .nav-menu a,
  .nav-toggle { color: #000000 !important; }
  .article-card,
  .sidebar-widget,
  .why-card,
  .trust-card,
  .author-box,
  .toc-box,
  .per-cat-col,
  .medical-disclaimer,
  .section-alt { background: #f8fafc !important; }
}




/* ═══════════════════════════════════════════════════════
   ألوان مطابقة للموقع — أخضر مائي نظيف
   اللون الرئيسي: #3aafa9
   بدون كلمة "موثوق" في أي مكان
═══════════════════════════════════════════════════════ */

:root {
  --primary:       #3aafa9;
  --primary-light: #5ec6c1;
  --primary-bg:    #e6f7f6;
  --foreground:    #111111;
  --muted:         #555555;
  --background:    #f8fafa;
  --card:          #ffffff;
  --border:        #d0e8e7;
}

/* كل النصوص سوداء */
body, p, span, li, td, th, label,
h1, h2, h3, h4, h5, h6,
.entry-content, .entry-content *,
.post-content, .post-content *,
article *,
.section-title, .section-subtitle,
.post-title, .post-title a,
.post-excerpt, .post-meta,
.category-card-name, .category-card-desc,
.widget *, .sidebar *,
.why-card h3, .why-card p {
  color: #111111;
}

/* عناوين خضراء مائية */
a { color: #3aafa9; }
a:hover { color: #5ec6c1; }

.site-header {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e0eeee;
}

/* الهيرو — حسب الصور: صورة خلفية مع overlay شفاف */
.hero-overlay {
  background: linear-gradient(to left,
    rgba(248,250,250,.88) 0%,
    rgba(248,250,250,.7) 50%,
    rgba(248,250,250,.3) 100%);
}
.hero-title { color: #111111 !important; }
.hero-title em,
.hero-title .highlight {
  color: #3aafa9 !important;
  -webkit-text-fill-color: #3aafa9 !important;
  background: none !important;
  background-clip: unset !important;
}
.hero-desc { color: #333333 !important; }

/* badge الهيرو */
.hero-badge {
  background: rgba(58,175,169,.1) !important;
  border: 1px solid rgba(58,175,169,.3) !important;
  color: #3aafa9 !important;
}

/* الإحصائيات — صندوق أخضر مائي حسب الصور */
.hero-stats-box,
.stats-section .stats-inner,
.stats-bar {
  background: #3aafa9 !important;
  color: #ffffff !important;
}
.hero-stats-box *,
.stats-section .stats-inner *,
.stats-bar * { color: #ffffff !important; }

/* الأزرار الرئيسية */
.btn-primary,
.btn.btn-primary,
button[type="submit"],
.search-submit,
.hero-search button,
.filter-btn.active,
.term-filter.active {
  background: #3aafa9 !important;
  border-color: #3aafa9 !important;
  color: #ffffff !important;
}
.btn-primary:hover,
button[type="submit"]:hover {
  background: #2d9b95 !important;
}

/* زر "الكل" النشط — أخضر مائي */
.filter-btn.active { background: #3aafa9 !important; color: #ffffff !important; }
.filter-btn { background: #ffffff !important; border: 1.5px solid #d0e8e7 !important; color: #111111 !important; }

/* زر outline */
.btn-outline, .btn-ghost {
  background: transparent !important;
  border-color: #3aafa9 !important;
  color: #3aafa9 !important;
}
.btn-outline:hover { background: #3aafa9 !important; color: #ffffff !important; }

/* زر أبيض */
.btn-white {
  background: #ffffff !important;
  color: #3aafa9 !important;
  border: 1.5px solid #d0e8e7 !important;
}

/* البحث */
.hero-search-inner,
.search-bar-wrap,
.hero-search {
  background: #ffffff !important;
  border: 1.5px solid #d0e8e7 !important;
}
.hero-search-inner input,
.search-bar-wrap input,
.hero-search input {
  color: #111111 !important;
  background: transparent !important;
}
.hero-search-inner input::placeholder,
.search-bar-wrap input::placeholder { color: #999999 !important; }

/* بطاقات التصنيفات */
.category-card {
  background: #ffffff !important;
  border: 1px solid #e0eeee !important;
  border-radius: 16px !important;
}
.category-card:hover { border-color: #3aafa9 !important; }
.category-card-name { color: #111111 !important; font-weight: 700 !important; }
.category-card-desc { color: #555555 !important; }

/* بطاقات المقالات */
.post-card, .article-card {
  background: #ffffff !important;
  border: 1px solid #e0eeee !important;
}
.post-card:hover, .article-card:hover {
  border-color: #3aafa9 !important;
}
.post-card *, .article-card * { color: #111111; }
.post-card a:hover, .article-card a:hover { color: #3aafa9; }

/* أيقونة اللوغو */
.logo-mark, .logo-icon, .site-logo-icon {
  background: #3aafa9 !important;
}

/* TOC */
.toc li::before, .toc-number { background: #3aafa9 !important; }

/* حذف eeat-verified-badge — "محتوى موثوق" */
.eeat-verified-badge { display: none !important; }

/* why cards */
.why-card {
  background: #ffffff !important;
  border: 1px solid #e0eeee !important;
  border-radius: 16px !important;
}
.why-card:hover { border-color: #3aafa9 !important; }

/* الخط الملوّن في الفوتر */
.footer-divider,
.site-footer::before {
  background: linear-gradient(90deg, #3aafa9, #5ec6c1, #f59e0b) !important;
}

/* الفوتر — أبيض نظيف حسب الصور */
.site-footer {
  background: #ffffff !important;
  color: #333333 !important;
  border-top: 4px solid #3aafa9 !important;
}
.site-footer * { color: #333333 !important; }
.site-footer h4, .footer-col h4,
.footer-widget-title { color: #111111 !important; font-weight: 800 !important; }
.site-footer a { color: #3aafa9 !important; }
.site-footer a:hover { color: #2d9b95 !important; }
.footer-bottom {
  border-top: 1px solid #e0eeee !important;
  color: #777777 !important;
}
.footer-bottom * { color: #777777 !important; }
.footer-social-icon,
.social-icon {
  background: #f0f9f9 !important;
  border: 1px solid #d0e8e7 !important;
  color: #3aafa9 !important;
}
.footer-social-icon:hover,
.social-icon:hover { background: #3aafa9 !important; color: #ffffff !important; }

/* النشرة البريدية — حسب الصور */
.newsletter-section,
.cta-section {
  background: linear-gradient(135deg, #2d9b95 0%, #3aafa9 50%, #4ec9c3 100%) !important;
}
.newsletter-section *, .cta-section * { color: #ffffff !important; }

/* progress bar */
#rp, .reading-progress { background: #3aafa9 !important; }

/* زر أعلى */
#btt, .back-to-top { background: #3aafa9 !important; color: #ffffff !important; }

/* blockquote */
blockquote { border-right-color: #3aafa9 !important; background: #e6f7f6 !important; }

/* تنبيه طبي */
.medical-disclaimer, .disclaimer-box { border-color: #f59e0b !important; background: #fffbeb !important; }

/* تصنيف badge على البطاقات */
.post-category-badge, .category-badge {
  background: #e6f7f6 !important;
  color: #3aafa9 !important;
}

/* ═══════════════════════════════════════════════════════════
   FINAL COLOR FIX — ألوان موحدة ونظيفة
   اللون الرئيسي: #3aafa9 (أخضر مائي)
   الفوتر: #1a2e2d داكن أنيق
   بدون ألوان متضاربة أو غريبة
═══════════════════════════════════════════════════════════ */

/* 1. متغيرات موحدة نهائية */
:root,
:root[data-theme],
:root[color-scheme] {
  --primary:       #3aafa9 !important;
  --primary-light: #4ec9c3 !important;
  --primary-bg:    #eaf7f6 !important;
  --primary-dark:  #2d9b95 !important;
  --background:    #f7fafa !important;
  --card:          #ffffff !important;
  --foreground:    #111111 !important;
  --muted:         #556060 !important;
  --border:        #d6eceb !important;
  --radius:        12px !important;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06) !important;
  --shadow-md:     0 4px 18px rgba(0,0,0,.09) !important;
  --shadow-lg:     0 10px 40px rgba(0,0,0,.13) !important;
}

/* 2. ألغِ dark mode — ابق على الوضع الفاتح دائماً */
@media (prefers-color-scheme: dark) {
  :root {
    --primary:       #3aafa9 !important;
    --primary-light: #4ec9c3 !important;
    --primary-bg:    #eaf7f6 !important;
    --background:    #f7fafa !important;
    --card:          #ffffff !important;
    --foreground:    #111111 !important;
    --muted:         #556060 !important;
    --border:        #d6eceb !important;
    color-scheme: light !important;
  }
  body { background: #f7fafa !important; color: #111111 !important; }
  .site-header {
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid #d6eceb !important;
  }
  .article-card, .category-card, .why-card, .trust-card,
  .sidebar-widget, .per-cat-col, .single-article-inner,
  .stat-card, .toc-box { background: #ffffff !important; border-color: #d6eceb !important; }
  .section-alt { background: #eaf7f6 !important; }
  .post-content p { color: #222222 !important; }
  .section-title { color: #111111 !important; }
  .article-card-title a { color: #111111 !important; }
  .logo-name { color: #111111 !important; background: none !important; -webkit-text-fill-color: #111111 !important; }
  .main-nav li a, #primary-menu li a { color: #111111 !important; }
}

/* 3. Header نظيف */
.site-header {
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid #d6eceb !important;
}
.site-header::before { display: none !important; }
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, #3aafa9, #4ec9c3, #3aafa9);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(58,175,169,.12) !important; }
.site-header.scrolled::after { opacity: 1; }

.logo-icon {
  background: linear-gradient(135deg, #3aafa9, #4ec9c3) !important;
  box-shadow: 0 4px 14px rgba(58,175,169,.3) !important;
}
.logo-name {
  color: #111111 !important;
  font-weight: 900 !important;
  background: none !important;
  -webkit-text-fill-color: #111111 !important;
  background-clip: unset !important;
}
.logo-sub { color: #3aafa9 !important; }

/* 4. Hero — صورة خلفية مع overlay شفاف دافئ */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(10,30,28,.82) 0%,
    rgba(10,30,28,.60) 55%,
    rgba(10,30,28,.25) 100%
  ) !important;
}
.hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.35) !important;
  font-size: clamp(2rem, 5.5vw, 3.5rem) !important;
}
.hero-title .highlight {
  color: #a8e6e3 !important;
  -webkit-text-fill-color: #a8e6e3 !important;
  background: none !important;
  background-clip: unset !important;
  font-style: italic;
}
.hero-desc { color: rgba(255,255,255,.85) !important; }
.hero-badge {
  background: rgba(58,175,169,.18) !important;
  border: 1px solid rgba(58,175,169,.4) !important;
  color: #a8e6e3 !important;
}

/* 5. Stats bar — أخضر مائي كما في الصور */
.stats-section,
.stats-bar,
.hero-stats-block {
  background: #3aafa9 !important;
  border-radius: 16px !important;
}

/* 6. أزرار */
.btn-primary,
.hero-search-inner button,
.archive-search-form .btn-primary,
.cat-filter-btn.active,
.search-form button {
  background: #3aafa9 !important;
  color: #ffffff !important;
  border-color: #3aafa9 !important;
}
.btn-primary:hover,
.hero-search-inner button:hover {
  background: #2d9b95 !important;
  color: #ffffff !important;
  border-color: #2d9b95 !important;
}
.btn-outline {
  background: transparent !important;
  color: #3aafa9 !important;
  border-color: #3aafa9 !important;
}
.btn-outline:hover { background: #3aafa9 !important; color: #ffffff !important; }
.btn-ghost {
  background: rgba(255,255,255,.12) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,.3) !important;
}
.btn-ghost:hover { background: rgba(255,255,255,.22) !important; }
.btn-white {
  background: #ffffff !important;
  color: #3aafa9 !important;
  border-color: transparent !important;
}
.btn-white:hover { background: #eaf7f6 !important; color: #2d9b95 !important; }

/* Hero search */
.hero-search-inner {
  background: rgba(255,255,255,.12) !important;
  border: 1.5px solid rgba(255,255,255,.28) !important;
  border-radius: 14px !important;
}
.hero-search-inner input { color: #ffffff !important; }
.hero-search-inner input::placeholder { color: rgba(255,255,255,.5) !important; }
.hero-search-inner button {
  background: #3aafa9 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
}
.hero-search-inner button:hover { background: #2d9b95 !important; }

/* 7. بطاقات — بيضاء نظيفة */
.article-card,
.category-card,
.why-card,
.trust-card,
.stat-card {
  background: #ffffff !important;
  border-color: #d6eceb !important;
}
.article-card:hover,
.category-card:hover,
.why-card:hover { border-color: #3aafa9 !important; }

.article-card::after {
  background: linear-gradient(90deg, #3aafa9, #4ec9c3) !important;
}

/* Article title */
.article-card-title a { color: #111111 !important; }
.article-card-title a:hover { color: #3aafa9 !important; }
.article-read-more { color: #3aafa9 !important; }
.article-category-badge { background: #3aafa9 !important; }

/* Category card */
.category-info h3,
.category-card-name { color: #111111 !important; }
.category-info p,
.category-card-desc { color: #556060 !important; }
.cat-arrow { color: #3aafa9 !important; }

/* Why card */
.why-card::before {
  background: linear-gradient(90deg, #3aafa9, #4ec9c3) !important;
}
.why-card h3 { color: #111111 !important; }
.why-card p  { color: #556060 !important; }

/* 8. Section titles */
.section-title { color: #111111 !important; }
.section-desc  { color: #556060 !important; }
.section-header::after {
  background: linear-gradient(90deg, #3aafa9, #4ec9c3) !important;
  width: 52px !important;
  height: 3px !important;
}
.section-more {
  color: #3aafa9 !important;
  border-color: #d6eceb !important;
}
.section-more:hover {
  background: #3aafa9 !important;
  color: #ffffff !important;
  border-color: #3aafa9 !important;
}

/* section-alt  */
.section-alt { background: #eaf7f6 !important; }

/* 9. Per category */
.per-cat-col {
  background: #ffffff !important;
  border-color: #d6eceb !important;
  border-radius: 16px !important;
}
.per-cat-header {
  background: #eaf7f6 !important;
  border-color: #d6eceb !important;
}
.per-cat-link:hover { background: #eaf7f6 !important; color: #3aafa9 !important; }

/* 10. Stats */
.stat-value { color: #3aafa9 !important; }
.stat-label { color: #556060 !important; }

/* 11. Sidebar */
.sidebar-widget {
  background: #ffffff !important;
  border-color: #d6eceb !important;
}
.widget-title::before { background: #3aafa9 !important; }
.cat-count { background: #eaf7f6 !important; color: #3aafa9 !important; }
.categories-list a:hover { background: #eaf7f6 !important; color: #3aafa9 !important; }

/* 12. Single post */
.post-category-badge {
  background: #eaf7f6 !important;
  color: #3aafa9 !important;
}
.toc-box {
  background: #eaf7f6 !important;
  border-right: 4px solid #3aafa9 !important;
  border-radius: 12px !important;
}
.toc-list a::before { background: #3aafa9 !important; }
.post-content h2 { border-bottom-color: #d6eceb !important; }
.post-content blockquote {
  border-right-color: #3aafa9 !important;
  background: #eaf7f6 !important;
}
.post-content p { color: #222222 !important; }
.share-btn--twitter  { background: #1a1a1a !important; }
.share-btn--facebook { background: #1877f2 !important; }
.share-btn--whatsapp { background: #25d366 !important; }

/* 13. Breadcrumb */
.post-breadcrumb a { color: #3aafa9 !important; }

/* 14. Newsletter / CTA */
.newsletter-section {
  background: linear-gradient(135deg, #2d9b95 0%, #3aafa9 50%, #4ec9c3 100%) !important;
}
.newsletter-section::before { display: none !important; }
.newsletter-content h2 { color: #ffffff !important; }
.newsletter-content p  { color: rgba(255,255,255,.85) !important; }

/* 15. Pagination */
.pagination a:hover,
.pagination .current,
.page-numbers li a:hover,
.page-numbers li .current {
  background: #3aafa9 !important;
  border-color: #3aafa9 !important;
  color: #ffffff !important;
}

/* 16. Filter buttons */
.cat-filter-btn.active {
  background: #3aafa9 !important;
  border-color: #3aafa9 !important;
  color: #ffffff !important;
}

/* 17. Progress bar */
#reading-progress {
  background: linear-gradient(90deg, #3aafa9, #4ec9c3) !important;
}

/* 18. Back to top */
#back-to-top {
  background: #3aafa9 !important;
  box-shadow: 0 6px 20px rgba(58,175,169,.35) !important;
  border-radius: 12px !important;
}
#back-to-top:hover {
  background: #2d9b95 !important;
  transform: translateY(-3px) !important;
}

/* 19. Footer — داكن أنيق */
.site-footer {
  background: #112220 !important;
  color: #ffffff !important;
  border-top: 3px solid #3aafa9 !important;
  margin-top: 4rem;
  padding: 3.5rem 0 0;
}
.footer-grid {
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
.footer-col h4 {
  color: #ffffff !important;
  font-weight: 800 !important;
  border-bottom-color: #3aafa9 !important;
}
.footer-col ul a {
  color: #ffffff !important;
}
.footer-col ul a::before { color: #ffffff !important; }
.footer-col ul a:hover { color: #4ec9c3 !important; }
.footer-desc { color: #ffffff !important; }

/* Logo in footer */
.footer-brand .logo-name {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
}
.footer-brand .logo-sub { color: #3aafa9 !important; }

/* Footer social */
.footer-social a {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #ffffff !important;
}
.footer-social a:hover {
  background: #3aafa9 !important;
  border-color: #3aafa9 !important;
  color: #ffffff !important;
}
/* Platform hover colors */
.footer-social a:nth-child(1):hover { background: #1a1a1a !important; border-color: #1a1a1a !important; }
.footer-social a:nth-child(2):hover { background: #1877f2 !important; border-color: #1877f2 !important; }
.footer-social a:nth-child(3):hover { background: #e1306c !important; border-color: #e1306c !important; }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.6) !important;
}
.footer-bottom * { color: rgba(255,255,255,.6) !important; }
.footer-bottom a:hover { color: #ffffff !important; }

/* Footer disclaimer */
.footer-medical-notice { border-top-color: rgba(255,255,255,.06) !important; }
.footer-medical-notice p { color: rgba(255,255,255,.55) !important; }
.footer-disclaimer p { color: rgba(255,255,255,.55) !important; }

/* Gradient divider above footer */
.footer-divider,
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #3aafa9, #4ec9c3, transparent) !important;
  border: none;
  margin: 0;
}

/* 20. Medical disclaimer */
.medical-disclaimer {
  background: #fffbeb !important;
  border-right-color: #f59e0b !important;
  border-color: #fde68a !important;
  color: #92400e !important;
}
.medical-disclaimer svg { color: #d97706 !important; }

/* 21. eeat badge — إخفاء نص "موثوق" */
.eeat-verified-badge { display: none !important; }

/* 22. Inputs focus */
input:focus,
textarea:focus,
select:focus {
  border-color: #3aafa9 !important;
  box-shadow: 0 0 0 3px rgba(58,175,169,.12) !important;
  outline: none !important;
}

/* 23. Ad units */
.ad-unit--content {
  background: #f7fafa !important;
  border-color: #d6eceb !important;
}

/* 24. Focus visible */
:focus-visible {
  outline: 2px solid #3aafa9 !important;
  outline-offset: 3px;
  border-radius: 4px;
}

/* 25. Selection */
::selection {
  background: rgba(58,175,169,.22) !important;
  color: #111111 !important;
}

/* 26. Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f0f7f6; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3aafa9, #2d9b95);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #2d9b95; }

/* 27. Page hero bar */
.page-hero-bar {
  background: linear-gradient(135deg, #2d9b95 0%, #3aafa9 60%, #4ec9c3 100%) !important;
}
.page-hero-title { color: #ffffff !important; }

/* 28. trust badges */
.trust-badge {
  background: #eaf7f6 !important;
  color: #3aafa9 !important;
  border-color: #c5e8e6 !important;
}

/* 29. Hero stats box (stats-section داخل الهيرو) */
.stats-section { overflow: hidden; }
.stats-section .container > div,
.stats-row {
  background: #3aafa9 !important;
  border-radius: 20px !important;
  color: #ffffff !important;
}
.stats-section * { color: #ffffff !important; }

/* 30. Nav */
.main-nav li a,
#primary-menu li a {
  color: #334444 !important;
}
.main-nav li a:hover,
.main-nav li.current-menu-item a,
#primary-menu li a:hover,
#primary-menu li.current-menu-item a {
  color: #3aafa9 !important;
  background: #eaf7f6 !important;
}

/* ── تصحيح نهائي: كل الأزرار المتبقية ──────────────────── */

/* زر إرسال التعليق */
#wp-submit,
#submit,
input[type="submit"],
button[type="submit"] {
  background: #3aafa9 !important;
  background-image: none !important;
  border-color: #3aafa9 !important;
  color: #ffffff !important;
}
input[type="submit"]:hover,
button[type="submit"]:hover,
#wp-submit:hover { background: #2d9b95 !important; }

/* زر وضع القراءة العائم */
#al12-reader-mode {
  background: #3aafa9 !important;
}
#al12-reader-mode.active {
  background: #2d9b95 !important;
}

/* أي لون أزرق متبقي في الروابط */
a[style*="#0284c7"],
a[style*="#0ea5e9"],
a[style*="#2563eb"] {
  color: #3aafa9 !important;
}

/* WordPress default comment reply link */
.comment-reply-link,
.comment-reply-login { color: #3aafa9 !important; }

/* meta-theme-color لا يؤثر على الواجهة لكن للتوحيد */

/* ── أزرار المشاركة: نص أبيض دائماً ────────────────────── */
.share-btn,
.share-btn--twitter,
.share-btn--facebook,
.share-btn--whatsapp {
  color: #ffffff !important;
}
.share-btn:hover,
.share-btn--twitter:hover,
.share-btn--facebook:hover,
.share-btn--whatsapp:hover {
  color: #ffffff !important;
  opacity: .88;
}
/* واتساب */
.share-btn--whatsapp { background: #25d366 !important; color: #ffffff !important; }
/* فيسبوك */
.share-btn--facebook { background: #1877f2 !important; color: #ffffff !important; }
/* تويتر / X */
.share-btn--twitter  { background: #1a1a1a !important; color: #ffffff !important; }

/* ══════════════════════════════════════════════════════════
   FINAL COMPLETE FIX — إلغاء كل --navy variables نهائياً
   ══════════════════════════════════════════════════════════ */
:root {
  --navy-900: #eaf7f6 !important;
  --navy-800: #c5e8e6 !important;
  --navy-700: #3aafa9 !important;
  --navy-600: #3aafa9 !important;
  --navy-500: #3aafa9 !important;
  --navy-400: #3aafa9 !important;
  --navy-300: #4ec9c3 !important;
  --navy-200: #d6eceb !important;
  --gold-500: #3aafa9 !important;
  --gold-400: #eaf7f6 !important;
}

/* تصحيح gradients التي تستخدم #3aafa9 و #4ec9c3 */
#reading-progress {
  background: linear-gradient(90deg, #3aafa9, #4ec9c3) !important;
}
.section-header::after {
  background: linear-gradient(90deg, #3aafa9, #4ec9c3) !important;
}
.article-card::after {
  background: linear-gradient(90deg, #3aafa9, #4ec9c3) !important;
}
.why-card::before {
  background: linear-gradient(90deg, #3aafa9, #4ec9c3) !important;
}
.site-header::after {
  background: linear-gradient(90deg, #3aafa9, #4ec9c3, #3aafa9) !important;
}
.error-404-content h1 {
  background: linear-gradient(135deg, #3aafa9, #4ec9c3) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3aafa9, #2d9b95) !important;
}

/* hero highlight */
.hero-title .highlight {
  color: #a8e6e3 !important;
  -webkit-text-fill-color: #a8e6e3 !important;
  background: none !important;
}

/* ── إصلاح نهائي: أيقونات السوشل ميديا + زر التعليق ────── */

/* أيقونات SVG داخل أزرار المشاركة — أبيض دائماً */
.share-btn svg,
.share-btn--twitter svg,
.share-btn--facebook svg,
.share-btn--whatsapp svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* نص أزرار المشاركة — أبيض */
.share-btn,
.share-btn * {
  color: #ffffff !important;
}

/* زر إرسال التعليق */
#wp-submit,
input#wp-submit,
input[type="submit"]#wp-submit {
  background: linear-gradient(135deg, #2d9b95, #3aafa9) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: .65rem 2rem !important;
  cursor: pointer !important;
  font-family: inherit !important;
}
#wp-submit:hover {
  background: #2d9b95 !important;
  color: #ffffff !important;
}

/* كل أزرار submit في النماذج */
input[type="submit"],
button[type="submit"] {
  background: #3aafa9 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: #2d9b95 !important;
  color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════
   ABSOLUTE FINAL FIX — لا أزرق في أي مكان
   ══════════════════════════════════════════════════════ */

/* إلغاء Dark Mode تماماً — الموقع فاتح دائماً */
@media (prefers-color-scheme: dark) {
  :root {
    --primary:       #3aafa9 !important;
    --primary-light: #4ec9c3 !important;
    --primary-bg:    #eaf7f6 !important;
    --primary-dark:  #2d9b95 !important;
    --background:    #f7fafa !important;
    --card:          #ffffff !important;
    --foreground:    #111111 !important;
    --muted:         #556060 !important;
    --border:        #d6eceb !important;
    color-scheme: light !important;
  }
  body, .site-header, .article-card, .category-card,
  .why-card, .sidebar-widget, .per-cat-col, .single-article-inner,
  .stat-card, .toc-box, .footer-col, main, section, aside {
    background-color: revert !important;
    color: revert !important;
  }
  /* Force light mode globally */
  html { color-scheme: light !important; }
}

/* زر إرسال التعليق — front-end */
#respond #wp-submit,
#commentform #wp-submit,
.comment-form #wp-submit,
#wp-submit {
  background: #3aafa9 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: .6rem 2rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(58,175,169,.3) !important;
}
#respond #wp-submit:hover,
#commentform #wp-submit:hover { background: #2d9b95 !important; color: #ffffff !important; }

/* أزرار المشاركة — نص وأيقونات بيضاء قطعياً */
a.share-btn,
a.share-btn span,
a.share-btn svg,
a.share-btn svg path,
.share-btn, .share-btn *, .share-btn svg, .share-btn svg * {
  color: #ffffff !important;
  fill: #ffffff !important;
}
a.share-btn--twitter,  .share-btn--twitter  { background: #000000 !important; color: #ffffff !important; }
a.share-btn--facebook, .share-btn--facebook { background: #1877f2 !important; color: #ffffff !important; }
a.share-btn--whatsapp, .share-btn--whatsapp { background: #25d366 !important; color: #ffffff !important; }

/* ── إصلاح نهائي: صندوق المشاركة ─────────────────────── */
.share-buttons {
  background: #f8f8f8 !important;
  border: 1px solid #e5e5e5 !important;
}
.share-btn--twitter   { background: #000000 !important; color: #ffffff !important; }
.share-btn--facebook  { background: #1877f2 !important; color: #ffffff !important; }
.share-btn--whatsapp  { background: #25d366 !important; color: #ffffff !important; }
.share-btn, .share-btn * { color: #ffffff !important; }
.share-btn svg, .share-btn svg path { fill: #ffffff !important; }

/* ── إصلاح نهائي: الفوتر + بطاقة التصنيف ───────────────── */

/* الفوتر — كل النصوص بيضاء */
.site-footer,
.site-footer *:not(.footer-social a):not(.btn) {
  color: #ffffff !important;
}
.site-footer a { color: #ffffff !important; }
.site-footer a:hover { color: #4ec9c3 !important; }
.footer-bottom,
.footer-bottom * { color: rgba(255,255,255,.6) !important; }
.footer-bottom a:hover { color: #ffffff !important; }
.footer-desc { color: rgba(255,255,255,.8) !important; }
.footer-col h4 { color: #ffffff !important; }
.footer-medical-notice p,
.footer-disclaimer p { color: rgba(255,255,255,.5) !important; }

/* بطاقة التصنيف على صورة المقال — نص أسود واضح */
.article-category-badge,
.post-category-badge,
.cat-badge {
  background: #3aafa9 !important;
  color: #ffffff !important;
}

/* ── تصحيح نهائي: بطاقة التصنيف + روابط الفوتر ──────── */
.article-category-badge,
.post-category-badge,
.cat-badge,
.category-badge {
  background: #3aafa9 !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

/* روابط الفوتر — أبيض */
.site-footer a,
.footer-col a,
.footer-col ul a,
.footer-col ul li a {
  color: #ffffff !important;
}
.site-footer a:hover,
.footer-col a:hover { color: #4ec9c3 !important; }

/* ── إصلاح نهائي: كل كلمات الفوتر بيضاء ──────────────── */
.site-footer h4,
.footer-col h4,
.footer-widget-title,
.footer-col a,
.footer-col ul a,
.footer-col ul li a,
.site-footer a,
.footer-desc,
.footer-col li,
.footer-col ul li {
  color: #ffffff !important;
}
.site-footer a:hover,
.footer-col a:hover { color: #4ec9c3 !important; }

/* ── بطاقة التصنيف: خلفية خضراء + كلمة بيضاء ─────────── */
.article-category-badge,
.post-category-badge,
.cat-badge,
.category-badge {
  background: #3aafa9 !important;
  color: #ffffff !important;
  text-shadow: none !important;
}
