.sfc-8eb014ea-wrapper {
    perspective: 1000px;
    width: 100%;
}

.sfc-8eb014ea-flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px; /* Default, overridden by Elementor settings */
    position: relative;
    cursor: pointer;
}

.sfc-8eb014ea-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

/* Hover Trigger */
.sfc-8eb014ea-flip-card.sfc-8eb014ea-trigger-hover:hover .sfc-8eb014ea-flip-card-inner,
.sfc-8eb014ea-flip-card.sfc-8eb014ea-trigger-hover:focus .sfc-8eb014ea-flip-card-inner {
    transform: rotateY(180deg);
}

/* Click Trigger (using focus within or active) */
.sfc-8eb014ea-flip-card.sfc-8eb014ea-trigger-click:active .sfc-8eb014ea-flip-card-inner,
.sfc-8eb014ea-flip-card.sfc-8eb014ea-trigger-click:focus .sfc-8eb014ea-flip-card-inner {
    transform: rotateY(180deg);
}

/* Front & Back Setup */
.sfc-8eb014ea-front,
.sfc-8eb014ea-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px; /* Default */
    overflow: hidden;
}

/* Front Styling */
.sfc-8eb014ea-front {
    background-color: #f8f9fa;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sfc-8eb014ea-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.sfc-8eb014ea-front-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    text-align: left;
}

.sfc-8eb014ea-front-title {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

/* Back Styling */
.sfc-8eb014ea-back {
    background-color: #0f172a;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sfc-8eb014ea-back-inner {
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

.sfc-8eb014ea-back-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.75rem;
    color: #fff;
}

.sfc-8eb014ea-back-desc {
    font-size: 1rem;
    line-height: 1.5;
    color: #e2e8f0;
}
