/* Flip Card Slider (orbisk/flip-card-slider + orbisk/flip-card-slider-item) */

/* In the VB canvas (no JS) every card is shown in a scrollable row. The
   clipping + edge fade is only added once the frontend JS is running. */
.orbisk_flip_card_slider {
    width: 100%;
    overflow-x: auto;
}

.orbisk_flip_card_slider.is-animating {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.orbisk-fcs-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    padding: 4px 0;
    will-change: transform;
}

/* Frontend only: vertical page scroll still works on touch, horizontal
   movement belongs to the drag handler. */
.orbisk_flip_card_slider.is-animating .orbisk-fcs-track {
    touch-action: pan-y;
    cursor: grab;
}

.orbisk_flip_card_slider.is-dragging .orbisk-fcs-track {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Card (orbisk/flip-card-slider-item) ── */

.orbisk_flip_card_slider_item {
    flex: 0 0 315px;
    width: 315px;
    max-width: 315px;
    box-sizing: border-box;
    display: flex;
    padding: 0;
    background: none;
    perspective: 1400px;
}

/* Equal heights: the track stretches every card to the tallest one, and each
   layer below passes that height down to the faces (so a card that grows —
   e.g. a long back text — makes all the others follow). */
.orbisk_flip_card_slider_item {
    align-self: stretch;
    height: auto;
}

.orbisk_flip_card_slider_item > *:not(style):not(script),
.orbisk_flip_card_slider_item .et_pb_module_inner {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.orbisk-fcs-card {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.orbisk-fcs-card:focus-visible .orbisk-fcs-face {
    box-shadow: 0 0 0 3px #B5E37C;
}

/* Both faces share one grid cell, so the card is as tall as its taller
   face (and every card matches the tallest card via the track's stretch). */
.orbisk-fcs-inner {
    flex: 1 1 auto;
    display: grid;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.orbisk-fcs-card.is-flipped .orbisk-fcs-inner {
    transform: rotateY(180deg);
}

.orbisk-fcs-face {
    grid-area: 1 / 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 16px;
    background-color: #FFFFFF;
    border-radius: 24px;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}

.orbisk-fcs-back {
    transform: rotateY(180deg);
    padding: 32px 16px 16px;
}

/* The hidden side must never catch clicks meant for the visible one. */
.orbisk-fcs-card:not(.is-flipped) .orbisk-fcs-back,
.orbisk-fcs-card.is-flipped .orbisk-fcs-front {
    pointer-events: none;
}

.orbisk-fcs-front-image-box {
    position: relative;
    height: 164px;
    overflow: hidden;
    border-radius: 16px;
    flex: 0 0 auto;
}

.orbisk-fcs-front-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}

.orbisk-fcs-front-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 52px;
    max-width: 80%;
    width: auto;
    object-fit: contain;
    -webkit-user-drag: none;
}

.orbisk-fcs-back-logo {
    display: block;
    max-width: 100%;
    max-height: 28px;
    margin: 0 0 16px;
    object-fit: contain;
    object-position: left center;
    -webkit-user-drag: none;
}

.orbisk-fcs-front-title,
.orbisk-fcs-back-title {
    display: block;
    margin: 16px 0 8px;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    color: #13382A;
}

.orbisk-fcs-back-title {
    margin-top: 0;
}

.orbisk-fcs-front-text,
.orbisk-fcs-back-text {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
    color: #666666;
    overflow-wrap: break-word;
    word-break: break-word;
}

.orbisk-fcs-front-text p,
.orbisk-fcs-back-text p {
    margin: 0 0 8px;
    padding: 0;
}

.orbisk-fcs-front-text p:last-child,
.orbisk-fcs-back-text p:last-child {
    margin-bottom: 0;
}

/* ── Arrow link (same on both faces) ── */

.orbisk-fcs-arrow-row {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 12px;
}

.orbisk-fcs-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ECF4EC;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

/* Same arrow as the other sliders: the path points left, so flip it. */
.orbisk-fcs-arrow svg {
    transform: scaleX(-1);
}

.orbisk-fcs-arrow svg path {
    stroke: #13382A;
    transition: stroke 0.2s ease;
}

/* Only the arrow itself reacts to hover — it's the one thing that links out. */
.orbisk-fcs-arrow:hover,
.orbisk-fcs-arrow:focus-visible {
    background-color: #004737;
}

.orbisk-fcs-arrow:hover svg path,
.orbisk-fcs-arrow:focus-visible svg path {
    stroke: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
    .orbisk-fcs-inner {
        transition-duration: 0.01s;
    }
}

@media (max-width: 767px) {
    .orbisk-fcs-face {
        min-height: 320px;
    }
}
