/* Videos Section - قسم الفيديوهات */

.videos-section {
    background: #f8f9fa;
    position: relative;
}

.video-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #004D40;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.1);
    opacity: 0.8;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-btn {
    width: 70px;
    height: 70px;
    background: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.video-card:hover .video-play-btn {
    transform: scale(1.15);
    background: #004D40;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.6);
}

.video-play-btn i {
    font-size: 32px;
    color: #ffffff;
    margin-right: 3px;
}

.video-duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.video-duration-badge i {
    font-size: 10px;
}

.video-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.video-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.5;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    color: #004D40;
}

.video-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
    justify-content: center;
    margin-top: auto;
}

.video-watch-btn:hover {
    background: #004D40;
    color: #ffffff;
    border-color: #004D40;
    text-decoration: none;
    transform: translateY(-2px);
}

.video-watch-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.video-watch-btn:hover i {
    transform: translateX(-3px);
}

.btn-view-all-videos {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    background: linear-gradient(135deg, #026157 0%, #00897b 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgb(0 137 123 / 41%);
}

.btn-view-all-videos:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(0 137 123 / 56%);
    text-decoration: none;
    color: #ffffff;
}

.btn-view-all-videos i {
    transition: transform 0.3s ease;
}

.btn-view-all-videos:hover i {
    transform: translateX(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeInUp 0.6s ease forwards;
}

.video-card:nth-child(1) {
    animation-delay: 0.1s;
}

.video-card:nth-child(2) {
    animation-delay: 0.2s;
}

.video-card:nth-child(3) {
    animation-delay: 0.3s;
}

.video-card:nth-child(4) {
    animation-delay: 0.4s;
}

.video-card:nth-child(5) {
    animation-delay: 0.5s;
}

.video-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-thumbnail-wrapper {
        height: 200px;
    }
    
    .video-play-btn {
        width: 60px;
        height: 60px;
    }
    
    .video-play-btn i {
        font-size: 28px;
    }
    
    .video-title {
        font-size: 15px;
        min-height: auto;
    }
    
    .video-info {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .video-thumbnail-wrapper {
        height: 180px;
    }
    
    .video-play-btn {
        width: 55px;
        height: 55px;
    }
    
    .video-play-btn i {
        font-size: 24px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .video-watch-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}
