﻿/* =========================================================
   Blog CSS - optimized
   شامل: لیست بلاگ، جزئیات بلاگ، کامنت‌ها، مودال موبایل و فیلتر Ajax
========================================================= */

/* ---------- Base ---------- */
:root {
    --site-primary: #0f2f5f;
    --site-primary-dark: #0a244b;
    --site-primary-soft: #eef5ff;
    --site-primary-border: rgba(15, 47, 95, 0.16);
    --site-text: #20202a;
    --site-muted: #64646f;
}

.blog-page-wrap,
.blog-detail-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
    direction: rtl;
}

    .blog-page-wrap *,
    .blog-detail-wrap * {
        box-sizing: border-box;
    }

    .blog-page-wrap a,
    .blog-detail-wrap a {
        text-decoration: none;
    }

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.blog-index-page {
    background: #f5f5f7;
}

.blog-modal-open,
body.blog-sheet-open {
    overflow: hidden;
}

/* ---------- Breadcrumb / old top block, used by detail and possible legacy blog markup ---------- */
.blog-top-sticky {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 245, 247, 0.92);
    backdrop-filter: blur(14px);
    padding: 12px 0 18px;
    margin-bottom: 20px;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b8b94;
    font-size: 13px;
    margin-bottom: 14px;
}

    .blog-breadcrumb a {
        color: #595966;
    }

    .blog-breadcrumb.detail {
        color: rgba(255, 255, 255, 0.8);
    }

        .blog-breadcrumb.detail a {
            color: #fff;
        }

.blog-page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

    .blog-page-title-row h1 {
        margin: 0 0 8px;
        font-size: 32px;
        font-weight: 900;
        color: #1f2937;
    }

    .blog-page-title-row p {
        margin: 0;
        color: #72727f;
    }

.blog-result-count {
    background: #fff;
    color: #123C78;
    border: 1px solid rgba(239, 80, 70, 0.18);
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* ---------- Layout ---------- */
.blog-layout {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
}

.blog-sidebar,
.blog-detail-sidebar {
    position: sticky;
    top: 95px;
}

.blog-content {
    min-width: 0;
}

.blog-index-page .blog-page-wrap {
    width: min(1320px, calc(100% - 32px));
    padding-top: 24px;
}

/* ---------- Shared cards / buttons ---------- */
.blog-filter-card,
.blog-info-card,
.blog-article-card,
.blog-author-box,
.blog-comments-box,
.blog-related-section,
.blog-comment-form-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.blog-filter-card,
.blog-info-card {
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 14px;
}

    .blog-filter-card h3,
    .blog-info-card h3 {
        margin: 0 0 16px;
        font-size: 16px;
        font-weight: 900;
        color: #222;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .blog-filter-card h3 i {
            color: #123C78;
        }

.blog-primary-btn,
.blog-apply-btn,
.blog-outline-btn,
.blog-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 15px;
    padding: 12px 18px;
    font-weight: 900;
}

.blog-primary-btn,
.blog-apply-btn {
    border: 0;
    background: #123C78;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(239, 80, 70, 0.22);
}

.blog-outline-btn,
.blog-clear-btn {
    border: 1px solid rgba(239, 80, 70, 0.28);
    background: #fff;
    color: #123C78 !important;
}

    .blog-primary-btn.full,
    .blog-outline-btn.full {
        width: 100%;
    }

/* ---------- Search ---------- */
.blog-search-box {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border-radius: 16px;
    padding: 6px;
    border: 1px solid transparent;
}

    .blog-search-box:focus-within {
        border-color: rgba(239, 80, 70, 0.35);
        background: #fff;
    }

    .blog-search-box input {
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        padding: 10px 12px;
        font-size: 14px;
        color: #222;
    }

    .blog-search-box button {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 13px;
        background: #123C78;
        color: #fff;
    }

.blog-top-search {
    width: 100%;
    margin-bottom: 14px;
    background: #fff;
}

@media (min-width: 992px) {
    .blog-index-page .blog-top-search {
        display: none !important;
    }

    .blog-index-page .blog-top-tools {
        margin-bottom: 14px;
    }
}

/* ---------- Desktop category panel ---------- */
.blog-digikala-category-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e9e9e9;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.blog-digikala-search-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 12px 4px;
    direction: ltr;
}

.blog-digikala-search-icon {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
}

.blog-digikala-search-box {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.25s ease;
}

    .blog-digikala-search-box.show {
        width: 205px;
        opacity: 1;
    }

    .blog-digikala-search-box input {
        width: 100%;
        height: 36px;
        border: 1px solid #e5e7eb;
        outline: 0;
        border-radius: 10px;
        padding: 0 10px;
        font-size: 0.85rem;
        direction: rtl;
    }

.blog-digikala-category-list,
.blog-category-list,
.blog-sort-list {
    display: flex;
    flex-direction: column;
}

.blog-digikala-category-list {
    gap: 0;
}

.blog-category-list,
.blog-sort-list {
    gap: 10px;
}

.blog-digikala-category-item {
    width: 100%;
    min-height: 50px;
    border: 0;
    background: #fff;
    color: #5f6875;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .blog-digikala-category-item i {
        order: 2;
        width: 22px;
        text-align: center;
        color: #aeb4bc;
        font-size: 1rem;
    }

    .blog-digikala-category-item span {
        order: 1;
        flex: 1;
        text-align: right;
        white-space: nowrap;
    }

    .blog-digikala-category-item:hover,
    .blog-digikala-category-item.active {
        background: #f7f7f7;
        color: #ef394e;
    }

        .blog-digikala-category-item.active i {
            color: #ef394e;
        }

.blog-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #40404a;
    font-size: 14px;
}

    .blog-radio-item input {
        accent-color: #123C78;
    }

/* ---------- Sort ---------- */
.blog-desktop-head {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 14px 16px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

    .blog-desktop-head span {
        display: block;
        margin-top: 4px;
        color: #7a7a86;
        font-size: 13px;
    }

.blog-desktop-sort {
    display: flex;
    gap: 8px;
}

.blog-sort-chip {
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: #f7f7f9;
    color: #3f3f49;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

    .blog-sort-chip.active,
    .blog-sort-chip:hover {
        background: #123C78;
        color: #fff;
        border-color: #123C78;
    }

/* ---------- Blog list cards ---------- */
.blog-grid,
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    transition: 0.25s ease;
}

    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 42px rgba(15, 23, 42, 0.11);
    }

.blog-card-image {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    background: #f2f2f2;
}

    .blog-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.35s ease;
    }

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-category,
.blog-detail-category {
    background: #123C78;
    color: #fff;
    font-weight: 900;
}

.blog-card-category {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.blog-card-body {
    padding: 16px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #80808c;
    font-size: 12px;
    margin-bottom: 12px;
}

    .blog-card-meta i {
        color: #123C78;
        margin-left: 4px;
    }

.blog-card h2 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 900;
}

    .blog-card h2 a {
        color: #20202a;
    }

.blog-card p {
    color: #6f6f7b;
    font-size: 14px;
    line-height: 2;
    height: 56px;
    overflow: hidden;
    margin: 0 0 14px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #123C78;
    font-weight: 900;
}

.blog-card.related .blog-card-image {
    height: 170px;
}

.blog-card.related p {
    display: none;
}

.blog-index-page .blog-pagination {
    display: none !important;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

    .blog-pagination a {
        min-width: 42px;
        height: 42px;
        padding: 0 14px;
        border-radius: 14px;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        color: #333;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
    }

        .blog-pagination a.active {
            background: #123C78;
            color: #fff;
            border-color: #123C78;
        }

.blog-empty-box {
    background: #fff;
    border-radius: 24px;
    padding: 38px 20px;
    text-align: center;
    color: #73737e;
    border: 1px dashed rgba(15, 23, 42, 0.18);
}

    .blog-empty-box i {
        font-size: 42px;
        color: #123C78;
        margin-bottom: 12px;
    }

    .blog-empty-box h3 {
        color: #222;
        font-weight: 900;
    }

    .blog-empty-box a {
        color: #123C78;
        font-weight: 900;
    }

    .blog-empty-box.small {
        padding: 20px;
    }

.blog-ajax-message,
.blog-load-more-loader,
.blog-end-message {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    margin-top: 14px;
    text-align: center;
    font-weight: 800;
    color: #666;
    border: 1px solid #eee;
}

.blog-load-more-loader {
    color: #123C78;
}

.blog-end-message {
    color: #999;
}

/* ---------- Blog detail ---------- */
.blog-detail-hero {
    position: relative;
    min-height: 420px;
    border-radius: 32px;
    overflow: hidden;
    background: #111827;
    margin-bottom: 22px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.blog-detail-hero-image {
    position: absolute;
    inset: 0;
}

    .blog-detail-hero-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.85));
    }

    .blog-detail-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.blog-detail-hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    padding: 42px;
    color: #fff;
}

.blog-detail-category {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 14px;
    margin-bottom: 16px;
}

.blog-detail-hero-content h1 {
    margin: 0 0 16px;
    font-size: 38px;
    line-height: 1.6;
    font-weight: 950;
}

.blog-detail-summary {
    color: rgba(255, 255, 255, 0.84);
    line-height: 2;
    margin: 0 0 18px;
}

.blog-detail-meta,
.blog-detail-actions,
.blog-section-head,
.blog-info-row,
.blog-comment-header,
.blog-admin-reply-head,
.blog-author-box {
    display: flex;
    align-items: center;
}

.blog-detail-meta {
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 22px;
}

    .blog-detail-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        padding: 8px 12px;
    }

.blog-detail-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.blog-article-card,
.blog-author-box,
.blog-comments-box,
.blog-related-section {
    border-radius: 26px;
    padding: 24px;
    margin-bottom: 18px;
}

.blog-article-content {
    color: #2f2f38;
    font-size: 16px;
    line-height: 2.35;
}

    .blog-article-content img {
        max-width: 100%;
        border-radius: 22px;
        margin: 16px 0;
    }

    .blog-article-content h2,
    .blog-article-content h3,
    .blog-article-content h4 {
        color: #1f2937;
        font-weight: 950;
        margin-top: 28px;
        margin-bottom: 12px;
    }

.blog-author-box {
    gap: 16px;
}

    .blog-author-box img {
        width: 82px;
        height: 82px;
        border-radius: 24px;
        object-fit: cover;
    }

    .blog-author-box span,
    .blog-section-head span {
        color: #123C78;
        font-weight: 900;
    }

    .blog-author-box h3 {
        margin: 4px 0 8px;
        font-weight: 950;
    }

    .blog-author-box p {
        color: #73737e;
        margin: 0;
        line-height: 2;
    }

.blog-section-head {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

    .blog-section-head h2 {
        margin: 4px 0 0;
        font-size: 22px;
        font-weight: 950;
        color: #1f2937;
    }

/* ---------- Comments ---------- */
.blog-comments-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
}

.blog-comments-count,
.blog-comment-item,
.blog-no-comments,
.blog-admin-reply,
.blog-comment-form-card {
    border-radius: 16px;
}

.blog-comments-count {
    background: #f7f7f9;
    padding: 12px 14px;
    margin-bottom: 14px;
    color: #70707b;
}

    .blog-comments-count strong {
        color: #123C78;
        font-size: 20px;
    }

.blog-comment-item {
    background: #f8f8fa;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 16px;
    margin-bottom: 12px;
}

.blog-comment-header,
.blog-admin-reply-head {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

    .blog-comment-header strong {
        color: #222;
        font-weight: 950;
    }

    .blog-comment-header small,
    .blog-admin-reply-head small {
        color: #8a8a96;
    }

.blog-comment-body,
.blog-admin-reply {
    color: #44444f;
    line-height: 2;
    white-space: pre-line;
}

.blog-admin-reply {
    margin-top: 14px;
    background: #fff;
    border-right: 4px solid #123C78;
    padding: 14px;
}

.blog-no-comments {
    background: #f8f8fa;
    padding: 18px;
    color: #777782;
    text-align: center;
}

.blog-load-more-wrap {
    text-align: center;
    margin-top: 16px;
}

.blog-comment-form-card {
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

    .blog-comment-form-card h3 {
        margin: 0 0 8px;
        font-weight: 950;
    }

    .blog-comment-form-card p {
        margin: 0 0 16px;
        color: #777782;
        line-height: 1.9;
    }

.blog-form-group {
    margin-bottom: 14px;
}

    .blog-form-group label {
        display: block;
        font-weight: 900;
        color: #333;
        margin-bottom: 8px;
    }

    .blog-form-group input,
    .blog-form-group textarea,
    .blog-share-box input {
        width: 100%;
        border: 1px solid rgba(15, 23, 42, 0.12);
        background: #f8f8fa;
        border-radius: 15px;
        padding: 12px 14px;
        outline: 0;
        color: #222;
    }

        .blog-form-group input:focus,
        .blog-form-group textarea:focus,
        .blog-share-box input:focus {
            border-color: rgba(239, 80, 70, 0.36);
            background: #fff;
        }

.blog-form-message {
    min-height: 22px;
    margin-top: 12px;
    font-weight: 800;
    font-size: 13px;
}

    .blog-form-message.success {
        color: #16a34a;
    }

    .blog-form-message.error {
        color: #dc2626;
    }

.blog-info-row {
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

    .blog-info-row:last-child {
        border-bottom: 0;
    }

    .blog-info-row span {
        color: #777782;
    }

    .blog-info-row strong {
        color: #222;
    }

.blog-mini-posts,
.blog-share-box {
    display: grid;
    gap: 12px;
}

.blog-mini-post {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: #222;
}

    .blog-mini-post img {
        width: 72px;
        height: 62px;
        border-radius: 16px;
        object-fit: cover;
    }

    .blog-mini-post span {
        line-height: 1.8;
        font-weight: 850;
        font-size: 13px;
    }

/* ---------- Sort modal ---------- */
.blog-mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: 0.2s ease;
}

    .blog-mobile-modal.show {
        opacity: 1;
        pointer-events: auto;
    }

.blog-mobile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}

.blog-mobile-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 86vh;
    background: #fff;
    border-radius: 26px 26px 0 0;
    transform: translateY(105%);
    transition: 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-mobile-modal.show .blog-mobile-sheet {
    transform: translateY(0);
}

.blog-mobile-sheet.small {
    max-height: 48vh;
}

.blog-mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

    .blog-mobile-sheet-head strong {
        font-size: 17px;
        font-weight: 950;
    }

    .blog-mobile-sheet-head button {
        border: 0;
        background: #f2f2f4;
        color: #333;
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 22px;
    }

.blog-mobile-sheet-body {
    padding: 16px;
    overflow-y: auto;
}

.blog-mobile-sort-item {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: #f8f8fa;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    text-align: right;
    font-weight: 900;
    color: #333;
}

    .blog-mobile-sort-item.active {
        background: #123C78;
        color: #fff;
        border-color: #123C78;
    }

/* ---------- Detail mobile tabs ---------- */
.blog-mobile-tabbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    gap: 6px;
    overflow-x: auto;
}

.blog-mobile-tab {
    border: 0;
    background: transparent;
    color: #555;
    border-radius: 14px;
    padding: 10px 12px;
    white-space: nowrap;
    font-weight: 900;
}

    .blog-mobile-tab.active {
        background: #224173;
        color: #FFF;
    }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .blog-grid,
    .blog-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-comments-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    body.blog-index-page {
        padding-bottom: 94px;
        background: #f5f5f7;
    }

        body.blog-index-page #siteHeader,
        body.blog-index-page #siteFooter,
        body.blog-index-page #darkModeToggle,
        body.blog-index-page #redFloatingCard {
            display: none !important;
        }

        body.blog-index-page #floatBtn {
            width: 42px;
            height: 42px;
            min-width: 42px;
            min-height: 42px;
            font-size: 0.9rem;
            bottom: 94px;
            right: 14px;
            z-index: 1035;
        }

        body.blog-index-page .float-contact {
            bottom: 94px;
            right: 14px;
            z-index: 1035;
        }

        body.blog-index-page #contactMenu {
            bottom: 54px;
            right: 0;
        }

    .blog-page-wrap,
    .blog-detail-wrap {
        width: min(100% - 20px, 760px);
        padding-top: 14px;
    }

    .blog-index-page .blog-page-wrap {
        width: calc(100% - 16px);
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .blog-layout,
    .blog-detail-layout,
    .blog-comments-layout {
        display: block;
    }

    .blog-top-sticky,
    .blog-top-tools {
        top: 0;
    }

    .blog-top-sticky {
        padding: 10px 0 12px;
    }

    .blog-top-tools {
        position: sticky;
        z-index: 30;
        background: rgba(245, 245, 247, 0.96);
        backdrop-filter: blur(12px);
        padding: 8px 0 10px;
        margin-bottom: 10px;
    }

    .blog-top-search {
        height: 42px;
        min-height: 42px;
        border-radius: 15px;
        padding: 4px;
        margin-bottom: 7px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    }

        .blog-top-search input {
            height: 34px;
            padding: 6px 10px;
            font-size: 0.78rem;
        }

        .blog-top-search button {
            width: 34px;
            height: 34px;
            min-width: 34px;
            border-radius: 12px;
            font-size: 0.78rem;
        }

    .blog-page-title-row {
        align-items: flex-start;
    }

        .blog-page-title-row h1 {
            font-size: 25px;
            margin-bottom: 4px;
        }

        .blog-page-title-row p {
            font-size: 13px;
        }

    .blog-mobile-filter-sort-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 105px 86px;
        gap: 6px;
        align-items: center;
        margin-bottom: 8px;
    }

    .blog-mobile-filter-info {
        min-width: 0;
        height: 40px;
        min-height: 40px;
        padding: 6px 9px;
        border-radius: 15px;
        background: #fff;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        gap: 6px;
        overflow: hidden;
    }

    .blog-mobile-filter-label,
    .blog-mobile-selected-category {
        font-size: 0.72rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .blog-mobile-filter-label {
        color: #444;
        flex: 0 0 auto;
    }

    .blog-mobile-selected-category {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #123C78;
        overflow: hidden;
    }

        .blog-mobile-selected-category.empty {
            color: #888;
        }

        .blog-mobile-selected-category span {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .blog-mobile-selected-category button {
            border: 0;
            background: rgba(239, 80, 70, 0.12);
            color: #123C78;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            line-height: 1;
            padding: 0;
            flex: 0 0 auto;
        }

    .blog-mobile-sort-trigger {
        width: 100%;
        height: 40px;
        min-height: 40px;
        border: 1px solid #eee;
        background: #fff;
        color: #333;
        border-radius: 15px;
        padding: 0 7px;
        font-family: inherit;
        font-size: 0.7rem;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        white-space: nowrap;
    }

        .blog-mobile-sort-trigger i {
            font-size: 0.72rem;
        }

    .blog-mobile-view-toggle {
        width: 100%;
        height: 40px;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .blog-view-mode-btn {
        width: 100%;
        height: 40px;
        border: 1px solid #eee;
        background: #fff;
        color: #777;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
        padding: 0;
    }

        .blog-view-mode-btn.active {
            background: #123C78;
            color: #fff;
            border-color: #123C78;
            box-shadow: 0 7px 16px rgba(239, 80, 70, 0.22);
        }

    .blog-grid,
    .blog-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

        .blog-grid.blog-mobile-list-view {
            grid-template-columns: 1fr;
        }

    .blog-card {
        border-radius: 18px;
    }

    .blog-card-image {
        height: 145px;
    }

    .blog-card-body {
        padding: 12px;
    }

    .blog-card-meta {
        gap: 8px;
        font-size: 0.68rem;
        margin-bottom: 7px;
    }

    .blog-card h2 {
        font-size: 0.86rem;
        line-height: 1.7;
        margin-bottom: 6px;
    }

    .blog-card p {
        font-size: 0.75rem;
        line-height: 1.8;
        max-height: 43px;
        height: auto;
        margin-bottom: 8px;
    }

    .blog-read-more {
        font-size: 0.75rem;
    }

    .blog-card-category {
        top: 10px;
        right: 10px;
        font-size: 0.66rem;
        padding: 5px 9px;
    }

    .blog-grid.blog-mobile-list-view .blog-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        align-items: stretch;
    }

    .blog-grid.blog-mobile-list-view .blog-card-image {
        height: 100%;
        min-height: 128px;
        border-radius: 0 18px 18px 0;
    }

    .blog-grid.blog-mobile-list-view .blog-card-body {
        min-width: 0;
        padding: 10px;
    }

    .blog-grid.blog-mobile-list-view .blog-card h2,
    .blog-grid.blog-mobile-list-view .blog-card p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-grid.blog-mobile-list-view .blog-card h2 {
        font-size: 0.82rem;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
    }

    .blog-grid.blog-mobile-list-view .blog-card p {
        -webkit-line-clamp: 2;
    }

    .blog-detail-hero {
        min-height: auto;
        border-radius: 24px;
    }

    .blog-detail-hero-image {
        position: relative;
        height: 230px;
    }

        .blog-detail-hero-image::after {
            background: linear-gradient(0deg, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.08));
        }

    .blog-detail-hero-content {
        padding: 18px;
        background: #111827;
    }

        .blog-detail-hero-content h1 {
            font-size: 23px;
            line-height: 1.75;
        }

    .blog-detail-summary {
        font-size: 14px;
    }

    .blog-detail-meta {
        gap: 8px;
    }

        .blog-detail-meta span {
            font-size: 12px;
            padding: 7px 10px;
        }

    .blog-detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .blog-mobile-tabbar {
        display: flex !important;
    }

    .blog-article-card,
    .blog-author-box,
    .blog-comments-box,
    .blog-related-section {
        padding: 16px;
        border-radius: 22px;
    }

    .blog-article-content {
        font-size: 15px;
        line-height: 2.2;
    }

    .blog-author-box {
        align-items: flex-start;
    }

        .blog-author-box img {
            width: 64px;
            height: 64px;
            border-radius: 18px;
        }

    .blog-section-head h2 {
        font-size: 19px;
    }

    .blog-comment-item {
        padding: 14px;
        border-radius: 18px;
    }

    .blog-comment-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    /* Mobile bottom menu */
    .blog-mobile-bottom-bar {
        position: fixed;
        right: 12px;
        left: 12px;
        bottom: 12px;
        height: 66px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(12px);
        z-index: 1040;
        padding: 8px;
        display: grid !important;
        grid-template-columns: 1fr 1fr 1.25fr;
        gap: 8px;
        direction: rtl;
    }

    .blog-bottom-item {
        border: none;
        background: transparent;
        color: #555;
        border-radius: 18px;
        font-family: inherit;
        font-size: 0.74rem;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        transition: all 0.2s ease;
    }

        .blog-bottom-item:hover,
        .blog-bottom-item:focus {
            text-decoration: none;
            color: #123C78;
        }

        .blog-bottom-item.active {
            background: #f2f4f6;
            color: #123C78;
        }

    .blog-bottom-icon {
        width: 28px;
        height: 28px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .blog-bottom-item.active .blog-bottom-icon {
        background: #123C78;
        color: #fff;
        box-shadow: 0 6px 16px rgba(239, 80, 70, 0.28);
    }

    .blog-call-bottom-btn {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
        flex-direction: row;
        gap: 8px;
        font-size: 0.82rem;
    }

        .blog-call-bottom-btn:hover,
        .blog-call-bottom-btn:focus {
            color: #fff !important;
            transform: translateY(-1px);
        }

    .blog-call-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.88rem;
    }

    /* Resizable category sheet */
    .blog-mobile-sheet-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.68);
        opacity: 0;
        visibility: hidden;
        z-index: 1090;
        transition: all 0.25s ease;
        backdrop-filter: blur(4px);
    }

        .blog-mobile-sheet-overlay.show {
            opacity: 1;
            visibility: visible;
        }

    .blog-category-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-radius: 26px 26px 0 0;
        z-index: 1100;
        transform: translateY(105%);
        transition: transform 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.28);
    }

        .blog-category-sheet.open {
            transform: translateY(0);
        }

        .blog-category-sheet.sheet-small {
            height: 38vh;
        }

        .blog-category-sheet.sheet-half {
            height: 64vh;
        }

        .blog-category-sheet.sheet-full {
            height: 100vh;
            border-radius: 0;
        }

    .blog-category-sheet-header {
        flex: 0 0 auto;
        padding: 10px 14px 12px;
        border-bottom: 1px solid #f0f0f0;
        background: linear-gradient(180deg, #ffffff, #fafafa);
        position: relative;
    }

    .blog-category-sheet-handle {
        width: 46px;
        height: 5px;
        background: #d1d5db;
        border-radius: 999px;
        margin: 0 auto 12px;
        cursor: pointer;
    }

    .blog-category-sheet-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

        .blog-category-sheet-title-row h3 {
            margin: 0;
            font-size: 0.98rem;
            font-weight: 900;
            color: #202020;
        }

    .blog-category-sheet-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .blog-sheet-size-btn,
    .blog-sheet-close-btn {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 13px;
        background: #f3f4f6;
        color: #52525b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
        transition: all 0.2s ease;
    }

        .blog-sheet-size-btn.active {
            background: #123C78;
            color: #fff;
            box-shadow: 0 7px 16px rgba(239, 80, 70, 0.24);
        }

    .blog-sheet-close-btn {
        background: #fff1f1;
        color: #ef4444;
        font-size: 1.25rem;
        line-height: 1;
    }

    .blog-category-sheet-body {
        flex: 1 1 auto;
        padding: 12px;
        overflow-y: auto;
        background: #fafafa;
    }

    .blog-mobile-category-row {
        width: 100%;
        min-height: 54px;
        border: 1px solid #eee;
        background: #fff;
        color: #333;
        text-align: right;
        padding: 0 12px;
        margin-bottom: 9px;
        font-family: inherit;
        font-size: 0.88rem;
        font-weight: 850;
        border-radius: 18px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;
        flex-direction: row;
        gap: 10px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
        transition: all 0.2s ease;
    }

        .blog-mobile-category-row::before {
            content: "\f07b";
            font-family: "Font Awesome 6 Free";
            font-weight: 400;
            width: 34px;
            height: 34px;
            border-radius: 14px;
            background: #f5f5f5;
            color: #a1a1aa;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            order: 0;
            margin: 0;
            flex: 0 0 auto;
        }

        .blog-mobile-category-row::after {
            content: "\f104";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            color: #c4c4cc;
            font-size: 0.72rem;
            order: 3;
            margin-right: auto;
            margin-left: 0;
            flex: 0 0 auto;
        }

        .blog-mobile-category-row.active {
            background: #f2f4f6;
            color: #123C78;
            border-color: rgb(34 65 115);
            box-shadow: 0 8px 22px rgba(125, 125, 125, 0.09);
        }

            .blog-mobile-category-row.active::before {
                background: #123C78;
                color: #fff;
            }

            .blog-mobile-category-row.active::after {
                content: "\f00c";
                color: #123C78;
            }

        .blog-mobile-category-row:hover {
            transform: translateY(-1px);
        }
}

@media (max-width: 575px) {
    .blog-page-wrap,
    .blog-detail-wrap {
        width: calc(100% - 16px);
    }

    .blog-card-image {
        height: 132px;
    }

    .blog-page-title-row h1 {
        font-size: 22px;
    }

    .blog-breadcrumb {
        font-size: 12px;
    }

    .blog-detail-hero-image {
        height: 210px;
    }

    .blog-detail-actions {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .blog-grid.blog-mobile-list-view {
            grid-template-columns: 1fr;
        }

            .blog-grid.blog-mobile-list-view .blog-card {
                grid-template-columns: 112px minmax(0, 1fr);
            }

            .blog-grid.blog-mobile-list-view .blog-card-image {
                min-height: 122px;
            }
}

@media (max-width: 390px) {
    .blog-mobile-filter-sort-row {
        grid-template-columns: minmax(0, 1fr) 92px 76px;
        gap: 5px;
    }

    .blog-mobile-sort-trigger {
        font-size: 0.66rem;
    }

    .blog-mobile-filter-label,
    .blog-mobile-selected-category {
        font-size: 0.68rem;
    }
}

/* ثابت ماندن فیلتر دسته‌بندی دسکتاپ بلاگ بدون رفتن زیر منو */
@media (min-width: 992px) {
    .blog-index-page .blog-layout {
        position: relative;
        overflow: visible !important;
    }

    .blog-index-page .blog-sidebar {
        position: static !important;
        top: auto !important;
        overflow: visible !important;
        width: 282px;
    }

    .blog-index-page .blog-digikala-category-card {
        position: fixed !important;
        top: 96px !important;
        right: max(16px, calc((100vw - 1320px) / 2));
        width: 282px;
        z-index: 100;
        max-height: calc(100vh - 116px);
        overflow-y: auto;
    }

    #siteHeader {
        z-index: 1050 !important;
    }

        #siteHeader .navbar {
            z-index: 1051 !important;
        }
}
/* ==============================
   Mobile Blog Breadcrumb + Draggable Category Sheet
============================== */
@media (max-width: 991px) {
    .blog-mobile-breadcrumb {
        display: flex !important;
        align-items: center;
        gap: 7px;
        min-height: 34px;
        margin-bottom: 7px;
        padding: 7px 10px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 14px;
        color: #8a8a96;
        font-size: 0.74rem;
        font-weight: 800;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    }

        .blog-mobile-breadcrumb a {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #555;
            text-decoration: none;
        }

        .blog-mobile-breadcrumb i {
            color: #123C78;
            font-size: 0.78rem;
        }

    .blog-category-sheet {
        top: 0;
        height: 100vh !important;
        transform: translateY(100%);
        transition: transform 0.28s ease, border-radius 0.28s ease;
        will-change: transform;
    }

        .blog-category-sheet.open {
            transform: translateY(var(--blog-sheet-translate-y, 36%));
        }

            .blog-category-sheet.open.sheet-full {
                transform: translateY(0);
                border-radius: 0;
            }

            .blog-category-sheet.open.sheet-half {
                transform: translateY(var(--blog-sheet-translate-y, 36%));
            }

            .blog-category-sheet.open.sheet-small {
                transform: translateY(var(--blog-sheet-translate-y, 58%));
            }

        .blog-category-sheet.dragging {
            transition: none !important;
        }

    .blog-category-sheet-header {
        touch-action: none;
        user-select: none;
        cursor: grab;
    }

    .blog-category-sheet.dragging .blog-category-sheet-header {
        cursor: grabbing;
    }

    .blog-category-sheet-handle {
        touch-action: none;
        cursor: grab;
    }

    .blog-category-sheet-actions {
        margin-right: auto;
    }

    .blog-sheet-size-btn {
        display: none !important;
    }
}


/* اسکرول داخلی مودال دسته‌بندی بلاگ */
@media (max-width: 991px) {
    .blog-category-sheet {
        display: flex !important;
        flex-direction: column;
        overflow: hidden !important;
    }

    .blog-category-sheet-header {
        flex: 0 0 auto;
        touch-action: none;
    }

    .blog-category-sheet-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding-bottom: 24px;
    }

    .blog-category-sheet.sheet-small .blog-category-sheet-body,
    .blog-category-sheet.sheet-half .blog-category-sheet-body,
    .blog-category-sheet.sheet-full .blog-category-sheet-body {
        overflow-y: auto !important;
    }
}
/* ===== Blog Details changes: comments first + mobile clean view ===== */
.blog-detail-layout.no-info-sidebar {
    grid-template-columns: minmax(0, 1fr) 310px;
}

.blog-comment-form-row {
    margin-bottom: 18px;
}

.blog-comment-form-card-wide {
    width: 100%;
}

.blog-comment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.blog-comments-list-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .blog-comments-list-title span {
        color: #123C78;
        font-weight: 900;
    }

    .blog-comments-list-title h3 {
        margin: 4px 0 0;
        font-size: 20px;
        font-weight: 950;
        color: #1f2937;
    }

    .blog-comments-list-title .blog-comments-count {
        margin-bottom: 0;
        white-space: nowrap;
    }

@media (max-width: 991px) {
    body.blog-detail-page {
        padding-bottom: 76px;
        background: #f5f5f7;
    }

        body.blog-detail-page #siteHeader,
        body.blog-detail-page #siteFooter,
        body.blog-detail-page #darkModeToggle,
        body.blog-detail-page #redFloatingCard {
            display: none !important;
        }

        body.blog-detail-page #floatBtn {
            width: 38px;
            height: 38px;
            min-width: 38px;
            min-height: 38px;
            font-size: 0.82rem;
            bottom: 82px;
            right: 12px;
            z-index: 1035;
        }

        body.blog-detail-page .float-contact {
            bottom: 82px;
            right: 12px;
            z-index: 1035;
        }

        body.blog-detail-page #contactMenu {
            bottom: 48px;
            right: 0;
        }

    .blog-mobile-tabbar {
        top: 0;
        border-radius: 16px;
        padding: 6px;
    }

    .blog-mobile-tab {
        flex: 1;
        text-align: center;
        font-size: 0.78rem;
        padding: 8px 8px;
    }

    .blog-comment-form-grid,
    .blog-comments-list-title {
        display: block;
    }

        .blog-comments-list-title .blog-comments-count {
            margin-top: 12px;
        }
}

@media (max-width: 767px) {
    body.blog-detail-page #siteHeader,
    body.blog-detail-page footer,
    body.blog-detail-page .dark-mode-toggle {
        display: none !important;
    }

    body.blog-detail-page {
        padding-bottom: 92px;
    }

        body.blog-detail-page .blog-detail-wrap {
            width: 100%;
            padding-bottom: 110px;
        }

        body.blog-detail-page .float-contact {
            display: none !important;
        }

    .blog-detail-mobile-bottom-bar {
        position: fixed;
        right: 12px;
        left: 12px;
        bottom: 12px;
        height: 64px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(12px);
        z-index: 1040;
        padding: 8px;
        display: grid !important;
        grid-template-columns: 1fr 1.2fr;
        gap: 8px;
        direction: rtl;
    }

    .blog-detail-bottom-item {
        border: none;
        background: transparent;
        color: #555;
        border-radius: 18px;
        font-family: inherit;
        font-size: 0.78rem;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        transition: all 0.2s ease;
    }

        .blog-detail-bottom-item:hover,
        .blog-detail-bottom-item:focus {
            text-decoration: none;
            color: #123C78;
        }

        .blog-detail-bottom-item.active {
            background: #f2f4f6;
            color: #123C78;
        }

    .blog-detail-bottom-icon {
        width: 28px;
        height: 28px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .blog-detail-bottom-item.active .blog-detail-bottom-icon {
        background: #123C78;
        color: #fff;
        box-shadow: 0 6px 16px rgba(239, 80, 70, 0.28);
    }

    .blog-detail-call-bottom-btn {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
        flex-direction: row;
        gap: 8px;
        font-size: 0.84rem;
    }

        .blog-detail-call-bottom-btn:hover,
        .blog-detail-call-bottom-btn:focus {
            color: #fff !important;
            transform: translateY(-1px);
        }

    .blog-detail-call-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.88rem;
    }

    .blog-form-message {
        margin-top: 10px;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.8;
    }

        .blog-form-message.success {
            color: #16a34a;
        }

        .blog-form-message.error {
            color: #dc2626;
        }
}

.blog-mobile-breadcrumb {
    background: #fff;
    color: #224173; /* رنگ متن اصلی تم سایت */
}

    .blog-mobile-breadcrumb a {
        color: #224173;
    }

    .blog-mobile-breadcrumb i {
        color: #123C78; /* رنگ آیکون */
    }



    /*تغییرات جدید*/
/* =========================================================
   FINAL OVERRIDE - Blog Dark Blue Theme
   این بخش باید آخر blog-services-match.css باشد
========================================================= */

:root {
    --blog-blue: #0f2f5f;
    --blog-blue-dark: #071f44;
    --blog-blue-hover: #123c78;
    --blog-blue-soft: #eef5ff;
    --blog-blue-soft-2: #f4f8ff;
    --blog-blue-border: rgba(15, 47, 95, 0.18);
    --blog-blue-border-strong: rgba(15, 47, 95, 0.32);
    --blog-blue-shadow: rgba(15, 47, 95, 0.18);
    --blog-blue-shadow-soft: rgba(15, 47, 95, 0.08);
}

/* حذف رنگ قرمز از متن‌ها، لینک‌ها، آیکن‌ها */
.blog-index-page .blog-page-wrap a:hover,
.blog-detail-page .blog-detail-wrap a:hover,
.blog-index-page .blog-filter-card h3 i,
.blog-index-page .blog-info-card h3 i,
.blog-index-page .blog-card h2 a:hover,
.blog-index-page .blog-read-more,
.blog-index-page .blog-read-more:hover,
.blog-index-page .blog-result-count,
.blog-index-page .blog-digikala-category-item i,
.blog-index-page .blog-mobile-sort-trigger i,
.blog-index-page .blog-sort-chip i,
.blog-index-page .blog-view-mode-btn i,
.blog-index-page .blog-empty-state i,
.blog-detail-page .blog-detail-meta i,
.blog-detail-page .blog-detail-category,
.blog-detail-page .blog-article-content a,
.blog-detail-page .blog-author-name,
.blog-detail-page .blog-comment-author,
.blog-detail-page .blog-comments-count i,
.blog-detail-page .blog-related-section h3 i,
.blog-detail-page .blog-share-btn i,
.blog-detail-page .blog-sidebar-box h3 i,
.blog-detail-page .blog-info-card h3 i {
    color: var(--blog-blue) !important;
}

/* دکمه‌های اصلی */
.blog-index-page .blog-primary-btn,
.blog-index-page .blog-apply-btn,
.blog-index-page .blog-search-box button,
.blog-index-page .blog-digikala-search-icon,
.blog-detail-page .blog-primary-btn,
.blog-detail-page .blog-apply-btn,
.blog-detail-page button.blog-primary-btn,
.blog-detail-page .blog-comment-submit,
.blog-detail-page .blog-reply-submit,
.blog-detail-page .blog-share-submit {
    background: var(--blog-blue) !important;
    background-color: var(--blog-blue) !important;
    color: #fff !important;
    border-color: var(--blog-blue) !important;
    box-shadow: 0 12px 24px var(--blog-blue-shadow) !important;
}

    /* هاور دکمه‌های اصلی */
    .blog-index-page .blog-primary-btn:hover,
    .blog-index-page .blog-apply-btn:hover,
    .blog-index-page .blog-search-box button:hover,
    .blog-index-page .blog-digikala-search-icon:hover,
    .blog-detail-page .blog-primary-btn:hover,
    .blog-detail-page .blog-apply-btn:hover,
    .blog-detail-page button.blog-primary-btn:hover,
    .blog-detail-page .blog-comment-submit:hover,
    .blog-detail-page .blog-reply-submit:hover,
    .blog-detail-page .blog-share-submit:hover {
        background: var(--blog-blue-hover) !important;
        background-color: var(--blog-blue-hover) !important;
        border-color: var(--blog-blue-hover) !important;
        box-shadow: 0 14px 28px rgba(15, 47, 95, 0.24) !important;
    }

/* دکمه‌های outline و ثانویه */
.blog-index-page .blog-outline-btn,
.blog-index-page .blog-clear-btn,
.blog-detail-page .blog-outline-btn,
.blog-detail-page .blog-clear-btn,
.blog-detail-page .blog-share-btn {
    background: #fff !important;
    color: var(--blog-blue) !important;
    border-color: var(--blog-blue-border-strong) !important;
    box-shadow: none !important;
}

    .blog-index-page .blog-outline-btn:hover,
    .blog-index-page .blog-clear-btn:hover,
    .blog-detail-page .blog-outline-btn:hover,
    .blog-detail-page .blog-clear-btn:hover,
    .blog-detail-page .blog-share-btn:hover {
        background: var(--blog-blue-soft) !important;
        color: var(--blog-blue-dark) !important;
        border-color: var(--blog-blue) !important;
        box-shadow: 0 8px 22px var(--blog-blue-shadow-soft) !important;
    }

/* دسته‌بندی‌ها در لیست مقالات */
.blog-index-page .blog-digikala-category-item:hover,
.blog-index-page .blog-digikala-category-item.active,
.blog-index-page .blog-digikala-category-item.selected,
.blog-index-page .blog-category-item:hover,
.blog-index-page .blog-category-item.active,
.blog-index-page .blog-category-chip:hover,
.blog-index-page .blog-category-chip.active {
    background: var(--blog-blue) !important;
    background-color: var(--blog-blue) !important;
    border-color: var(--blog-blue) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px var(--blog-blue-shadow) !important;
}

    .blog-index-page .blog-digikala-category-item:hover i,
    .blog-index-page .blog-digikala-category-item.active i,
    .blog-index-page .blog-digikala-category-item.selected i,
    .blog-index-page .blog-category-item:hover i,
    .blog-index-page .blog-category-item.active i,
    .blog-index-page .blog-category-chip:hover i,
    .blog-index-page .blog-category-chip.active i {
        color: #fff !important;
    }

/* چیپ‌ها، برچسب‌ها، فیلترها */
.blog-index-page .blog-sort-chip.active,
.blog-index-page .blog-sort-chip:hover,
.blog-index-page .blog-view-mode-btn.active,
.blog-index-page .blog-view-mode-btn:hover,
.blog-detail-page .blog-tag,
.blog-detail-page .blog-category-tag,
.blog-detail-page .blog-detail-category {
    background: var(--blog-blue-soft) !important;
    color: var(--blog-blue) !important;
    border-color: var(--blog-blue-border) !important;
    box-shadow: none !important;
}

/* اگر دسته جزئیات بلاگ باید توپر باشد */
.blog-detail-page .blog-detail-category {
    background: var(--blog-blue) !important;
    color: #fff !important;
    border-color: var(--blog-blue) !important;
}

/* حذف سایه‌های قرمز از کارت‌ها */
.blog-index-page .blog-card,
.blog-index-page .blog-desktop-head,
.blog-index-page .blog-digikala-category-card,
.blog-index-page .blog-filter-card,
.blog-index-page .blog-info-card,
.blog-detail-page .blog-detail-hero,
.blog-detail-page .blog-article-card,
.blog-detail-page .blog-author-box,
.blog-detail-page .blog-comments-box,
.blog-detail-page .blog-related-section,
.blog-detail-page .blog-comment-form-card,
.blog-detail-page .blog-comment-item,
.blog-detail-page .blog-sidebar-box,
.blog-detail-page .blog-info-card {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

/* حذف بک‌گراند قرمز روشن */
.blog-index-page .blog-result-count,
.blog-index-page .blog-mobile-sort-trigger:hover,
.blog-index-page .blog-mobile-filter-trigger:hover,
.blog-index-page .blog-filter-badge,
.blog-detail-page .blog-comments-count,
.blog-detail-page .blog-no-comments,
.blog-detail-page .blog-comment-item,
.blog-detail-page .blog-comment-form-card,
.blog-detail-page .blog-share-box,
.blog-detail-page .blog-related-section {
    background: #fff !important;
    border-color: var(--blog-blue-border) !important;
}

/* فیلدهای جستجو و فرم */
.blog-index-page .blog-search-box:focus-within,
.blog-index-page .blog-digikala-search-box input:focus,
.blog-detail-page input:focus,
.blog-detail-page textarea:focus,
.blog-detail-page select:focus,
.blog-detail-page .form-control:focus {
    border-color: var(--blog-blue-border-strong) !important;
    box-shadow: 0 0 0 4px rgba(15, 47, 95, 0.12) !important;
    outline: none !important;
}

/* radio / checkbox / range */
.blog-index-page input[type="radio"],
.blog-index-page input[type="checkbox"],
.blog-detail-page input[type="radio"],
.blog-detail-page input[type="checkbox"] {
    accent-color: var(--blog-blue) !important;
}

/* خط کنار محتوا، نقل‌قول‌ها و alertها */
.blog-detail-page blockquote,
.blog-detail-page .blog-article-content blockquote,
.blog-detail-page .blog-note,
.blog-detail-page .blog-alert,
.blog-detail-page .blog-highlight-box {
    border-right-color: var(--blog-blue) !important;
    background: var(--blog-blue-soft-2) !important;
    color: #26344d !important;
}

/* pagination */
.blog-index-page .pagination .page-link,
.blog-index-page .blog-pagination a,
.blog-index-page .blog-page-link {
    color: var(--blog-blue) !important;
    border-color: var(--blog-blue-border) !important;
    box-shadow: none !important;
}

    .blog-index-page .pagination .active .page-link,
    .blog-index-page .pagination .page-item.active .page-link,
    .blog-index-page .blog-pagination a.active,
    .blog-index-page .blog-page-link.active,
    .blog-index-page .blog-pagination a:hover,
    .blog-index-page .blog-page-link:hover {
        background: var(--blog-blue) !important;
        border-color: var(--blog-blue) !important;
        color: #fff !important;
        box-shadow: 0 8px 18px var(--blog-blue-shadow) !important;
    }

/* موبایل: bottom bar / modal / sheet */
.blog-index-page .blog-mobile-bottom-bar,
.blog-detail-page .blog-mobile-bottom-bar,
.blog-index-page .blog-mobile-sheet,
.blog-detail-page .blog-mobile-sheet,
.blog-index-page .blog-filter-modal,
.blog-detail-page .blog-filter-modal {
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08) !important;
}

    .blog-index-page .blog-mobile-bottom-bar .active,
    .blog-detail-page .blog-mobile-bottom-bar .active,
    .blog-index-page .blog-mobile-bottom-bar a:hover,
    .blog-detail-page .blog-mobile-bottom-bar a:hover,
    .blog-index-page .blog-mobile-bottom-bar button:hover,
    .blog-detail-page .blog-mobile-bottom-bar button:hover {
        color: var(--blog-blue) !important;
    }

.blog-index-page .blog-mobile-filter-trigger,
.blog-index-page .blog-mobile-sort-trigger,
.blog-detail-page .blog-mobile-filter-trigger,
.blog-detail-page .blog-mobile-sort-trigger {
    color: var(--blog-blue) !important;
    border-color: var(--blog-blue-border) !important;
}

/* هر المنتی که هنوز با رنگ قرمز inline یا کلاس قدیمی مانده باشد */
.blog-index-page [style*="#123C78"],
.blog-detail-page [style*="#123C78"] {
    color: var(--blog-blue) !important;
    border-color: var(--blog-blue) !important;
}

/* حذف سایه قرمز خاص */
.blog-index-page *,
.blog-detail-page * {
    scrollbar-color: var(--blog-blue) #eef2f7;
}

/* انتخاب متن */
.blog-index-page ::selection,
.blog-detail-page ::selection {
    background: var(--blog-blue) !important;
    color: #fff !important;
}


@media (max-width: 991px) {
    .blog-detail-wrap,
    .blog-detail-main {
        overflow: visible !important;
    }

    #blogMobileTabbar {
        position: sticky;
        top: 64px;
        z-index: 900;
        background: #fff;
        border-bottom: 1px solid rgba(15, 47, 95, 0.12);
        box-shadow: 0 8px 20px rgba(15, 47, 95, 0.10);
    }

        #blogMobileTabbar a,
        #blogMobileTabbar button {
            color: #0f2f5f;
        }

            #blogMobileTabbar a.active,
            #blogMobileTabbar button.active {
                color: #fff;
                background: #0f2f5f;
            }

    .blog-detail-page .blog-detail-hero {
        margin-top: 50px !important;
    }
}

/*جدید*/
/* =========================================================
   Blog Index Sidebar Sticky Boundary Fix
   محدود کردن دسته‌بندی دسکتاپ داخل کانتینر اصلی بلاگ
========================================================= */

/* =========================================================
   Blog Index Category Sidebar - Stop Before Floating Card
========================================================= */

/* =========================================================
   Blog Index Category Sidebar - Fixed Until Footer/Floating Card
   بدون اسکرول داخلی
========================================================= */

@media (min-width: 992px) {
    .blog-index-page .blog-layout {
        position: relative;
        overflow: visible !important;
        align-items: start;
    }

    .blog-index-page .blog-sidebar {
        position: static !important;
        top: auto !important;
        width: 282px;
        overflow: visible !important;
    }

    .blog-index-page .blog-digikala-category-card {
        width: 282px;
        overflow: visible !important;
        max-height: none !important;
        z-index: 20;
    }

        .blog-index-page .blog-digikala-category-card.is-fixed {
            position: fixed !important;
            top: 96px !important;
            right: max(16px, calc((100vw - 1320px) / 2));
        }

        .blog-index-page .blog-digikala-category-card.is-stopped {
            position: absolute !important;
            right: 0;
            top: var(--blog-category-stop-top, 0px) !important;
        }

    #siteHeader {
        z-index: 1050 !important;
    }

        #siteHeader .navbar {
            z-index: 1051 !important;
        }
}



/* =========================================================
   Desktop Blog Top Filter + Search
   فقط دسکتاپ - موبایل دست‌نخورده
========================================================= */

@media (min-width: 992px) {
    .blog-index-page .blog-desktop-filter-search-row {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 12px;
        direction: rtl;
    }

    .blog-index-page .blog-desktop-selected-filter {
        min-width: 0;
        min-height: 54px;
        padding: 8px 14px;
        border-radius: 20px;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1 1 auto;
    }

    .blog-index-page .blog-desktop-filter-label {
        color: #20202a;
        font-size: 14px;
        font-weight: 950;
        white-space: nowrap;
    }

    .blog-index-page .blog-desktop-selected-category {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--blog-blue, #0f2f5f);
        font-size: 14px;
        font-weight: 950;
        overflow: hidden;
    }

        .blog-index-page .blog-desktop-selected-category.empty {
            color: #73737e;
        }

        .blog-index-page .blog-desktop-selected-category span {
            display: block;
            max-width: 360px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .blog-index-page .blog-desktop-selected-category button {
            width: 24px;
            height: 24px;
            min-width: 24px;
            border: 0;
            border-radius: 50%;
            background: rgba(15, 47, 95, 0.10);
            color: var(--blog-blue, #0f2f5f);
            font-size: 17px;
            line-height: 1;
            padding: 0;
            cursor: pointer;
        }

            .blog-index-page .blog-desktop-selected-category button:hover {
                background: var(--blog-blue, #0f2f5f);
                color: #fff;
            }

    .blog-index-page .blog-desktop-top-search {
        width: min(420px, 42%);
        min-width: 330px;
        height: 54px;
        min-height: 54px;
        margin: 0;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
        flex: 0 0 auto;
    }

        .blog-index-page .blog-desktop-top-search input {
            height: 42px;
            font-weight: 800;
        }

        .blog-index-page .blog-desktop-top-search button {
            width: 42px;
            height: 42px;
            min-width: 42px;
        }

    .blog-index-page .blog-digikala-search-row {
        display: none !important;
    }
}



/* =========================================================
   Blog Index + Blog Details Mobile Font Scale
   هماهنگ با فونت‌های مودال محصولات
   این بخش باید انتهای blog.css قرار بگیرد
========================================================= */

/* ==============================
   Blog Index Mobile Font Scale
============================== */

@media (max-width: 991px) {

    body.blog-index-page {
        font-size: 14px !important;
    }

        /* Breadcrumb */
        body.blog-index-page .blog-mobile-breadcrumb {
            font-size: 0.78rem !important;
            font-weight: 800 !important;
        }

            body.blog-index-page .blog-mobile-breadcrumb i {
                font-size: 0.86rem !important;
            }

        /* Search */
        body.blog-index-page .blog-top-search input,
        body.blog-index-page .blog-search-box input {
            font-size: 0.78rem !important;
            font-weight: 700 !important;
        }

        body.blog-index-page .blog-top-search button,
        body.blog-index-page .blog-search-box button {
            font-size: 0.78rem !important;
        }

        /* Filter / Sort / View */
        body.blog-index-page .blog-mobile-filter-label,
        body.blog-index-page .blog-mobile-selected-category {
            font-size: 0.72rem !important;
            font-weight: 900 !important;
        }

        body.blog-index-page .blog-mobile-sort-trigger {
            font-size: 0.7rem !important;
            font-weight: 900 !important;
        }

            body.blog-index-page .blog-mobile-sort-trigger i {
                font-size: 0.72rem !important;
            }

        body.blog-index-page .blog-view-mode-btn {
            font-size: 0.82rem !important;
        }

        /* Cards */
        body.blog-index-page .blog-card-meta {
            font-size: 0.72rem !important;
            font-weight: 800 !important;
            gap: 8px !important;
        }

            body.blog-index-page .blog-card-meta i {
                font-size: 0.78rem !important;
            }

        body.blog-index-page .blog-card-category {
            font-size: 0.72rem !important;
            font-weight: 800 !important;
        }

        body.blog-index-page .blog-card h2 {
            font-size: 0.88rem !important;
            line-height: 1.75 !important;
            font-weight: 900 !important;
        }

            body.blog-index-page .blog-card h2 a {
                font-size: inherit !important;
            }

        body.blog-index-page .blog-card p {
            font-size: 0.78rem !important;
            line-height: 1.9 !important;
        }

        body.blog-index-page .blog-read-more {
            font-size: 0.78rem !important;
            font-weight: 900 !important;
        }

            body.blog-index-page .blog-read-more i {
                font-size: 0.76rem !important;
            }

        /* List View */
        body.blog-index-page .blog-grid.blog-mobile-list-view .blog-card-meta {
            font-size: 0.7rem !important;
        }

        body.blog-index-page .blog-grid.blog-mobile-list-view .blog-card h2 {
            font-size: 0.86rem !important;
            line-height: 1.7 !important;
            font-weight: 900 !important;
        }

        body.blog-index-page .blog-grid.blog-mobile-list-view .blog-card p {
            font-size: 0.76rem !important;
            line-height: 1.8 !important;
        }

        body.blog-index-page .blog-grid.blog-mobile-list-view .blog-read-more {
            font-size: 0.76rem !important;
            font-weight: 900 !important;
        }

        /* Empty / Messages */
        body.blog-index-page .blog-empty-box h3 {
            font-size: 1rem !important;
            font-weight: 900 !important;
        }

        body.blog-index-page .blog-empty-box p,
        body.blog-index-page .blog-ajax-message,
        body.blog-index-page .blog-load-more-loader,
        body.blog-index-page .blog-end-message {
            font-size: 0.82rem !important;
            line-height: 2 !important;
        }

        body.blog-index-page .blog-empty-box i {
            font-size: 1.7rem !important;
        }

        /* Sort Modal */
        body.blog-index-page .blog-mobile-sheet-head strong {
            font-size: 1rem !important;
            font-weight: 900 !important;
        }

        body.blog-index-page .blog-mobile-sheet-head button {
            font-size: 1.15rem !important;
        }

        body.blog-index-page .blog-mobile-sort-item {
            font-size: 0.82rem !important;
            font-weight: 900 !important;
        }

        /* Category Sheet */
        body.blog-index-page .blog-category-sheet-title-row h3 {
            font-size: 1rem !important;
            font-weight: 900 !important;
        }

        body.blog-index-page .blog-sheet-size-btn,
        body.blog-index-page .blog-sheet-close-btn {
            font-size: 0.82rem !important;
        }

        body.blog-index-page .blog-sheet-close-btn {
            font-size: 1.15rem !important;
        }

        body.blog-index-page .blog-mobile-category-row {
            font-size: 0.82rem !important;
            font-weight: 850 !important;
        }

            body.blog-index-page .blog-mobile-category-row::before {
                font-size: 0.82rem !important;
            }

            body.blog-index-page .blog-mobile-category-row::after {
                font-size: 0.72rem !important;
            }

        /* Bottom Bar */
        body.blog-index-page .blog-bottom-item {
            font-size: 0.74rem !important;
            font-weight: 800 !important;
        }

        body.blog-index-page .blog-call-bottom-btn {
            font-size: 0.82rem !important;
            font-weight: 900 !important;
        }

        body.blog-index-page .blog-bottom-icon,
        body.blog-index-page .blog-call-icon {
            font-size: 0.88rem !important;
        }
}


/* ==============================
   Blog Details Mobile Font Scale
============================== */

@media (max-width: 991px) {

    body.blog-detail-page {
        font-size: 14px !important;
    }

        /* Breadcrumb / Tabs */
        body.blog-detail-page .blog-mobile-breadcrumb,
        body.blog-detail-page .blog-breadcrumb {
            font-size: 0.78rem !important;
            font-weight: 800 !important;
        }

            body.blog-detail-page .blog-mobile-breadcrumb i,
            body.blog-detail-page .blog-breadcrumb i {
                font-size: 0.86rem !important;
            }

        body.blog-detail-page .blog-mobile-tab {
            font-size: 0.78rem !important;
            font-weight: 900 !important;
        }

        /* Hero */
        body.blog-detail-page .blog-detail-category {
            font-size: 0.72rem !important;
            font-weight: 800 !important;
        }

        body.blog-detail-page .blog-detail-hero-content h1 {
            font-size: 1rem !important;
            line-height: 1.75 !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-detail-summary {
            font-size: 0.88rem !important;
            line-height: 2 !important;
        }

        body.blog-detail-page .blog-detail-meta span {
            font-size: 0.78rem !important;
            font-weight: 800 !important;
        }

        body.blog-detail-page .blog-primary-btn,
        body.blog-detail-page .blog-outline-btn,
        body.blog-detail-page .blog-clear-btn {
            font-size: 0.78rem !important;
            font-weight: 900 !important;
        }

        /* Article */
        body.blog-detail-page .blog-article-content {
            font-size: 0.88rem !important;
            line-height: 2.1 !important;
        }

            body.blog-detail-page .blog-article-content p,
            body.blog-detail-page .blog-article-content li {
                font-size: 0.88rem !important;
                line-height: 2.1 !important;
            }

            body.blog-detail-page .blog-article-content h1,
            body.blog-detail-page .blog-article-content h2 {
                font-size: 1rem !important;
                line-height: 1.8 !important;
                font-weight: 900 !important;
            }

            body.blog-detail-page .blog-article-content h3 {
                font-size: 0.95rem !important;
                line-height: 1.8 !important;
                font-weight: 900 !important;
            }

            body.blog-detail-page .blog-article-content h4 {
                font-size: 0.9rem !important;
                line-height: 1.8 !important;
                font-weight: 900 !important;
            }

        /* Section Titles */
        body.blog-detail-page .blog-section-head span,
        body.blog-detail-page .blog-comments-list-title span {
            font-size: 0.78rem !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-section-head h2,
        body.blog-detail-page .blog-comments-list-title h3 {
            font-size: 1rem !important;
            font-weight: 900 !important;
        }

        /* Author */
        body.blog-detail-page .blog-author-box span {
            font-size: 0.78rem !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-author-box h3 {
            font-size: 1rem !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-author-box p {
            font-size: 0.88rem !important;
            line-height: 2 !important;
        }

        /* Comments */
        body.blog-detail-page .blog-comments-count {
            font-size: 0.82rem !important;
            font-weight: 800 !important;
        }

            body.blog-detail-page .blog-comments-count strong {
                font-size: 1rem !important;
                font-weight: 900 !important;
            }

        body.blog-detail-page .blog-comment-header strong,
        body.blog-detail-page .blog-admin-reply-head strong {
            font-size: 0.82rem !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-comment-header small,
        body.blog-detail-page .blog-admin-reply-head small {
            font-size: 0.72rem !important;
        }

        body.blog-detail-page .blog-comment-body,
        body.blog-detail-page .blog-admin-reply,
        body.blog-detail-page .blog-no-comments {
            font-size: 0.82rem !important;
            line-height: 2 !important;
        }

        /* Comment Form */
        body.blog-detail-page .blog-comment-form-card h3 {
            font-size: 1rem !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-comment-form-card p {
            font-size: 0.82rem !important;
            line-height: 1.9 !important;
        }

        body.blog-detail-page .blog-form-group label {
            font-size: 0.78rem !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-form-group input,
        body.blog-detail-page .blog-form-group textarea,
        body.blog-detail-page .blog-share-box input {
            font-size: 0.82rem !important;
            line-height: 1.8 !important;
        }

        body.blog-detail-page .blog-form-message {
            font-size: 0.78rem !important;
            line-height: 1.8 !important;
            font-weight: 800 !important;
        }

        body.blog-detail-page .blog-comment-submit,
        body.blog-detail-page .blog-reply-submit,
        body.blog-detail-page .blog-share-submit {
            font-size: 0.82rem !important;
            font-weight: 900 !important;
        }

        /* Related Cards */
        body.blog-detail-page .blog-related-grid .blog-card-meta {
            font-size: 0.72rem !important;
            font-weight: 800 !important;
        }

        body.blog-detail-page .blog-related-grid .blog-card-category {
            font-size: 0.72rem !important;
            font-weight: 800 !important;
        }

        body.blog-detail-page .blog-related-grid .blog-card h2 {
            font-size: 0.88rem !important;
            line-height: 1.75 !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-related-grid .blog-read-more {
            font-size: 0.78rem !important;
            font-weight: 900 !important;
        }

        /* Info Sidebar / Mini Posts */
        body.blog-detail-page .blog-info-card h3 {
            font-size: 1rem !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-info-row span,
        body.blog-detail-page .blog-info-row strong {
            font-size: 0.82rem !important;
        }

        body.blog-detail-page .blog-mini-post span {
            font-size: 0.82rem !important;
            line-height: 1.8 !important;
            font-weight: 850 !important;
        }

        /* Bottom Bar - قدیمی و جدید */
        body.blog-detail-page .blog-bottom-item,
        body.blog-detail-page .blog-detail-bottom-item {
            font-size: 0.74rem !important;
            font-weight: 800 !important;
        }

        body.blog-detail-page .blog-call-bottom-btn,
        body.blog-detail-page .blog-detail-call-bottom-btn {
            font-size: 0.82rem !important;
            font-weight: 900 !important;
        }

        body.blog-detail-page .blog-bottom-icon,
        body.blog-detail-page .blog-call-icon,
        body.blog-detail-page .blog-detail-bottom-icon,
        body.blog-detail-page .blog-detail-call-icon {
            font-size: 0.88rem !important;
        }
}


/* ==============================
   Medium Mobile
============================== */

@media (max-width: 575px) {

    /* Blog Index */
    body.blog-index-page .blog-mobile-breadcrumb {
        font-size: 0.74rem !important;
    }

    body.blog-index-page .blog-card h2 {
        font-size: 0.86rem !important;
    }

    body.blog-index-page .blog-card p,
    body.blog-index-page .blog-read-more {
        font-size: 0.76rem !important;
    }

    body.blog-index-page .blog-grid.blog-mobile-list-view .blog-card h2 {
        font-size: 0.82rem !important;
    }

    body.blog-index-page .blog-grid.blog-mobile-list-view .blog-card p,
    body.blog-index-page .blog-grid.blog-mobile-list-view .blog-read-more {
        font-size: 0.74rem !important;
    }

    body.blog-index-page .blog-mobile-category-row {
        font-size: 0.8rem !important;
    }

    /* Blog Detail */
    body.blog-detail-page .blog-detail-hero-content h1 {
        font-size: 0.95rem !important;
    }

    body.blog-detail-page .blog-detail-summary,
    body.blog-detail-page .blog-article-content,
    body.blog-detail-page .blog-article-content p,
    body.blog-detail-page .blog-article-content li,
    body.blog-detail-page .blog-author-box p {
        font-size: 0.86rem !important;
    }

    body.blog-detail-page .blog-primary-btn,
    body.blog-detail-page .blog-outline-btn,
    body.blog-detail-page .blog-clear-btn,
    body.blog-detail-page .blog-form-group input,
    body.blog-detail-page .blog-form-group textarea {
        font-size: 0.8rem !important;
    }

    body.blog-detail-page .blog-comment-body,
    body.blog-detail-page .blog-admin-reply,
    body.blog-detail-page .blog-no-comments {
        font-size: 0.8rem !important;
    }
}


/* ==============================
   Small Mobile
============================== */

@media (max-width: 390px) {

    /* Blog Index */
    body.blog-index-page .blog-mobile-breadcrumb {
        font-size: 0.72rem !important;
    }

    body.blog-index-page .blog-top-search input,
    body.blog-index-page .blog-search-box input {
        font-size: 0.72rem !important;
    }

    body.blog-index-page .blog-mobile-filter-label,
    body.blog-index-page .blog-mobile-selected-category {
        font-size: 0.68rem !important;
    }

    body.blog-index-page .blog-mobile-sort-trigger {
        font-size: 0.66rem !important;
    }

    body.blog-index-page .blog-view-mode-btn {
        font-size: 0.78rem !important;
    }

    body.blog-index-page .blog-card-meta {
        font-size: 0.68rem !important;
    }

    body.blog-index-page .blog-card-category {
        font-size: 0.66rem !important;
    }

    body.blog-index-page .blog-card h2 {
        font-size: 0.8rem !important;
        line-height: 1.7 !important;
    }

    body.blog-index-page .blog-card p,
    body.blog-index-page .blog-read-more {
        font-size: 0.72rem !important;
        line-height: 1.75 !important;
    }

    body.blog-index-page .blog-grid.blog-mobile-list-view .blog-card h2 {
        font-size: 0.78rem !important;
    }

    body.blog-index-page .blog-grid.blog-mobile-list-view .blog-card p,
    body.blog-index-page .blog-grid.blog-mobile-list-view .blog-read-more {
        font-size: 0.7rem !important;
    }

    body.blog-index-page .blog-category-sheet-title-row h3,
    body.blog-index-page .blog-mobile-sheet-head strong {
        font-size: 0.95rem !important;
    }

    body.blog-index-page .blog-mobile-category-row,
    body.blog-index-page .blog-mobile-sort-item {
        font-size: 0.76rem !important;
    }

    body.blog-index-page .blog-bottom-item {
        font-size: 0.72rem !important;
    }

    body.blog-index-page .blog-call-bottom-btn {
        font-size: 0.78rem !important;
    }

    body.blog-index-page .blog-bottom-icon,
    body.blog-index-page .blog-call-icon {
        font-size: 0.78rem !important;
    }

    /* Blog Detail */
    body.blog-detail-page .blog-mobile-breadcrumb,
    body.blog-detail-page .blog-breadcrumb {
        font-size: 0.72rem !important;
    }

    body.blog-detail-page .blog-mobile-tab {
        font-size: 0.72rem !important;
    }

    body.blog-detail-page .blog-detail-category,
    body.blog-detail-page .blog-detail-meta span {
        font-size: 0.72rem !important;
    }

    body.blog-detail-page .blog-detail-hero-content h1 {
        font-size: 0.9rem !important;
    }

    body.blog-detail-page .blog-detail-summary,
    body.blog-detail-page .blog-article-content,
    body.blog-detail-page .blog-article-content p,
    body.blog-detail-page .blog-article-content li {
        font-size: 0.82rem !important;
        line-height: 1.9 !important;
    }

        body.blog-detail-page .blog-article-content h1,
        body.blog-detail-page .blog-article-content h2,
        body.blog-detail-page .blog-section-head h2,
        body.blog-detail-page .blog-comments-list-title h3,
        body.blog-detail-page .blog-author-box h3,
        body.blog-detail-page .blog-comment-form-card h3 {
            font-size: 0.95rem !important;
        }

    body.blog-detail-page .blog-form-group label,
    body.blog-detail-page .blog-comment-header strong,
    body.blog-detail-page .blog-admin-reply-head strong {
        font-size: 0.76rem !important;
    }

    body.blog-detail-page .blog-comment-body,
    body.blog-detail-page .blog-admin-reply,
    body.blog-detail-page .blog-no-comments,
    body.blog-detail-page .blog-form-group input,
    body.blog-detail-page .blog-form-group textarea {
        font-size: 0.76rem !important;
    }

    body.blog-detail-page .blog-bottom-item,
    body.blog-detail-page .blog-detail-bottom-item {
        font-size: 0.72rem !important;
    }

    body.blog-detail-page .blog-call-bottom-btn,
    body.blog-detail-page .blog-detail-call-bottom-btn {
        font-size: 0.78rem !important;
    }

    body.blog-detail-page .blog-bottom-icon,
    body.blog-detail-page .blog-call-icon,
    body.blog-detail-page .blog-detail-bottom-icon,
    body.blog-detail-page .blog-detail-call-icon {
        font-size: 0.78rem !important;
    }
}


/* =========================================================
   Blog Comments - Product Details Style
========================================================= */

.blog-post-comments-box {
    max-width: 1180px;
    margin: 28px auto 34px;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

    .blog-post-comments-box .blog-comments-list-box {
        margin-top: 18px;
    }

@media (min-width: 992px) {
    .blog-post-comments-box {
        width: 100%;
        max-width: 1360px !important;
    }

    .product-comments-mobile {
        display: none !important;
    }

    .product-comments-desktop {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .product-comments-desktop {
        display: none !important;
    }

    .product-comments-mobile {
        display: block !important;
        padding-bottom: calc(125px + env(safe-area-inset-bottom)) !important;
    }

    body.blog-detail-page .blog-post-comments-box {
        margin: 18px 0 calc(145px + env(safe-area-inset-bottom)) !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #f7f7f8 !important;
        overflow: visible !important;
    }

    .mobile-comments-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 14px 10px;
        background: #fff;
        border-top: 1px solid #f0f0f0;
    }

        .mobile-comments-head h3 {
            margin: 0 0 6px;
            font-size: 1rem;
            font-weight: 800;
            color: #1f2937;
        }

    .mobile-comments-rate-row {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #6b7280;
        font-size: 0.82rem;
    }

        .mobile-comments-rate-row strong {
            color: #111827;
            font-size: 1.05rem;
        }

    .mobile-comments-see-all {
        border: none;
        background: transparent;
        color: #224173;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
        padding: 8px 0;
    }

        .mobile-comments-see-all i {
            font-size: 0.75rem;
        }

    .mobile-comments-carousel {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 8px 14px 22px;
        background: #fff;
    }

        .mobile-comments-carousel::-webkit-scrollbar {
            display: none;
        }

    .mobile-comment-card {
        flex: 0 0 82%;
        min-height: 230px;
        scroll-snap-align: start;
        border: 1px solid #e5e7eb;
        background: #fff;
        border-radius: 12px;
        padding: 14px 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-align: right;
        color: #1f2937;
        position: relative;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    }

        .mobile-comment-card:active {
            transform: scale(0.99);
        }

    .mobile-comment-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: linear-gradient(180deg, #fff1c2, #f5b42a);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 12px;
        left: 12px;
        box-shadow: 0 4px 12px rgba(245, 180, 42, 0.28);
    }

    .mobile-comment-card-top {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-left: 46px;
        min-height: 38px;
    }

    .mobile-comment-name {
        font-size: 0.86rem;
        font-weight: 800;
        color: #374151;
        max-width: 140px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .mobile-comment-buyer {
        background: #e8f8ec;
        color: #2e9b4f;
        border-radius: 999px;
        padding: 3px 8px;
        font-size: 0.7rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .mobile-comment-stars {
        color: #f59e0b;
        letter-spacing: 1px;
        font-size: 1.1rem;
        line-height: 1;
        margin: 10px 0 12px;
        direction: ltr;
        text-align: right;
    }

    .mobile-comment-preview {
        display: block;
        color: #334155;
        font-size: 0.84rem;
        line-height: 2;
        min-height: 78px;
        text-align: right;
    }

    .mobile-comment-reply-badge {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        margin-top: 10px;
        padding: 4px 9px;
        border-radius: 999px;
        background: rgba(34, 65, 115, 0.08);
        color: #224173;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .mobile-comment-card-footer {
        margin-top: auto;
        padding-top: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        color: #9ca3af;
        font-size: 0.75rem;
    }

    .mobile-comment-more-text {
        color: #224173;
        font-weight: 800;
    }

    .mobile-no-comments {
        background: #fff;
        padding: 18px 14px;
        color: #6b7280;
        font-size: 0.9rem;
    }

    .mobile-comment-accordion {
        margin-top: 8px;
        margin-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
        background: #fff;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    .mobile-comment-accordion-btn {
        width: 100%;
        border: none;
        background: #fff;
        padding: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: right;
        color: #374151;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .mobile-comment-accordion-icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #f3f4f6;
        color: #4b5563;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-comment-accordion-chevron {
        margin-right: auto;
        transition: transform 0.2s ease;
        color: #6b7280;
        font-size: 0.8rem;
    }

    .mobile-comment-accordion.is-open .mobile-comment-accordion-chevron {
        transform: rotate(-90deg);
    }

    .mobile-comment-accordion-body {
        padding: 0 14px 16px;
        background: #fff;
    }

        .mobile-comment-accordion-body[hidden] {
            display: none !important;
        }

        .mobile-comment-accordion-body .blog-form-group {
            margin-bottom: 12px;
        }

        .mobile-comment-accordion-body input,
        .mobile-comment-accordion-body textarea {
            width: 100%;
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            padding: 10px 12px;
            background: #f9fafb;
            outline: none;
            font-size: 0.9rem;
        }

        .mobile-comment-accordion-body textarea {
            resize: vertical;
            min-height: 104px;
        }
}

@media (max-width: 991px) {
    .product-mobile-comment-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        z-index: 2147483000 !important;
        opacity: 0;
        visibility: hidden;
        transition: 0.2s ease;
    }

        .product-mobile-comment-overlay.active {
            opacity: 1;
            visibility: visible;
        }

    .product-mobile-comment-modal,
    .product-mobile-all-comments-modal {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 2147483001 !important;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.22);
        transform: translateY(105%);
        transition: transform 0.25s ease;
        height: var(--comment-modal-height, 82dvh) !important;
        max-height: none !important;
        min-height: 48dvh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 10px 16px calc(42px + env(safe-area-inset-bottom)) !important;
        will-change: transform, height;
    }

        .product-mobile-comment-modal.active,
        .product-mobile-all-comments-modal.active {
            transform: translateY(0);
        }

        .product-mobile-comment-modal.is-compact,
        .product-mobile-all-comments-modal.is-compact {
            --comment-modal-height: 58dvh;
        }

        .product-mobile-comment-modal.is-expanded,
        .product-mobile-all-comments-modal.is-expanded {
            --comment-modal-height: 82dvh;
        }

        .product-mobile-comment-modal.is-fullscreen,
        .product-mobile-all-comments-modal.is-fullscreen {
            --comment-modal-height: 100dvh;
            height: 100dvh !important;
            max-height: 100dvh !important;
            border-radius: 0 !important;
            padding-top: calc(8px + env(safe-area-inset-top)) !important;
        }

    .product-mobile-modal-handle {
        width: 52px !important;
        height: 5px !important;
        border-radius: 999px;
        background: #cbd5e1 !important;
        margin: 2px auto 12px;
        cursor: ns-resize;
        touch-action: none;
        position: sticky;
        top: 0;
        z-index: 5;
    }

        .product-mobile-modal-handle::after {
            content: "";
            position: absolute;
            inset: -16px -110px;
        }

    .product-mobile-modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f1f5f9;
    }

        .product-mobile-modal-head strong {
            display: block;
            font-size: 0.98rem;
            color: #111827;
            margin-bottom: 4px;
        }

        .product-mobile-modal-head span {
            display: block;
            font-size: 0.76rem;
            color: #9ca3af;
        }

    .product-mobile-modal-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: #f3f4f6;
        color: #374151;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .product-mobile-modal-stars {
        color: #f59e0b;
        direction: ltr;
        text-align: right;
        font-size: 1.15rem;
        letter-spacing: 1px;
        margin: 14px 0 8px;
    }

    .product-mobile-modal-text {
        white-space: pre-line;
        color: #334155;
        font-size: 0.9rem;
        line-height: 2;
        margin: 0;
        text-align: justify;
        padding-bottom: 18px !important;
    }

    .product-mobile-read-more {
        border: none;
        background: transparent;
        color: #224173;
        font-size: 0.84rem;
        font-weight: 800;
        padding: 10px 0 0;
    }

    .product-mobile-admin-reply {
        margin-top: 16px;
        margin-bottom: calc(34px + env(safe-area-inset-bottom)) !important;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        padding: 12px;
    }

    .product-mobile-admin-reply-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }

        .product-mobile-admin-reply-head strong {
            color: #224173;
            font-size: 0.85rem;
        }

        .product-mobile-admin-reply-head small {
            color: #9ca3af;
            font-size: 0.72rem;
        }

    .product-mobile-admin-reply p {
        margin: 0;
        color: #475569;
        line-height: 1.9;
        font-size: 0.84rem;
        white-space: pre-line;
    }

    body.mobile-comment-modal-open {
        overflow: hidden !important;
        touch-action: none;
    }
}

@media (max-width: 991px) {
    .product-mobile-all-comments-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 34px !important;
        padding-bottom: calc(130px + env(safe-area-inset-bottom)) !important;
    }

    .product-mobile-all-comments-status {
        color: #6b7280;
        font-size: 0.82rem;
        text-align: center;
        padding: 12px 0 calc(90px + env(safe-area-inset-bottom)) !important;
    }

    .product-mobile-all-comment-item {
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 12px;
        background: #fff;
    }

    .product-mobile-all-comment-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 8px;
    }

        .product-mobile-all-comment-head strong {
            color: #1f2937;
            font-size: 0.88rem;
        }

        .product-mobile-all-comment-head small {
            color: #9ca3af;
            font-size: 0.72rem;
            white-space: nowrap;
        }

    .product-mobile-all-comment-stars {
        color: #f59e0b;
        direction: ltr;
        text-align: right;
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .product-mobile-all-comment-text {
        margin: 0;
        color: #334155;
        line-height: 2;
        font-size: 0.84rem;
        white-space: pre-line;
        text-align: justify;
    }

    .product-mobile-all-comment-more {
        border: none;
        background: transparent;
        color: #224173;
        font-size: 0.8rem;
        font-weight: 800;
        padding: 8px 0 0;
    }

    .product-mobile-all-comments-modal .product-mobile-modal-handle {
        position: sticky !important;
        top: -12px !important;
        z-index: 60 !important;
        width: calc(100% + 32px) !important;
        height: 42px !important;
        margin: -4px -16px 0 !important;
        border-radius: 22px 22px 0 0 !important;
        background: #fff !important;
    }

        .product-mobile-all-comments-modal .product-mobile-modal-handle::before {
            content: "";
            position: absolute;
            top: 18px !important;
            left: 50%;
            width: 52px;
            height: 5px;
            border-radius: 999px;
            background: #cbd5e1;
            transform: translateX(-50%);
        }

    .product-mobile-all-comments-modal .product-mobile-modal-head {
        position: sticky !important;
        top: 24px !important;
        z-index: 59 !important;
        margin: 0 -16px !important;
        padding: 12px 16px 16px !important;
        background: #fff !important;
        border-bottom: 1px solid #f1f5f9 !important;
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06) !important;
    }

        .product-mobile-all-comments-modal .product-mobile-modal-head::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: -18px;
            height: 18px;
            background: #fff;
            pointer-events: none;
        }

        .product-mobile-all-comments-modal .product-mobile-modal-head::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -18px;
            height: 18px;
            background: linear-gradient(to bottom, #fff 0%, #fff 55%, rgba(255,255,255,0) 100%);
            pointer-events: none;
        }

    .product-mobile-all-comments-modal.is-fullscreen .product-mobile-modal-handle {
        border-radius: 0 !important;
    }

    .mobile-comment-see-all-card {
        flex: 0 0 38% !important;
        min-height: 230px;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px;
        padding: 14px 10px !important;
        background: #fff !important;
        border: 1px solid #eef0f3 !important;
        box-shadow: none !important;
    }

    .mobile-comment-see-all-circle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1.5px solid #111827;
        color: #111827;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
    }

    .mobile-comment-see-all-label {
        color: #111827;
        font-size: 0.78rem;
        font-weight: 800;
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .product-mobile-comment-overlay,
    .product-mobile-comment-modal,
    .product-mobile-all-comments-modal {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* =========================================================
   Fix Blog Comments Extra Empty Space Before Related Posts
========================================================= */

@media (max-width: 991px) {
    body.blog-detail-page .blog-post-comments-box {
        margin-bottom: 12px !important;
        padding-bottom: 0 !important;
    }

    body.blog-detail-page .product-comments-mobile {
        padding-bottom: 0 !important;
    }

    body.blog-detail-page .mobile-comment-accordion {
        margin-bottom: 10px !important;
    }

    body.blog-detail-page .mobile-comment-accordion-body {
        padding-bottom: 14px !important;
    }

    body.blog-detail-page .blog-related-section {
        margin-top: 12px !important;
        padding-top: 14px !important;
    }
}

/* Blog mobile category modal - remove old broken icons */
.blog-category-sheet-body .blog-mobile-category-row::before,
.blog-category-sheet-body .blog-mobile-category-row::after {
    content: none !important;
    display: none !important;
}

/* Hide any old direct icon that remained outside the new icon wrappers */
.blog-category-sheet-body .blog-mobile-category-row > i {
    display: none !important;
}

/* Clean mobile category link style */
.blog-category-sheet-body .blog-mobile-category-row {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 14px 16px !important;
    border: 0 !important;
    background: #fff !important;
    cursor: pointer !important;
    direction: rtl !important;
}

    .blog-category-sheet-body .blog-mobile-category-row:hover,
    .blog-category-sheet-body .blog-mobile-category-row:focus,
    .blog-category-sheet-body .blog-mobile-category-row:active,
    .blog-category-sheet-body .blog-mobile-category-row:visited {
        text-decoration: none !important;
        color: inherit !important;
    }

/* Right icon */
.blog-category-sheet-body .blog-mobile-category-row-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 1 !important;
}

/* Category title */
.blog-category-sheet-body .blog-mobile-category-row-title {
    flex: 1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222 !important;
    text-decoration: none !important;
    order: 2 !important;
    text-align: right !important;
}

/* Left arrow */
.blog-category-sheet-body .blog-mobile-category-row-arrow {
    width: 24px !important;
    min-width: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.55 !important;
    order: 3 !important;
}

    /* Icon size */
    .blog-category-sheet-body .blog-mobile-category-row-icon i,
    .blog-category-sheet-body .blog-mobile-category-row-arrow i {
        font-size: 13px !important;
        line-height: 1 !important;
        display: inline-block !important;
    }

/* Active item */
.blog-category-sheet-body .blog-mobile-category-row.active {
    background: rgba(9, 67, 139, 0.06) !important;
}

    .blog-category-sheet-body .blog-mobile-category-row.active .blog-mobile-category-row-icon {
        background: #0b438b !important;
        color: #fff !important;
    }

    .blog-category-sheet-body .blog-mobile-category-row.active .blog-mobile-category-row-title {
        font-weight: 700 !important;
    }


/* =========================================================
   Blog Mobile Category/Sort Sheet Fixes
   - Black close button
   - Sort sheet same behavior/theme as category sheet
========================================================= */

@media (max-width: 991px) {
    body.blog-index-page .blog-mobile-sheet-overlay {
        z-index: 100000 !important;
    }

    body.blog-index-page .blog-category-sheet,
    body.blog-index-page .blog-sort-sheet {
        z-index: 100001 !important;
    }

    body.blog-index-page .blog-sheet-close-btn {
        background: #f3f4f6 !important;
        color: #111827 !important;
        border: 0 !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.15rem !important;
        line-height: 1 !important;
        font-weight: 900 !important;
        box-shadow: none !important;
    }

        body.blog-index-page .blog-sheet-close-btn:hover {
            background: #e5e7eb !important;
            color: #000 !important;
        }

    body.blog-index-page .blog-sort-sheet {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh !important;
        background: #fff;
        border-radius: 26px 26px 0 0;
        transform: translateY(100%);
        transition: transform 0.28s ease, border-radius 0.28s ease;
        will-change: transform;
        display: flex !important;
        flex-direction: column;
        overflow: hidden !important;
        box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.28);
    }

        body.blog-index-page .blog-sort-sheet.open {
            transform: translateY(var(--blog-sort-sheet-translate-y, 36%));
        }

            body.blog-index-page .blog-sort-sheet.open.sheet-full {
                transform: translateY(0);
                border-radius: 0;
            }

            body.blog-index-page .blog-sort-sheet.open.sheet-half {
                transform: translateY(var(--blog-sort-sheet-translate-y, 36%));
            }

            body.blog-index-page .blog-sort-sheet.open.sheet-small {
                transform: translateY(var(--blog-sort-sheet-translate-y, 58%));
            }

        body.blog-index-page .blog-sort-sheet.dragging {
            transition: none !important;
        }

    body.blog-index-page .blog-sort-sheet-header {
        flex: 0 0 auto;
        padding: 10px 14px 12px;
        border-bottom: 1px solid #f0f0f0;
        background: linear-gradient(180deg, #ffffff, #fafafa);
        position: relative;
        touch-action: none;
        user-select: none;
        cursor: grab;
    }

    body.blog-index-page .blog-sort-sheet.dragging .blog-sort-sheet-header {
        cursor: grabbing;
    }

    body.blog-index-page .blog-sort-sheet-handle {
        width: 46px;
        height: 5px;
        background: #d1d5db;
        border-radius: 999px;
        margin: 0 auto 12px;
        cursor: grab;
        touch-action: none;
    }

    body.blog-index-page .blog-sort-sheet-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

        body.blog-index-page .blog-sort-sheet-title-row h3 {
            margin: 0;
            font-size: 1rem;
            font-weight: 900;
            color: #202020;
        }

    body.blog-index-page .blog-sort-sheet-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-right: auto;
    }

    body.blog-index-page .blog-sort-sheet-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 12px;
        overflow-y: auto !important;
        overflow-x: hidden;
        background: #fafafa;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding-bottom: 24px;
    }

    body.blog-index-page .blog-sort-sheet.sheet-small .blog-sort-sheet-body,
    body.blog-index-page .blog-sort-sheet.sheet-half .blog-sort-sheet-body,
    body.blog-index-page .blog-sort-sheet.sheet-full .blog-sort-sheet-body {
        overflow-y: auto !important;
    }

    body.blog-index-page .blog-mobile-sort-row {
        width: 100% !important;
        min-height: 54px !important;
        border: 1px solid #eee !important;
        background: #fff !important;
        color: #333 !important;
        text-align: right !important;
        padding: 0 12px !important;
        margin-bottom: 9px !important;
        font-family: inherit !important;
        font-size: 0.82rem !important;
        font-weight: 850 !important;
        border-radius: 18px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        direction: rtl !important;
        flex-direction: row !important;
        gap: 10px !important;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04) !important;
        transition: all 0.2s ease !important;
    }

        body.blog-index-page .blog-mobile-sort-row:hover {
            transform: translateY(-1px);
        }

    body.blog-index-page .blog-mobile-sort-row-icon {
        width: 34px;
        height: 34px;
        border-radius: 14px;
        background: #f5f5f5;
        color: #a1a1aa;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 0.82rem;
    }

    body.blog-index-page .blog-mobile-sort-row-title {
        flex: 0 1 auto;
        color: inherit;
        font-weight: 850;
    }

    body.blog-index-page .blog-mobile-sort-row-arrow {
        margin-right: auto;
        margin-left: 0;
        color: #c4c4cc;
        font-size: 0.72rem;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.blog-index-page .blog-mobile-sort-row.active {
        background: #f2f4f6 !important;
        color: #123C78 !important;
        border-color: rgb(34 65 115) !important;
        box-shadow: 0 8px 22px rgba(125, 125, 125, 0.09) !important;
    }

        body.blog-index-page .blog-mobile-sort-row.active .blog-mobile-sort-row-icon {
            background: #123C78;
            color: #fff;
        }

        body.blog-index-page .blog-mobile-sort-row.active .blog-mobile-sort-row-arrow i::before {
            content: "\f00c";
        }

        body.blog-index-page .blog-mobile-sort-row.active .blog-mobile-sort-row-arrow {
            color: #123C78;
        }
}





/* =========================================================
   Blog Article Content Image Size Fix
   مخصوص تصویرهای داخل مقاله
========================================================= */
.blog-detail-page #blogArticleContent.blog-article-card .blog-article-content img,
#blogArticleContent.blog-article-card .blog-article-content img {
    display: block !important;
    width: min(100%, 920px) !important;
    max-width: 100% !important;
    height: clamp(320px, 38vw, 520px) !important;
    margin: 24px auto !important;
    border-radius: 22px !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: #f4f7fb !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
}

/* اگر عکس داخل تگ p باشد */
.blog-detail-page #blogArticleContent.blog-article-card .blog-article-content p > img,
#blogArticleContent.blog-article-card .blog-article-content p > img {
    margin-right: auto !important;
    margin-left: auto !important;
}

@media (max-width: 991px) {
    .blog-detail-page #blogArticleContent.blog-article-card .blog-article-content img,
    #blogArticleContent.blog-article-card .blog-article-content img {
        width: 100% !important;
        height: clamp(220px, 56vw, 330px) !important;
        margin: 18px auto !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07) !important;
    }
}

@media (max-width: 575px) {
    .blog-detail-page #blogArticleContent.blog-article-card .blog-article-content img,
    #blogArticleContent.blog-article-card .blog-article-content img {
        height: clamp(190px, 58vw, 270px) !important;
        margin: 14px auto !important;
        border-radius: 16px !important;
    }
}


/* =========================================================
   Blog Article Headings - Desktop Only
========================================================= */
@media (min-width: 992px) {
    #blogArticleContent.blog-article-card .blog-article-content h2 {
        font-size: 18px !important;
        line-height: 2 !important;
        font-weight: 950 !important;
    }

    #blogArticleContent.blog-article-card .blog-article-content h3,
    #blogArticleContent.blog-article-card .blog-article-content h4,
    #blogArticleContent.blog-article-card .blog-article-content h5,
    #blogArticleContent.blog-article-card .blog-article-content h6 {
        font-size: 16px !important;
        line-height: 2 !important;
        font-weight: 900 !important;
    }
}


/*محصولات درون بلاگ*/
.article-product-card {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 105px;
    margin: 26px 0;
    padding: 12px 18px;
    direction: rtl;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(34, 65, 115, 0.08);
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    /* نوار عمودی قرمز چسبیده به سمت راست کارت */
    .article-product-card::before {
        content: "";
        position: absolute;
        top: 10px;
        right: -1px;
        bottom: 10px;
        width: 4px;
        background-color: #d71920;
        border-radius: 4px 0 0 4px;
        z-index: 2;
    }

    /* حالت هاور کارت */
    .article-product-card:hover {
        transform: translateY(-2px);
        border-color: rgba(34, 65, 115, 0.24);
        box-shadow: 0 9px 24px rgba(34, 65, 115, 0.13);
    }

/* باکس کوچک تصویر */
.article-product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 78px;
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #f6f8fb;
    border-radius: 9px;
    text-decoration: none !important;
}

    /* نمایش کامل تصویر بدون برش و بزرگ‌شدن */
    .article-product-card__image img {
        display: block;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: auto;
        padding: 0;
        object-fit: contain;
        object-position: center;
        box-sizing: border-box;
        transform: none !important;
    }

/* جلوگیری از بزرگ‌شدن تصویر در حالت هاور */
.article-product-card:hover .article-product-card__image img {
    transform: none !important;
}

/* بخش عنوان و قیمت */
.article-product-card__content {
    min-width: 0;
    text-align: right;
}

/* عنوان محصول */
.article-product-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #224173 !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.65;
    text-decoration: none !important;
}

    .article-product-card__title:link,
    .article-product-card__title:visited {
        color: #224173 !important;
        text-decoration: none !important;
    }

    .article-product-card__title:hover,
    .article-product-card__title:focus {
        color: #172f56 !important;
        text-decoration: none !important;
    }

/* قیمت محصول */
.article-product-card__price {
    margin-top: 4px;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

/* بخش دکمه */
.article-product-card__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* دکمه خرید */
.article-product-card__button,
.article-product-card__button:link,
.article-product-card__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 125px;
    min-height: 42px;
    padding: 8px 17px;
    box-sizing: border-box;
    background-color: #d71920 !important;
    border: 1px solid #d71920 !important;
    border-radius: 8px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(215, 25, 32, 0.2);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    /* سفید ماندن همه عناصر داخل دکمه */
    .article-product-card__button *,
    .article-product-card__button span {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    /* هاور و کلیک دکمه */
    .article-product-card__button:hover,
    .article-product-card__button:active,
    .article-product-card__button:focus {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        background-color: #b91319 !important;
        border-color: #b91319 !important;
        text-decoration: none !important;
        transform: translateY(-1px);
        box-shadow: 0 7px 18px rgba(215, 25, 32, 0.28);
    }

        .article-product-card__button:hover *,
        .article-product-card__button:active *,
        .article-product-card__button:focus * {
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
        }

    .article-product-card__button:focus-visible {
        outline: 3px solid rgba(215, 25, 32, 0.22);
        outline-offset: 3px;
    }

/* نسخه موبایل */
@media (max-width: 700px) {
    .article-product-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        min-height: 96px;
        padding: 11px 13px;
        border-radius: 10px;
    }

        .article-product-card::before {
            top: 8px;
            right: -1px;
            bottom: 8px;
            width: 4px;
        }

    .article-product-card__image {
        width: 72px;
        height: 68px;
        padding: 4px;
    }

    .article-product-card__title {
        font-size: 14px;
        line-height: 1.65;
    }

    .article-product-card__price {
        margin-top: 3px;
        font-size: 13px;
    }

    .article-product-card__action {
        grid-column: 1 / -1;
    }

    .article-product-card__button,
    .article-product-card__button:link,
    .article-product-card__button:visited {
        width: 100%;
        min-height: 40px;
    }
}



/*مقاله پیشنهادی*/
.suggested-article-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 68px;
    margin: 26px 0;
    padding: 13px 20px;
    direction: rtl;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    color: #224173 !important;
    text-decoration: none !important;
    box-shadow: 0 5px 18px rgba(34, 65, 115, 0.08);
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

    /* نوار عمودی سبز چسبیده به سمت راست باکس */
    .suggested-article-card::before {
        content: "";
        position: absolute;
        top: 9px;
        right: -1px;
        bottom: 9px;
        width: 4px;
        background-color: #28a745;
        border-radius: 4px 0 0 4px;
        z-index: 2;
    }

/* عبارت مقاله پیشنهادی */
.suggested-article-card__label {
    flex-shrink: 0;
    color: #28a745 !important;
    -webkit-text-fill-color: #28a745 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

/* عنوان مقاله */
.suggested-article-card__title {
    min-width: 0;
    color: #224173 !important;
    -webkit-text-fill-color: #224173 !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.75;
    white-space: normal;
}

/* فلش سمت چپ */
.suggested-article-card__arrow {
    flex-shrink: 0;
    margin-right: auto;
    color: #28a745 !important;
    -webkit-text-fill-color: #28a745 !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* حالت هاور */
.suggested-article-card:hover {
    color: #224173 !important;
    text-decoration: none !important;
    background-color: #fbfdfb;
    border-color: rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(34, 65, 115, 0.13);
}

    .suggested-article-card:hover .suggested-article-card__title {
        color: #172f56 !important;
        -webkit-text-fill-color: #172f56 !important;
    }

    .suggested-article-card:hover .suggested-article-card__arrow {
        transform: translateX(-3px);
    }

/* فوکوس کیبورد */
.suggested-article-card:focus-visible {
    outline: 3px solid rgba(40, 167, 69, 0.22);
    outline-offset: 3px;
}

/* نسخه موبایل */
@media (max-width: 700px) {
    .suggested-article-card {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 2px 6px;
        min-height: 62px;
        padding: 11px 15px;
        border-radius: 10px;
    }

        .suggested-article-card::before {
            top: 8px;
            right: -1px;
            bottom: 8px;
            width: 4px;
        }

    .suggested-article-card__label {
        font-size: 13px;
    }

    .suggested-article-card__title {
        flex: 1;
        font-size: 14px;
        line-height: 1.7;
    }

    .suggested-article-card__arrow {
        align-self: center;
        font-size: 18px;
    }
}

/* =========================================================
   Blog Details - Related Articles
   Same visual system as Product Related
========================================================= */

body.blog-detail-page .blog-related-section {
    width: 100%;
    margin: 28px 0 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}


/* =========================
   Header
========================= */

body.blog-detail-page .blog-related-head-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

body.blog-detail-page .blog-related-title-wrap-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.blog-detail-page .blog-related-icon-v2 {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(34, 65, 115, 0.08);
    color: #224173;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}


/* دقیقا مشابه پیشنهادهای مشابه محصول */
body.blog-detail-page .blog-related-eyebrow-v2 {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 4px;
}


/* دقیقا مشابه عنوان محصولات مرتبط */
body.blog-detail-page .blog-related-title-v2 {
    margin: 0;
    color: #111827;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.5;
}


/* =========================
   Desktop Grid
========================= */

body.blog-detail-page .blog-related-track-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}


/* =========================
   Article Card
========================= */

body.blog-detail-page .blog-related-card-v2 {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 20px;
    transition: 0.22s ease;
}

    body.blog-detail-page .blog-related-card-v2:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 32px rgba(15, 23, 42, 0.10);
        border-color: rgba(34, 65, 115, 0.22);
    }


/* =========================
   Image
========================= */

body.blog-detail-page .blog-related-image-wrap-v2 {
    position: relative;
    height: 170px;
    background: #f8fafc;
    overflow: hidden;
}

body.blog-detail-page .blog-related-image-v2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

body.blog-detail-page
.blog-related-card-v2:hover
.blog-related-image-v2 {
    transform: scale(1.04);
}


/* =========================
   Category
========================= */

body.blog-detail-page .blog-related-category-v2 {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 999px;
    padding: 5px 9px;
    color: #fff;
    background: #224173;
    font-size: 0.70rem;
    font-weight: 800;
}


/* =========================
   Body
========================= */

body.blog-detail-page .blog-related-body-v2 {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px;
}


/* =========================
   Meta
========================= */

body.blog-detail-page .blog-related-meta-v2 {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    overflow: hidden;
}

    body.blog-detail-page .blog-related-meta-v2 span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

        body.blog-detail-page
        .blog-related-meta-v2
        span + span::before {
            content: "•";
            margin-left: 2px;
            color: #cbd5e1;
        }

    body.blog-detail-page .blog-related-meta-v2 i {
        color: #224173;
        flex-shrink: 0;
    }


/* =========================
   Article Title
========================= */

/*
   فونت این قسمت دقیقا براساس
   product-related-card-title
   تنظیم شده است.
*/
body.blog-detail-page .blog-related-card-title-v2 {
    min-height: 46px;
    margin: 8px 0 10px;
    color: #1f2937;
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================
   Footer
========================= */

body.blog-detail-page .blog-related-footer-v2 {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.blog-detail-page .blog-related-read-v2 {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}


/* =========================
   Arrow
========================= */

body.blog-detail-page .blog-related-action-v2 {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #224173;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.2s ease;
}

body.blog-detail-page
.blog-related-card-v2:hover
.blog-related-action-v2 {
    background: #224173;
    color: #fff;
}


/* =========================================================
   MOBILE
   Same carousel behavior as Product Related
========================================================= */

@media (max-width: 991px) {

    body.blog-detail-page .blog-related-section {
        margin: 12px 0 14px !important;
        padding: 16px 0 10px !important;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
        overflow: hidden;
    }


    /* =========================
       Mobile Header
    ========================= */

    body.blog-detail-page .blog-related-head-v2 {
        padding: 0 14px;
        margin-bottom: 12px;
    }

    body.blog-detail-page .blog-related-icon-v2 {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        font-size: 0.95rem;
    }


    /*
       دقیقا مشابه Product Related Mobile
    */
    body.blog-detail-page .blog-related-eyebrow-v2 {
        font-size: 0.72rem;
    }

    body.blog-detail-page .blog-related-title-v2 {
        font-size: 1rem;
    }


    /* =========================
       Mobile Carousel
    ========================= */

    body.blog-detail-page .blog-related-track-v2 {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 14px 14px;
    }

        body.blog-detail-page
        .blog-related-track-v2::-webkit-scrollbar {
            display: none;
        }


    /* =========================
       Mobile Card
    ========================= */

    body.blog-detail-page .blog-related-card-v2 {
        flex: 0 0 68%;
        scroll-snap-align: start;
        border-radius: 16px;
    }


    /* =========================
       Mobile Image
    ========================= */

    body.blog-detail-page .blog-related-image-wrap-v2 {
        height: 148px;
    }


    /* =========================
       Mobile Body
    ========================= */

    body.blog-detail-page .blog-related-body-v2 {
        padding: 11px;
    }


    /* =========================
       Mobile Category
    ========================= */

    body.blog-detail-page .blog-related-category-v2 {
        padding: 5px 8px;
        font-size: 0.70rem;
    }


    /* =========================
       Mobile Meta
    ========================= */

    body.blog-detail-page .blog-related-meta-v2 {
        font-size: 0.70rem;
    }


    /* =========================
       Mobile Title
       Same as Product Related
    ========================= */

    body.blog-detail-page .blog-related-card-title-v2 {
        min-height: 44px;
        margin: 7px 0 9px;
        font-size: 0.82rem;
        line-height: 1.75;
    }


    /* =========================
       Mobile Read More
    ========================= */

    body.blog-detail-page .blog-related-read-v2 {
        font-size: 0.74rem;
    }


    /* =========================
       Mobile Arrow
    ========================= */

    body.blog-detail-page .blog-related-action-v2 {
        width: 32px;
        height: 32px;
    }
}

/* Related Articles - Standard Title Sizes */

/* Desktop */
body.blog-detail-page .blog-related-eyebrow-v2 {
    font-size: 0.72rem;
    font-weight: 600;
}

body.blog-detail-page .blog-related-title-v2 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 991px) {

    body.blog-detail-page .blog-related-eyebrow-v2 {
        font-size: 0.68rem;
        font-weight: 600;
    }

    body.blog-detail-page .blog-related-title-v2 {
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.5;
    }
}
/* Related article card title size */

/* Desktop */
body.blog-detail-page .blog-related-card-title-v2 {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1.65 !important;
    min-height: 42px;
}

/* Mobile */
@media (max-width: 991px) {
    body.blog-detail-page .blog-related-card-title-v2 {
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        line-height: 1.65 !important;
        min-height: 40px;
    }
}