/* ============================================================
   النصار للمحاماة — المدونة
   يُحمَّل في صفحات المدونة فقط، ويبني على css/style.css
   ============================================================ */

/* عناصر تظهر في وضع الإنجليزية فقط */
.en-only{ display:none; }
html[lang="en"] .en-only{ display:block; }

/* محتوى المقالات عربي دائماً، حتى عند التبديل إلى الإنجليزية */
[lang="ar"].post, [lang="ar"].post-grid{ font-family: var(--f-ar); line-height:1.75; }
html[lang] .post h1, html[lang] .post h2, html[lang] .post h3,
html[lang] .post-grid h3{
  font-family: var(--f-ar); font-weight:800; letter-spacing:0;
}

/* ---------- فهرس المدونة ---------- */
.blog-hero{ padding-bottom:64px; }
.blog-hero h1{ font-size: clamp(30px, 3.6vw, 44px); margin-block:18px 18px; }
.blog-hero .lede{ font-size:17px; color:#4b4744; max-width:60ch; }
.post-lang-note{ margin-top:18px; font-size:14px; color:#5E6266; }

.post-grid{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:28px;
}
.post-card a{
  height:100%;
  display:flex; flex-direction:column; gap:12px;
  background: var(--white);
  border:1px solid var(--line);
  padding: 30px 26px;
  transition:.25s;
}
.post-card a:hover{ border-color: var(--navy); box-shadow: 0 12px 28px -18px rgba(23,41,77,.35); }
.post-card__cat{ font-size:13px; font-weight:700; color:#0B6F86; }
.post-card__title{ font-size:19px; line-height:1.6; color: var(--navy-deep); }
.post-card__excerpt{ font-size:14.5px; color:#5a5652; text-align:start; }
.post-card__meta{ margin-top:auto; padding-top:8px; font-size:13px; color:#6B6F72; }

.blog-empty{
  text-align:center; text-align-last:center;
  padding: 56px 24px;
  border:1px dashed var(--stone-soft);
  color:#5E6266; font-size:16px;
}

/* ---------- صفحة المقال ---------- */
.post-topbar{ padding-top:28px; }
.post-back{ font-size:14px; font-weight:700; color: var(--navy); display:inline-flex; gap:8px; }
.post-back:hover{ color: var(--navy-deep); }
html[lang="en"] .post-back span[aria-hidden]{ transform: scaleX(-1); display:inline-block; }

.post{
  max-width: 780px; margin-inline:auto;
  padding: 36px 24px 72px;
}
.post-head{ display:flex; flex-direction:column; gap:18px; margin-bottom:36px; }
.post-title{ font-size: clamp(28px, 3.6vw, 42px); line-height:1.45; }
.post-meta{ font-size:14px; color:#5E6266; display:flex; flex-wrap:wrap; gap:8px; text-align:start; }
.post-cover{ width:100%; height:auto; margin-bottom:36px; border:1px solid var(--line); }

.post-body{ font-size:17.5px; line-height:2; color:#2b2828; }
.post-body > * + *{ margin-top:20px; }
.post-body p{ text-align:start; }
.post-body h2{ font-size:24px; line-height:1.5; color: var(--navy); margin-top:44px; }
.post-body h3{ font-size:19px; line-height:1.6; margin-top:32px; }
.post-body ul, .post-body ol{ padding-inline-start:24px; }
.post-body ul{ list-style: disc; }
.post-body ol{ list-style: decimal; }
.post-body li + li{ margin-top:8px; }
.post-body li::marker{ color: var(--teal); }
.post-body a{ color: var(--navy); text-decoration: underline; text-underline-offset:4px; }
.post-body strong{ color: var(--navy-deep); }
.post-body blockquote{
  margin-inline:0;
  background: var(--paper-deep);
  border-inline-start: 4px solid var(--teal);
  padding: 18px 22px;
  font-size:16.5px;
}
.post-body blockquote > * + *{ margin-top:10px; }
.post-body table{ width:100%; border-collapse:collapse; font-size:15.5px; }
.post-body th, .post-body td{ border:1px solid var(--line); padding:10px 14px; text-align:start; }
.post-body th{ background: var(--paper-deep); color: var(--navy-deep); }
.post-body hr{ border:0; height:1px; background: var(--line); margin-block:36px; }

.post-disclaimer{
  margin-top:48px;
  border:1px solid var(--stone-soft);
  padding: 18px 22px;
  font-size:14.5px; line-height:1.9; color:#4A4F53;
}

.post-cta{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.post-cta h2{ font-size:26px; max-width:46ch; }
.post-cta p{ color: rgba(255,255,255,.78); margin-top:12px; max-width:52ch; }

.related-title{ font-size:24px; margin-bottom:28px; }

@media (max-width: 900px){
  .post-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .post-grid{ grid-template-columns: minmax(0,1fr); }
  .post{ padding-top:20px; }
  .post-body{ font-size:16.5px; }
  .post-body h2{ font-size:21px; }
}
