
        :root {
            --primary-color: #2563eb;
            --secondary-color: #f59e0b;
            --dark-color: #1e293b;
            --light-bg: #f8fafc;
            --white: #ffffff;
            --text-color: #334155;
            --border-color: #e2e8f0;
            --radius: 12px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Vazirmatn', sans-serif; background-color: var(--light-bg); color: var(--text-color); line-height: 1.8; }
        a { text-decoration: none; color: inherit; transition: 0.3s; }
        img { max-width: 100%; display: block; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* کانتینر باریک‌تر برای خوانایی متن */


        /* --- استایل جزئیات بلاگ --- */
        .page-header { background-color: var(--white); padding: 20px 0; border-bottom: 1px solid var(--border-color); }
        .breadcrumb { font-size: 0.9rem; color: #64748b; }

        .article-container { padding: 60px 0; }

        /* نوار اطلاعات بالای عکس */
        .article-meta-bar {
            background: var(--white);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 20px;
            margin-bottom: 30px;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: space-between;
            align-items: center;
        }

        .meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #64748b; }
        .meta-icon { color: var(--secondary-color); font-size: 1.2rem; }
        .meta-tag { background-color: #e0f2fe; color: #0369a1; padding: 5px 15px; border-radius: 20px; font-weight: 600; }

        /* عکس اصلی */
        .article-banner { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

        /* متن مقاله */
        .article-title { font-size: 2.5rem; color: var(--dark-color); margin-bottom: 30px; line-height: 1.4; font-weight: 900; }
        .article-content { color: #475569; font-size: 1.1rem; margin-bottom: 60px; }
        .article-content p { margin-bottom: 20px; text-align: justify; }
        .article-content h3 { color: var(--dark-color); margin: 30px 0 15px; font-size: 1.5rem; }
        .article-content ul { margin-right: 30px; margin-bottom: 20px; list-style: disc; color: #475569; }
        .article-content li { margin-bottom: 10px; }

        /* بخش نظرات */
        .comments-section { background: var(--white); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border-color); }
        .section-title { font-size: 1.5rem; color: var(--dark-color); margin-bottom: 30px; border-right: 4px solid var(--primary-color); padding-right: 15px; }

        .comment-item { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
        .comment-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
        .comment-author { font-weight: 700; color: var(--dark-color); }
        .comment-date { font-size: 0.8rem; color: #94a3b8; }
        .comment-text { color: #64748b; line-height: 1.6; }

        .comment-form { margin-top: 40px; background: #f8fafc; padding: 25px; border-radius: 8px; border: 1px solid var(--border-color); }
        .form-group { margin-bottom: 15px; }
        .form-control { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-family: inherit; }
        .btn-submit { background-color: var(--primary-color); color: white; border: none; padding: 12px 30px; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 600; }

        @media (max-width: 768px) {
            .article-title { font-size: 1.8rem; }
            .article-meta-bar { flex-direction: column; align-items: flex-start; }
        }
        
/**/

/* فراخوانی فونت استاندارد فارسی */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* کانتینر اصلی مقاله */
.article-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 15px;
    direction: rtl;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    box-sizing: border-box;
    color: #334155;
}

/* 1. نوار اطلاعات (بازدید و تاریخ) */
.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #64748b;
}
/* استایل دادن به فلکسی که داخلش وجود دارد */
.article-meta-bar > div:first-child {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.meta-icon {
    font-size: 1rem;
}
.meta-tag {
    background-color: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 2. عکس اصلی مقاله */
.article-banner {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: block;
}

/* 3. عنوان مقاله */
.article-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* 4. محتوای متنی مقاله */
.article-content {
    font-size: 0.95rem;
    line-height: 2.1; /* فاصله خطوط استاندارد برای خوانایی فارسی */
    text-align: justify;
    margin-bottom: 40px;
}
.article-content p {
    margin-bottom: 15px;
}
.article-content strong {
    color: #0f172a;
    font-weight: 700;
}

/* تیترهای داخل متن */
.article-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-right: 12px;
    border-right: 3px solid #2563eb; /* خط آبی کنار تیترها */
}

/* استایل لیست‌ها */
.article-content ol, 
.article-content ul {
    padding-right: 20px;
    margin-bottom: 15px;
}
.article-content li {
    margin-bottom: 10px;
}

/* لیست‌های تودرتو (زیرمجموعه) */
.article-content li > ul {
    margin-top: 8px;
    padding-right: 15px;
}

/* تغییر رنگ شماره‌ها و بولت‌ها */
.article-content ol li::marker {
    color: #2563eb;
    font-weight: bold;
}
.article-content ul li::marker {
    color: #3b82f6;
}

/* ========================================== */
/* 5. بخش نظرات و فرم */
/* ========================================== */
.comments-section {
    background: #f8fafc;
    padding: 25px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* گروه‌های فرم */
.form-group {
    margin-bottom: 15px;
}

/* اینپوت‌ها و تکست‌آریا */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    color: #334155;
    background-color: #fff;
    box-sizing: border-box; /* بسیار مهم برای جلوگیری از افتادن فرم در موبایل */
    transition: all 0.2s ease;
    direction: rtl;
}
.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-control::placeholder {
    color: #94a3b8;
}
textarea.form-control {
    resize: vertical; /* فقط تغییر سایز عمودی */
    min-height: 130px;
}

/* بخش کپچا (بسیار مهم در موبایل) */
.comment-form .form-group:nth-of-type(5) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.captcha {
    border-radius: 6px;
    max-width: 150px;
    height: 50px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
}
#id_captcha_1 {
    width: 120px !important; /* اندازه ثابت برای فیلد کپچا */
    padding: 10px;
}

/* دکمه ثبت */
.btn-submit {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-submit:active {
    transform: scale(0.98);
}
.btn-submit:hover {
    background-color: #1d4ed8;
}


/* ========================================== */
/* ریسپانسیو برای تبلت و دسکتاپ */
/* ========================================== */
@media (min-width: 768px) {
    .article-container {
        padding: 40px 20px;
    }
    
    .article-banner {
        max-height: 500px;
        border-radius: 16px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 1.05rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .comments-section {
        padding: 35px 30px;
    }
    
    /* در دسکتاپ اینپوت ها در یک ردیف قرار بگیرند (اختیاری) */
    .comment-form .form-group:nth-of-type(1),
    .comment-form .form-group:nth-of-type(2) {
        width: 48%;
        display: inline-block;
        vertical-align: top;
    }
    .comment-form .form-group:nth-of-type(2) {
        margin-right: 2%;
    }
}

