﻿body {
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

.header .text {
    flex: 1;
    padding: 20px;
}

.header .text h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.header .text h2 {
    font-size: 22px;
    color: #777;
    margin-bottom: 15px;
}

.header .text p {
    font-size: 16px;
    color: #555;
    text-align: justify;
}

.header .image {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 15px;
}

section.videos-section1 {
    margin-top: 40px;
}

.videos-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: right;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.video-box {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-box video {
    width: 100%;
    border-radius: 8px;
}

.video-box h3 {
    margin-top: 10px;
    font-size: 18px;
}

.video-box p {
    font-size: 14px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
}

/* ریسپانسیو موبایل و تبلت */
@media (max-width: 1024px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header .text,
    .header .image {
        padding: 10px;
    }

    .header .image img {
        margin: 0 auto;
        max-width: 100%;
    }

    .header .text h1 {
        font-size: 26px;
    }

    .header .text h2 {
        font-size: 18px;
    }

    .header .text p {
        font-size: 15px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .video-box h3 {
        font-size: 16px;
    }

    .video-box p {
        font-size: 13px;
    }
}
/*.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    opacity: 0.8;
    pointer-events: none;
}*/

