/* ===== Baijia Banner Carousel (Swiper) ===== */
.baijia-bc-wrapper {
    position: relative;
    width: 100%;
}

/* Slide */
.baijia-bc-slide {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Background image: desktop / mobile swap via CSS custom properties */
.baijia-bc-slide[style*="--bg-desktop"] {
    background-image: var(--bg-desktop);
}

@media (max-width: 767px) {
    .baijia-bc-slide[style*="--bg-mobile"] {
        background-image: var(--bg-mobile) !important;
    }
}

/* Content */
.baijia-bc-content {
    position: relative;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

/* Entrance animation */
@keyframes baijia-bc-slideInDown {
    from {
        opacity: 0;
        transform: translate(30px, -30px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

.swiper-initialized .baijia-bc-slide .baijia-bc-content {
    opacity: 0;
}

.swiper-initialized .swiper-slide-active .baijia-bc-content {
    animation: baijia-bc-slideInDown 0.6s ease forwards;
}

.swiper-initialized .swiper-slide-active .baijia-bc-title {
    animation: baijia-bc-slideInDown 0.6s ease 0.1s forwards;
    opacity: 0;
}

.swiper-initialized .swiper-slide-active .baijia-bc-subtitle {
    animation: baijia-bc-slideInDown 0.6s ease 0.25s forwards;
    opacity: 0;
}

.swiper-initialized .swiper-slide-active .baijia-bc-buttons {
    animation: baijia-bc-slideInDown 0.6s ease 0.4s forwards;
    opacity: 0;
}

/* Title */
.baijia-bc-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    font-family: inherit;
}

.baijia-bc-title .highlight {
    font-style: italic;
    font-family: inherit;
}

/* Subtitle */
.baijia-bc-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 20px;
}

/* Buttons */
.baijia-bc-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: inherit;
}

.baijia-bc-btn {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.baijia-bc-btn--primary {
    background-color: #e67e22;
    border-color: #e67e22;
    color: #ffffff;
}

.baijia-bc-btn--secondary {
    background-color: transparent;
    border-color: #999999;
    color: #333333;
}

/* Arrows */
.baijia-bc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.baijia-bc-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.baijia-bc-arrow--prev {
    left: 20px;
}

.baijia-bc-arrow--next {
    right: 20px;
}

/* Pagination */
.baijia-bc-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.baijia-bc-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #cccccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.baijia-bc-pagination .swiper-pagination-bullet-active {
    background-color: #e67e22;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 767px) {
    .baijia-bc-title {
        font-size: 26px;
    }
    .baijia-bc-subtitle {
        font-size: 16px;
    }
    .baijia-bc-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    .baijia-bc-arrow {
        width: 36px;
        height: 36px;
    }
    .baijia-bc-arrow--prev {
        left: 10px;
    }
    .baijia-bc-arrow--next {
        right: 10px;
    }
}
