/* الأساسيات */
.articles-section {
    padding: 20px;
    font-family: Arial, sans-serif;
}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.articles-header h1 {
    font-size: 2.5rem;
    color: #333;
}

.articles-header p {
    font-size: 1rem;
    color: #6c757d;
}

.articles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.article-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(33.33% - 20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.article-title {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 10px;
}

.article-title a {
    text-decoration: none;
    color: inherit;
}

.article-description {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
}

.read-more {
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
}

/* تنسيق صورة المقال */
.article-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* تنسيق قسم الإعلانات */
.advertisements {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.ad-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    width: 48%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ad-image {
    width: 100%;
    border-radius: 10px;
}

.ad-text {
    font-size: 1.2rem;
    color: #333;
    margin: 15px 0;
}

.ad-link {
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
}

/* تحسينات للهواتف الذكية */
@media (max-width: 768px) {
    .article-card {
        width: calc(50% - 20px);
    }

    .advertisements {
        flex-direction: column;
        gap: 20px;
    }

    .ad-card {
        width: 100%;
    }
}

/* تحسينات للأجهزة الصغيرة */
@media (max-width: 480px) {
    .article-card {
        width: 100%;
    }

    .articles-header h1 {
        font-size: 2rem;
    }

    .articles-header p {
        font-size: 0.9rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-description {
        font-size: 0.9rem;
    }

    .read-more {
        font-size: 0.9rem;
    }

    .ad-text {
        font-size: 1rem;
    }
}
