/* einissa.com — main stylesheet */
:root{
  --c-bg:#fafaf7;
  --c-text:#1f2937;
  --c-muted:#6b7280;
  --c-accent:#0f766e;
  --c-accent-light:#14b8a6;
  --c-border:#e5e7eb;
  --c-card:#ffffff;
  --c-header:#ffffff;
  --c-footer:#1f2937;
  --c-footer-text:#e5e7eb;
  --c-link:#0f766e;
  --c-link-hover:#0d5e58;
  --radius:6px;
  --maxw:1140px;
  --shadow:0 1px 3px rgba(0,0,0,0.05);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Tajawal','Cairo',system-ui,-apple-system,sans-serif;
  background:var(--c-bg);
  color:var(--c-text);
  line-height:1.8;
  font-size:17px;
}
img{max-width:100%;height:auto;display:block;border-radius:var(--radius)}
a{color:var(--c-link);text-decoration:none}
a:hover{color:var(--c-link-hover);text-decoration:underline}
.container{max-width:var(--maxw);margin:0 auto;padding:0 1rem}

/* Header */
.site-header{background:var(--c-header);border-bottom:1px solid var(--c-border);position:sticky;top:0;z-index:100;box-shadow:var(--shadow)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem;flex-wrap:wrap;gap:1rem}
.site-title{font-size:1.5rem;font-weight:700;color:var(--c-accent);margin:0}
.site-title a{color:inherit;text-decoration:none}
.main-nav{display:flex;gap:1.2rem;flex-wrap:wrap}
.main-nav a{color:var(--c-text);font-weight:500;font-size:0.95rem}
.main-nav a:hover{color:var(--c-accent)}

/* Main content */
main{padding:2rem 0;min-height:60vh}
article.post{background:var(--c-card);padding:2rem;border-radius:var(--radius);box-shadow:var(--shadow);max-width:820px;margin:0 auto}
article.post h1{font-size:2rem;line-height:1.4;margin:0 0 1rem;color:var(--c-text)}
article.post h2{font-size:1.5rem;margin:2rem 0 1rem;color:var(--c-accent);border-bottom:2px solid var(--c-border);padding-bottom:0.5rem}
article.post h3{font-size:1.2rem;margin:1.5rem 0 0.8rem;color:var(--c-text)}
article.post p{margin:0 0 1.2rem}
.post-meta{color:var(--c-muted);font-size:0.9rem;margin-bottom:1.5rem;border-bottom:1px solid var(--c-border);padding-bottom:1rem}
.post-meta a{color:var(--c-accent)}

/* Cards (homepage + category index) */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin:2rem 0}
.card{background:var(--c-card);padding:1.5rem;border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--c-border)}
.card h3{margin:0 0 0.5rem;font-size:1.15rem}
.card h3 a{color:var(--c-text)}
.card h3 a:hover{color:var(--c-accent)}
.card p{color:var(--c-muted);font-size:0.95rem;margin:0.5rem 0}
.card .read-more{color:var(--c-accent);font-weight:500;font-size:0.9rem}

/* Section headings on indexes */
.section-heading{font-size:1.6rem;color:var(--c-accent);margin:2.5rem 0 1rem;text-align:center}
.section-sub{color:var(--c-muted);text-align:center;margin-bottom:1.5rem}

/* Footer */
.site-footer{background:var(--c-footer);color:var(--c-footer-text);padding:3rem 0 1.5rem;margin-top:3rem}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2rem;margin-bottom:2rem}
.footer-col h4{color:#fff;font-size:1.05rem;margin:0 0 1rem;border-bottom:2px solid var(--c-accent);padding-bottom:0.4rem;display:inline-block}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{margin-bottom:0.5rem}
.footer-col a{color:var(--c-footer-text);font-size:0.95rem}
.footer-col a:hover{color:#fff;text-decoration:underline}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.1);padding-top:1.2rem;text-align:center;color:#9ca3af;font-size:0.9rem}

/* FAQ */
article.post h3:has(+ p){margin-top:1.5rem}

/* Author byline */
.author-card{background:#f5f5f0;padding:1.2rem;border-radius:var(--radius);margin-top:2rem;border-right:4px solid var(--c-accent)}
.author-card strong{color:var(--c-accent)}

/* Breadcrumb */
.breadcrumb{font-size:0.9rem;color:var(--c-muted);margin-bottom:1rem}
.breadcrumb a{color:var(--c-accent)}

/* Responsive */
@media (max-width:768px){
  body{font-size:16px}
  .header-inner{flex-direction:column;align-items:flex-start}
  .main-nav{width:100%;justify-content:flex-start;gap:0.8rem}
  article.post{padding:1.25rem}
  article.post h1{font-size:1.5rem}
  article.post h2{font-size:1.25rem}
}
