/* =========================================================
   فِكْر وتواصُل — نظام التصميم
   پاليت هادئة: أخضر مريمي (Sage) + بيج دافئ
   ========================================================= */

/* ---------- 1. المتغيرات ---------- */
:root {
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --surface-2: #F4F0E6;
  --text: #33402F;
  --text-soft: #55644F;
  --muted: #86927E;
  --primary: #5F7350;
  --primary-hover: #4C5F40;
  --primary-soft: #E9EFE2;
  --primary-softer: #F2F5EB;
  --accent: #C9A87C;
  --accent-strong: #B08F5F;
  --accent-soft: #F6EEDF;
  --border: #E7E0CF;
  --border-soft: #EFEAD8;
  --footer-bg: #2C3828;
  --footer-text: #C9D2BF;
  --ring: rgba(95, 115, 80, 0.30);
  --shadow-sm: 0 2px 10px rgba(51, 64, 47, 0.05);
  --shadow-md: 0 10px 30px rgba(51, 64, 47, 0.09);
  --shadow-lg: 0 24px 60px rgba(51, 64, 47, 0.14);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --font-head: 'Amiri', 'Tajawal', serif;
  --font-body: 'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

/* ---------- 2. إعادة الضبط ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

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

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

ul, ol { list-style-position: inside; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--primary-soft); color: var(--primary-hover); }

/* شريط تمرير أنيق */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: #C9C3B2; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #B3AC99; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ---------- 3. الطباعة ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.12rem; }

p { color: var(--text-soft); }

.lead { font-size: 1.14rem; color: var(--text-soft); }

.text-muted { color: var(--muted); font-size: .92rem; }

/* رابط تخطي المحتوى (وصولية) */
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: .7rem 1.4rem;
  border-radius: 0 0 12px 12px; font-weight: 500;
}
.skip-link:focus { inset-inline-start: 16px; }

.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;
}

/* ---------- 4. الحاويات والأقسام ---------- */
.container { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }

.section-alt { background: var(--surface-2); }

.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head p { margin-top: .8rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary-soft); color: var(--primary-hover);
  font-size: .82rem; font-weight: 700; letter-spacing: .2px;
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow .icon { width: 15px; height: 15px; }

.section-title { margin-bottom: 0; }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- 5. الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.7rem; border-radius: 999px;
  font-family: var(--font-body); font-size: .98rem; font-weight: 700;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(95, 115, 80, 0.30); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(95, 115, 80, 0.38); }

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

.btn-soft { background: var(--primary-soft); color: var(--primary-hover); }
.btn-soft:hover { background: #DFE8D2; transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { padding: .5rem 1.15rem; font-size: .88rem; }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.05rem; }

.btn-block { width: 100%; }

/* ---------- 6. الأيقونات ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-lg { width: 26px; height: 26px; }
.icon-sm { width: 15px; height: 15px; }

/* ---------- 7. الترويسة ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 24px rgba(51, 64, 47, 0.06); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #7C9070 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 6px 16px rgba(95, 115, 80, 0.30);
  transition: transform .3s ease;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.42rem; color: var(--text); line-height: 1; }
.brand-text .brand-and { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }

.nav-list { display: flex; align-items: center; gap: .35rem; list-style: none; }

.nav-link {
  display: inline-block; padding: .5rem .95rem; border-radius: 999px;
  color: var(--text-soft); font-weight: 500; font-size: .96rem;
  transition: background .25s ease, color .25s ease;
}
.nav-link:hover { background: var(--primary-soft); color: var(--primary-hover); }
.nav-link.active { background: var(--primary); color: #fff; font-weight: 700; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  align-items: center; justify-content: center; color: var(--text);
}

/* قائمة الموبايل */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: 0; inset-inline-end: 0;
    height: 100vh; height: 100dvh;
    width: min(320px, 82vw); background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 1.2rem;
    padding: 5.2rem 1.6rem calc(2rem + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-lg); z-index: 150;
    transform: translateX(110%); transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
  }
  [dir="rtl"] .main-nav { transform: translateX(-110%); }
  body.nav-open .main-nav { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: .3rem; }
  .nav-link { display: block; padding: .8rem 1.1rem; font-size: 1.05rem; }
  .nav-cta { justify-content: center; }
}
.nav-overlay {
  position: fixed; inset: 0; background: rgba(44, 56, 40, 0.42);
  backdrop-filter: blur(3px); z-index: 140; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ---------- 8. قسم البطل Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.2rem) 0 clamp(3.4rem, 7vw, 5.6rem); }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--surface); border: 1px solid var(--border);
  padding: .45rem 1.1rem; border-radius: 999px;
  font-size: .86rem; font-weight: 500; color: var(--text-soft);
  box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 2.4s ease infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(95,115,80,.35); } 50% { box-shadow: 0 0 0 7px rgba(95,115,80,0); } }

.hero-title { margin-bottom: 1.1rem; }
.hero-title .accent-word { color: var(--primary); position: relative; white-space: nowrap; }
.hero-title .accent-word::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .18em; height: .32em;
  background: var(--accent-soft); z-index: -1; border-radius: 4px;
}

.hero-desc { font-size: 1.13rem; max-width: 540px; margin-bottom: 2rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hero-points li { display: flex; align-items: center; gap: .5rem; list-style: none; font-size: .92rem; color: var(--text-soft); font-weight: 500; }
.hero-points .icon { width: 18px; height: 18px; color: var(--primary); }

.hero-media { position: relative; }
.hero-media .hero-img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface); width: 100%;
}

.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: .8rem 1.1rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .7rem; font-size: .88rem; font-weight: 700;
  animation: floaty 5.5s ease-in-out infinite;
}
.float-card .icon { width: 21px; height: 21px; color: var(--primary); }
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.float-card.fc-1 { inset-inline-end: -14px; top: 22px; }
.float-card.fc-2 { inset-inline-start: -10px; bottom: 30px; animation-delay: 1.6s; }
.float-card.fc-2 .icon { color: var(--accent-strong); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* أشكال زخرفية ناعمة */
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  pointer-events: none; z-index: -1;
}
.blob-1 { width: 480px; height: 480px; background: #DDE7CE; top: -160px; inset-inline-start: -140px; }
.blob-2 { width: 420px; height: 420px; background: #F0E5CF; bottom: -180px; inset-inline-end: -120px; }

/* ---------- 9. شريط الأرقام ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--footer-bg) 0%, #3A4A33 100%);
  border-radius: var(--radius-lg); padding: 2.2rem 1.6rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; color: #fff; line-height: 1.2; }
.stat-num span.suffix { color: var(--accent); }
.stat-label { color: var(--footer-text); font-size: .92rem; margin-top: .2rem; }

/* ---------- 10. بطاقة المقال ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.post-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.06); }

.cat-chip {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(250, 247, 240, 0.94); color: var(--primary-hover);
  font-size: .78rem; font-weight: 700; padding: .3rem .85rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.post-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-meta .icon { width: 14px; height: 14px; }
.post-title { font-size: 1.22rem; line-height: 1.65; margin-bottom: .55rem; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); }
.post-excerpt { font-size: .94rem; flex: 1; margin-bottom: 1.1rem; }
.post-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .92rem; margin-top: auto; }
.post-link .icon { width: 16px; height: 16px; transition: transform .3s ease; }
.post-link:hover .icon { transform: translateX(-5px); }

/* ---------- 11. شرائح التصنيف ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.4rem; }
.chip {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
  padding: .5rem 1.25rem; border-radius: 999px; font-size: .9rem; font-weight: 700;
  transition: all .25s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary-hover); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(95, 115, 80, 0.28); }

/* ---------- 12. بطاقة الفيديو ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.video-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; cursor: pointer;
  text-align: start; padding: 0; display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }

.play-btn {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
  background: rgba(250, 247, 240, 0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--primary-hover);
  box-shadow: var(--shadow-md); transition: transform .3s ease, background .3s ease;
}
.video-card:hover .play-btn { transform: scale(1.12); background: #fff; }
.play-btn .icon { width: 22px; height: 22px; margin-inline-start: 3px; }

.duration-badge {
  position: absolute; bottom: 10px; inset-inline-end: 10px;
  background: rgba(44, 56, 40, 0.85); color: #fff; font-size: .76rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 8px;
}

/* ---------- 13. شريط الاقتباس ---------- */
.quote-band {
  background: linear-gradient(135deg, var(--primary-softer) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; position: relative; overflow: hidden;
}
.quote-band .icon-quote { width: 42px; height: 42px; color: var(--accent-strong); opacity: .55; margin-inline: auto; margin-bottom: 1rem; }
.quote-text { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--text); max-width: 760px; margin-inline: auto; line-height: 2; }
.quote-author { margin-top: 1rem; color: var(--primary-hover); font-weight: 700; font-size: .95rem; }

/* ---------- 14. النشرة البريدية ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--footer-bg), #3D5035);
  border-radius: var(--radius-lg); padding: clamp(2.4rem, 5vw, 3.8rem);
  text-align: center; position: relative; overflow: hidden;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: var(--footer-text); max-width: 540px; margin: .8rem auto 1.8rem; }
.newsletter-form { display: flex; gap: .7rem; max-width: 480px; margin-inline: auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: .85rem 1.3rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.12);
  color: #fff; font-family: var(--font-body); font-size: .96rem;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.65); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.18); }
.newsletter-note { font-size: .8rem; color: rgba(201, 210, 191, 0.75); margin-top: 1rem; }

/* ---------- 15. صفحة من نحن ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.6rem); align-items: center; }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 6px solid var(--surface); }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* شبكات مرنة تتحول لعمود واحد على الشاشات الصغيرة */
@media (min-width: 861px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; transition: transform .3s ease, box-shadow .3s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft);
  color: var(--primary-hover); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.value-icon .icon { width: 24px; height: 24px; }
.value-card:nth-child(2) .value-icon { background: var(--accent-soft); color: var(--accent-strong); }
.value-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.value-card p { font-size: .92rem; }

/* ---------- 16. صفحة المقال ---------- */
.article-hero { padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.breadcrumbs { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem; font-size: .86rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs .icon { width: 14px; height: 14px; }
.article-hero h1 { max-width: 820px; margin-inline: auto; margin-bottom: 1.2rem; }
.article-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .88rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta .icon { width: 15px; height: 15px; color: var(--primary); }
.article-meta .cat-chip { position: static; }

.article-cover { max-width: 900px; margin-inline: auto; }
.article-cover img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.article-layout { max-width: 800px; margin-inline: auto; }

.article-body h2 { margin: 2.6rem 0 1rem; font-size: 1.7rem; }
.article-body h3 { margin: 2rem 0 .8rem; font-size: 1.32rem; }
.article-body p { margin-bottom: 1.2rem; font-size: 1.05rem; color: var(--text-soft); }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding-inline-start: 1rem; display: grid; gap: .55rem; color: var(--text-soft); }
.article-body li::marker { color: var(--primary); }
.article-body strong { color: var(--text); }

.article-body blockquote {
  background: var(--primary-softer); border-inline-start: 4px solid var(--primary);
  border-radius: 14px; padding: 1.4rem 1.6rem; margin: 1.8rem 0;
  font-family: var(--font-head); font-size: 1.18rem; color: var(--primary-hover); line-height: 2;
}

.article-share {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; margin: 2.6rem 0;
}
.share-buttons { display: flex; gap: .6rem; }
.share-btn {
  width: 42px; height: 42px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft); transition: all .25s ease;
}
.share-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.share-btn .icon { width: 18px; height: 18px; }

/* ---------- 17. صفحة الخصوصية ---------- */
.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.4rem; align-items: start; }
.policy-toc {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.policy-toc h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.policy-toc ol { list-style: none; display: grid; gap: .3rem; counter-reset: toc; }
.policy-toc a {
  display: block; padding: .45rem .8rem; border-radius: 10px;
  font-size: .88rem; color: var(--text-soft);
}
.policy-toc a:hover { background: var(--primary-softer); color: var(--primary-hover); }

.policy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); }
.policy-card h2 { font-size: 1.45rem; margin: 2.2rem 0 .9rem; padding-top: 1.2rem; border-top: 1px dashed var(--border); }
.policy-card h2:first-of-type { margin-top: 1.4rem; }
.policy-card p, .policy-card li { font-size: 1rem; }
.policy-card ul { margin-bottom: 1.2rem; padding-inline-start: 1.2rem; display: grid; gap: .45rem; color: var(--text-soft); }
.policy-updated {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--accent-soft);
  color: var(--accent-strong); font-size: .85rem; font-weight: 700;
  padding: .4rem 1rem; border-radius: 999px; margin-top: 1.2rem;
}

/* ---------- 18. صفحة التواصل ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.2rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-card .contact-icon {
  width: 50px; height: 50px; border-radius: 15px; background: var(--primary-soft);
  color: var(--primary-hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card:nth-child(2) .contact-icon { background: var(--accent-soft); color: var(--accent-strong); }
.contact-card h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.contact-card p { font-size: .92rem; }
.contact-card a { font-weight: 700; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .45rem; color: var(--text); }
.form-field label .req { color: var(--accent-strong); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .8rem 1.1rem; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-family: var(--font-body); font-size: .96rem; color: var(--text);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(95, 115, 80, 0.12); background: #fff;
}
.form-note { font-size: .8rem; color: var(--muted); margin-top: .9rem; }

.hp-field { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-success {
  display: none; align-items: center; gap: .7rem; background: var(--primary-soft);
  color: var(--primary-hover); border-radius: 12px; padding: 1rem 1.3rem;
  font-weight: 700; margin-top: 1rem; font-size: .95rem;
}
.form-success.show { display: flex; }
.form-success .icon { color: var(--primary); }

/* ---------- 19. التذييل ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: auto; flex-shrink: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.2rem;
  padding: clamp(2.6rem, 5vw, 3.8rem) 0 2.2rem;
}
.footer-brand .brand-text { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand p { color: var(--footer-text); font-size: .92rem; margin-top: 1rem; max-width: 320px; }

.footer-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.08);
  color: var(--footer-text); display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-social .icon { width: 18px; height: 18px; }

.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: var(--footer-text); font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.footer-col a:hover { color: #fff; }
.footer-col a .icon { width: 13px; height: 13px; }
.footer-col li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; }
.footer-col li .icon { width: 17px; height: 17px; margin-top: .25rem; color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.10); padding: 1.3rem 0; padding-bottom: calc(1.3rem + env(safe-area-inset-bottom, 0px)); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .85rem; }
.footer-bottom-inner a { color: var(--footer-text); }
.footer-bottom-inner a:hover { color: #fff; }

/* ---------- 20. إشعار الكوكيز ---------- */
.cookie-banner {
  position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 180;
  max-width: 560px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.2rem 1.4rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  animation: riseIn .5s ease both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .icon { width: 30px; height: 30px; color: var(--accent-strong); flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 220px; font-size: .86rem; color: var(--text-soft); }
.cookie-text a { font-weight: 700; }
.cookie-actions { display: flex; gap: .5rem; }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 21. التنبيهات Toast ---------- */
.toast-stack { position: fixed; bottom: 1.2rem; inset-inline-start: 1.2rem; z-index: 200; display: grid; gap: .6rem; }
.toast {
  display: flex; align-items: center; gap: .7rem;
  background: var(--footer-bg); color: #fff; padding: .9rem 1.3rem;
  border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .92rem; font-weight: 500;
  animation: riseIn .35s ease both; max-width: 360px;
}
.toast .icon { width: 20px; height: 20px; color: var(--accent); }
.toast.hide { opacity: 0; transform: translateY(10px); transition: all .3s ease; }

/* ---------- 22. صفحة 404 ---------- */
.notfound { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.notfound-code { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 9rem); color: var(--primary); opacity: .25; line-height: 1; }

/* ---------- 23. الأنيميشن عند التمرير ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- 25. حسابات التواصل الاجتماعي ---------- */
.nav-social { display: none; }

.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: .5rem; }
.social-card {
  display: flex; align-items: center; gap: .9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.05rem 1.2rem; color: var(--text);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); color: var(--text); }
.social-card .sc-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-card .sc-icon .icon { width: 21px; height: 21px; }
.social-card .sc-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.social-card .sc-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.social-card .sc-handle { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.channel-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary-softer) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem; margin-top: 2.8rem;
}
.channel-band h3 { font-family: var(--font-head); font-size: 1.45rem; margin-bottom: .3rem; }
.channel-band p { font-size: .95rem; color: var(--text-soft); max-width: 540px; }
.channel-band .btn { flex-shrink: 0; }

@media (max-width: 900px) {
  .nav-social {
    display: flex; gap: .4rem; flex-wrap: wrap;
    padding-top: 1.2rem; border-top: 1px solid var(--border-soft);
  }
  .nav-social a {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--primary-softer); border: 1px solid var(--border-soft);
    color: var(--text-soft);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .25s ease;
  }
  .nav-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
  .nav-social .icon { width: 17px; height: 17px; }
}

@media (max-width: 860px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .social-grid { grid-template-columns: 1fr; }
  .channel-band { padding: 1.5rem 1.4rem; }
  .channel-band .btn { width: 100%; justify-content: center; }
}

/* ---------- 26. الاستجابة ---------- */
@media (max-width: 1024px) {
  .post-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; margin-inline: auto; }
  .float-card.fc-1 { inset-inline-end: 6px; }
  .float-card.fc-2 { inset-inline-start: 6px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
  .policy-toc ol { display: none; }
  .policy-toc h3 { margin-bottom: 0; }
}

@media (max-width: 600px) {
  .post-grid, .video-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .newsletter-form .btn { width: 100%; }
  .article-share { justify-content: center; text-align: center; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}
