/* تنسيقات أساسية */
:root {
    --primary-color: #4e7a34;
    --secondary-color: #6ba848;
    --text-color: #333;
    --light-gray: #f9f9f9;
    --border-color: #eaeaea;
}

body {
    margin: 0;
    font-family: 'Tajawal', Arial, sans-serif;
    direction: rtl;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

/* هيكل الصفحة */
.article-main {
    padding: 20px 0 40px;
    min-height: calc(100vh - 120px);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* تنسيقات المقال */
.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-image-container {
    margin: 0 -20px 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* تذييل المقال */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.article-tags strong {
    color: var(--primary-color);
}

.article-tags a {
    display: inline-block;
    padding: 6px 15px;
    background: #e9f3e4;
    color: var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* التجاوب */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-image-container {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
}