﻿.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.text-container {
    flex: 1 1 45%;
    text-align: right;
    margin-top: 100px;
}

.paragraph-container {
    text-align: justify;
    direction: rtl;
}

.text-container h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.text-container h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #34495e;
}

.text-container p {
    font-size: 1rem;
    color: #555;
    text-align: justify;
    direction: rtl;
}

/* ریسپانسیو - تبلت و پایین‌تر */
@media (max-width: 768px) {
    .section-one {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .slider-container,
    .text-container {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 60px;
    }

        .text-container h1 {
            font-size: 1.5rem;
        }

        .text-container h2 {
            font-size: 1.2rem;
        }

        .text-container p {
            font-size: 0.95rem;
        }
}

/* ریسپانسیو - موبایل کوچک */
@media (max-width: 480px) {
    .text-container {
        margin-top: 60px;
        padding: 10px;
    }

        .text-container h1 {
            font-size: 1.3rem;
        }

        .text-container h2 {
            font-size: 1rem;
        }

        .text-container p {
            font-size: 0.9rem;
        }

    .article-card {
        width: 100%;
    }
}

/* مقالات */
.section-three .articles {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    justify-content: center;
}

.article-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

    .article-card:hover {
        transform: translateY(-5px);
    }

    .article-card img {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .article-card h3 {
        margin-bottom: 10px;
        font-size: 16px;
        color: #000000;
        text-align: right;
    }

    .article-card p {
        font-size: 14px;
        color: #555;
        text-align: justify;
    }
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.text-container {
    flex: 1 1 45%;
    text-align: right;
    margin-top: 100px;
}

.paragraph-container {
    text-align: justify;
    direction: rtl;
}

.text-container h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.text-container h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #34495e;
}

.text-container p {
    font-size: 1rem;
    color: #555;
    text-align: justify;
    direction: rtl;
}

/* ریسپانسیو - تبلت و پایین‌تر */
@media (max-width: 768px) {
    .section-one {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .slider-container,
    .text-container {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 20px;
    }

        .text-container h1 {
            font-size: 1.5rem;
        }

        .text-container h2 {
            font-size: 1.2rem;
        }

        .text-container p {
            font-size: 0.95rem;
        }
}

/* ریسپانسیو - موبایل کوچک */
@media (max-width: 780px) {
    .text-container {
        margin-top: 60px;
        padding: 10px;
    }

        .text-container h1 {
            font-size: 1.3rem;
        }

        .text-container h2 {
            font-size: 1rem;
        }

        .text-container p {
            font-size: 0.9rem;
        }

    .article-card {
        width: 100%;
    }
}

/* مقالات */
.section-three .articles {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    justify-content: center;
}

.article-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

    .article-card:hover {
        transform: translateY(-5px);
    }

    .article-card img {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .article-card h3 {
        margin-bottom: 10px;
        font-size: 16px;
        color: #000000;
        text-align: right;
    }

    .article-card p {
        font-size: 14px;
        color: #555;
        text-align: justify;
    }

/* ریسپانسیو - موبایل کوچک (دو کارت در یک ردیف) */
@media (max-width: 720px) {
    .article-card {
        width: calc(50% - 10px); /* دو کارت در هر ردیف با فاصله */
    }
}