/* بخش ویدئوها — صفحه اصلی */

#videos {
    padding: 100px 4% 60px;
}
#videos .section-title {
    text-align: center;
    margin-bottom: 40px;
}
#videos .section-title h2 {
    color: #E5F7F1;
    font-size: 28px;
}
#videos .section-title p {
    color: #7D938B;
    font-size: 13px;
    margin-top: 8px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    background: #101413;
    border: 1px solid #24433C;
}
.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, filter .4s ease;
}
.video-card:hover img {
    transform: scale(1.06);
    filter: brightness(.6);
}
.video-card .video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-card .video-play span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), .85);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(var(--color-primary-rgb), .5);
    transition: transform .3s ease;
}
.video-card:hover .video-play span { transform: scale(1.1); }
.video-card .video-play svg { width: 22px; height: 22px; fill: #fff; margin-right: -3px; }
.video-card .video-title {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
    color: #F2F8F6;
    font-size: 14px;
}

/* مودال پخش ویدیو */
#videoModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
#videoModal.open { display: flex; }
#videoModal .video-modal-box {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
#videoModal iframe {
    width: 100%;
    height: 100%;
    border: none;
}
#videoModal .video-modal-close {
    position: absolute;
    top: -40px;
    left: 0;
    color: #fff;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}
