/* 3D Flip Slider Styles (v72.0) */
.hero-3d-container {
    perspective: 1500px;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    /* Match user request for white bg */
}

.hero-3d-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.5s ease;
    display: none;
    /* Default hidden */
}

/* Base state for active slide */
.hero-3d-slide.active {
    display: flex;
    transform: rotateY(0deg);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

/* State for slide leaving (flipping to left) */
.hero-3d-slide.flipping-out {
    display: flex;
    /* Keep visible during flip */
    transform: rotateY(-180deg);
    z-index: 5;
    box-shadow: -20px 0 30px rgba(0, 0, 0, 0.5);
    /* Shadow for depth */
}

/* State for slide entering (flipping from right) */
.hero-3d-slide.flipping-in-start {
    display: flex;
    transform: rotateY(180deg);
    z-index: 6;
    /* Above exit? or same? */
}

.hero-3d-slide.flipping-in-active {
    transform: rotateY(0deg);
    box-shadow: 20px 0 30px rgba(0, 0, 0, 0.5);
    /* Shadow */
    z-index: 10;
}