/* ── Flipcard Widget ── */

.fc-card {
    position: relative;
    perspective: 1000px;
    width: 100%;
    height: 280px; /* overridden by Elementor slider control */
}

.fc-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    /* transition set inline via data-speed */
}

.fc-front,
.fc-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center; /* overridden by Elementor alignment control */
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    /* default styles — all overridden by Elementor style controls */
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
}

.fc-back {
    background: #1a1a2e;
    color: #ffffff;
    /* transform set inline per flip direction */
}

/* ── Editor: show both faces stacked so you can edit both ── */
.elementor-editor-active .fc-card {
    height: auto !important;
    perspective: none;
}

.elementor-editor-active .fc-inner {
    transform: none !important;
    transform-style: flat;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elementor-editor-active .fc-front,
.elementor-editor-active .fc-back {
    position: relative !important;
    inset: auto;
    height: auto;
    min-height: 120px;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none !important;
}

.elementor-editor-active .fc-back::before {
    content: 'Back Face';
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 8px;
}

.elementor-editor-active .fc-front::before {
    content: 'Front Face';
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 8px;
}
