/* وبلاگ فارسی وب‌استودیو (afsharweb.com/blog) – روی studio.css سوار می‌شود */
.sb-hero { padding: 56px 0 28px; background: radial-gradient(1200px 380px at 80% -10%, var(--ac-soft), transparent 70%), var(--soft); border-bottom: 1px solid var(--line); }
.sb-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-top: 14px; max-width: 760px; }
.sb-lead { font-size: 1.08rem; color: var(--ink2); max-width: 720px; }
.sb-list-sec { padding: 48px 0 64px; }
.sb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.sb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sb-card-link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none !important; }
.sb-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ac-soft), var(--soft)); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.sb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-cover-ph { font-size: 2.6rem; font-weight: 800; color: var(--ac); opacity: .55; }
.sb-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sb-body h2, .sb-body h3 { font-size: 1.08rem; margin: 0; }
.sb-body p { margin: 0; font-size: .93rem; }
.sb-meta { color: var(--muted) !important; font-size: .84rem !important; margin-top: auto !important; padding-top: 8px; }
.sb-empty { text-align: center; padding: 40px 0; }
.sb-cta { padding: 56px 0; background: var(--ink); text-align: center; }
.sb-cta h2 { color: #fff !important; }
.sb-cta p { color: #cbd5e1 !important; max-width: 560px; margin: 0 auto 20px !important; }
.sb-narrow { max-width: 780px; }
.sb-article-head { padding: 40px 0 18px; }
.sb-article-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
.sb-crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.sb-crumbs span:last-child { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.sb-hero-img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 26px; display: block; }
.sb-content { font-size: 1.06rem; line-height: 2; color: var(--ink2); overflow-wrap: anywhere; }
.sb-content h2 { font-size: 1.4rem; margin-top: 1.8em; }
.sb-content h3 { font-size: 1.15rem; margin-top: 1.5em; }
.sb-content img { max-width: 100%; height: auto; border-radius: 12px; }
.sb-content ul, .sb-content ol { padding-inline-start: 1.4em; }
.sb-content li { margin-bottom: .4em; }
.sb-content blockquote { margin: 1.2em 0; padding: 12px 18px; border-inline-start: 4px solid var(--ac); background: var(--ac-soft); border-radius: 12px; }
.sb-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; display: block; overflow-x: auto; }
.sb-content th, .sb-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; }
.sb-content pre, .sb-content code { direction: ltr; unicode-bidi: isolate; }
.sb-inline-cta { margin: 36px 0 56px; padding: 24px; border-radius: var(--r); background: var(--ac-soft); border: 1px solid var(--ac-line); }
.sb-inline-cta p { margin: 6px 0 16px; }
.sb-related-title { font-size: 1.3rem; margin-bottom: 18px; }
@media (max-width: 1020px) { .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .sb-grid { grid-template-columns: 1fr; }
    .sb-hero { padding: 36px 0 22px; }
    .sb-content { font-size: 1rem; line-height: 1.95; }
}
