.video-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    direction: rtl;
    /* برای پشتیبانی از زبان فارسی */
}

.container {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1200px;
    width: 90%;
}

/* متن در سمت راست و ویدیو در سمت چپ در دسکتاپ */
.video-slider {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-content {
    flex: 1;
    padding: 20px;
    text-align: right;
}

h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

.slider-container {
    width: 100%;
    max-width: 500px;
}

video {
    width: 100%;
    border-radius: 10px;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
}
.controls button {
    background-color: #28a745;
    /* رنگ سبز */
    color: white;
    /* رنگ متن سفید */
    border: none;
    /* بدون حاشیه */
    border-radius: 5px;
    /* گوشه‌های گرد */
    padding: 12px 20px;
    /* فضای داخلی دکمه‌ها */
    font-size: 16px;
    /* اندازه فونت */
    cursor: pointer;
    /* نشانگر موس به شکل دست */
    transition: background-color 0.3s, transform 0.3s;
    /* افکت تغییر رنگ و انیمیشن */
}
.controls button:hover {
    background-color: #218838;
    /* تغییر رنگ به سبز تیره هنگام هاور */
    transform: scale(1.1);
    /* بزرگتر شدن دکمه هنگام هاور */
}

.controls button:active {
    background-color: #1e7e34;
    /* رنگ سبز تیره‌تر هنگام کلیک */
    transform: scale(1);
    /* بازگشت اندازه دکمه به حالت اولیه */
}
.green-text {
    color: green;
    font-weight: bold;
}

/* تنظیمات برای موبایل */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        /* در موبایل، متن بالای ویدئو قرار بگیرد */
        text-align: center;
    }

    .text-content {
        padding-bottom: 20px;
        text-align: center;
    }

    .video-slider {
        width: 100%;
    }

    .slider-container {
        max-width: 100%;
    }
}