/* =====================================================
   إيوان — أنماط الموقع
   خط العرض: Aref Ruqaa (عناوين) + Tajawal (نصوص)
   ===================================================== */

:root{
  --bg: #FAF8F3;
  --bg-alt: #F1ECE0;
  --tint: #E7EFE7;
  --green-deep: #33473C;
  --green-mid: #3F5D4E;
  --green-soft: #6B8F7A;
  --gold: #AD8A54;
  --gold-light: #D9B67F;
  --text: #2B2B26;
  --text-muted: #6B675C;
  --border: #E3DCC8;
  --radius-s: 10px;
  --radius-m: 18px;
  --shadow-card: 0 10px 30px -18px rgba(51,71,60,.35);
  --container: 1120px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Tajawal","Segoe UI",Tahoma,sans-serif;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}

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

a{ color:inherit; text-decoration:none; }

ul{ list-style:none; margin:0; padding:0; }

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}

h1,h2,h3,.eyebrow{
  font-family:"Aref Ruqaa","Tajawal",serif;
}

h1,h2,h3{
  color:var(--green-deep);
  margin:0 0 .5em;
  font-weight:700;
}

h1{ font-size:clamp(2.1rem, 4.5vw, 3.4rem); line-height:1.25; }
h2{ font-size:clamp(1.5rem, 2.6vw, 2rem); line-height:1.35; }
h3{ font-size:1.25rem; margin-bottom:.35em; }

p{ color:var(--text-muted); margin:0 0 1em; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--gold);
  font-size:1rem;
  letter-spacing:.02em;
  margin-bottom:14px;
}
.eyebrow-icon{ width:26px; height:26px; flex:none; }

.section-tag{
  display:inline-block;
  color:var(--green-soft);
  font-size:.9rem;
  font-weight:700;
  border:1px solid var(--border);
  background:var(--bg-alt);
  padding:5px 14px;
  border-radius:999px;
  margin-bottom:16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:13px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:.98rem;
  border:1.5px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary{
  background:var(--green-deep);
  color:#F6F2E4;
}
.btn-primary:hover{ background:var(--green-mid); transform:translateY(-2px); box-shadow:var(--shadow-card); }
.btn-ghost{
  background:transparent;
  color:var(--green-deep);
  border-color:var(--green-deep);
}
.btn-ghost:hover{ background:var(--green-deep); color:#F6F2E4; transform:translateY(-2px); }

/* ===================== الهيدر ===================== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(250,248,243,.92);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-block:14px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  flex:none;
}
.logo img{ width:34px; height:34px; }
.logo-text{
  font-family:"Aref Ruqaa",serif;
  font-size:1.7rem;
  color:var(--green-deep);
  font-weight:700;
}

.main-nav ul{
  display:flex;
  align-items:center;
  gap:6px;
}
.main-nav a{
  display:block;
  padding:10px 16px;
  border-radius:999px;
  color:var(--green-deep);
  font-weight:700;
  font-size:.98rem;
  transition:background .15s ease, color .15s ease;
}
.main-nav a:hover{ background:var(--tint); }
.main-nav a.active{ background:var(--green-deep); color:#F6F2E4; }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding:8px;
  cursor:pointer;
}
.nav-toggle span{
  width:24px;
  height:2.5px;
  background:var(--green-deep);
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}

/* ===================== الهيرو ===================== */
.hero{
  padding-block:56px 40px;
}
.hero-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:48px;
}
.hero-media{
  max-width:340px;
  margin-inline:auto;
}
.hero-media img{ width:100%; height:auto; }
.hero-text{ text-align:right; }
.hero-actions{
  display:flex;
  gap:14px;
  margin-top:26px;
  flex-wrap:wrap;
}
.hero-lede{
  font-size:1.08rem;
  max-width:46ch;
}

.hero.hero-inner-page .hero-inner{ grid-template-columns: .85fr 1fr; }
.hero.hero-inner-page .hero-media{ max-width:260px; }

/* ===================== شبكات البطاقات ===================== */
.section{ padding-block:54px; }
.section-alt{ background:var(--tint); }
.section-head{
  text-align:center;
  max-width:640px;
  margin-inline:auto;
  margin-bottom:38px;
}
.section-head .section-tag{ display:table; margin-inline:auto; }

.grid{
  display:grid;
  gap:26px;
}
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }

/* بطاقات التنقل بالصفحة الرئيسية */
.nav-card{
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  padding:26px 22px 28px;
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-card);
  background:#fff;
}
.nav-card-media{
  width:120px;
  margin-inline:auto 14px;
}
.nav-card h3{ margin-bottom:6px; }
.nav-card .card-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--gold);
  font-weight:700;
  font-size:.92rem;
  margin-top:8px;
}
.nav-card .card-link .arrow{ transition:transform .18s ease; }
.nav-card:hover .card-link .arrow{ transform:translateX(-4px); }

/* بطاقات المواضيع بالصفحات الداخلية */
.topic-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  padding:24px;
  display:flex;
  align-items:flex-start;
  gap:16px;
  transition:box-shadow .2s ease, transform .2s ease;
}
.topic-card:hover{ box-shadow:var(--shadow-card); transform:translateY(-4px); }
.topic-card .icon{ width:46px; height:46px; flex:none; }
.topic-card h3{ margin-bottom:4px; font-size:1.1rem; }
.topic-card .cap{ color:var(--text-muted); font-size:.94rem; margin:0; }

/* شريط فاصل بزخرفة الإيوان */
.arch-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:var(--gold);
  margin:8px 0 6px;
}
.arch-divider::before,
.arch-divider::after{
  content:"";
  height:1px;
  width:64px;
  background:var(--border);
}

/* شريط قيمة/معلومة (values strip) */
.values-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  padding-block:34px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.value-item{ text-align:center; padding-inline:8px; }
.value-item .icon{ width:40px; height:40px; margin-inline:auto 10px; }
.value-item h3{ font-size:1.02rem; margin-bottom:4px; }
.value-item p{ font-size:.9rem; margin:0; }

/* CTA */
.cta{
  background:var(--green-deep);
  border-radius:var(--radius-m);
  padding:44px 36px;
  text-align:center;
  color:#F6F2E4;
}
.cta h2{ color:#F6F2E4; }
.cta p{ color:#D9DED4; margin-bottom:22px; }
.cta .btn-primary{ background:var(--gold); color:#2B2311; }
.cta .btn-primary:hover{ background:var(--gold-light); }

/* ===================== الفوتر ===================== */
.site-footer{
  background:var(--green-deep);
  color:#DDE4DA;
  padding-block:48px 22px;
  margin-top:20px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:32px;
  padding-bottom:32px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-logo{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.footer-logo img{ width:30px; height:30px; filter:brightness(0) invert(1); }
.footer-logo span{
  font-family:"Aref Ruqaa",serif;
  font-size:1.5rem;
  color:#F6F2E4;
}
.footer-about p{ color:#B9C4B4; font-size:.92rem; max-width:32ch; }
.footer-col h4{
  color:#F6F2E4;
  font-family:"Aref Ruqaa",serif;
  font-size:1.05rem;
  margin-bottom:14px;
}
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{ color:#B9C4B4; font-size:.94rem; transition:color .15s ease; }
.footer-col a:hover{ color:#F6F2E4; }
.footer-social{ display:flex; gap:10px; margin-top:14px; }
.footer-social a{
  width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  transition:background .15s ease, border-color .15s ease;
}
.footer-social a:hover{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.4); }
.footer-social svg{ width:16px; height:16px; stroke:#F6F2E4; }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding-top:20px;
  font-size:.86rem;
  color:#9FAC98;
}

/* ===================== استجابة للموبايل ===================== */
@media (max-width:900px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .values-strip{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .hero-inner{ grid-template-columns:1fr; }
  .hero-media{ order:-1; max-width:220px; }
  .hero-text{ text-align:center; }
  .hero-lede{ margin-inline:auto; }
  .hero-actions{ justify-content:center; }
}

@media (max-width:700px){
  .main-nav{
    position:fixed;
    inset:64px 16px auto 16px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius-m);
    box-shadow:var(--shadow-card);
    padding:10px;
    transform:translateY(-14px);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
  }
  .main-nav.is-open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .main-nav ul{ flex-direction:column; align-items:stretch; }
  .main-nav a{ text-align:center; }
  .nav-toggle{ display:flex; }
  .grid-4{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .values-strip{ grid-template-columns:1fr; text-align:center; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ justify-content:center; text-align:center; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
}


/* ===================== المقالات ===================== */
.latest-article{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:30px;
  align-items:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  overflow:hidden;
  box-shadow:var(--shadow-card);
}
.latest-article-media{ min-height:320px; }
.latest-article-media img{
  width:100%;
  height:100%;
  min-height:320px;
  object-fit:cover;
}
.latest-article-copy{ padding:34px; }
.latest-article-copy h2{ margin-bottom:12px; }
.latest-article-copy p{ max-width:62ch; }
.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  color:var(--text-muted);
  font-size:.9rem;
  margin:14px 0 22px;
}
.article-page{ padding-block:36px 70px; }
.article-shell{
  max-width:920px;
  margin-inline:auto;
}
.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  color:var(--text-muted);
  font-size:.9rem;
  margin-bottom:24px;
}
.breadcrumb a{ color:var(--green-mid); font-weight:700; }
.article-header{
  text-align:center;
  margin-bottom:30px;
}
.article-header h1{
  max-width:920px;
  margin-inline:auto;
  font-size:clamp(2.15rem,5vw,3.7rem);
}
.article-intro{
  font-size:1.12rem;
  max-width:760px;
  margin-inline:auto;
  color:var(--text-muted);
}
.article-hero{
  margin:30px 0 34px;
}
.article-hero img{
  width:100%;
  max-height:560px;
  object-fit:cover;
  border-radius:var(--radius-m);
  box-shadow:var(--shadow-card);
}
.image-credit{
  margin-top:9px;
  color:var(--text-muted);
  font-size:.78rem;
  text-align:left;
}
.article-body{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  padding:clamp(24px,5vw,56px);
}
.article-body p{
  color:#4f514c;
  font-size:1.04rem;
  line-height:2;
}
.article-body h2{
  margin-top:2.2em;
  padding-bottom:10px;
  border-bottom:1px solid var(--border);
}
.article-body h3{
  margin-top:1.65em;
  color:var(--green-mid);
}
.article-body ul,
.article-body ol{
  list-style:initial;
  padding-right:24px;
  margin:0 0 1.4em;
}
.article-body ol{ list-style:decimal; }
.article-body li{
  color:#4f514c;
  margin-bottom:.65em;
  line-height:1.9;
}
.article-note{
  background:var(--tint);
  border-right:4px solid var(--green-soft);
  border-radius:var(--radius-s);
  padding:20px 22px;
  margin:26px 0;
}
.article-warning{
  background:#fff7e9;
  border-right:4px solid var(--gold);
  border-radius:var(--radius-s);
  padding:20px 22px;
  margin:26px 0;
}
.article-table-wrap{
  overflow-x:auto;
  margin:24px 0 30px;
}
.article-table{
  width:100%;
  min-width:680px;
  border-collapse:collapse;
  font-size:.94rem;
}
.article-table th,
.article-table td{
  border:1px solid var(--border);
  padding:14px;
  text-align:right;
  vertical-align:top;
}
.article-table th{
  background:var(--green-deep);
  color:#fff;
}
.article-table tr:nth-child(even) td{ background:#fbfaf6; }
.source-list{
  margin-top:34px;
  padding-top:22px;
  border-top:1px solid var(--border);
}
.source-list a{
  color:var(--green-mid);
  text-decoration:underline;
  text-underline-offset:3px;
}
.article-footer-box{
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  padding:26px;
  margin-top:30px;
}
@media (max-width:900px){
  .latest-article{ grid-template-columns:1fr; }
}
@media (max-width:700px){
  .latest-article-copy{ padding:24px; }
  .article-page{ padding-top:24px; }
  .article-body{ padding:24px 20px; }
}
