/* Carousel Layout & Wrapper */
.sppb-addon-flip-card-carousel .carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 60px; /* Padding creates space for external arrows */
    margin: 0 auto;
}

.sppb-addon-flip-card-carousel .swiper {
    width: 100%;
    padding: 20px 0; 
}

/* Custom Swiper Navigation Arrows */
.sppb-addon-flip-card-carousel .swiper-button-next,
.sppb-addon-flip-card-carousel .swiper-button-prev {
    color: #1e293b;
    background: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    
    transition: all 0.2s ease;
}

.sppb-addon-flip-card-carousel .swiper-button-next:hover,
.sppb-addon-flip-card-carousel .swiper-button-prev:hover {
 
}

.sppb-addon-flip-card-carousel .swiper-button-next:after,
.sppb-addon-flip-card-carousel .swiper-button-prev:after {
    font-size: 24px;
    font-weight: 800;
}

.sppb-addon-flip-card-carousel .swiper-button-prev { left: 0; }
.sppb-addon-flip-card-carousel .swiper-button-next { right: 0; }

/* Base Card Styling */
.sppb-addon-flip-card-carousel .flip-card {
    background-color: transparent;
    width: 100%;
    aspect-ratio: 4 / 5;
}

/* User-provided Button Class */
.sppb-addon-flip-card-carousel .flip-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sppb-addon-flip-card-carousel .flip-card-btn:hover {
    background-color: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
}

/* DESKTOP & TABLET VIEW (Cards flip on hover) */
@media (min-width: 769px) {
    .sppb-addon-flip-card-carousel .flip-card {
        perspective: 1000px;
    }

    .sppb-addon-flip-card-carousel .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
        transform-style: preserve-3d;
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }

    .sppb-addon-flip-card-carousel .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    .sppb-addon-flip-card-carousel .flip-card-front, 
    .sppb-addon-flip-card-carousel .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 12px;
        overflow: hidden;
    }

    .sppb-addon-flip-card-carousel .flip-card-front {
        background-color: #e2e8f0;
    }

    .sppb-addon-flip-card-carousel .flip-card-front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .sppb-addon-flip-card-carousel .flip-card-back {
        background-color: #faa61aef;
        transform: rotateY(180deg);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        border: 1px solid #e2e8f0;
    }
}

/* MOBILE VIEW (No flip, card content stacked vertically) */
@media (max-width: 768px) {
    .sppb-addon-flip-card-carousel .carousel-wrapper {
        padding: 0 44px;
    }

    .sppb-addon-flip-card-carousel .flip-card { height: auto; }

    .sppb-addon-flip-card-carousel .flip-card-inner {
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .sppb-addon-flip-card-carousel .flip-card-front {
        width: 100%;
        background-color: #e2e8f0;
    }

    .sppb-addon-flip-card-carousel .flip-card-front img {
        width: 100%;
        height: 100%;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        display: block;
    }

    .sppb-addon-flip-card-carousel .flip-card-back {
        padding: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ffffff;
        border-top: 1px solid #f1f5f9;
    }
}