/* ══════════════════════════════════════════════════════════════
   SINGLE BLOG v2.0 — GLASSMORPHISM
   ══════════════════════════════════════════════════════════════ */

/* [FIX] حذف override روی .fl-spacer که قبلاً صفر شده بود
   و باعث می‌شد اسلایدر زیر هدر fixed قرار بگیره.
   حالا spacer به اندازه طبیعی خودش هست (از header.css). */

.fl-sp-blog,
.fl-sp-blog *,
.fl-sp-blog *::before,
.fl-sp-blog *::after { box-sizing: border-box; }

.fl-sp-blog {
    --fl-primary: #2D5F93;
    --fl-primary-dark: #1B3F63;
    --fl-accent: #A4B400;
    --fl-accent-hover: #7C8B00;
    --fl-text: #17212B;
    --fl-text-light: #64748B;
    --fl-white: #FFFFFF;
    --fl-glass-bg: rgba(255,255,255,.42);
    --fl-glass-border: rgba(255,255,255,.38);
    --fl-glass-blur: 42px;
    --fl-speed: .35s;
    --fl-ease: cubic-bezier(.4,0,.2,1);
    --fl-radius: 20px;
    direction: <?php echo $is_rtl ? 'rtl' : 'ltr'; ?>;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 30px 60px;
    font-family: inherit;
}

.fl-sb-glass {
    background: var(--fl-glass-bg); border: 1px solid var(--fl-glass-border);
    border-radius: var(--fl-radius);
    backdrop-filter: blur(10px) saturate(1.8);
    -webkit-backdrop-filter: blur(10px) saturate(1.8);
    box-shadow: 0 12px 40px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.5);
    overflow: hidden;
}

.fl-sb-stack { display: flex; flex-direction: column; gap: 24px; }

/* ══ TITLE — بالای تصویر ══ */
.fl-sb-title-wrap { padding: 0 4px; }
.fl-sb-title {
    font-size: 1.3rem; font-weight: 800; color: var(--fl-primary-dark);
    margin: 0 0 4px; line-height: 1.6;
    padding-bottom: 14px; border-bottom: 2px solid var(--fl-accent);
    display: inline-block;
}
.fl-sb-title-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px;
}
.fl-sb-title-meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: .78rem; color: #334155; font-weight: 600;
}
.fl-sb-title-meta-item svg {
    width: 14px; height: 14px; stroke: var(--fl-accent); fill: none; stroke-width: 2;
}

/* ══ IMAGE — وسط بدون زوم ══ */
.fl-sb-image {
    position: relative; width: 100%; height: 264px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9;
}
.fl-sb-image img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain; display: block;
}

/* Thumbnails */
.fl-sb-gallery-thumbs {
    display: flex; gap: 10px; padding: 14px 16px;
    overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--fl-accent) transparent;
}
.fl-sb-gallery-thumbs::-webkit-scrollbar { height: 4px; }
.fl-sb-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--fl-accent); border-radius: 4px; }
.fl-sb-gallery-thumb {
    flex-shrink: 0; width: 90px; height: 90px; border-radius: 10px;
    overflow: hidden; cursor: pointer; border: 2px solid transparent;
    opacity: .7; transition: all var(--fl-speed) var(--fl-ease);
}
.fl-sb-gallery-thumb:hover, .fl-sb-gallery-thumb.active {
    border-color: var(--fl-accent); opacity: 1;
}
.fl-sb-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fl-sb-no-thumb {
    height: 160px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(45,95,147,.08), rgba(164,180,0,.08));
    color: #334155; font-size: .88rem;
}

/* ══ CONTENT WITH TOC LAYOUT ══ */
.fl-sb-content-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
.fl-sb-no-toc {
    grid-template-columns: 1fr !important;
}
.fl-sb-no-toc .fl-sb-toc {
    display: none !important;
}

/* ── فهرست مطالب (Table of Contents) ── */
.fl-sb-toc {
    position: sticky;
    top: 80px;
    z-index: 10;
}
.fl-sb-toc-inner {
    background: var(--fl-glass-bg);
    border: 1px solid var(--fl-glass-border);
    border-radius: 16px;
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
    padding: 16px;
    overflow: hidden;
}
.fl-sb-toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .82rem;
    font-weight: 700;
    color: var(--fl-primary-dark);
}
.fl-sb-toc-header svg {
    stroke: var(--fl-accent);
    fill: none;
    flex-shrink: 0;
}
.fl-sb-toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(164,180,0,.25) transparent;
}
.fl-sb-toc-list::-webkit-scrollbar { width: 3px; }
.fl-sb-toc-list::-webkit-scrollbar-thumb { background: rgba(164,180,0,.25); border-radius: 3px; }

.fl-sb-toc-item {
    margin: 0;
    padding: 0;
}
.fl-sb-toc-sub {
    padding-right: 14px !important;
}
.fl-sb-toc-link {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 500;
    color: var(--fl-text-light);
    text-decoration: none !important;
    line-height: 1.6;
    transition: all .2s ease;
    border-right: 2px solid transparent;
}
[dir="rtl"] .fl-sb-toc-link {
    border-right: none;
    border-left: 2px solid transparent;
}
.fl-sb-toc-link:hover {
    background: rgba(45,95,147,.06);
    color: var(--fl-primary);
}
.fl-sb-toc-link.fl-sb-toc-active {
    background: rgba(164,180,0,.08);
    color: var(--fl-primary-dark);
    font-weight: 700;
    border-right-color: var(--fl-accent);
}
[dir="rtl"] .fl-sb-toc-link.fl-sb-toc-active {
    border-right-color: transparent;
    border-left-color: var(--fl-accent);
}

/* ── TOC Dark Mode ── */
.dark-mode .fl-sb-toc-inner {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
}
.dark-mode .fl-sb-toc-header {
    color: #93c5fd;
    border-bottom-color: rgba(255,255,255,.07);
}
.dark-mode .fl-sb-toc-link {
    color: #94a3b8;
}
.dark-mode .fl-sb-toc-link:hover {
    background: rgba(96,165,250,.08);
    color: #60a5fa;
}
.dark-mode .fl-sb-toc-link.fl-sb-toc-active {
    background: rgba(196,214,0,.08);
    color: #c4d600;
    border-right-color: #c4d600;
}
[dir="rtl"] .dark-mode .fl-sb-toc-link.fl-sb-toc-active {
    border-right-color: transparent;
    border-left-color: #c4d600;
}

/* ══ RESPONSIVE TOC ══ */
@media (max-width: 1024px) {
    .fl-sb-content-layout {
        grid-template-columns: 180px 1fr;
    }
}
@media (max-width: 768px) {
    .fl-sb-content-layout {
        grid-template-columns: 1fr;
    }
    .fl-sb-toc {
        position: relative;
        top: auto;
    }
    .fl-sb-toc-inner {
        padding: 12px 14px;
    }
    .fl-sb-toc-list {
        max-height: 200px;
    }
}

/* ══ CONTENT — استایل هم‌شکل برگه‌ها (page.php) ══ */
.fl-sb-content {
    padding: 40px 44px;
    color: var(--fl-text);
    line-height: 1.85;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.fl-sb-content p {
    margin-bottom: 18px;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.fl-sb-content p:last-child { margin-bottom: 0; }
.fl-sb-content h2,
.fl-sb-content h3,
.fl-sb-content h4 {
    color: var(--fl-primary-dark);
    font-weight: 700;
    margin: 32px 0 12px;
    line-height: 1.3;
}
.fl-sb-content h2 { font-size: 1.15rem; }
.fl-sb-content h3 { font-size: 1rem; font-weight: 700; }
.fl-sb-content h4 { font-size: 0.92rem; font-weight: 700; }
.fl-sb-content ul,
.fl-sb-content ol {
    padding-inline-start: 24px;
    margin-bottom: 18px;
}
.fl-sb-content ul { list-style: disc; }
.fl-sb-content ol { list-style: decimal; }
.fl-sb-content li { margin-bottom: 6px; line-height: 1.85; }
.fl-sb-content img {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}
.fl-sb-content a {
    color: var(--fl-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.fl-sb-content a:hover { color: #4d5a00; text-decoration-color: var(--fl-accent); }
.fl-sb-content blockquote {
    border-inline-start: 4px solid var(--fl-accent);
    background: rgba(164,180,0,0.07);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 24px 0;
    color: #334155;
    font-style: italic;
}
[dir="ltr"] .fl-sb-content blockquote { border-radius: 12px 0 0 12px; }
.fl-sb-content code {
    background: rgba(45,95,147,0.10);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.85em;
    font-family: monospace;
    color: var(--fl-primary-dark);
}
.fl-sb-content pre {
    background: rgba(15,23,42,0.06);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

/* ── TABLES — استایل پایه (wrapper اسکرول رو هندل می‌کنه) ── */
.fl-sb-content .glass-table-wrap {
    margin: 20px 0;
}
.fl-sb-content .glass-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.fl-sb-content .glass-table-wrap table th {
    background: var(--fl-primary, #2D5F93);
    color: #fff;
    padding: 12px 14px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.fl-sb-content .glass-table-wrap table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(45,95,147,0.10);
    text-align: right;
    color: var(--fl-text);
}
.fl-sb-content .glass-table-wrap table tr:nth-child(even) td {
    background: rgba(45,95,147,0.04);
}
.fl-sb-content .glass-table-wrap table tr:hover td {
    background: rgba(45,95,147,0.08);
}
/* جدول بدون wrapper — fallback */
.fl-sb-content > table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 20px 0;
}
/* Gutenberg table block */
.fl-sb-content .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

/* ── Responsive: موبایل ── */
@media (max-width: 768px) {
    .fl-sb-content .glass-table-wrap table {
        font-size: 0.85rem;
    }
    .fl-sb-content .glass-table-wrap table th,
    .fl-sb-content .glass-table-wrap table td {
        padding: 10px 12px;
    }
}

/* ══ TAGS — پایین محتوا ══ */
.fl-sb-footer-meta {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 28px;
    border-top: 1px solid rgba(0,0,0,.06);
}
.fl-sb-tag {
    display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 16px;
    background: rgba(164,180,0,.1); color: #4d5a00;
    font-size: .74rem; font-weight: 600; text-decoration: none;
    transition: all var(--fl-speed) var(--fl-ease);
}
.fl-sb-tag:hover { background: var(--fl-accent); color: #17212b; }
.fl-sb-tag::before { content: '#'; margin-inline-end: 2px; }

.fl-sb-views-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px;
    border-radius: 20px; background: rgba(0,0,0,.04);
    color: #334155; font-size: .76rem; font-weight: 600;
}
.fl-sb-views-chip svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ══ SHARE + NAV ══ */
.fl-sb-share-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px; gap: 14px; border-top: 1px solid rgba(0,0,0,.06);
}
.fl-sb-share { display: flex; align-items: center; gap: 8px; }
.fl-sb-share-label { font-size: .8rem; font-weight: 700; color: #334155; }
.fl-sb-share-btn {
    width: 38px; height: 38px; border-radius: 10px; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .3s; font-family: inherit;
}
.fl-sb-share-btn svg { width: 18px; height: 18px; fill: #fff; stroke: none; }
.fl-sb-share-btn--wa { background: #25D366; }
.fl-sb-share-btn--wa:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(37,211,102,.4); }
.fl-sb-share-btn--tg { background: #229ED9; }
.fl-sb-share-btn--tg:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(34,158,217,.4); }
.fl-sb-share-btn--cp { background: rgba(45,95,147,.1); border: 1px solid rgba(45,95,147,.15); }
.fl-sb-share-btn--cp svg { fill: none; stroke: var(--fl-primary); stroke-width: 2; }
.fl-sb-share-btn--cp:hover { background: var(--fl-primary); }
.fl-sb-share-btn--cp:hover svg { stroke: #fff; }

.fl-sb-post-nav { display: flex; gap: 8px; }
.fl-sb-nav-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px;
    background: rgba(45,95,147,.06); border: 1px solid rgba(45,95,147,.1);
    color: var(--fl-primary); font-size: .8rem; font-weight: 600;
    text-decoration: none; transition: all var(--fl-speed) var(--fl-ease);
}
.fl-sb-nav-btn:hover { background: var(--fl-primary); color: #fff; border-color: transparent; }
.fl-sb-nav-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ══ VIP CONTACT — مثل پورتفولیو ══ */
.fl-sb-vip {
    font-family: inherit; direction: rtl;
    background: linear-gradient(135deg, var(--fl-primary-dark) 0%, var(--fl-primary) 100%);
    border-radius: var(--fl-radius); padding: 30px; color: #17212b;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 50px rgba(27,63,99,.35);
    position: relative; overflow: hidden;
}
.fl-sb-vip::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(164,180,0,.25), transparent 70%);
    filter: blur(60px); z-index: 0; pointer-events: none;
}
.fl-sb-vip::after {
    content: ''; position: absolute; bottom: -120px; left: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(75,132,191,.25), transparent 70%);
    filter: blur(60px); z-index: 0; pointer-events: none;
}
.fl-sb-vip-header {
    text-align: center; margin-bottom: 24px; position: relative; z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 18px;
}
.fl-sb-vip-title { font-size: 1.15rem; font-weight: 800; margin: 0; color: #f1f5f9; }
.fl-sb-vip-sub { font-size: .8rem; color: #cbd5e1; margin-top: 5px; }
.fl-sb-vip-grid { display: flex; gap: 20px; position: relative; z-index: 1; }
.fl-sb-vip-col-phones { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.fl-sb-vip-col-channels { flex: 1.2; display: flex; flex-direction: column; gap: 10px; }

.fl-sb-vip-box {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 14px 18px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fl-sb-vip-box-head {
    font-size: .82rem; font-weight: 700; color: #c4d600;
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.fl-sb-vip-phone {
    display: flex !important; justify-content: space-between; align-items: center;
    margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06);
    padding-bottom: 7px; text-decoration: none !important; color: #e2e8f0; transition: .2s;
}
.fl-sb-vip-phone:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.fl-sb-vip-phone:hover { color: #c4d600; }
.fl-sb-vip-phone-num { font-family: sans-serif; font-weight: 700; direction: ltr; font-size: .88rem; color: #f1f5f9; }
.fl-sb-vip-phone-lbl { font-size: .7rem; color: #94a3b8; }

.fl-sb-vip-chat {
    background: rgba(164,180,0,.15) !important; border: 1px solid rgba(164,180,0,.4) !important;
    color: #c4d600; text-align: center; padding: 11px; border-radius: 12px;
    font-weight: 700; text-decoration: none !important; font-size: .82rem;
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    transition: .3s;
}
.fl-sb-vip-chat:hover { background: rgba(164,180,0,.25) !important; transform: translateY(-2px); }
.fl-sb-vip-chat svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.fl-sb-vip-channel {
    display: flex !important; align-items: center; text-decoration: none !important;
    background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 12px; padding: 10px; transition: all .3s ease; color: #e2e8f0;
}
.fl-sb-vip-channel:hover { background: rgba(255,255,255,.12) !important; transform: translateY(-2px); border-color: rgba(164,180,0,.3) !important; }
.fl-sb-vip-ch-icon {
    width: 36px; height: 36px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; margin-left: 10px; flex-shrink: 0;
}
.fl-sb-vip-ch-icon svg { width: 20px; height: 20px; fill: #fff; stroke: none; }
.fl-sb-vip-ch-info { flex: 1; }
.fl-sb-vip-ch-name { font-size: .82rem; font-weight: 700; color: #f1f5f9; }
.fl-sb-vip-ch-desc { font-size: .68rem; color: #94a3b8; }
.bg-wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.bg-tg { background: linear-gradient(135deg, #24A1DE, #1976D2); }
.bg-ig { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }

/* ══ RELATED ══ */
.fl-sb-related-head {
    display: flex; align-items: center; gap: 10px; padding: 18px 24px;
    border-bottom: 1px solid var(--fl-glass-border);
    font-size: .92rem; font-weight: 700; color: var(--fl-primary-dark);
}
.fl-sb-related-head svg { width: 18px; height: 18px; stroke: var(--fl-accent); fill: none; stroke-width: 2; }
/* [FIX] دسکتاپ: 3 ستون (با 6 پست → 2 ردیف x 3 ستون) */
.fl-sb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px; }
.fl-sb-rel-card {
    display: flex; flex-direction: column; text-decoration: none; border-radius: 16px; overflow: hidden;
    background: rgba(255,255,255,.35); border: 1px solid var(--fl-glass-border);
    transition: all var(--fl-speed) var(--fl-ease);
}
.fl-sb-rel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.1); border-color: rgba(164,180,0,.3); }
.fl-sb-rel-thumb { position: relative; height: 140px; overflow: hidden; }
.fl-sb-rel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--fl-ease); }
.fl-sb-rel-card:hover .fl-sb-rel-thumb img { transform: scale(1.06); }
.fl-sb-rel-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.fl-sb-rel-title {
    font-size: .84rem; font-weight: 700; color: var(--fl-text); margin: 0; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ══ SLIDER ══ */
.fl-sb-cats-outer { direction: rtl; max-width: 1300px; margin: 24px auto 0; padding: 0 14px; position: relative; z-index: 90; }
.fl-sb-cats-outer * { box-sizing: border-box; }
.fl-sb-cats-wrap {
    overflow: hidden; border-radius: 0 0 16px 16px;
    background: var(--fl-glass-bg); border: 1px solid var(--fl-glass-border); border-top: none;
    backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 6px 24px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.3);
    padding: 8px 10px;
}
.fl-sb-cats-track {
    display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.fl-sb-cats-track::-webkit-scrollbar { display: none; }
.fl-sb-cat-card {
    flex: 1 0 0; min-width: 0; scroll-snap-align: start; position: relative;
    display: block; text-decoration: none; border-radius: 14px; overflow: hidden;
    transition: all .35s var(--fl-ease); border: 2px solid transparent; aspect-ratio: 1/1;
}
.fl-sb-cat-card:hover { border-color: var(--fl-accent); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(164,180,0,.2); }
.fl-sb-cat-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--fl-ease); }
.fl-sb-cat-card:hover img { transform: scale(1.08); }
.fl-sb-cat-name {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 6px 10px;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
    color: #fff; font-size: .82rem; font-weight: 700; text-align: center; line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
    .fl-sp-blog { padding: 24px 24px 40px; }
    .fl-sb-title { font-size: 1.05rem; }
    .fl-sb-image { height: 168px; }
    .fl-sb-gallery-thumbs { padding: 8px 10px; gap: 2px; }
    .fl-sb-gallery-thumb { width: 90px; height: 90px; border-radius: 3px; }
    .fl-sb-glass { border-radius: 16px; }
    .fl-sb-stack { gap: 16px; }
    .fl-sb-content { padding: 24px 20px; }
    .fl-sb-content p { font-size: .88rem; line-height: 1.85; margin-bottom: 14px; }
    .fl-sb-content h2 { font-size: 1rem; }
    .fl-sb-footer-meta { padding: 14px 16px; gap: 6px; }
    .fl-sb-share-nav { padding: 14px 16px; flex-direction: column; gap: 12px; }
    .fl-sb-share { width: 100%; justify-content: center; }
    .fl-sb-post-nav { width: 100%; justify-content: center; }
    /* کارت‌های مطالب مرتبط — دوتایی در موبایل */
    .fl-sb-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
    .fl-sb-rel-thumb { height: 110px; }
    .fl-sb-rel-body { padding: 10px; }
    .fl-sb-rel-title { font-size: .76rem; }
    .fl-sb-vip { padding: 20px; border-radius: 16px; }
    .fl-sb-vip-grid { flex-direction: column-reverse; gap: 16px; }

    /* [FIX] اسلایدر دسته‌بندی در موبایل — مثل single-portfolio:
       1. فاصله از هدر (margin-top: 16px)
       2. هر کارت تمام عرض (یک کارت در هر اسلاید)
       3. autoplay 3 ثانیه با JS */
    .fl-sb-cats-outer { padding: 0 10px; margin-top: 16px; }
    .fl-sb-cats-wrap {
        padding: 6px;
        border-radius: 14px;
        border-top: 1px solid var(--fl-glass-border);
    }
    .fl-sb-cats-track { gap: 0; scroll-snap-type: x mandatory; }
    .fl-sb-cat-card {
        flex: 0 0 100%;
        min-width: 100%;
        width: 100%;
        height: 130px;
        border-radius: 10px;
        aspect-ratio: auto;
        border-width: 1px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    .fl-sb-cat-name { padding: 8px 8px 10px; font-size: .85rem; }
}
@media (max-width: 480px) {
    .fl-sp-blog { padding: 8px 8px 30px; }
    .fl-sb-title { font-size: 0.95rem; }
    .fl-sb-image { height: 168px; }
    .fl-sb-content { padding: 20px 16px; }
    .fl-sb-content p { font-size: .84rem; }
    .fl-sb-related-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
    .fl-sb-rel-thumb { height: 90px; }
    .fl-sb-rel-title { font-size: .72rem; }
    .fl-sb-cats-outer { padding: 0 8px; margin-top: 14px; }
    .fl-sb-cats-track { gap: 0; }
    .fl-sb-cat-card {
        flex: 0 0 100%;
        min-width: 100%;
        width: 100%;
        height: 120px;
        border-radius: 10px;
        border-width: 1px;
        scroll-snap-align: center;
    }
    .fl-sb-cat-name { padding: 7px 7px 9px; font-size: .8rem; }
}