/* Wanas Clinic Blog — Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --primary:     #2C5F8A;
  --primary-lt:  #E8F3FC;
  --accent:      #4A9B8E;
  --accent-lt:   #EAF6F4;
  --text:        #1A1A2E;
  --text-muted:  #6B7280;
  --bg:          #F9FAFB;
  --white:       #FFFFFF;
  --border:      #E5E7EB;
  --cta-bg:      #2C5F8A;
  --cta-hover:   #1E4269;
  --radius:      12px;
  --shadow:      0 2px 12px rgba(44,95,138,.08);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  direction: rtl;
}
body[lang="en"] { direction: ltr; font-family: 'Segoe UI', system-ui, sans-serif; }

/* ── SITE HEADER ─────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 960px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.site-nav a {
  color: var(--text-muted); text-decoration: none; font-size: .93rem;
  margin-inline-start: 1.5rem;
  transition: color .2s;
}
.site-nav a:hover { color: var(--primary); }

/* ── BREADCRUMB ──────────────────────────────── */
.breadcrumb {
  max-width: 960px; margin: 1rem auto .25rem; padding: 0 1.5rem;
  font-size: .82rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 .35rem; }

/* ── ARTICLE LAYOUT ──────────────────────────── */
.article-wrap {
  max-width: 760px; margin: 0 auto 4rem; padding: 0 1.5rem;
}

.article-header { margin: 1.5rem 0 2rem; }

.article-category {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary);
  font-size: .78rem; font-weight: 600;
  padding: .25rem .75rem; border-radius: 999px;
  margin-bottom: .75rem; text-decoration: none;
}
.article-category:hover { background: var(--primary); color: var(--white); }

h1.article-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700; line-height: 1.4;
  color: var(--text); margin-bottom: .75rem;
}

.article-meta {
  font-size: .83rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.article-meta svg { width: 14px; height: 14px; }

/* ── INTRO HOOK ──────────────────────────────── */
.article-intro {
  font-size: 1.08rem; font-weight: 400;
  background: var(--accent-lt);
  border-inline-start: 4px solid var(--accent);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem; color: var(--text);
}

/* ── BODY CONTENT ────────────────────────────── */
.article-body h2 {
  font-size: 1.35rem; font-weight: 700;
  color: var(--primary); margin: 2rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--primary-lt);
}
.article-body h3 {
  font-size: 1.1rem; font-weight: 600;
  color: var(--text); margin: 1.5rem 0 .5rem;
}
.article-body p { margin-bottom: 1.1rem; }

.article-body ul, .article-body ol {
  padding-inline-start: 1.5rem; margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: .45rem; }

.article-body strong { color: var(--primary); font-weight: 600; }

.article-body blockquote {
  background: var(--primary-lt);
  border-inline-start: 4px solid var(--primary);
  padding: .9rem 1.25rem; margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal; color: var(--text);
}

/* ── INFO BOX ────────────────────────────────── */
.info-box {
  background: var(--accent-lt);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.info-box-title { font-weight: 700; color: var(--accent); margin-bottom: .4rem; }

/* ── INTERNAL LINKS ──────────────────────────── */
.related-articles {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.related-articles h4 {
  font-size: .9rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: .85rem;
}
.related-articles ul { list-style: none; padding: 0; margin: 0; }
.related-articles li { margin-bottom: .5rem; }
.related-articles a {
  color: var(--primary); text-decoration: none; font-size: .95rem;
  display: flex; align-items: center; gap: .4rem;
}
.related-articles a::before { content: '←'; font-size: .8rem; opacity: .6; }
body[lang="en"] .related-articles a::before { content: '→'; }
.related-articles a:hover { text-decoration: underline; }

/* ── FAQ SECTION ─────────────────────────────── */
.faq-section {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem;
  margin: 2.5rem 0;
}
.faq-section h2 {
  font-size: 1.2rem; font-weight: 700; color: var(--primary);
  margin-bottom: 1.25rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary-lt);
}
.faq-item { margin-bottom: 1.25rem; }
.faq-item:last-child { margin-bottom: 0; }
.faq-question {
  font-weight: 700; font-size: 1rem; color: var(--text);
  margin-bottom: .4rem; display: flex; gap: .5rem;
}
.faq-question::before { content: 'س:'; color: var(--accent); flex-shrink: 0; }
body[lang="en"] .faq-question::before { content: 'Q:'; }
.faq-answer { color: var(--text); font-size: .97rem; padding-inline-start: 1.75rem; }

/* ── CTA BLOCK ───────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, var(--primary) 0%, #1E4269 100%);
  color: var(--white); border-radius: var(--radius);
  padding: 2rem 2rem; margin: 2.5rem 0; text-align: center;
}
.cta-block h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .6rem; }
.cta-block p { font-size: .95rem; opacity: .88; margin-bottom: 1.25rem; }
.cta-btn {
  display: inline-block;
  background: var(--white); color: var(--primary);
  font-weight: 700; font-size: 1rem;
  padding: .75rem 2rem; border-radius: 999px;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 2rem 1.5rem; text-align: center;
  font-size: .85rem; color: var(--text-muted);
}
.site-footer a { color: var(--primary); text-decoration: none; }

/* ── BLOG INDEX GRID ─────────────────────────── */
.blog-grid {
  max-width: 960px; margin: 2rem auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s; display: block;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(44,95,138,.12); }
.blog-card-cat { font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: .4rem; }
.blog-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; margin-bottom: .5rem; }
.blog-card p { font-size: .88rem; color: var(--text-muted); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .article-wrap { padding: 0 1rem; }
  .cta-block { padding: 1.5rem 1rem; }
  h1.article-title { font-size: 1.5rem; }
}
