﻿.article-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 120px 0 40px 0; /* تغییر مهم: padding از چهار جهت */
    direction: rtl;
    display: flex;
    align-items: flex-start; /* تغییر مهم */
    justify-content: center; /* تغییر مهم */
    width: 100%;
}

.article-container {
    max-width: 800px;
    width: 100%; /* تغییر مهم */
    margin: 0 auto;
    padding: 0 20px;
}

.article-header {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%; /* تغییر مهم */
    position: unset !important;
}

.article-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

    .article-breadcrumb a {
        color: #4a6baf;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .article-breadcrumb a:hover {
            color: #3a5599;
        }

    .article-breadcrumb i {
        font-size: 0.8rem;
    }

.article-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.95rem;
}

    .article-meta-item i {
        color: #4a6baf;
        font-size: 0.9rem;
    }

.article-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.article-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .article-tag:hover {
        background: #4a6baf;
        color: white;
    }

.article-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin: 30px 0;
}

    .article-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.article-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    width: 100%; /* تغییر مهم */
}

.article-lead {
    font-size: 1.2rem;
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-right: 4px solid #4a6baf;
    border-radius: 10px;
    font-weight: 500;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

    .article-body h2 {
        color: #2c3e50;
        margin: 40px 0 20px 0;
        font-size: 1.6rem;
        font-weight: 600;
    }

    .article-body h3 {
        color: #2c3e50;
        margin: 30px 0 15px 0;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .article-body p {
        margin-bottom: 20px;
        text-align: justify;
    }

    .article-body ul, .article-body ol {
        margin: 20px 0;
        padding-right: 30px;
    }

    .article-body li {
        margin-bottom: 10px;
    }

    .article-body blockquote {
        border-right: 4px solid #ff7e5f;
        background: #fff8f6;
        padding: 20px;
        margin: 30px 0;
        border-radius: 10px;
        font-style: italic;
        color: #4a5568;
    }

    .article-body img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 20px 0;
    }

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share-title {
    color: #6c757d;
    font-weight: 500;
}

.article-share-buttons {
    display: flex;
    gap: 10px;
}

.article-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .article-share-btn:hover {
        transform: translateY(-2px);
    }

.share-telegram {
    background: #0088cc;
}

.share-whatsapp {
    background: #25D366;
}

.share-linkedin {
    background: #0077b5;
}

.share-twitter {
    background: #1DA1F2;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a6baf;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #4a6baf;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .article-back:hover {
        background: #4a6baf;
        color: white;
    }

.article-related {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%; /* تغییر مهم */
}

.article-related-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.article-related-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.article-related-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
}

    .article-related-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-color: #4a6baf;
    }

.article-related-card-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.article-related-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .article-page {
        padding: 100px 0 20px 0; /* تنظیم padding برای موبایل */
    }

    .article-container {
        padding: 0 15px;
    }

    .article-header {
        padding: 25px 20px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        gap: 15px;
    }

    .article-featured-image {
        height: 250px;
    }

    .article-content {
        padding: 25px 20px;
    }

    .article-lead {
        font-size: 1.1rem;
        padding: 15px;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-actions {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-related {
        padding: 25px 20px;
    }

    .article-related-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .article-page {
        padding: 90px 0 15px 0;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .article-featured-image {
        height: 200px;
    }

    .article-body h2 {
        font-size: 1.4rem;
    }

    .article-body h3 {
        font-size: 1.2rem;
    }

    .article-back {
        width: 100%;
        justify-content: center;
    }
}
