
/* Base Reset */
@font-face {
  font-family: Vazirmatn;
  src: url('Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; margin:0; padding:0; }
html { font-family: 'Vazirmatn', sans-serif; direction: rtl; }
body { background:#f9fafb; color:#222; line-height:1.7; }

/* Links */
a { color:#0ea5e9; text-decoration:none; }
a:hover { text-decoration:none; }

.container { max-width: 1100px; margin:0 auto; padding:20px; }

/* Header */
header.site-header {
  position:sticky; top:0; z-index:100;
  background:#fff; border-bottom:1px solid #e5e7eb;
}
.navbar { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; }
.logo { font-weight:800; display:flex; align-items:center; gap:8px; font-size:18px; }
.logo .mark { width:28px; height:28px; border-radius:8px; background:linear-gradient(135deg,#0ea5e9,#22c55e); }

/* Navigation */
.menu-toggle { display:none; cursor:pointer; font-size:22px; }
.nav { display:flex; gap:12px; }
.nav a { padding:6px 12px; border-radius:8px; }
.nav a:hover { background:#f1f5f9; }
@media (max-width:768px){
  .nav { display:none; flex-direction:column; background:#fff; position:absolute; top:60px; right:10px; border:1px solid #e5e7eb; padding:10px; width:200px; }
  .nav.active { display:flex; }
  .menu-toggle { display:block; }
}

/* Hero */
.hero { text-align:center; padding:60px 20px; background:#f1f5f9; }
.hero h1 { font-size: clamp(24px,4vw,36px); margin-bottom:10px; }
.hero p { color:#555; max-width:700px; margin:0 auto; }

/* Grid & Cards */
.grid { display:grid; gap:16px; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }
.card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; box-shadow:0 2px 4px rgba(0,0,0,0.05); display:flex; flex-direction:column; gap:10px; }
.card h3 { margin:0; font-size:18px; }
.card p { font-size:14px; color:#555; }
.card .actions { margin-top:auto; }

/* Buttons */
.btn, button, .button { background:#0ea5e9; color:#fff; padding:8px 14px; border:none; border-radius:8px; cursor:pointer; font-weight:700;font-family: 'Vazirmatn'; }
.btn:hover, button:hover { background:#0284c7; }
button.ghost { background:#f1f5f9; color:#333; border:1px solid #ddd; }
button.ghost:hover { background:#e2e8f0; }

/* Tool Box */
.tool-box { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; box-shadow:0 2px 4px rgba(0,0,0,0.05); display:flex; flex-direction:column; gap:12px; margin: 40px 0px;}
.tool-row { display:flex; flex-wrap:wrap; gap:12px; }
input, select, textarea { width:100%; border:1px solid #ddd; border-radius:8px; padding:10px; }
textarea { min-height:220px; }

/* Pre-footer */
.pre-footer { background:#f1f5f9; padding:24px; text-align:center; margin-top:40px; border-top:1px solid #e5e7eb; }

/* Footer */
footer.site-footer { background:#fff; text-align:center; padding:16px; border-top:1px solid #e5e7eb; font-size:14px; color:#555; }

/* Blog */
.blog-layout { display:grid; grid-template-columns:1fr 320px; gap:20px; }
@media(max-width:900px){ .blog-layout{ grid-template-columns:1fr; } }
.post-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap:16px; }
.post { background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; display:flex; flex-direction:column; }
.post img { width:100%; height:160px; object-fit:cover; }
.post .p-body { padding:14px; display:flex; flex-direction:column; gap:8px; }
.sidebar { display:flex; flex-direction:column; gap:16px; }
.widget { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:14px; }
