/* ═══ مبلمان منصف — استایل صفحات بلاگ ═══ */
:root{
  --navy:#3b4b5f;
  --navy-dark:#2d3a47;
  --beige:#c9a876;
  --beige-light:#dcc199;
  --cream:#f5f1eb;
  --text:#2d2d2d;
  --muted:#6b6b6b;
}

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

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;}

body{
  font-family:'Estedad',sans-serif;
  background:var(--cream);
  color:var(--text);
  direction:rtl;
  line-height:1.8;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

img{max-width:100%;height:auto;display:block;}
a{color:var(--navy);}

/* ─── هدر ─── */
nav{background:#fff;box-shadow:0 2px 18px rgba(59,75,95,.08);position:sticky;top:0;z-index:100;border-bottom:1px solid rgba(59,75,95,.06);}
.nv{max-width:1200px;margin:0 auto;padding:14px 5%;display:flex;align-items:center;justify-content:space-between;gap:20px;}
.logo{display:flex;align-items:center;gap:12px;font-size:1.2rem;font-weight:800;color:var(--navy);text-decoration:none;padding:7px 10px 7px 14px;border:1px solid rgba(201,157,84,.28);border-radius:16px;background:linear-gradient(135deg,#fff 55%,rgba(201,157,84,.11));box-shadow:0 7px 22px rgba(35,55,46,.08);transition:.2s;}
.logo:hover{transform:translateY(-2px);box-shadow:0 11px 28px rgba(35,55,46,.13);}
.logo-copy{display:grid;line-height:1.35}.logo-copy small{font-size:.58rem;font-weight:600;color:#8b6a38;margin-top:2px;}
.logo-img{width:54px;height:54px;border-radius:15px;object-fit:cover;background:#fff;border:2px solid rgba(201,157,84,.58);box-shadow:0 5px 15px rgba(201,157,84,.2);}
.blog-header{max-width:1200px;margin:0 auto;padding:14px 5%;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff}.blog-brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:1.15rem;font-weight:800;padding:7px 12px;border:1px solid rgba(201,157,84,.28);border-radius:16px;box-shadow:0 7px 22px rgba(35,55,46,.08)}.blog-brand img{width:54px;height:54px;border-radius:15px;border:2px solid rgba(201,157,84,.58);object-fit:cover}.blog-brand-copy{display:grid;line-height:1.35}.blog-brand-copy small{font-size:.58rem;color:#8b6a38}.blog-header>a:last-child{text-decoration:none;font-weight:700}
.nv-links{display:flex;gap:6px;}
.nv-links a{text-decoration:none;color:var(--navy);font-size:.92rem;font-weight:600;padding:8px 14px;border-radius:8px;transition:all .2s;}
.nv-links a:hover{background:var(--cream);}
.nv-links a.active{background:var(--navy);color:#fff;}

/* ─── سرصفحه بلاگ ─── */
.page-hero{background:linear-gradient(135deg,var(--navy-dark),var(--navy));color:#fff;padding:56px 5%;text-align:center;}
.page-hero h1{font-size:clamp(1.7rem,4vw,2.4rem);font-weight:800;margin-bottom:12px;}
.page-hero p{opacity:.92;font-size:1.02rem;max-width:640px;margin:0 auto;}

/* ─── لیست مقالات ─── */
.blog-wrap{max-width:1200px;margin:0 auto;padding:56px 5%;flex:1;width:100%;}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:28px;}
.post-card{background:#fff;border-radius:18px;overflow:hidden;border:1px solid rgba(59,75,95,.07);box-shadow:0 4px 20px rgba(59,75,95,.07);transition:all .3s;display:flex;flex-direction:column;text-decoration:none;color:inherit;}
.post-card:hover{transform:translateY(-5px);box-shadow:0 12px 36px rgba(59,75,95,.14);}
.post-card-cover{width:100%;height:200px;object-fit:cover;background:linear-gradient(135deg,var(--navy),var(--beige));}
.post-card-cover-placeholder{width:100%;height:200px;display:flex;align-items:center;justify-content:center;font-size:3.4rem;background:linear-gradient(135deg,var(--navy),var(--beige));color:#fff;}
.post-card-body{padding:22px;display:flex;flex-direction:column;flex:1;}
.post-card-body h2{font-size:1.12rem;font-weight:700;color:var(--navy);margin-bottom:10px;line-height:1.6;}
.post-card-body p{font-size:.88rem;color:var(--muted);flex:1;margin-bottom:16px;}
.post-card-meta{display:flex;justify-content:space-between;align-items:center;font-size:.78rem;color:var(--muted);border-top:1px solid rgba(59,75,95,.08);padding-top:14px;}
.post-card-more{color:var(--beige);font-weight:700;font-size:.85rem;}

/* ─── صفحه تکی مقاله ─── */
.article-wrap{max-width:820px;margin:0 auto;padding:50px 5%;flex:1;width:100%;}
.breadcrumb{font-size:.82rem;color:var(--muted);margin-bottom:24px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.breadcrumb a{text-decoration:none;color:var(--navy);font-weight:600;}
.breadcrumb a:hover{color:var(--beige);}
.article-title{font-size:clamp(1.6rem,4vw,2.2rem);font-weight:800;color:var(--navy);line-height:1.5;margin-bottom:14px;}
.article-meta{font-size:.85rem;color:var(--muted);margin-bottom:26px;display:flex;gap:16px;flex-wrap:wrap;}
.article-cover{width:100%;max-height:420px;object-fit:cover;border-radius:18px;margin-bottom:32px;box-shadow:0 8px 30px rgba(59,75,95,.12);}
.article-body{background:#fff;border-radius:18px;padding:clamp(24px,5vw,44px);border:1px solid rgba(59,75,95,.07);box-shadow:0 4px 20px rgba(59,75,95,.06);}
.article-body h2{font-size:1.3rem;font-weight:800;color:var(--navy);margin:30px 0 12px;line-height:1.6;}
.article-body h2:first-child{margin-top:0;}
.article-body h3{font-size:1.08rem;font-weight:700;color:var(--navy);margin:24px 0 10px;}
.article-body p{font-size:.98rem;line-height:2;margin-bottom:16px;color:var(--text);}
.article-body ul,.article-body ol{margin:0 22px 18px 0;font-size:.95rem;line-height:2;}
.article-body img{border-radius:14px;margin:22px auto;box-shadow:0 6px 24px rgba(59,75,95,.1);}
.article-body a{color:var(--beige);font-weight:600;}
.article-body strong{color:var(--navy);}
.article-cta{margin-top:36px;background:linear-gradient(135deg,var(--navy-dark),var(--navy));border-radius:18px;padding:30px;text-align:center;color:#fff;}
.article-cta h3{font-size:1.2rem;font-weight:800;margin-bottom:8px;}
.article-cta p{font-size:.9rem;opacity:.9;margin-bottom:18px;}
.article-cta a{display:inline-block;background:var(--beige);color:var(--navy);text-decoration:none;font-weight:700;padding:13px 32px;border-radius:12px;transition:all .25s;}
.article-cta a:hover{background:var(--beige-light);transform:translateY(-2px);}
.article-nav{display:flex;justify-content:space-between;gap:14px;margin-top:32px;flex-wrap:wrap;}
.article-nav a{background:#fff;border:1px solid rgba(59,75,95,.1);border-radius:12px;padding:12px 20px;text-decoration:none;font-size:.88rem;font-weight:600;color:var(--navy);transition:all .2s;max-width:48%;}
.article-nav a:hover{border-color:var(--beige);color:var(--beige);}

/* ─── حالت خالی و خطا ─── */
.empty-state{text-align:center;padding:70px 20px;color:var(--muted);}
.empty-state .icon{font-size:3.4rem;margin-bottom:14px;}
.empty-state h2{color:var(--navy);font-size:1.25rem;margin-bottom:8px;}

/* ─── فوتر ─── */
footer{background:var(--navy-dark);color:#fff;padding:50px 5% 30px;border-top:4px solid var(--beige);}
.footer-container{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:40px;}
.footer-col h4{font-size:1.05rem;font-weight:700;margin-bottom:18px;color:var(--beige);}
.footer-col p,.footer-col a{font-size:.88rem;color:rgba(255,255,255,.8);line-height:1.8;text-decoration:none;display:block;margin-bottom:10px;}
.footer-col a:hover{color:#fff;}
.footer-logo{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.footer-logo img{width:44px;height:44px;border-radius:10px;object-fit:cover;}
.footer-logo span{font-weight:800;font-size:1.1rem;}
.enamad-badge img{max-width:110px;border-radius:8px;background:#fff;padding:6px;}
.footer-copy{max-width:1200px;margin:30px auto 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);text-align:center;font-size:.8rem;color:rgba(255,255,255,.55);}

@media(max-width:640px){
  .nv{padding:9px 10px;gap:8px}.logo{font-size:.88rem;gap:7px;padding:5px 7px 5px 9px}.logo-img{width:44px;height:44px;border-radius:12px}.logo-copy small{font-size:.49rem}.nv-links{gap:2px}.nv-links a{padding:8px 7px;font-size:.72rem}
  .blog-header{padding:9px 10px}.blog-brand{font-size:.88rem;padding:5px 7px;gap:7px}.blog-brand img{width:44px;height:44px;border-radius:12px}.blog-header>a:last-child{font-size:.72rem}.blog-brand-copy small{font-size:.49rem}
  .nv-links a{padding:8px 9px;font-size:.84rem;}
  .article-nav a{max-width:100%;width:100%;}
}
