/**
 * Baijia Video Carousel Styles
 */

/* Prevent horizontal scroll on body */
body {
    overflow-x: hidden;
}

.baijia-video-carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.baijia-video-carousel .swiper-slide {
    position: relative;
    overflow: hidden;
}

.baijia-video-carousel .baijia-video-slide,
.baijia-video-carousel .baijia-image-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.baijia-video-carousel .baijia-video-slide {
    background-color: #000;
}

/* Pagination - Bar Style */
.baijia-video-carousel .swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.baijia-video-carousel .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.baijia-video-carousel .swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.baijia-video-carousel .swiper-pagination-bullet-active {
    background-color: #ff0000;
    transform: scaleX(1.1);
}

/* Slide Overlay Content */
.baijia-slide-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.baijia-slide-content {
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.baijia-carousel-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.baijia-carousel-description {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 30px 0;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.baijia-carousel-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #000000;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.baijia-carousel-button:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .baijia-video-carousel .swiper-pagination-bullet {
        width: 30px;
        height: 3px;
        margin: 0 5px;
    }

    .baijia-carousel-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .baijia-carousel-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .baijia-carousel-button {
        padding: 10px 20px;
        font-size: 12px;
    }
}
