/* Video Carousel Styles */
.scraft-video-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.scraft-video-carousel .carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.scraft-video-carousel .carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.scraft-video-carousel .carousel-slide {
    flex: 0 0 100%;
    display: flex;
    gap: 20px;
}

.scraft-video-carousel .video-item {
    position: relative;
    flex: 1;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


.scraft-video-carousel .video-preview {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    cursor: pointer;
}

.scraft-video-carousel .video-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scraft-video-carousel .video-preview:hover img {
    transform: scale(1.05);
}

.scraft-video-carousel .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scraft-video-carousel .video-preview:hover .video-overlay {
    opacity: 1;
}

.scraft-video-carousel .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.scraft-video-carousel .play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.scraft-video-carousel .play-button svg {
    width: 24px;
    height: 24px;
    margin-left: 3px; /* Slight offset to center the triangle visually */
}

.scraft-video-carousel .video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.scraft-video-carousel .video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scraft-video-carousel .video-title {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Dots Styles */
.scraft-video-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.scraft-video-carousel .carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cccccc;
    margin: 0 8px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.scraft-video-carousel .carousel-dots .dot:hover {
    background-color: #999999;
}

.scraft-video-carousel .carousel-dots .dot.active {
    background-color: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scraft-video-carousel .carousel-slide {
        gap: 10px;
    }
    
    .scraft-video-carousel .play-button {
        width: 50px;
        height: 50px;
        /* Increase touch target for mobile */
        padding: 10px;
        box-sizing: content-box;
    }
    
    .scraft-video-carousel .play-button svg {
        width: 20px;
        height: 20px;
    }
    
    .scraft-video-carousel .video-title {
        font-size: 14px;
        padding: 12px;
    }
    
    /* Improve touch targets for dots */
    .scraft-video-carousel .carousel-dots .dot {
        padding: 10px;
        box-sizing: content-box;
        margin: 0 5px;
    }
    
    /* Ensure video controls are visible on mobile */
    /* .scraft-video-carousel .video-player video {
        -webkit-appearance: none;
        -webkit-user-select: none;
        user-select: none;
    } */
}

@media (max-width: 480px) {
    .scraft-video-carousel .play-button {
        width: 40px;
        height: 40px;
        padding: 15px;
    }
    
    .scraft-video-carousel .play-button svg {
        width: 16px;
        height: 16px;
    }
    
    /* Larger touch targets for very small screens */
}