@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

:root {
    --primary-color: #2563eb;
    --primary-light: #eff6ff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --border-color: #f3f4f6;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
}

.article-page {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-page);
    padding: 50px 15px;
    direction: rtl;
}

.article-container {
    max-width: 860px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.04), 0 0 1px 1px rgba(0,0,0,0.02);
}

/* نشان بالای عنوان */
.article-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.1rem;
    font-weight: 850;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

/* نوار متادیتا با آیکون‌های مینیمال */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #fbfcfe;
    border: 1px solid #f1f5f9;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 35px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.meta-item svg {
    stroke: #64748b;
}

/* تصویر شاخص */
.article-featured-image {
    margin: 0 0 40px 0;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* بدنه مقاله */
.article-body {
    font-size: 1.12rem;
    line-height: 2.2;
    color: var(--text-main);
    text-align: justify;
}

.article-body p {
    margin-bottom: 22px;
    color: #374151;
}

/* تیترهای بخش‌های مختلف با خط دیزاین عمودی جذاب */
.article-body h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 45px 0 20px 0;
    position: relative;
    padding-right: 16px;
}

.article-body h2::before {
    content: "";
    position: absolute;
    right: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: var(--primary-color);
    border-radius: 4px;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 35px 0 15px 0;
}

/* لیست‌ها */
.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-right: 25px;
}

.article-body li {
    margin-bottom: 14px;
    line-height: 1.9;
    color: #334155;
}

/* حذف یا نرم کردن خطوط جداکننده افقی */
.article-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, rgb(152 152 152 / 0.8), transparent);
    margin: 40px 0;
}

/* استایل کادرهای نقل‌قول و تاکید */
.article-body blockquote {
    background: #f8fafc;
    border-right: 4px solid var(--primary-color);
    padding: 18px 24px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
    font-style: normal;
    color: #334155;
}

/* لینک یا دکمه CTA درون متن مقاله (مثلا [مشاهده و خرید آنلاین...]) */
.article-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.article-body a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* مقالات مرتبط */
.related-posts {
    margin-top: 60px;
    padding-top: 35px;
    border-top: 2px dashed #e2e8f0;
}

.related-posts .section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.rel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.rel-card:hover {
    border-color: var(--primary-color);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.1);
}

.rel-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.rel-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.rel-link-text {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .article-container {
        padding: 25px 18px;
        border-radius: 14px;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-body {
        font-size: 1.05rem;
        line-height: 2;
    }
}
