/**
 * Baijia Card Carousel Styles
 */

.baijia-card-carousel-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 60px;
    box-sizing: border-box;
}

.baijia-card-carousel {
    overflow: visible;
    width: 100%;
}

.baijia-card-carousel .swiper-slide {
    height: auto;
}

.baijia-card-item {
    background-color: #fff;
    overflow: hidden;
}

.baijia-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.baijia-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.baijia-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.baijia-card-image-auto {
    height: auto;
}

.baijia-card-image-auto img {
    height: auto;
    object-fit: contain;
}

.baijia-card-item:hover .baijia-card-image img {
    transform: scale(1.05);
}

.baijia-card-content {
    padding: 15px 0;
}

.baijia-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.baijia-card-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Navigation Arrows */
.baijia-card-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: color 0.3s ease;
    z-index: 10;
    padding: 0;
}

.baijia-card-nav:hover {
    color: #cc0000;
}

.baijia-card-nav svg {
    width: 100%;
    height: 100%;
}

.baijia-card-prev {
    left: 0;
}

.baijia-card-next {
    right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .baijia-card-carousel-wrapper {
        padding: 0 30px;
    }

    .baijia-card-nav {
        width: 30px;
        height: 30px;
    }
}
