/*
Theme Name: حكاية حرف
Theme URI: https://letterstory.online
Author: المعلمة أسماء
Description: قالب موقع المعلمة أسماء لتأسيس الأطفال في اللغة العربية بجلسات فردية عن بُعد. عربي بالكامل (RTL)، يدعم الوضع الليلي، ويُنشئ الصفحات والمقالات تلقائياً عند التفعيل.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: letterstory
Tags: rtl-language-support, education, blog, one-column, custom-menu, featured-images
*/

/* ============================================================
   أسماء — تأسيس اللغة العربية | نظام التصميم
   الهوية: دفتر الخط العربي + الحركات الملوّنة
   ============================================================ */

:root {
  /* الحبر والورق */
  --ink: #1b2538;
  --ink-2: #3a4763;
  --muted: #6c7a95;
  --paper: #ffffff;
  --paper-2: #f4f7fb;
  --paper-3: #e9eff7;
  --line: #dbe4f0;
  --rule: #cddcf0;

  /* الحبر الأزرق (اللون الأساسي) */
  --blue: #2457a6;
  --blue-2: #173f80;
  --blue-soft: #e6effc;

  /* الحركات */
  --fatha: #f0a63a;
  --fatha-soft: #fff1d9;
  --damma: #23b09c;
  --damma-soft: #dcf5f0;
  --kasra: #e0577a;
  --kasra-soft: #fde3ea;

  --success: #10b981;
  --whatsapp: #25d366;

  --font-display: "Baloo Bhaijaan 2", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --sh-sm: 0 1px 2px rgba(27, 37, 56, 0.06), 0 2px 8px rgba(27, 37, 56, 0.05);
  --sh: 0 4px 14px rgba(27, 37, 56, 0.08), 0 12px 32px rgba(27, 37, 56, 0.07);
  --sh-lg: 0 10px 30px rgba(27, 37, 56, 0.12), 0 30px 60px rgba(27, 37, 56, 0.12);

  --container: 1160px;
  --nav-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef2f8;
    --ink-2: #c6cfdf;
    --muted: #8f9bb3;
    --paper: #0f1626;
    --paper-2: #151e31;
    --paper-3: #1c2740;
    --line: #26324b;
    --rule: #2a3a58;
    --blue: #6f9ee8;
    --blue-2: #9bbdf3;
    --blue-soft: #1a2a4a;
    --fatha-soft: #3a2c12;
    --damma-soft: #0f332d;
    --kasra-soft: #3d1a26;
    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
    --sh: 0 4px 14px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.3);
    --sh-lg: 0 10px 30px rgba(0, 0, 0, 0.45), 0 30px 60px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --ink: #eef2f8;
  --ink-2: #c6cfdf;
  --muted: #8f9bb3;
  --paper: #0f1626;
  --paper-2: #151e31;
  --paper-3: #1c2740;
  --line: #26324b;
  --rule: #2a3a58;
  --blue: #6f9ee8;
  --blue-2: #9bbdf3;
  --blue-soft: #1a2a4a;
  --fatha-soft: #3a2c12;
  --damma-soft: #0f332d;
  --kasra-soft: #3d1a26;
}

/* ---------- أساسيات ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-2);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  margin: 0 0 0.4em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1em;
}
:focus-visible {
  outline: 3px solid var(--fatha);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}
.section {
  padding: clamp(64px, 9vw, 110px) 0;
}
.section--tint {
  background: var(--paper-2);
}
.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--fatha), var(--damma), var(--kasra));
}
.section-head--center .eyebrow::before {
  display: none;
}
.lead {
  font-size: 1.12rem;
  color: var(--ink-2);
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 8px 20px rgba(36, 87, 166, 0.3);
}
.btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(36, 87, 166, 0.38);
}
.btn--wa {
  color: #fff;
  background: linear-gradient(135deg, #2fd46b, #1aa64f);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.btn--wa:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}
.btn--ghost {
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn--lg {
  padding: 18px 34px;
  font-size: 1.15rem;
}
.btn--sm {
  padding: 10px 18px;
  font-size: 0.95rem;
}

/* ---------- الهيدر ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}
.logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--sh-sm);
  position: relative;
  flex: none;
}
.logo__mark::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fatha);
}
.logo small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  margin-top: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  place-items: center;
  color: var(--ink);
}
.theme-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.15s;
}
.theme-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.theme-btn svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 960px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
  }
  .nav__links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    padding: 14px 18px;
    font-size: 1.05rem;
  }
  .nav__toggle {
    display: grid;
  }
  .nav__cta .btn {
    display: none;
  }
}

/* ---------- البطل (Hero) ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 100px);
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--blue-soft), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, var(--fatha-soft), transparent 60%),
    var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero h1 {
  margin-bottom: 18px;
}
.hero h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--blue);
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  inset: auto 0 4px 0;
  height: 10px;
  border-radius: 6px;
  background: var(--fatha-soft);
  z-index: -1;
}
.hero .lead {
  font-size: 1.18rem;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__trust svg {
  width: 18px;
  height: 18px;
  color: var(--damma);
}

/* دفتر الخط — العنصر المميز */
.notebook {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 34px 34px 28px;
  border: 1px solid var(--line);
  transform: rotate(-1.5deg);
  animation: floatIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notebook {
    background: var(--paper-2);
  }
}
:root[data-theme="dark"] .notebook {
  background: var(--paper-2);
}
.notebook::before {
  /* ثقوب الدفتر */
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  right: 14px;
  width: 10px;
  background: radial-gradient(circle, var(--paper-3) 4px, transparent 5px) 0 0 / 10px 36px repeat-y;
  opacity: 0.9;
}
.notebook__tag {
  position: absolute;
  top: -16px;
  left: 30px;
  background: var(--fatha);
  color: #3a2800;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: var(--sh-sm);
  transform: rotate(3deg);
  font-size: 0.95rem;
}
.notebook__lines {
  position: relative;
  margin-right: 14px;
  background:
    linear-gradient(var(--rule), var(--rule)) 0 25% / 100% 2px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 0 75% / 100% 2px no-repeat,
    linear-gradient(var(--kasra), var(--kasra)) 0 100% / 100% 2px no-repeat;
  background-color: transparent;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-bottom: 12px;
}
.notebook__letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 7vw, 6rem);
  line-height: 1;
  color: var(--ink);
  position: relative;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  animation: popIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) forwards;
}
.notebook__letter:nth-child(1) {
  animation-delay: 0.5s;
}
.notebook__letter:nth-child(2) {
  animation-delay: 0.9s;
}
.notebook__letter:nth-child(3) {
  animation-delay: 1.3s;
}
.notebook__letter .h {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  font-size: 0.42em;
  line-height: 1;
  opacity: 0;
  animation: harakaIn 0.4s ease forwards;
  animation-delay: inherit;
}
.notebook__letter .h--fatha {
  top: -0.18em;
  color: var(--fatha);
}
.notebook__letter .h--damma {
  top: -0.3em;
  color: var(--damma);
}
.notebook__letter .h--kasra {
  bottom: -0.32em;
  color: var(--kasra);
}
.notebook__letter .h {
  animation-delay: 0.9s;
}
.notebook__letter:nth-child(2) .h {
  animation-delay: 1.3s;
}
.notebook__letter:nth-child(3) .h {
  animation-delay: 1.7s;
}
.notebook__legend {
  display: flex;
  justify-content: space-around;
  margin-top: 18px;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.notebook__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
}
.notebook__legend .fatha {
  background: var(--fatha-soft);
  color: #8a5400;
}
.notebook__legend .damma {
  background: var(--damma-soft);
  color: #0d6b5f;
}
.notebook__legend .kasra {
  background: var(--kasra-soft);
  color: #9e2c4a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notebook__legend .fatha { color: var(--fatha); }
  :root:not([data-theme="light"]) .notebook__legend .damma { color: var(--damma); }
  :root:not([data-theme="light"]) .notebook__legend .kasra { color: var(--kasra); }
}
:root[data-theme="dark"] .notebook__legend .fatha { color: var(--fatha); }
:root[data-theme="dark"] .notebook__legend .damma { color: var(--damma); }
:root[data-theme="dark"] .notebook__legend .kasra { color: var(--kasra); }

.notebook__sticker {
  position: absolute;
  bottom: -18px;
  right: 28px;
  background: var(--damma);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--sh);
  transform: rotate(-4deg);
  opacity: 0;
  animation: popIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) forwards;
  animation-delay: 2.2s;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes harakaIn {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }
}
@keyframes floatIn {
  from {
    opacity: 0;
    transform: rotate(-1.5deg) translateY(24px);
  }
  to {
    opacity: 1;
    transform: rotate(-1.5deg) translateY(0);
  }
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .notebook {
    transform: none;
    margin-top: 10px;
  }
  @keyframes floatIn {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- شريط الثقة ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  box-shadow: var(--sh);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--blue);
}
.stat__num sup {
  font-size: 0.5em;
  color: var(--fatha);
}
.stat__label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }
}

/* ---------- البطاقات العامة ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 960px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
  border-color: transparent;
}
.card h3 {
  margin-top: 14px;
}
.card p {
  color: var(--ink-2);
  margin: 0;
}
.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}
.icon-box svg {
  width: 26px;
  height: 26px;
}
.icon-box--fatha {
  background: var(--fatha-soft);
  color: #8a5400;
}
.icon-box--damma {
  background: var(--damma-soft);
  color: #0d6b5f;
}
.icon-box--kasra {
  background: var(--kasra-soft);
  color: #9e2c4a;
}
.icon-box--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

/* ---------- مراحل التأسيس (مسار) ---------- */
.path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.path__step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 28px;
  box-shadow: var(--sh-sm);
  transition: 0.2s;
}
.path__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.path__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.path__num b {
  color: var(--blue);
  font-size: 1.4rem;
  margin-left: 6px;
}
.path__sample {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 6px 0 10px;
  color: var(--ink);
}
.path__sample .f {
  color: var(--fatha);
}
.path__sample .d {
  color: var(--damma);
}
.path__sample .k {
  color: var(--kasra);
}
.path__step p {
  color: var(--ink-2);
  margin: 0;
  font-size: 0.98rem;
}
@media (max-width: 960px) {
  .path {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .path {
    grid-template-columns: 1fr;
  }
}

/* ---------- كيف تسير الجلسات (خطوات زمنية) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  right: 10%;
  left: 10%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--kasra), var(--damma), var(--fatha));
  opacity: 0.5;
}
.step {
  text-align: center;
  padding: 0 10px;
}
.step__dot {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--blue);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue);
  position: relative;
  z-index: 1;
  box-shadow: var(--sh-sm);
}
.step h3 {
  font-size: 1.15rem;
}
.step p {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin: 0;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .steps::before {
    display: none;
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- الباقات ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: 0.2s;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.plan--featured {
  border-color: var(--blue);
  box-shadow: var(--sh-lg);
}
.plan__badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--sh-sm);
}
.plan__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 0 4px;
}
.plan__who {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.plan__price b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue);
}
.plan__price span {
  color: var(--muted);
  font-weight: 600;
}
.plan__per {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 0.98rem;
}
.plan li svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--damma);
  margin-top: 4px;
}
.plan .btn {
  width: 100%;
}
.plan--trial .plan__price b {
  color: var(--damma);
}
@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---------- المقالات ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: 0.2s;
  color: var(--ink);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
  color: var(--ink);
}
.post-card__cover {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.6rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.post-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 94%, rgba(255, 255, 255, 0.35) 94%) 0 0 / 100% 28px;
  opacity: 0.6;
}
.cover--fatha {
  background: linear-gradient(135deg, #f7bd5e, #e58f12);
}
.cover--damma {
  background: linear-gradient(135deg, #3fd1bb, #159a87);
}
.cover--kasra {
  background: linear-gradient(135deg, #f0799a, #c93c62);
}
.cover--blue {
  background: linear-gradient(135deg, #4f82d6, var(--blue-2));
}
.post-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.post-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  gap: 10px;
}
.post-card h3 {
  font-size: 1.2rem;
  margin: 0;
}
.post-card p {
  color: var(--ink-2);
  font-size: 0.97rem;
  margin: 0;
  flex: 1;
}
.post-card__more {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  margin-top: 6px;
}

/* صفحة المقال */
.article {
  max-width: 760px;
  margin-inline: auto;
}
.article__head {
  margin-bottom: 36px;
}
.article__head h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.article__meta {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.article__body {
  font-size: 1.1rem;
  line-height: 2;
}
.article__body h2 {
  font-size: 1.55rem;
  margin: 1.6em 0 0.5em;
}
.article__body h3 {
  font-size: 1.25rem;
  margin: 1.4em 0 0.4em;
}
.article__body ul,
.article__body ol {
  padding-right: 1.4em;
  padding-left: 0;
}
.article__body li {
  margin-bottom: 0.4em;
}
.callout {
  background: var(--blue-soft);
  border-right: 5px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  margin: 1.6em 0;
  color: var(--ink);
}
.callout--fatha {
  background: var(--fatha-soft);
  border-color: var(--fatha);
}
.callout--damma {
  background: var(--damma-soft);
  border-color: var(--damma);
}
.callout--kasra {
  background: var(--kasra-soft);
  border-color: var(--kasra);
}
.callout b {
  font-family: var(--font-display);
}
.article__cta {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.article__cta h3 {
  color: #fff;
  margin: 0 0 4px;
}
.article__cta p {
  margin: 0;
  opacity: 0.9;
}
.article__cta .btn--ghost {
  background: #fff;
  border-color: #fff;
  color: var(--blue-2);
}
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.share span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- آراء الأهالي ---------- */
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: 4px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--fatha-soft);
}
.quote p {
  position: relative;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.quote__who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}
.quote__who small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  flex: none;
}

/* ---------- الأسئلة الشائعة ---------- */
.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 24px;
  box-shadow: var(--sh-sm);
  transition: 0.2s;
}
.faq details[open] {
  border-color: var(--blue);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1.3rem;
  transition: 0.2s;
}
.faq details[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}
.faq details p {
  color: var(--ink-2);
  padding-bottom: 18px;
  margin: 0;
}

/* ---------- دعوة ختامية ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--sh-lg);
}
.cta-band::before {
  content: "أ ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ي";
  position: absolute;
  inset: auto -5% -30px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0.08;
  letter-spacing: 0.3em;
  pointer-events: none;
}
.cta-band h2 {
  color: #fff;
  position: relative;
}
.cta-band p {
  position: relative;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 26px;
  font-size: 1.1rem;
}
.cta-band .btn {
  position: relative;
}

/* ---------- الصفحات الداخلية ---------- */
.page-head {
  padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 56px);
  background:
    radial-gradient(700px 380px at 90% 0%, var(--blue-soft), transparent 65%),
    var(--paper);
}
.page-head h1 {
  margin-bottom: 10px;
}
.page-head .lead {
  max-width: 680px;
  margin: 0;
}

/* عن أسماء */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--blue-soft), var(--fatha-soft));
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait__placeholder {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  padding: 24px;
}
.portrait__placeholder b {
  display: block;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 10px;
}
.portrait__chip {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: var(--sh);
  display: flex;
  align-items: center;
  gap: 8px;
}
.portrait__chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checklist li svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--damma);
  margin-top: 4px;
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* نموذج الحجز */
.booking {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--sh);
  display: grid;
  gap: 16px;
}
.form h3 {
  margin: 0;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 700;
  font-size: 0.95rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  transition: 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form__hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 860px) {
  .booking {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* الموارد */
.resource {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.resource__thumb {
  flex: none;
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--rule), var(--rule)) 0 30% / 100% 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 0 70% / 100% 1px no-repeat,
    var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
}
.resource__body h3 {
  margin: 0 0 6px;
}
.resource__body p {
  margin: 0 0 12px;
}
.chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 8px;
}
.chip--fatha {
  background: var(--fatha-soft);
  color: #8a5400;
}
.chip--damma {
  background: var(--damma-soft);
  color: #0d6b5f;
}
.chip--kasra {
  background: var(--kasra-soft);
  color: #9e2c4a;
}

/* التواصل */
.contact-cards .card {
  display: flex;
  gap: 16px;
  align-items: center;
}
.contact-cards .card h3 {
  margin: 0 0 2px;
  font-size: 1.1rem;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.social-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--sh-sm);
  transition: 0.18s;
}
.social-grid a:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
  color: var(--blue);
}
.social-grid svg {
  width: 24px;
  height: 24px;
}

/* ---------- الفوتر ---------- */
.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: clamp(48px, 7vw, 90px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.footer p {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer ul a {
  color: var(--ink-2);
  font-weight: 500;
}
.footer ul a:hover {
  color: var(--blue);
}
.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: 0.18s;
}
.social-row a:hover {
  transform: translateY(-3px);
  color: var(--blue);
  border-color: var(--blue);
}
.social-row svg {
  width: 20px;
  height: 20px;
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* زر واتساب العائم */
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2fd46b, #1aa64f);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: 0.18s;
}
.wa-float:hover {
  transform: translateY(-3px);
  color: #fff;
}
.wa-float svg {
  width: 24px;
  height: 24px;
}
@media (max-width: 600px) {
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 14px;
  }
}

/* ---------- ظهور عند التمرير ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .notebook__letter,
  .notebook__letter .h,
  .notebook__sticker {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- جداول وقصص داخل المقالات ---------- */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.article__body table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.7; }
.article__body th { background: var(--blue-soft); color: var(--blue); font-family: var(--font-display); font-weight: 700; text-align: right; padding: 12px 16px; white-space: nowrap; }
.article__body td { padding: 12px 16px; border-top: 1px solid var(--line); }
.article__body td:first-child { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.article__body tbody tr:hover { background: var(--paper-2); }
.story { margin: 1.6em 0; padding: 24px 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--fatha-soft), var(--paper-2)); border-right: 6px solid var(--fatha); }
.story > :last-child { margin-bottom: 0; }
.story ul { margin: 0.6em 0; }
.story--song { background: linear-gradient(135deg, var(--damma-soft), var(--paper-2)); border-right-color: var(--damma); text-align: center; border-radius: var(--r-lg); }
.story--song p { line-height: 2.2; font-size: 1.15rem; }
.article__body small { color: var(--muted); font-size: 0.92rem; }


/* ============================================================
   إضافات خاصة بووردبريس
   ============================================================ */

/* شريط الإدارة */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 960px) {
  .admin-bar .nav__links { top: calc(var(--nav-h) + 32px); }
}
@media (max-width: 782px) and (max-width: 960px) {
  .admin-bar .nav__links { top: calc(var(--nav-h) + 46px); }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* محتوى يحرّره المستخدم من لوحة التحكم */
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.55rem; margin: 1.4em 0 0.5em; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content img, .article__body img { max-width: 100%; height: auto; border-radius: var(--r); }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { color: var(--muted); font-size: 0.9rem; text-align: center; margin-top: 8px; }
.entry-content .alignleft { float: left; margin: 0 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.4em; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content ul, .entry-content ol { padding-right: 1.4em; padding-left: 0; }
.entry-content .checklist { padding: 0; }
.entry-content .checklist li::before {
  content: "\2713";
  flex: none; width: 24px; height: 24px; margin-top: 4px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--damma-soft); color: var(--damma);
  font-weight: 800; font-size: 0.85rem; line-height: 1;
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a.btn { text-decoration: none; }
.article__image { margin: 0 0 32px; }
.article__image img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh); }

/* أغلفة المقالات بصورة */
.post-card__cover--img { padding: 0; }
.post-card__cover--img::after { display: none; }
.post-card__cover--img img { width: 100%; height: 100%; object-fit: cover; }

/* ترقيم الصفحات */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line);
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  background: var(--paper); transition: 0.15s;
}
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

.faq__answer > :last-child { margin-bottom: 0; }
.faq details .faq__answer { padding-bottom: 18px; }
.faq details .faq__answer p { padding-bottom: 8px; }

/* شعار مرفوع من لوحة التحكم */
.logo--custom { display: inline-flex; align-items: center; }
.logo--custom img { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.footer .logo--custom img { height: 56px; }
@media (max-width: 520px) { .nav .logo--custom img { height: 40px; max-width: 160px; } }

/* شعار أسماء الافتراضي (صورة) */
.logo__mark--img { background: none; box-shadow: none; border-radius: 0; width: 62px; height: 62px; }
.logo__mark--img::after { display: none; }
.logo__mark--img img { width: 100%; height: 100%; object-fit: contain; }

/* صورة اختيارية في الرئيسية بدل دفتر الحروف */
.hero__photo img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* رؤوس الصفحات بصورة */
.page-head__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-head__img img { width: 100%; height: auto; max-height: 340px; object-fit: contain; }
@media (max-width: 860px) {
  .page-head__grid { grid-template-columns: 1fr; }
  .page-head__img { max-width: 420px; margin-inline: auto; }
}

/* أقسام نص وصورة */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.split--rev .split__img { order: -1; }
.split__img img { width: 100%; height: auto; }
.split__text h2 { margin-bottom: 14px; }
.split__list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.split__list li { display: flex; gap: 12px; align-items: flex-start; }
.split__list li svg { width: 22px; height: 22px; flex: none; color: var(--damma); margin-top: 5px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__img { order: 0; }
  .split__img { max-width: 460px; margin-inline: auto; }
}

/* صورة المقال التوضيحية */
.article__image--art { text-align: center; }
.article__image--art img { max-width: 460px; margin-inline: auto; box-shadow: none; border-radius: 0; }

/* شعار مرفوع من ووردبريس: حجم مريح */
.logo--custom img { height: 62px; max-width: 240px; }
.footer .logo--custom img { height: 76px; }
@media (max-width: 520px) { .nav .logo--custom img { height: 48px; max-width: 170px; } }

.portrait img[src$=".svg"] { object-fit: contain; padding: 14px; }

/* أرقام الثقة: تتوزع تلقائياً مهما كان عددها */
.stats { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
