/* ==========================================================
   تصميم الصفحة الرئيسية (طبقة فوق main.css و wp.css)
   ========================================================== */

/* ---------- الهيدر الزجاجي ---------- */
header {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.header-call { border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(15, 123, 140, 0.8); }

/* ---------- الهيرو ---------- */
body.home .hero {
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(227, 167, 47, 0.22), transparent 60%),
    radial-gradient(70% 80% at 10% 0%, rgba(24, 160, 180, 0.45), transparent 62%),
    linear-gradient(160deg, #0a3140 0%, #0b3b4a 45%, #061c26 100%);
  padding: clamp(64px, 9vw, 120px) 0 clamp(120px, 14vw, 170px);
}
body.home .hero::before {
  width: 520px; height: 520px; top: -220px; right: -180px;
  background: radial-gradient(circle, rgba(227, 167, 47, 0.2), transparent 65%);
}
body.home .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero-grid { gap: clamp(28px, 5vw, 64px); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.92rem !important;
  color: #fff !important; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-badge span {
  width: 9px; height: 9px; border-radius: 50%; background: #5fe3a1; box-shadow: 0 0 0 0 rgba(95, 227, 161, 0.7);
  animation: al-pulse 2s infinite;
}
@keyframes al-pulse {
  70% { box-shadow: 0 0 0 10px rgba(95, 227, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 227, 161, 0); }
}
body.home .hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.22; max-width: 16ch; letter-spacing: -0.01em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}
body.home .hero p { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #d3ecee; max-width: 52ch; }
.hero .actions { margin-top: 30px; gap: 14px; }
.hero .btn { padding: 15px 28px; font-size: 1.05rem; border-radius: 999px; }
.hero .btn-primary { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 16px 34px -14px rgba(227, 167, 47, 0.9); }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.hero-facts { gap: 10px; margin-top: 34px; }
.hero-facts li {
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #e6f6f6; font-size: 0.9rem;
}
.hero .card {
  position: relative; padding: clamp(22px, 3vw, 34px); border-radius: 26px; background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
.hero .card::before {
  content: ""; position: absolute; inset: 0 24px auto; height: 4px; border-radius: 0 0 6px 6px; background: var(--gold-grad);
}
.hero .card h2 { font-size: 1.3rem; margin-bottom: 16px; }
.hero .card input, .hero .card select { background: #f5fafa; border-color: #cfe3e3; border-radius: 12px; padding: 13px 14px; }
.hero .card input:focus, .hero .card select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 123, 140, 0.15); background: #fff; }
.hero .card .btn-primary { background: var(--teal-grad); color: #fff; box-shadow: 0 14px 28px -14px rgba(15, 123, 140, 0.9); }
.hero .wave { height: 70px; }

/* ---------- رأس الأقسام (توسيط) ---------- */
body.home section { padding: clamp(64px, 8vw, 104px) 0; }
body.home .section-head { max-width: 680px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
body.home .section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.3; }
body.home .section-head h2::after { margin: 14px auto 0; width: 56px; background: var(--gold-grad); }
body.home .section-head p { margin: 14px auto 0; color: var(--mute); font-size: 1.05rem; max-width: 56ch; }

/* ---------- شريط الأرقام ---------- */
.stats { gap: 16px; margin-top: -78px; }
.stat {
  padding: 24px 14px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 30px 50px -30px rgba(11, 59, 74, 0.55); transition: transform 0.25s;
}
.stat:hover { transform: translateY(-4px); }
.stat b {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1;
  background: var(--teal-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.stat b span { -webkit-text-fill-color: transparent; }
.stat > span { margin-top: 6px; display: block; color: var(--mute); font-size: 0.92rem; font-weight: 500; }
#services { padding-top: clamp(56px, 7vw, 90px); }

/* ---------- الخدمات ---------- */
#services .card-grid { gap: 26px; }
#services .service-card {
  padding: 0 0 22px; border-radius: 24px; background: #fff; border: 1px solid #e0eeee;
  box-shadow: 0 20px 44px -34px rgba(11, 59, 74, 0.55); display: flex; flex-direction: column;
}
#services .service-card .pic { margin: 0 0 18px; border-radius: 0; position: relative; }
#services .service-card .pic img { aspect-ratio: 4 / 3; transition: transform 0.6s; }
#services .service-card:hover .pic img { transform: scale(1.06); }
#services .service-card > h3, #services .service-card > p, #services .service-card > small, #services .service-card > .more { margin-inline: 22px; }
#services .service-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
#services .service-card p { flex: 1; font-size: 0.97rem; }
#services .service-card small {
  display: inline-block; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: #e8f5f6; color: var(--teal); font-size: 0.8rem;
}
#services .service-card .more { margin-top: 12px; display: inline-flex; gap: 6px; font-weight: 800; color: var(--teal); text-decoration: none; }
#services .service-card .more::after { content: "←"; transition: transform 0.2s; }
#services .service-card .more:hover::after { transform: translateX(-5px); }

/* ---------- خطوات العمل ---------- */
#process { background: #fff; }
.steps { gap: 38px; counter-reset: s; }
.steps li {
  position: relative; text-align: center; padding: 34px 20px 26px; border-radius: 24px; background: linear-gradient(180deg, #fff, #f3fafa);
  border: 1px solid #e0eeee; box-shadow: 0 20px 40px -34px rgba(11, 59, 74, 0.6);
}
.steps b {
  width: 58px; height: 58px; margin: -62px auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--on-gold); font-size: 1.5rem; box-shadow: 0 14px 26px -12px rgba(227, 167, 47, 0.9), 0 0 0 6px #fff;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: -34px; inset-inline-end: -38px; width: 38px; border-top: 2px dashed #9fd2d6;
}
.steps h3 { font-size: 1.12rem; }
.steps li { margin-top: 30px; }

/* ---------- لماذا نحن ---------- */
.why-section {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(227, 167, 47, 0.14), transparent 60%),
    linear-gradient(160deg, #0b3b4a, #07222d);
  color: #fff;
}
.why { gap: clamp(30px, 6vw, 80px); }
.why h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.3; }
.why > .why-text > p { color: #cfe7e9; font-size: 1.08rem; }
.why ul { margin: 26px 0 30px; padding: 0; list-style: none; }
.why li { align-items: flex-start; gap: 16px; padding: 16px 18px; margin-bottom: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.why li::before {
  content: "✓"; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 2px;
  background: var(--gold-grad); color: var(--on-gold); font-size: 0.95rem;
}
.why h3 { color: #fff; font-size: 1.08rem; }
.why li p { color: #bfdadd; margin-top: 2px; }
.why-figure { position: relative; margin: 0; }
.why-figure .pic { border-radius: 30px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7); border: 6px solid rgba(255, 255, 255, 0.08); }
.why-figure .pic img { aspect-ratio: 1 / 1; }
.why-badge {
  position: absolute; bottom: 18px; inset-inline-start: 18px; padding: 14px 20px; border-radius: 20px; text-align: center;
  background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.6);
}
.why-badge b { display: block; font-family: "Cairo", sans-serif; font-size: 2rem; line-height: 1; }
.why-badge span { font-size: 0.85rem; font-weight: 700; }

/* ---------- المعرض ---------- */
.gallery { gap: 16px; }
.gallery figure { position: relative; border: 0; border-radius: 20px; box-shadow: 0 18px 36px -26px rgba(11, 59, 74, 0.7); }
.gallery .pic img { aspect-ratio: 1 / 1; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; color: #fff; font-size: 0.88rem;
  background: linear-gradient(180deg, transparent, rgba(6, 28, 38, 0.88));
}
.gallery figure:hover .pic { transform: scale(1.06); }

/* ---------- الآراء ---------- */
.review-card {
  position: relative; padding: 30px 24px 22px; border-radius: 24px; border-color: #e0eeee;
  box-shadow: 0 20px 40px -34px rgba(11, 59, 74, 0.6);
}
.review-card::before {
  content: "\201D"; position: absolute; top: 4px; inset-inline-end: 20px; font: 800 5rem/1 "Cairo", sans-serif; color: rgba(227, 167, 47, 0.28);
}
.review-card .review-stars { font-size: 1.1rem; }
.review-card p { font-size: 1rem; line-height: 1.9; }
.review-card figcaption { padding-top: 12px; border-top: 1px solid #e8f1f1; }
#reviews .mt-m { text-align: center; margin-top: 34px; }

/* ---------- المقالات ---------- */
#articles .al-post-grid { grid-template-columns: repeat(3, 1fr); margin-block: 0; }
.section-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.btn { border-radius: 999px; }

/* ---------- الأسئلة الشائعة ---------- */
#faq .accordion { margin-inline: auto; max-width: 820px; }
#faq details { border-radius: 18px; padding: 10px 22px; box-shadow: 0 14px 30px -28px rgba(11, 59, 74, 0.6); }
#faq details[open] { border-color: var(--tl); background: linear-gradient(180deg, #fff, #f6fbfb); }
#faq summary h3 { font-size: 1.05rem; }

/* ---------- شريط الطوارئ ---------- */
.cta-band { background: transparent; padding: 0 !important; margin: 0; }
.cta-band .container {
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 48px); border-radius: 30px; background: var(--gold-grad);
  box-shadow: 0 34px 60px -30px rgba(227, 167, 47, 0.85); position: relative; overflow: hidden;
}
.cta-band .container::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; top: -120px; inset-inline-start: -60px; background: rgba(255, 255, 255, 0.22);
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); position: relative; }
.cta-band p, .cta-band .btn { position: relative; }
.cta-band .btn-light { background: #0b3b4a; color: #fff; padding: 15px 30px; box-shadow: 0 16px 30px -14px rgba(11, 59, 74, 0.8); }
.cta-band + section, section + .cta-band { margin-top: 0; }
#faq { padding-bottom: clamp(44px, 6vw, 70px); }

/* ---------- التواصل ---------- */
#contact { background: linear-gradient(180deg, #f1f9f9, #fff); }
.contact { gap: clamp(26px, 5vw, 60px); align-items: center; }
.contact h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.3; }
.big { font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0 6px; background: var(--teal-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.contact .card { padding: clamp(22px, 3vw, 34px); border-radius: 26px; border: 1px solid #dcecec; box-shadow: 0 34px 60px -38px rgba(11, 59, 74, 0.6); }

/* ---------- الفوتر ---------- */
footer { background: linear-gradient(180deg, #0b3b4a, #061c26); }

/* ---------- الجوال ---------- */
@media (max-width: 920px) {
  #articles .al-post-grid { grid-template-columns: 1fr; }
  .why-figure { max-width: 440px; margin: 10px auto 0; }
  .steps { gap: 44px 16px; }
  .steps li:not(:last-child)::after { display: none; }
  .stats { margin-top: -64px; }
}
@media (max-width: 600px) {
  body.home .hero h1 { max-width: none; }
  .hero .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .stats { gap: 10px; }
  .stat { padding: 16px 8px; border-radius: 18px; }
  .gallery { gap: 10px; }
  .why-badge { inset-inline-start: 12px; bottom: 12px; padding: 10px 14px; }
  .why-badge b { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge span { animation: none; }
}

/* ---------- توسيط نصوص مزايا الهيرو ---------- */
.hero-facts li {
  display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; line-height: 1.6;
}
@media (max-width: 600px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li { border-radius: 16px; padding: 10px 12px; min-height: 52px; }
}

/* ---------- مقاسات ثابتة لكل الصور (نفس الطول والعرض) ---------- */
/* بطاقات المقالات (الرئيسية، القوائم، ذات صلة) */
.al-card .al-card-pic .pic { aspect-ratio: 4 / 3 !important; }
.al-card-featured .al-card-pic .pic { aspect-ratio: auto !important; min-height: 100%; }
@media (max-width: 760px) { .al-card-featured .al-card-pic .pic { aspect-ratio: 4 / 3 !important; min-height: 0; } }
/* الخدمات */
#services .service-card .pic { aspect-ratio: 4 / 3 !important; }
/* المعرض */
.gallery .pic { aspect-ratio: 1 / 1 !important; }
/* لماذا نحن */
.why-figure .pic { aspect-ratio: 1 / 1 !important; }
/* الصور تملأ الإطار بالكامل بدون تشوّه */
.al-card .pic img, #services .pic img, .gallery .pic img, .why-figure .pic img { object-fit: cover; object-position: center; }

/* وسم التصنيف فوق صورة البطاقة */
.al-card .al-card-pic { position: relative; display: block; text-decoration: none; }
.al-card .al-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; line-height: 1; text-decoration: none; }

/* إخفاء شارة «10+» في قسم «لماذا نحن» على الموبايل فقط */
@media (max-width: 768px) {
  .why-badge { display: none !important; }
}

/* ---------- شريط الطوارئ: شكل أخف وألطف ---------- */
.cta-band { padding: 0 16px clamp(40px, 6vw, 72px) !important; }
.cta-band .container {
  max-width: 1088px; padding: clamp(26px, 4vw, 42px) clamp(20px, 4vw, 48px);
  background: linear-gradient(135deg, #f5c04a 0%, #e3a72f 55%, #d4961f 100%);
  box-shadow: 0 26px 50px -30px rgba(212, 150, 31, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.cta-band .container::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; bottom: -90px; inset-inline-end: -50px; background: rgba(255, 255, 255, 0.16);
}
.cta-band .container > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band .btn-light { border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) {
  .cta-band { padding: 0 14px 34px !important; }
  .cta-band .container {
    flex-direction: column; text-align: center; gap: 16px; padding: 26px 20px 22px; border-radius: 26px;
  }
  .cta-band h2 { font-size: 1.3rem; line-height: 1.5; }
  .cta-band p { font-size: 0.96rem; opacity: 0.9; }
  .cta-band .btn-light { width: 100%; max-width: 340px; justify-content: center; padding: 14px 20px; font-size: 1.05rem; }
  .cta-band .container::before { width: 150px; height: 150px; top: -80px; inset-inline-start: -40px; }
  .cta-band .container::after { width: 120px; height: 120px; bottom: -60px; inset-inline-end: -30px; }
}

/* شارة «10+» أُزيلت نهائيًا */
.why-badge { display: none !important; }

/* ---------- شريط التصميم أسفل الموقع ---------- */
.credit-bar { position: relative; margin-top: 30px; background: rgba(0, 0, 0, 0.28); }
.credit-bar::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 167, 47, 0.7), transparent);
}
.credit-bar .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  padding-top: 16px; padding-bottom: 16px; text-align: center;
}
.credit-label { font-size: 0.85rem; letter-spacing: 0.04em; color: #8fb3b8; }
.credit-link {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 800; color: #f6d27a; text-decoration: none; border: 1px solid rgba(227, 167, 47, 0.4);
  background: linear-gradient(180deg, rgba(227, 167, 47, 0.14), rgba(227, 167, 47, 0.05));
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.credit-link .credit-arrow { opacity: 0.7; transition: transform 0.25s, opacity 0.25s; }
a.credit-link:hover, a.credit-link:focus-visible {
  background: var(--gold-grad); color: var(--on-gold); border-color: transparent; transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(227, 167, 47, 0.9);
}
a.credit-link:hover .credit-arrow { opacity: 1; transform: translate(-2px, -2px); }
@media (max-width: 600px) {
  .credit-bar .container { flex-direction: column; gap: 8px; padding-top: 14px; padding-bottom: 16px; }
  .credit-link { font-size: 0.86rem; padding: 9px 16px; max-width: 100%; }
}

/* ======================================================
   صفحات المقالات والصفحات الداخلية
   ====================================================== */
.al-post-hero {
  position: relative; overflow: hidden; color: #fff; text-align: start;
  padding: clamp(30px, 5vw, 56px) 0 clamp(80px, 11vw, 120px);
  background:
    radial-gradient(60% 90% at 90% 0%, rgba(227, 167, 47, 0.2), transparent 60%),
    radial-gradient(70% 90% at 0% 0%, rgba(24, 160, 180, 0.4), transparent 62%),
    linear-gradient(160deg, #0a3140 0%, #0b3b4a 50%, #061c26 100%);
}
.al-post-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.3;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.al-post-hero .container { position: relative; z-index: 1; }
.al-post-hero .al-crumbs { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; margin-bottom: 18px; }
.al-post-hero .al-crumbs a { color: #fff; text-decoration: none; opacity: 0.9; }
.al-post-hero .al-crumbs a:hover { text-decoration: underline; }
.al-hero-chip {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.82rem;
  background: var(--gold-grad); color: var(--on-gold); text-decoration: none;
}
.al-post-hero h1 { color: #fff; font-size: clamp(1.6rem, 4.4vw, 2.6rem); line-height: 1.4; margin: 0 0 14px; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.al-post-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: #bfdde0; font-size: 0.92rem; margin: 0; max-width: none; }
.al-post-body { margin-top: clamp(-70px, -8vw, -56px); position: relative; z-index: 2; }
.al-single .al-hero-pic {
  margin: 0 0 22px; border-radius: 26px; overflow: hidden; border: 5px solid #fff;
  box-shadow: 0 34px 60px -30px rgba(6, 28, 38, 0.7);
}
.al-single .al-hero-pic .pic { border-radius: 0; }
.al-entry-card {
  background: #fff; border: 1px solid #e0eeee; border-radius: 26px; padding: clamp(20px, 4.5vw, 44px);
  box-shadow: 0 26px 50px -38px rgba(11, 59, 74, 0.6);
}
.al-plain-page .al-post-body { margin-top: clamp(-60px, -7vw, -44px); }
.al-single .al-entry { font-size: 1.07rem; line-height: 2.05; color: #1f3d46; }
.al-single .al-entry > *:first-child { margin-top: 0; }
.al-single .al-entry p { margin: 0 0 1.1em; }
.al-single .al-entry h2, .al-single .al-entry h3 { color: var(--ink, #0b3b4a); line-height: 1.5; margin: 1.8em 0 0.6em; }
.al-single .al-entry h2 { font-size: 1.5rem; padding-inline-start: 14px; border-inline-start: 5px solid var(--brass); }
.al-single .al-entry h3 { font-size: 1.22rem; }
.al-single .al-entry ul, .al-single .al-entry ol { padding-inline-start: 0; list-style: none; margin: 0 0 1.3em; counter-reset: al; }
.al-single .al-entry li { position: relative; padding: 10px 46px 10px 14px; margin-bottom: 8px; background: #f3fafa; border-radius: 14px; border: 1px solid #e3f0f0; }
.al-single .al-entry ul li::before {
  content: "✓"; position: absolute; inset-inline-start: auto; right: 12px; top: 11px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal-grad); color: #fff; font-size: 0.8rem; line-height: 1;
}
.al-single .al-entry ol li { counter-increment: al; }
.al-single .al-entry ol li::before {
  content: counter(al); position: absolute; right: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font-weight: 800; font-size: 0.85rem; line-height: 1;
}
.al-single .al-entry p:has(> b:first-child), .al-single .al-entry p:has(> strong:first-child) {
  background: #fff8e6; border-inline-start: 4px solid var(--brass); padding: 14px 18px; border-radius: 14px;
}
.al-single .al-entry img { border-radius: 16px; }
.al-single .al-entry a { color: var(--teal); font-weight: 700; }
.al-related-section { background: var(--mist, #f1f9f9); padding: clamp(44px, 6vw, 72px) 0; margin-top: clamp(36px, 5vw, 60px); }
.al-related-section .section-head { text-align: center; margin: 0 auto 28px; }
.al-related-section .section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin: 12px auto 0; background: var(--gold-grad); }
.al-related-section .al-post-grid { grid-template-columns: repeat(3, 1fr); margin-block: 0; }

/* 404 */
.al-404 { padding-block: clamp(50px, 9vw, 100px); }
.al-404-num {
  font: 800 clamp(5rem, 18vw, 9rem)/1 "Cairo", sans-serif; margin: 0; background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

@media (max-width: 920px) { .al-related-section .al-post-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .al-post-hero { padding-bottom: 84px; }
  .al-single .al-hero-pic { border-radius: 20px; border-width: 4px; }
  .al-entry-card { border-radius: 20px; }
  .al-single .al-entry { line-height: 1.95; font-size: 1.03rem; }
  .al-single .al-entry h2 { font-size: 1.3rem; }
}

/* ======================================================
   بنر الشركة المصممة (أسفل الموقع)
   ====================================================== */
footer { padding-bottom: 0; }
.credit-banner {
  position: relative; overflow: hidden; margin-top: 34px; isolation: isolate;
  background:
    radial-gradient(55% 220% at 100% 50%, rgba(227, 167, 47, 0.2), transparent 62%),
    radial-gradient(50% 220% at 0% 50%, rgba(24, 160, 180, 0.28), transparent 62%),
    linear-gradient(135deg, #03121a 0%, #082632 55%, #04161e 100%);
  border-top: 1px solid rgba(227, 167, 47, 0.35);
}
.credit-banner::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, #e3a72f 30%, #f6d27a 50%, #e3a72f 70%, transparent);
}
.credit-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.28; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.credit-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px;
  padding-top: 26px; padding-bottom: 26px; position: relative;
}
.credit-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.credit-badge {
  flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--on-gold);
  box-shadow: 0 16px 30px -14px rgba(227, 167, 47, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: rotate(-4deg);
}
.credit-texts { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.credit-texts small { font-size: 0.8rem; letter-spacing: 0.06em; color: #8fb3b8; }
.credit-texts strong {
  font-family: "Cairo", sans-serif; font-weight: 800; font-size: clamp(1.02rem, 2.2vw, 1.3rem); line-height: 1.45;
  background: linear-gradient(90deg, #fff, #f6d27a); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.credit-texts em { font-style: normal; font-size: 0.84rem; color: #7fd0d8; }
.credit-btn {
  flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
  font-weight: 800; font-size: 0.98rem; text-decoration: none; color: var(--on-gold); background: var(--gold-grad);
  box-shadow: 0 18px 32px -16px rgba(227, 167, 47, 0.95); transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.credit-btn svg { transition: transform 0.25s; }
.credit-btn:hover, .credit-btn:focus-visible { transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 24px 38px -16px rgba(227, 167, 47, 1); }
.credit-btn:hover svg { transform: translate(-3px, -3px); }
@media (max-width: 720px) {
  .credit-inner { flex-direction: column; text-align: center; padding-top: 24px; padding-bottom: 26px; }
  .credit-brand { flex-direction: column; gap: 12px; }
  .credit-texts { align-items: center; }
  .credit-btn { width: 100%; max-width: 320px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .credit-btn, .credit-btn svg { transition: none; } .credit-btn:hover { transform: none; } }

/* ---------- عنوان المقال (تحسين) ---------- */
.al-post-hero { position: relative !important; top: auto !important; z-index: 0; }
.al-post-hero .container { display: block !important; height: auto !important; }
.al-post-hero .al-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.al-post-hero .al-crumbs span[aria-hidden] { opacity: 0.5; }
.al-post-hero h1 {
  max-width: 24ch; margin: 0 0 18px; font-size: clamp(1.7rem, 4.6vw, 2.7rem); line-height: 1.45; font-weight: 800; letter-spacing: -0.005em;
  text-wrap: balance;
}
.al-post-hero h1::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin-top: 16px; background: var(--gold-grad);
}
.al-post-hero .al-post-meta {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #d6eef0; font-size: 0.9rem;
}
.al-post-hero .al-post-meta span[aria-hidden] { opacity: 0.5; }
@media (max-width: 600px) {
  .al-post-hero h1 { max-width: none; font-size: 1.55rem; }
  .al-post-hero .al-post-meta { font-size: 0.84rem; padding: 7px 14px; }
}

/* عناوين البطاقات: أوضح وأقصى سطرين */
.al-card h2, .al-card h3 {
  font-size: 1.12rem; line-height: 1.6; font-weight: 800; color: var(--ink, #0b3b4a);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance;
}
.al-card h2 a, .al-card h3 a { color: inherit; text-decoration: none; }
.al-card h2 a:hover, .al-card h3 a:hover { color: var(--teal); }

/* ======================================================
   المقال على الموبايل (تحسين مخصص للشاشات الصغيرة)
   ====================================================== */
@media (max-width: 600px) {
  .al-post-hero { padding: 20px 0 62px; }
  .al-post-hero .container { padding-inline: 18px; }

  /* مسار التنقل: سطر واحد قابل للتمرير بدل ما يتكسر لعدة أسطر */
  .al-post-hero .al-crumbs {
    flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 6px; margin-bottom: 14px; padding-bottom: 2px;
    font-size: 0.8rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .al-post-hero .al-crumbs::-webkit-scrollbar { display: none; }
  .al-post-hero .al-crumbs > * { flex: none; }

  .al-hero-chip { font-size: 0.75rem; padding: 5px 12px; margin-bottom: 10px; }

  .al-post-hero h1 {
    font-size: 1.42rem; line-height: 1.6; max-width: none; margin-bottom: 14px; text-shadow: none; text-wrap: pretty;
  }
  .al-post-hero h1::after { width: 48px; height: 3px; margin-top: 12px; }

  .al-post-hero .al-post-meta { font-size: 0.78rem; padding: 6px 12px; gap: 4px 8px; max-width: 100%; }

  .al-post-body { margin-top: -42px; }
  .al-post-body.container { padding-inline: 14px; }

  /* صورة المقال: ارتفاع معقول بدل ما تاخد الشاشة كلها */
  .al-single .al-hero-pic { border-width: 3px; border-radius: 18px; margin-bottom: 14px; }
  .al-single .al-hero-pic .pic { aspect-ratio: 4 / 3 !important; }

  .al-entry-card { padding: 18px 16px 8px; border-radius: 18px; }
  .al-single .al-entry { font-size: 1rem; line-height: 1.95; }
  .al-single .al-entry h2 { font-size: 1.2rem; margin-top: 1.5em; padding-inline-start: 10px; border-inline-start-width: 4px; }
  .al-single .al-entry h3 { font-size: 1.08rem; }
  .al-single .al-entry li { padding: 9px 42px 9px 12px; }
  .al-single .al-entry ul li::before, .al-single .al-entry ol li::before { right: 10px; top: 10px; width: 22px; height: 22px; font-size: 0.75rem; }
  .al-single .al-entry p:has(> b:first-child), .al-single .al-entry p:has(> strong:first-child) { padding: 12px 14px; }

  .al-related-section { padding: 36px 0 44px; margin-top: 28px; }
  .al-related-section .container { padding-inline: 14px; }
}

/* شاشات صغيرة جدًا */
@media (max-width: 380px) {
  .al-post-hero h1 { font-size: 1.28rem; }
  .al-post-hero .al-post-meta { font-size: 0.74rem; }
}

/* إخفاء سطر التاريخ ووقت القراءة وآخر تحديث في المقالات على الموبايل */
@media (max-width: 768px) {
  .al-post-hero .al-post-meta { display: none !important; }
  .al-post-hero { padding-bottom: 54px; }
}
