@import url('../fonts/vazir.css');

/* ============================================================
   وبلاگِ عمومی — قالبِ روشنِ حرفه‌ای (تمِ تاریک عمداً ندارد)
   طراحی: نئوترالِ روشن + آبیِ برند، RTL، خوانایی‌محور
   ============================================================ */
:root {
    --b-navy: #0C1D34;
    --b-blue: #2563eb;
    --b-blue-l: #3b78ff;
    --b-blue-dark: #1d4ed8;
    --b-blue-soft: #eff4ff;

    --b-bg: #f7f8fa;
    --b-surface: #ffffff;
    --b-surface-2: #f2f4f8;
    --b-text: #16202e;
    --b-text-2: #35435a;
    --b-muted: #6b7688;
    --b-border: #e7eaf0;
    --b-border-2: #eef1f5;

    --b-shadow-sm: 0 1px 2px rgba(16, 30, 54, .04);
    --b-shadow: 0 4px 16px rgba(16, 30, 54, .06);
    --b-shadow-lg: 0 16px 40px rgba(16, 30, 54, .12);

    --b-r: 14px;
    --b-r-sm: 10px;
    --b-max: 1200px;      /* عرضِ کلیِ سایت */
    --b-read: 860px;      /* عرضِ ستونِ مطالعه (متنِ مطلب) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.blog-body {
    font-family: 'Vazir', system-ui, sans-serif;
    background: var(--b-bg);
    color: var(--b-text);
    direction: rtl;
    font-size: 16px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--b-blue); color: #fff; }
.ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* نوارِ پیشرفتِ مطالعه */
.read-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--b-blue), #60a5fa); z-index: 60; transition: width .1s linear; }

/* ============================================================
   نوار بالا
   ============================================================ */
.blog-topbar {
    position: sticky; top: 0; z-index: 50;
    /* گرادیانِ سرمه‌ای→آبی + هاله‌ی آبی — هم‌سان با هیروِ صفحه‌ی فرود */
    background:
        radial-gradient(680px 320px at 82% -35%, rgba(47, 107, 255, .48), transparent 62%),
        radial-gradient(560px 260px at 4% 150%, rgba(56, 189, 248, .16), transparent 60%),
        linear-gradient(105deg, #0b1a30 0%, #122c50 58%, #0c1f38 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 30px rgba(9, 20, 40, .22);
    color: #eaf1ff;
}
.bt-inner { max-width: var(--b-max); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 22px; }
.bt-brand { display: flex; align-items: center; gap: 12px; }
.bt-badge {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(140deg, var(--b-blue-l), var(--b-blue-dark));
    box-shadow: 0 10px 24px rgba(37, 99, 235, .4);
}
.bt-badge .ic { width: 22px; height: 22px; }
.bt-logo { height: 36px; width: auto; }
.bt-tx { display: flex; flex-direction: column; line-height: 1.25; }
.bt-tx b { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .2px; }
.bt-tx small { font-size: 11px; color: rgba(234, 241, 255, .6); margin-top: 1px; }
.bt-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.bt-nav a { padding: 8px 15px; border-radius: 9px; font-size: 14.5px; color: rgba(234, 241, 255, .82); font-weight: 600; transition: .15s; }
.bt-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.bt-actions { display: flex; align-items: center; gap: 10px; }
.bt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 11px; font-size: 14px; font-weight: 700; transition: transform .15s, box-shadow .2s, filter .2s; }
.bt-btn-primary { background: linear-gradient(135deg, var(--b-blue), var(--b-blue-dark)); color: #fff; box-shadow: 0 10px 22px rgba(37, 99, 235, .32); }
.bt-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37, 99, 235, .42); filter: brightness(1.05); }
.bt-toggle { display: none; background: none; border: 0; color: #eaf1ff; cursor: pointer; padding: 8px; }
.bt-toggle .ic { width: 22px; height: 22px; }

.blog-main { max-width: var(--b-max); margin: 0 auto; padding: 36px 24px 72px; }
.sec-title { font-size: 19px; font-weight: 800; color: var(--b-navy); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; letter-spacing: -.3px; }
.sec-title .ic { color: var(--b-blue); }

/* ============================================================
   هیروِ آرشیو
   ============================================================ */
.blog-hero { text-align: center; padding: 34px 0 32px; }
.blog-hero h1 { font-size: 40px; font-weight: 800; color: var(--b-navy); letter-spacing: -.8px; line-height: 1.4; margin-bottom: 12px; }
.blog-hero p { color: var(--b-muted); max-width: 620px; margin: 0 auto 26px; font-size: 15.5px; line-height: 1.9; }
.blog-search { display: flex; align-items: center; gap: 6px; max-width: 540px; margin: 0 auto; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: 12px; padding: 5px 5px 5px 16px; box-shadow: var(--b-shadow); transition: .18s; }
.blog-search:focus-within { border-color: var(--b-blue); box-shadow: 0 0 0 4px var(--b-blue-soft); }
.blog-search .ic { color: var(--b-muted); }
.blog-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; padding: 9px 6px; color: var(--b-text); }
.blog-search button { border: 0; background: var(--b-blue); color: #fff; font: inherit; font-weight: 700; font-size: 13.5px; padding: 10px 22px; border-radius: 9px; cursor: pointer; transition: .15s; }
.blog-search button:hover { background: var(--b-blue-dark); }

/* نوار دسته‌ها */
.cat-bar { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 38px; }
.cat-bar a { padding: 7px 16px; border-radius: 999px; background: var(--b-surface); border: 1px solid var(--b-border); font-size: 13px; font-weight: 600; color: var(--b-muted); transition: .15s; }
.cat-bar a:hover { border-color: var(--b-blue); color: var(--b-blue); }
.cat-bar a.active { background: var(--b-navy); color: #fff; border-color: var(--b-navy); }
.cat-bar a span { opacity: .65; font-size: 11px; margin-inline-start: 2px; }
.active-filter { text-align: center; margin-bottom: 26px; color: var(--b-muted); font-size: 14px; }
.active-filter a { color: var(--b-blue); margin-inline-start: 8px; font-size: 13px; }

/* ============================================================
   بخشِ ویژه
   ============================================================ */
.featured { margin-bottom: 52px; }
.feat-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.feat-card { position: relative; border-radius: var(--b-r); overflow: hidden; min-height: 168px; display: block; color: #fff; box-shadow: var(--b-shadow); transition: transform .2s, box-shadow .2s; }
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--b-shadow-lg); }
.feat-card.feat-lead { grid-row: span 2; min-height: 352px; }
.feat-img { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--b-navy); transition: transform .35s; }
.feat-card:hover .feat-img { transform: scale(1.04); }
.feat-img .ic { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; color: rgba(255,255,255,.35); }
.feat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,18,33,.92) 4%, rgba(8,18,33,.35) 48%, rgba(8,18,33,.05) 100%); }
.feat-tx { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 20px; z-index: 2; }
.feat-cat { display: inline-block; background: var(--b-blue); font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 9px; }
.feat-tx h3 { font-size: 17px; font-weight: 700; line-height: 1.65; }
.feat-lead .feat-tx h3 { font-size: 25px; letter-spacing: -.4px; }
.feat-tx p { font-size: 13.5px; opacity: .88; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-meta { display: block; margin-top: 9px; font-size: 12px; opacity: .78; }

/* ============================================================
   شبکه‌ی مطالب
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.post-card { background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-r); overflow: hidden; box-shadow: var(--b-shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--b-shadow-lg); border-color: #dbe2ec; }
.pc-img { position: relative; display: block; aspect-ratio: 16/9; background: var(--b-surface-2); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .pc-img img { transform: scale(1.05); }
.pc-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #c3cbd8; font-size: 34px; }
.pc-cat { position: absolute; inset-inline-start: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--b-navy); font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; box-shadow: var(--b-shadow-sm); }
.pc-body { padding: 17px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pc-title { font-size: 17px; font-weight: 700; line-height: 1.65; letter-spacing: -.2px; }
.pc-title a { transition: color .15s; }
.pc-title a:hover { color: var(--b-blue); }
.pc-excerpt { color: var(--b-muted); font-size: 13.5px; line-height: 1.85; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { display: flex; gap: 14px; color: var(--b-muted); font-size: 12px; padding-top: 11px; border-top: 1px solid var(--b-border-2); }
.pc-meta .ic { color: var(--b-blue); opacity: .75; }

/* صفحه‌بندی */
.pager { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: var(--b-surface); border: 1px solid var(--b-border); font-weight: 700; font-size: 13.5px; color: var(--b-muted); transition: .15s; }
.pager a:hover { border-color: var(--b-blue); color: var(--b-blue); }
.pager a.active { background: var(--b-blue); border-color: var(--b-blue); color: #fff; }
.pager .pg-arrow { font-size: 20px; line-height: 1; font-weight: 400; }
.pager .pg-gap { min-width: 28px; height: 40px; display: grid; place-items: center; color: var(--b-muted); font-weight: 700; }

/* خالی / ۴۰۴ */
.blog-empty { text-align: center; padding: 76px 20px; color: var(--b-muted); }
.blog-empty > .ic { width: 48px; height: 48px; color: #c8d0dc; margin: 0 auto 16px; }
.blog-empty h1 { font-size: 25px; color: var(--b-navy); margin-bottom: 8px; }
.blog-empty .bt-btn { margin-top: 18px; display: inline-flex; }

/* ============================================================
   صفحه‌ی تکِ مطلب
   ============================================================ */
.post-article { max-width: var(--b-read); margin: 0 auto; }
.post-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; color: var(--b-muted); margin-bottom: 22px; }
.post-crumbs a { transition: color .15s; }
.post-crumbs a:hover { color: var(--b-blue); }
.post-crumbs .cur { color: var(--b-text-2); font-weight: 600; }

.post-header { text-align: center; margin-bottom: 30px; }
.post-cat { display: inline-block; background: var(--b-blue-soft); color: var(--b-blue); font-size: 12.5px; font-weight: 700; padding: 5px 15px; border-radius: 999px; margin-bottom: 16px; }
.post-title { font-size: 40px; font-weight: 800; line-height: 1.45; color: var(--b-navy); letter-spacing: -.9px; margin-bottom: 16px; }
.post-lead { font-size: 17.5px; color: var(--b-muted); line-height: 1.95; max-width: 700px; margin: 0 auto; }
.post-meta { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--b-border); color: var(--b-muted); font-size: 13px; }
.post-meta .ic { color: var(--b-blue); opacity: .8; }
.post-meta .pm-author { font-weight: 700; color: var(--b-text-2); transition: color .15s; }
.post-meta .pm-author:hover { color: var(--b-blue); }

.post-cover { margin: 0 0 34px; border-radius: var(--b-r); overflow: hidden; box-shadow: var(--b-shadow); }
.post-cover img { width: 100%; max-height: 480px; object-fit: cover; }

/* ---------- تایپوگرافیِ متن ---------- */
.post-body { font-size: 17.5px; line-height: 2.1; color: var(--b-text-2); }
.post-body > * + * { margin-top: 22px; }
.post-body h2 { font-size: 27px; font-weight: 800; color: var(--b-navy); margin-top: 46px; line-height: 1.55; letter-spacing: -.5px; }
.post-body h3 { font-size: 22px; font-weight: 700; color: var(--b-navy); margin-top: 36px; line-height: 1.6; }
.post-body h4 { font-size: 18.5px; font-weight: 700; color: var(--b-navy); margin-top: 28px; }
.post-body p { line-height: 2.1; }
.post-body a { color: var(--b-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-body a:hover { color: var(--b-blue-dark); }
.post-body ul, .post-body ol { padding-inline-start: 24px; }
.post-body li { margin-bottom: 10px; }
.post-body li::marker { color: var(--b-blue); }
.post-body img { border-radius: var(--b-r-sm); margin: 30px auto; box-shadow: var(--b-shadow); }
.post-body figure { margin: 30px 0; }
.post-body figure img { margin: 0 auto; }
.post-body figcaption { text-align: center; font-size: 13px; color: var(--b-muted); margin-top: 10px; }
.post-body blockquote {
    border: 0; border-inline-start: 3px solid var(--b-blue);
    background: var(--b-surface); padding: 18px 22px; border-radius: 0 var(--b-r-sm) var(--b-r-sm) 0;
    color: var(--b-text); font-size: 17px; font-weight: 500; box-shadow: var(--b-shadow-sm);
}
.post-body pre { background: #0f1b2d; color: #e2e8f0; padding: 20px 22px; border-radius: var(--b-r-sm); overflow-x: auto; direction: ltr; text-align: left; font-size: 13.5px; line-height: 1.75; font-family: ui-monospace, Menlo, Consolas, monospace; }
.post-body code { background: var(--b-blue-soft); color: var(--b-blue-dark); padding: 2px 7px; border-radius: 5px; font-size: .88em; direction: ltr; display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; }
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--b-border); margin: 40px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--b-border); padding: 11px 13px; text-align: right; }
.post-body th { background: var(--b-surface-2); font-weight: 700; color: var(--b-navy); }
.post-body mark { background: #fff3a3; color: #1e293b; padding: 1px 4px; border-radius: 4px; }

/* برچسب و اشتراک */
.post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 38px; }
.tag-chip { background: var(--b-surface); border: 1px solid var(--b-border); padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--b-muted); transition: .15s; }
.tag-chip:hover { border-color: var(--b-blue); color: var(--b-blue); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--b-border); font-size: 13.5px; color: var(--b-muted); }
.post-share span { font-weight: 600; margin-inline-end: 4px; }
.post-share a, .post-share button { background: var(--b-surface); border: 1px solid var(--b-border); padding: 7px 15px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--b-text-2); cursor: pointer; transition: .15s; }
.post-share a:hover, .post-share button:hover { border-color: var(--b-blue); color: var(--b-blue); background: var(--b-blue-soft); }

/* ============================================================
   جعبه‌ی نویسنده — فشرده، عکسِ گردِ کوچک (پایینِ مطلب)
   ============================================================ */
.author-box {
    display: flex; align-items: center; gap: 13px;
    background: var(--b-surface); border: 1px solid var(--b-border);
    border-radius: 999px; padding: 10px 18px 10px 10px;
    margin-top: 34px; box-shadow: var(--b-shadow-sm);
}
.ab-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ab-ph { display: grid; place-items: center; background: var(--b-navy); color: #fff; font-size: 17px; font-weight: 700; }
.ab-tx { flex: 1; min-width: 0; line-height: 1.6; }
.ab-lbl { font-size: 11px; color: var(--b-muted); }
.ab-tx h3 { font-size: 14.5px; font-weight: 700; display: inline; margin-inline-start: 4px; }
.ab-tx h3 a { transition: color .15s; }
.ab-tx h3 a:hover { color: var(--b-blue); }
.ab-tx p { font-size: 12.5px; color: var(--b-muted); line-height: 1.7; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-links { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.ab-links a { font-size: 11.5px; font-weight: 600; color: var(--b-muted); background: var(--b-surface-2); border-radius: 999px; padding: 4px 11px; transition: .15s; }
.ab-links a:hover { background: var(--b-blue); color: #fff; }

/* هیروِ صفحه‌ی نویسنده */
.author-hero { text-align: center; padding: 28px 0 30px; }
.author-hero .ah-ava { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; box-shadow: var(--b-shadow); }
.author-hero .ab-ph { font-size: 26px; }
.author-hero h1 { font-size: 27px; font-weight: 800; color: var(--b-navy); margin-bottom: 8px; letter-spacing: -.4px; }
.author-hero p { color: var(--b-muted); max-width: 580px; margin: 0 auto 12px; font-size: 15px; line-height: 1.9; }
.ah-count { display: inline-block; font-size: 12.5px; color: var(--b-blue); font-weight: 700; background: var(--b-blue-soft); border-radius: 999px; padding: 4px 14px; }

/* مرتبط */
.related { max-width: var(--b-max); margin: 60px auto 0; }

/* ============================================================
   دیدگاه‌ها
   ============================================================ */
.comments { max-width: var(--b-read); margin: 60px auto 0; }
.cc-count { background: var(--b-blue); color: #fff; font-size: 12.5px; padding: 1px 10px; border-radius: 999px; font-weight: 700; }
.c-flash { padding: 13px 18px; border-radius: var(--b-r-sm); margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.c-flash.ok { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; }
.c-flash.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.c-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.c-item { display: flex; gap: 14px; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-r); padding: 16px 18px; }
.c-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--b-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.c-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.c-head b { font-size: 14.5px; }
.c-head span { font-size: 12px; color: var(--b-muted); }
.c-body p { font-size: 14.5px; color: var(--b-text-2); line-height: 1.95; }
.c-empty { color: var(--b-muted); text-align: center; padding: 22px; font-size: 14px; }
.c-form { background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-r); padding: 26px; box-shadow: var(--b-shadow-sm); }
.c-form h3 { font-size: 18px; font-weight: 700; color: var(--b-navy); margin-bottom: 18px; }
/* (تله‌ی ربات پایین‌تر و بعد از قانونِ input تعریف شده تا width:100% رویش را نگیرد) */
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.c-form input, .c-form textarea { width: 100%; font: inherit; font-size: 14.5px; padding: 12px 14px; border: 1px solid var(--b-border); border-radius: var(--b-r-sm); background: var(--b-bg); color: var(--b-text); resize: vertical; transition: .15s; }
.c-form input::placeholder, .c-form textarea::placeholder { color: #98a2b3; }
.c-form input:focus, .c-form textarea:focus { outline: 0; border-color: var(--b-blue); background: #fff; box-shadow: 0 0 0 4px var(--b-blue-soft); }
.c-submit { margin-top: 14px; background: var(--b-blue); color: #fff; border: 0; font: inherit; font-weight: 700; font-size: 14px; padding: 12px 30px; border-radius: var(--b-r-sm); cursor: pointer; transition: .15s; }
.c-submit:hover { background: var(--b-blue-dark); }

/* تله‌ی ربات (honeypot): پنهانِ بصری بدونِ ساختنِ سرریزِ افقی.
   ⚠ باید بعد از «.c-form input» بیاید وگرنه width:100% رویش را می‌گیرد و
   در صفحه‌ی RTL کلِ چیدمان را می‌شکند (نه left:-9999px، نه width:100%). */
.c-form input.c-hp {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

/* ============================================================
   فوتر
   ============================================================ */
.blog-footer { background: var(--b-navy); color: #b9c4d4; margin-top: 72px; }
.bf-inner { max-width: var(--b-max); margin: 0 auto; padding: 46px 24px 28px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.bf-inner b { color: #fff; font-size: 16.5px; }
.bf-inner p { font-size: 13.5px; margin-top: 8px; opacity: .78; max-width: 380px; line-height: 1.9; }
.bf-inner nav { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.bf-inner nav a { opacity: .82; transition: .15s; }
.bf-inner nav a:hover { color: #fff; opacity: 1; }
.bf-social { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.bf-social a { font-size: 12px; font-weight: 600; background: rgba(255,255,255,.08); border-radius: 999px; padding: 5px 13px; transition: .15s; }
.bf-social a:hover { background: var(--b-blue); color: #fff; }
.bf-copy { text-align: center; padding: 16px; border-top: 1px solid rgba(255,255,255,.09); font-size: 12px; opacity: .6; }

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 900px) {
    .blog-hero h1 { font-size: 32px; }
    .post-title { font-size: 31px; }
    .feat-grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .feat-card.feat-lead { grid-row: auto; min-height: 240px; }
}
@media (max-width: 720px) {
    .bt-inner { height: 60px; padding: 0 16px; }
    .bt-toggle { display: block; }
    .bt-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #0f2138; border-bottom: 1px solid rgba(255, 255, 255, .08); flex-direction: column; padding: 8px; gap: 2px; box-shadow: 0 16px 40px rgba(9, 20, 40, .4); }
    .bt-nav.open { display: flex; }
    .bt-inner { position: relative; }
    .blog-main { padding: 24px 16px 56px; }
    .blog-hero h1 { font-size: 26px; }
    .blog-hero p { font-size: 14.5px; }
    .post-title { font-size: 25px; letter-spacing: -.4px; }
    .post-lead { font-size: 16px; }
    .post-body { font-size: 16.5px; line-height: 2.05; }
    .post-body h2 { font-size: 23px; margin-top: 36px; }
    .post-body h3 { font-size: 19.5px; }
    .post-meta { gap: 12px; font-size: 12.5px; }
    .post-grid { grid-template-columns: 1fr; gap: 18px; }
    .c-row { grid-template-columns: 1fr; }
    .c-form { padding: 20px; }
    .bf-inner { flex-direction: column; gap: 22px; }
    .author-box { border-radius: var(--b-r); flex-wrap: wrap; padding: 16px; }
    .ab-links { width: 100%; }
}

/* چاپ */
@media print {
    .blog-topbar, .blog-footer, .post-share, .comments, .related, .author-box, .read-progress { display: none !important; }
    .post-article { max-width: 100%; }
    body.blog-body { background: #fff; }
}

/* ───── ویدیو (#۳۳) — آپارات/یوتیوب با نسبتِ ۱۶:۹ ───── */
.video-wrap {
    position: relative; width: 100%; padding-top: 56.25%;
    border-radius: var(--b-r); overflow: hidden; background: #000; box-shadow: var(--b-shadow);
}
.video-wrap iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.post-video { margin: 0 0 34px; }
.post-body .video-wrap { margin: 26px 0; }
/* نشانِ «ویدیو» روی کارتِ مطلب */
.pc-video {
    position: absolute; inset-inline-end: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px;
    background: rgba(17,17,17,.82); color: #fff; border-radius: 999px; padding: 4px 10px;
    font-size: 11px; font-weight: 700;
}
.pc-video .ic { width: 13px; height: 13px; }

/* جای‌گیرنده‌ی ویدیو داخلِ ویرایشگر — کارت، نه iframeِ زنده (فوکوس/کرسر خراب نشود) */
.be-editor .video-embed {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 18px 0; padding: 26px 16px; border: 2px dashed var(--b-border, #d7dee8);
    border-radius: 12px; background: var(--b-soft, #f4f7fb); color: var(--b-muted, #64748b);
    font-weight: 700; font-size: 13px; cursor: default; user-select: none;
}
.be-editor .video-embed::before {
    content: '▶'; display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 12px;
}
.be-editor .video-embed::after {
    content: 'ویدیوی ' attr(data-provider) ' — ' attr(data-id) ' (هنگام انتشار نمایش داده می‌شود)';
}
