/* Voice testimonials slider — homepage */
.vt-section {
    position: relative;
    margin: 3rem 0 2.5rem;
    padding: 2.5rem 0 1rem;
}

.vt-section__head {
    text-align: center;
    margin-bottom: 2rem;
}

.vt-section__badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgb(var(--main-color));
    background: rgb(var(--main-color) / 0.1);
    margin-bottom: 0.75rem;
}

.dark .vt-section__badge {
    background: rgb(var(--main-color) / 0.18);
}

.vt-section__title {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 800;
    color: rgb(var(--secondary-color));
    margin: 0 0 0.5rem;
}

.dark .vt-section__title {
    color: rgb(var(--white-color) / 0.92);
}

.vt-section__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

.dark .vt-section__subtitle {
    color: #94a3b8;
}

.vt-slider {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.vt-viewport {
    overflow: hidden;
}

.vt-track {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.vt-card {
    position: relative;
    flex: 0 0 var(--vt-slide-width, 82%);
    min-width: var(--vt-slide-width, 82%);
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #fff 0%, #fff9f6 55%, #fff5f0 100%);
    border: 1px solid rgb(var(--main-color) / 0.12);
    box-shadow: 0 18px 40px rgb(var(--main-color) / 0.08);
    overflow: hidden;
    opacity: 0.42;
    transform: scale(0.94);
    filter: saturate(0.85);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
    pointer-events: none;
}

.vt-card.is-active {
    opacity: 1;
    transform: scale(1);
    filter: none;
    pointer-events: auto;
    box-shadow: 0 18px 40px rgb(var(--main-color) / 0.12);
    z-index: 1;
}

.dark .vt-card {
    background: linear-gradient(145deg, #1e293b 0%, #1a2332 100%);
    border-color: rgb(var(--main-color) / 0.2);
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.25);
}

.vt-card__glow {
    position: absolute;
    top: -3rem;
    left: -3rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(var(--main-color) / 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.vt-audio {
    padding: 1rem 1.1rem;
    margin-top: 1.25rem;
    border-radius: 1rem;
    background: rgb(var(--main-color) / 0.06);
    border: 1px solid rgb(var(--main-color) / 0.12);
}

.vt-card__head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    direction: ltr;
}

.vt-card__identity {
    text-align: right;
    direction: rtl;
}

.vt-card__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    opacity: 0.85;
    filter: brightness(0) saturate(100%) invert(36%) sepia(28%) saturate(1200%) hue-rotate(295deg) brightness(95%) contrast(92%);
}

.dark .vt-card__icon {
    opacity: 0.92;
    filter: brightness(0) saturate(100%) invert(78%) sepia(12%) saturate(800%) hue-rotate(295deg) brightness(102%) contrast(92%);
}

.vt-audio__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    direction: ltr;
}

.dark .vt-audio {
    background: rgb(var(--main-color) / 0.1);
}

.vt-play {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, rgb(var(--main-color)), rgb(var(--secondary-color)));
    box-shadow: 0 8px 20px rgb(var(--main-color) / 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vt-play:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgb(var(--main-color) / 0.45);
}

.vt-play.is-playing {
    animation: vt-pulse 1.8s ease infinite;
}

@keyframes vt-pulse {
    0%, 100% { box-shadow: 0 8px 20px rgb(var(--main-color) / 0.35); }
    50% { box-shadow: 0 8px 28px rgb(var(--main-color) / 0.55); }
}

.vt-audio__meta {
    flex: 1;
    min-width: 0;
}

.vt-waveform-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    direction: ltr;
}

.vt-waveform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    flex: 1;
    min-width: 0;
    height: 2.25rem;
    cursor: pointer;
    touch-action: none;
    direction: ltr;
}

.vt-waveform__bar {
    flex: 1 1 3px;
    max-width: 4px;
    min-height: 4px;
    height: var(--bar-h, 40%);
    border-radius: 999px;
    background: rgb(var(--main-color) / 0.18);
    transition: background 0.12s ease, transform 0.12s ease;
}

.vt-waveform__bar.is-played {
    background: rgb(var(--main-color));
}

.vt-waveform.is-playing .vt-waveform__bar.is-played {
    animation: vt-bar-pulse 1.1s ease-in-out infinite;
    animation-delay: calc(var(--bar-i, 0) * 35ms);
}

@keyframes vt-bar-pulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.12); }
}

.vt-time-current {
    flex-shrink: 0;
    min-width: 2.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.dark .vt-time-current {
    color: #94a3b8;
}

.vt-audio__el {
    display: none;
}

.vt-quote {
    position: relative;
    margin: 0 0 1rem;
    padding: 0;
}

.vt-quote__mark {
    position: absolute;
    top: -0.25rem;
    left: 0;
    opacity: 0.1;
    color: rgb(var(--main-color));
}

.vt-quote p {
    margin: 0;
    padding-left: 0.25rem;
    font-size: 0.95rem;
    line-height: 2;
    color: #334155;
    text-align: justify;
}

.dark .vt-quote p {
    color: #cbd5e1;
}

.vt-card__name {
    display: block;
    font-size: 0.95rem;
    color: rgb(var(--secondary-color));
}

.dark .vt-card__name {
    color: rgb(var(--white-color) / 0.9);
}

.vt-card__child {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.dark .vt-card__child {
    color: #94a3b8;
}

.vt-nav {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgb(var(--main-color) / 0.2);
    border-radius: 50%;
    background: #fff;
    color: rgb(var(--main-color));
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.vt-nav:hover {
    background: rgb(var(--main-color) / 0.08);
    transform: scale(1.05);
}

.dark .vt-nav {
    background: #1e293b;
    border-color: rgb(var(--main-color) / 0.35);
}

.vt-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.vt-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgb(var(--main-color) / 0.25);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.vt-dot.is-active {
    width: 1.75rem;
    background: rgb(var(--main-color));
}

@media (min-width: 1024px) {
    .vt-section {
        margin: 2rem auto 1.75rem;
        padding: 1.5rem 0 0.75rem;
        max-width: 52rem;
    }

    .vt-section__head {
        margin-bottom: 1.25rem;
    }

    .vt-section__title {
        font-size: 1.35rem;
    }

    .vt-section__subtitle {
        font-size: 0.88rem;
    }

    .vt-card {
        padding: 1.15rem 1.1rem 1rem;
        border-radius: 1.15rem;
        box-shadow: 0 10px 24px rgb(var(--main-color) / 0.07);
    }

    .vt-card__head {
        margin-bottom: 0.65rem;
    }

    .vt-card__icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .vt-card__name {
        font-size: 0.85rem;
    }

    .vt-card__child {
        font-size: 0.72rem;
    }

    .vt-quote {
        margin-bottom: 0.75rem;
    }

    .vt-quote p {
        font-size: 0.82rem;
        line-height: 1.75;
    }

    .vt-audio {
        padding: 0.75rem 0.85rem;
        margin-top: 0.85rem;
        border-radius: 0.85rem;
    }

    .vt-play {
        width: 2.65rem;
        height: 2.65rem;
    }

    .vt-waveform {
        height: 1.85rem;
    }

    .vt-nav {
        width: 2.35rem;
        height: 2.35rem;
    }

    .vt-slider {
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .vt-slider {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .vt-nav {
        display: none;
    }

    .vt-card {
        padding: 1.25rem 1rem 1rem;
    }

    .vt-quote p {
        font-size: 0.88rem;
        line-height: 1.9;
    }
}
