/* ==========================================================================
   9wickets — "প্লেয়ার ভয়েস" (Player Voice) section REDESIGN v3 "Premium
   Multi-Card Rail" (loads LAST)
   --------------------------------------------------------------------------
   Supersedes v2 "Spotlight Slider" (one quote at a time) with a genuine
   multi-item carousel: 3 cards visible on desktop, 2 on tablet, ~1.15
   (peeking) on mobile. Built on native CSS scroll-snap (overflow-x + a
   scroll-snap-type track) rather than a transform-based track, so touch
   swipe / trackpad / mouse-wheel scrolling all just work natively with
   real momentum — no manual swipe math needed. player-voice-slider-v3.js
   only adds: prev/next buttons that scroll by one card, autoplay, dot
   sync, and pause on hover/focus/touch/tab-hidden.
   v2 files (player-voice.css / player-voice-slider.js) stay on disk
   untouched for rollback, same pattern as hero-v2.css/hero-v3.css.
   Scoped entirely under .vk-quotes--v3 / .vk-pv3-*.
   Markup + content: claudedocs/build/build_quotes_v3.php (post 11, widget
   located by content match on "vk-pv-slider").
   ========================================================================== */

/* v2 markup no longer present once v3 is patched in, but keep this safety
   net so nothing from the very first (pre-v2) grid can ever bleed through
   if this file and an unpatched grid ever coexist mid-deploy. */
body.vk .vk-quotes--v3 .vk-quotes__grid,
body.vk .vk-quotes--v3 .vk-pv-slider { display: none; }

body.vk .vk-pv3-slider {
    position: relative;
    max-width: 1180px;
    margin: 44px auto 0;
}

body.vk .vk-pv3-row {
    position: relative;
}

/* ---- scroll-snap track ---- */
body.vk .vk-pv3-track {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 10px 4px 30px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body.vk .vk-pv3-track::-webkit-scrollbar { display: none; }

body.vk .vk-pv3-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    box-sizing: border-box;
    /* desktop: 3 full cards visible */
    width: calc((100% - 48px) / 3);
}

/* ---- premium card ---- */
body.vk .vk-pv3-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #FFFDF6;
    border: 1px solid rgba(30, 27, 20, 0.08);
    border-radius: 22px;
    padding: 34px 26px 26px;
    box-shadow: 0 10px 30px rgba(30, 27, 20, 0.07);
    transition: transform .35s cubic-bezier(.2, .7, .15, 1), box-shadow .35s ease, border-color .35s ease;
}
body.vk .vk-pv3-card:hover,
body.vk .vk-pv3-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(30, 27, 20, 0.14);
    border-color: rgba(200, 134, 11, 0.28);
}

body.vk .vk-pv3-mark {
    position: absolute;
    top: -16px;
    left: 26px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD34D 0%, #F7B500 48%, #E8940A 100%);
    color: #1A1813;
    box-shadow: 0 8px 18px -6px rgba(200, 134, 11, 0.55);
}
body.vk .vk-pv3-mark svg { width: 18px; height: 18px; }

body.vk .vk-pv3-quote {
    flex: 1 0 auto;
    margin: 8px 0 18px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.7;
    color: #1A1813;
}

body.vk .vk-pv3-rating {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 16px;
    color: #F7B500;
}
body.vk .vk-pv3-rating svg { width: 13px; height: 13px; }

body.vk .vk-pv3-who {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(30, 27, 20, 0.08);
}
body.vk .vk-pv3-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 199, 44, 0.24), rgba(255, 199, 44, 0.10));
    border: 1px solid rgba(200, 134, 11, 0.24);
    color: #B5830F;
}
body.vk .vk-pv3-avatar svg { width: 22px; height: 22px; }
body.vk .vk-pv3-meta { min-width: 0; }
body.vk .vk-pv3-meta strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #1A1813;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.vk .vk-pv3-meta small {
    display: block;
    font-size: 12px;
    color: #8A8168;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- prev/next arrow chips — same ink+gold chip language as v2/agents CTA.
        Positioned relative to .vk-pv3-row (card row only, not the dots),
        so vertical centring always matches the card height. ---- */
body.vk .vk-pv3-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    background: #1A1813;
    color: #F7B500;
    border: 0;
    cursor: pointer;
    box-shadow: 0 6px 18px -4px rgba(26, 24, 19, 0.45);
    /* background intentionally excluded from the transition list — see
       player-voice.css v2 for why animating solid->gradient background is
       unreliable here; color/transform still animate smoothly. */
    transition: color .3s ease, transform .3s ease;
}
body.vk .vk-pv3-nav svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; }
body.vk .vk-pv3-nav:hover {
    background: var(--btn-grad, linear-gradient(135deg, #FFD34D 0%, #F7B500 48%, #E8940A 100%));
    color: #1A1813;
    transform: translateY(-50%) scale(1.08);
}
body.vk .vk-pv3-prev { left: -22px; }
body.vk .vk-pv3-next { right: -22px; }

/* ---- dots (one per testimonial — simpler & robust across the varying
        cards-per-view at each breakpoint than page-grouped dots) ---- */
body.vk .vk-pv3-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
body.vk .vk-pv3-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(30, 27, 20, 0.16);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
body.vk .vk-pv3-dot.is-active {
    width: 26px;
    background: var(--btn-grad, linear-gradient(135deg, #FFD34D 0%, #F7B500 48%, #E8940A 100%));
}

/* ---- tablet: 2 cards visible ---- */
@media (max-width: 1023px) {
    body.vk .vk-pv3-slide { width: calc((100% - 24px) / 2); }
    body.vk .vk-pv3-prev { left: 6px; }
    body.vk .vk-pv3-next { right: 6px; }
    body.vk .vk-pv3-nav { width: 40px; height: 40px; }
}

/* ---- mobile: ~1.15 cards visible (slight peek signals "swipeable");
        arrow chips are hidden here — the peeking edge + native touch swipe
        + dots are the affordance, and fixed arrow chips would otherwise sit
        on top of the peeking card at this width. ---- */
@media (max-width: 640px) {
    body.vk .vk-pv3-slider { margin-top: 32px; }
    body.vk .vk-pv3-track { padding: 6px 2px 26px; gap: 16px; }
    body.vk .vk-pv3-slide { width: 86%; }
    body.vk .vk-pv3-card { padding: 30px 22px 22px; }
    body.vk .vk-pv3-nav { display: none; }
    /* small-screen premium pass (2026-07): quote mark, quote text, star
       rating and the avatar+name "who" row are all left-aligned by design
       for the desktop 3-up rail — centre everything once cards go near
       full-width on phones so each card reads as a self-contained,
       centred testimonial rather than a left-hugging text block. */
    body.vk .vk-pv3-card { text-align: center; }
    body.vk .vk-pv3-mark { left: 50%; transform: translateX(-50%); }
    body.vk .vk-pv3-rating { justify-content: center; width: 100%; }
    body.vk .vk-pv3-who { flex-direction: column; text-align: center; gap: 6px; }
    body.vk .vk-pv3-meta strong,
    body.vk .vk-pv3-meta small { white-space: normal; overflow: visible; text-overflow: clip; }
}

/* ---- small phones: cards nearly full-width — still a small peek so the
        row still reads as swipeable, but the site-wide mobile pass asks
        for cards to read as "full width", not ~86%. ---- */
@media (max-width: 480px) {
    body.vk .vk-pv3-track { padding: 4px 2px 24px; gap: 12px; }
    body.vk .vk-pv3-slide { width: 93%; }
    body.vk .vk-pv3-card { padding: 26px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    body.vk .vk-pv3-track { scroll-behavior: auto; }
    body.vk .vk-pv3-card { transition: none; }
}
