/* eBusiness client showcase carousel */
#client-showcase {
    --showcase-blue: #004aad;
    --showcase-ink: #0f172a;
    --showcase-muted: #667085;
    --showcase-border: #e7eaf0;
    overflow: hidden;
}

.client-showcase-shell {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
}

.client-showcase-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 12px 6px 38px;
    margin: 0 -6px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.client-showcase-track::-webkit-scrollbar {
    display: none;
}

.client-showcase-track.is-short {
    justify-content: center;
}

.client-showcase-slide {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.client-showcase-item {
    height: 100%;
    background: #fff;
    border: 1px solid var(--showcase-border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.client-showcase-item:hover {
    transform: translateY(-4px);
    border-color: #d8dde7;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
}

.client-showcase-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 255px;
    padding: 28px 20px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 20% 8%, rgba(0, 74, 173, .09), transparent 34%),
        linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
    overflow: hidden;
}

/* Real-world ID-1 / bank-card proportions: 85.6 × 53.98 mm. */
.bold-card-stage {
    width: min(100%, 340px);
    perspective: 1200px;
}

.bold-card-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 85.6 / 53.98;
    overflow: hidden;
    border-radius: 17px;
    background: #fff;
    transform: rotateX(2deg) rotateY(-4deg) rotateZ(-1deg);
    transform-origin: center;
    box-shadow:
        0 30px 46px rgba(15, 23, 42, .22),
        0 10px 16px rgba(15, 23, 42, .14),
        0 1px 0 rgba(255, 255, 255, .9) inset;
    transition: transform .3s ease, box-shadow .3s ease;
}

.client-showcase-item:hover .bold-card-frame {
    transform: rotateX(0deg) rotateY(-1deg) rotateZ(0deg) translateY(-2px);
    box-shadow:
        0 34px 52px rgba(15, 23, 42, .24),
        0 12px 18px rgba(15, 23, 42, .12);
}

.bold-card-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(118deg,
        rgba(255, 255, 255, .16) 0%,
        rgba(255, 255, 255, .03) 36%,
        rgba(255, 255, 255, 0) 55%,
        rgba(255, 255, 255, .08) 100%);
    mix-blend-mode: screen;
}

.bold-card-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eduuka-browser {
    width: min(100%, 350px);
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 46px rgba(15, 23, 42, .16), 0 8px 16px rgba(15, 23, 42, .08);
    transform: rotateY(2deg) rotateX(1deg);
    transition: transform .3s ease, box-shadow .3s ease;
}

.client-showcase-item:hover .eduuka-browser {
    transform: rotateY(0) rotateX(0) translateY(-2px);
}

.eduuka-browser-bar {
    height: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    background: #f8fafc;
    border-bottom: 1px solid #e7eaf0;
}

.eduuka-browser-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cbd5e1;
}

.eduuka-browser-screen {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #fff;
}

.eduuka-browser-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.client-showcase-copy {
    padding: 20px 4px 6px;
}

.client-showcase-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--showcase-blue);
}

.client-showcase-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.22;
    font-weight: 700;
    color: var(--showcase-ink);
}


.client-showcase-title {
    position: relative;
}

.showcase-verified-badge {
    color: #1D9BF0;
    font-size: 0.55em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    margin-left: .22em;
    position: relative;
    top: -0.35em;
}

.client-showcase-button {
    display: flex;
    width: fit-content;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: #004aad;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.client-showcase-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 74, 173, .18);
}

.client-showcase-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--showcase-muted);
}

.client-showcase-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.client-showcase-control {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid #dfe4ec;
    background: #fff;
    color: var(--showcase-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.client-showcase-control:hover,
.client-showcase-control:focus-visible {
    background: var(--showcase-blue);
    border-color: var(--showcase-blue);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.client-showcase-control svg {
    width: 20px;
    height: 20px;
}

.client-showcase-control[data-carousel-toggle] svg[data-icon-play] {
    display: none;
}

.client-showcase-control[data-carousel-toggle].is-paused svg[data-icon-pause] {
    display: none;
}

.client-showcase-control[data-carousel-toggle].is-paused svg[data-icon-play] {
    display: block;
}

@media (max-width: 1023px) {
    .client-showcase-slide {
        flex-basis: calc((100% - 22px) / 2);
    }

    .client-showcase-track.is-short {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .client-showcase-track {
        gap: 14px;
        padding-left: 2px;
        padding-right: 32px;
        scroll-padding-left: 2px;
    }

    .client-showcase-slide {
        flex-basis: min(88vw, 348px);
    }

    .client-showcase-item {
        border-radius: 18px;
        padding: 14px;
    }

    .client-showcase-visual {
        min-height: 220px;
        padding: 24px 16px;
        border-radius: 14px;
    }

    .bold-card-frame,
    .eduuka-browser {
        transform: none;
    }

    .client-showcase-copy {
        padding: 18px 2px 5px;
    }

    .client-showcase-title {
        font-size: 22px;
    }

    .client-showcase-controls {
        justify-content: flex-start;
    }

    .client-showcase-control[data-carousel-toggle] {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-showcase-track {
        scroll-behavior: auto;
    }

    .client-showcase-item,
    .bold-card-frame,
    .eduuka-browser,
    .client-showcase-control {
        transition: none;
    }
}


/* Reused verification badge styling from BOLD Card templates */
.client-showcase-title {
    display: block;
}

.verified-badge {
    color: #1D9BF0;
    font-size: 0.6em;
    line-height: 1;
}

.verified-badge--corner {
    position: absolute;
    right: -1.1em;
    display: inline-flex;
    align-items: center;
    transform: none;
}