/* Card container using 3D perspective */
.cfb-3d9b5f14-container {
    perspective: 1000px;
    width: 100%;
}

.cfb-3d9b5f14-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cfb-3d9b5f14-container:hover .cfb-3d9b5f14-card,
.cfb-3d9b5f14-container.cfb-flipped .cfb-3d9b5f14-card {
    transform: rotateY(180deg);
}

.cfb-3d9b5f14-front,
.cfb-3d9b5f14-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 12px;
}

.cfb-3d9b5f14-back {
    transform: rotateY(180deg);
}

.cfb-3d9b5f14-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.cfb-3d9b5f14-front-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.cfb-3d9b5f14-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
}

.cfb-3d9b5f14-front-title {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.cfb-3d9b5f14-back-title {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.cfb-3d9b5f14-back-desc {
    margin: 0 0 20px 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

.cfb-3d9b5f14-button-wrapper {
    margin-top: 10px;
}

.cfb-3d9b5f14-button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

/* Mobile Friendly Behavior: Always show Back Side */
@media (max-width: 767px) {
    .cfb-3d9b5f14-container.cfb-3d9b5f14-mobile-back-only .cfb-3d9b5f14-card {
        transform: rotateY(180deg) !important;
        transition: none !important;
    }
}
