﻿
@media (min-width: 768px) {
    .col-md-4

{
    flex: 0 0 auto;
    width: 140.333333%;
}

}
/* ===== Article Page Base ===== */
body {
    direction: rtl;
    text-align: right;
    font-family: Vazirmatn, IRANSans, Tahoma, sans-serif;
    background: #f5f7fb;
    color: #222;
    margin: 0;
    padding: 0;
}

/* ===== Card ===== */
.article-card.style4 {
    max-width: 950px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9eef5;
    overflow: hidden;
}

.article-card .card-body {
    padding: 35px 30px;
}

/* ===== Title ===== */
.article-title.style149 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.9;
    color: #0f172a;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 18px;
}

    .article-title.style149::after {
        content: "";
        display: block;
        width: 90px;
        height: 4px;
        margin: 14px auto 0;
        border-radius: 10px;
        background: linear-gradient(90deg, #2563eb, #06b6d4);
    }

/* ===== Image ===== */
.divwidthpic {
    text-align: center;
    margin-bottom: 30px;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* ===== Article Content Wrapper ===== */
.article-content.divwidth {
    background: #ffffff !important;
    color: #333 !important;
    padding: 10px 0;
    line-height: 2.2;
    font-size: 1.05rem;
}

/* حذف بک‌گراند مشکی و رنگ‌های خراب داخل محتوای مقاله */
.article-content *,
.article-content div,
.article-content p,
.article-content span {
    background: transparent !important;
    color: #333 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* ===== Paragraphs ===== */
.article-content p {
    margin: 0 0 18px 0 !important;
    line-height: 2.2 !important;
    font-size: 1.05rem !important;
    color: #374151 !important;
}

    /* ===== Strong / numbered headings inside content ===== */
    .article-content p span:first-child,
    .article-content strong {
        font-weight: 800 !important;
        color: #111827 !important;
    }

/* اگر تیترهای داخل متن با span آمده‌اند */
.article-content span[style*="font-weight: 600"],
.article-content span[style*="font-weight:600"] {
    display: inline-block;
    color: #0f172a !important;
    font-weight: 800 !important;
    margin-left: 6px;
}

/* ===== Remove useless spacing divs ===== */
.article-content .my-2 {
    display: none !important;
}

/* ===== Horizontal rule ===== */
.article-card hr {
    border: none;
    height: 1px;
    background: linear-gradient(to left, transparent, #dbe3ee, transparent);
    margin: 30px 0;
}

/* ===== Meta Section ===== */
.article-meta.divwidth2 {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 0.96rem;
    color: #334155;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.9;
}

.article-meta i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ===== Keywords ===== */
#FormView1_keywordLabel {
    color: #475569;
    font-size: 0.95rem;
    line-height: 2;
    word-break: break-word;
}

/* ===== Download Button ===== */
.download-link {
    margin-top: 30px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff !important;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    transition: all 0.25s ease;
}

    .download-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
        opacity: 0.95;
    }

.download-icon {
    width: 22px;
    height: 22px;
}

/* ===== Utility Width Fixes ===== */
.divwidth,
.divwidth2 {
    width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .article-card.style4 {
        margin: 20px 12px;
        border-radius: 14px;
    }

    .article-card .card-body {
        padding: 22px 18px;
    }

    .article-title.style149 {
        font-size: 1.45rem;
        line-height: 1.8;
    }

    .article-content p {
        font-size: 1rem !important;
        line-height: 2.1 !important;
    }


    .article-meta.divwidth2 {
        font-size: 0.9rem;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 14px 16px;
        font-size: 0.96rem;
        color: #334155;
        height: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        line-height: 1.9;
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

body {
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
}

.article-card {
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

    .article-card:hover {
        transform: translateY(-5px);
    }

.article-title {
    font-size: 40px;
    font-weight: bold;
    color: #cc0000;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 12px;
    transition: transform 0.3s ease;
}

    .article-image:hover {
        transform: scale(1.02);
    }

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.article-meta {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.download-link {
    text-align: center;
    margin-top: 2rem;
}

.download-btn {
    display: none !important;
    background: linear-gradient(135deg, #28a745, #198754);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(25,135,84,0.3);
}

    .download-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(25,135,84,0.4);
        background: linear-gradient(135deg, #198754, #146c43);
    }

.download-icon {
    max-width: 30px;
}


