/* Testimonials — floating reviews + slider (v3) */
.tst {
    --tst-primary: #FF6B00;
    --tst-primary-rgb: 255, 107, 0;
    --tst-dark: #0A1628;
    --tst-dark-rgb: 10, 22, 40;
    --tst-text: #1e293b;
    --tst-text-muted: #64748b;
    --tst-bg: #ffffff;
    --tst-bg-alt: #f8fafc;
    --tst-border: rgba(10, 22, 40, 0.07);
    --tst-star: #FBBF24;

    position: relative;
    padding: 100px 0;
    background: var(--tst-bg);
    overflow: hidden;
}
.tst__inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.tst__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.tst__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(20px);
}
.tst__eyebrow-road {
    display: inline-flex;
    align-items: center;
    height: 2px;
    flex-shrink: 0;
}
.tst__eyebrow-road-line {
    display: block;
    width: 48px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #84B78F 0 8px, transparent 8px 14px);
    opacity: 0.5;
}
.tst__eyebrow-truck {
    width: 16px;
    height: 16px;
    color: #84B78F;
    flex-shrink: 0;
    margin-left: -2px;
    animation: tst-drive 3s ease-in-out infinite;
}
@keyframes tst-drive {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}
.tst__eyebrow-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #84B78F;
    white-space: nowrap;
}
.tst__title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--tst-text);
    margin: 0 0 12px;
    opacity: 0;
    transform: translateY(20px);
}
.tst__title-highlight { color: #84B78F; }
.tst__intro {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--tst-text-muted);
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
}

.tst__showcase {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}
.tst__showcase-center {
    position: relative;
    z-index: 3;
    width: 280px;
    flex-shrink: 0;
}
.tst__showcase-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(var(--tst-dark-rgb), 0.15);
    border: 4px solid var(--tst-bg);
    position: relative;
}
.tst__showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.tst__showcase-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--tst-bg);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(var(--tst-dark-rgb), 0.12);
    z-index: 5;
    white-space: nowrap;
}
.tst__showcase-badge-score {
    font-size: 28px;
    font-weight: 800;
    color: var(--tst-text);
    line-height: 1;
}
.tst__showcase-badge-info {
    display: flex;
    flex-direction: column;
}
.tst__showcase-badge-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}
.tst__showcase-badge-stars svg {
    width: 14px;
    height: 14px;
    color: var(--tst-star);
}
.tst__showcase-badge-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--tst-text-muted);
    letter-spacing: 0.3px;
}

.tst__fcard {
    position: absolute;
    z-index: 2;
    max-width: 300px;
    padding: 18px 20px;
    background: var(--tst-bg);
    border: 1px solid var(--tst-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(var(--tst-dark-rgb), 0.08);
    transition: all 0.35s ease;
}
.tst__fcard:hover {
    box-shadow: 0 16px 48px rgba(var(--tst-dark-rgb), 0.12);
    transform: translateY(-4px) !important;
}
.tst__fcard-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}
.tst__fcard-stars svg {
    width: 14px;
    height: 14px;
    color: var(--tst-star);
}
.tst__fcard-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--tst-text);
    margin: 0 0 12px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tst__fcard-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--tst-border);
}
.tst__fcard-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--tst-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--tst-primary);
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(var(--tst-primary-rgb), 0.12);
}
.tst__fcard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tst__fcard-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--tst-text);
    margin: 0;
}
.tst__fcard-source {
    font-size: 11px;
    color: var(--tst-text-muted);
    margin: 1px 0 0;
    display: flex;
    align-items: center;
    gap: 3px;
}
.tst__fcard-source svg { width: 11px; height: 11px; color: var(--tst-star); }

.tst__fcard--1 { top: 20px;    left: 0;     animation: tst-fl1 7s ease-in-out infinite; }
.tst__fcard--2 { top: 10px;    right: 0;    animation: tst-fl2 8s 1s ease-in-out infinite; }
.tst__fcard--3 { bottom: 60px; left: 20px;  animation: tst-fl3 7.5s 2s ease-in-out infinite; }
.tst__fcard--4 { bottom: 40px; right: 10px; animation: tst-fl4 8.5s 0.5s ease-in-out infinite; }
.tst__fcard--5 {
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    max-width: 240px;
    animation: tst-fl5 9s 3s ease-in-out infinite;
}

@keyframes tst-fl1 { 0%, 100% { transform: translateY(0)   rotate(0deg); }   50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes tst-fl2 { 0%, 100% { transform: translateY(0)   rotate(0deg); }   50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes tst-fl3 { 0%, 100% { transform: translateY(0)   rotate(0deg); }   50% { transform: translateY(-8px)  rotate(1.2deg); } }
@keyframes tst-fl4 { 0%, 100% { transform: translateY(0)   rotate(0deg); }   50% { transform: translateY(-14px) rotate(-0.8deg); } }
@keyframes tst-fl5 { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(calc(-50% - 10px)) translateX(6px); } }

.tst__platform {
    position: absolute;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--tst-bg);
    border: 1px solid var(--tst-border);
    box-shadow: 0 4px 16px rgba(var(--tst-dark-rgb), 0.06);
    color: var(--tst-text-muted);
}
.tst__platform svg { width: 20px; height: 20px; }
.tst__platform--google {
    top: 45%;
    right: 40px;
    animation: tst-plat 6s ease-in-out infinite;
}
.tst__platform--shield {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #84B78F;
    animation: tst-plat 7s 2s ease-in-out infinite;
}
@keyframes tst-plat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.tst__showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(var(--tst-primary-rgb), 0.04);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.tst__slider-section {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
}
.tst__slider-title {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--tst-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.tst__slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.tst__slider::-webkit-scrollbar { display: none; }

.tst__scard {
    flex: 0 0 320px;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    background: var(--tst-bg-alt);
    border: 1px solid var(--tst-border);
    border-radius: 14px;
    transition: all 0.3s ease;
}
.tst__scard:hover {
    border-color: rgba(var(--tst-primary-rgb), 0.15);
    box-shadow: 0 8px 24px rgba(var(--tst-dark-rgb), 0.06);
}
.tst__scard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(var(--tst-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--tst-primary);
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(var(--tst-primary-rgb), 0.1);
}
.tst__scard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tst__scard-body { flex: 1; min-width: 0; }
.tst__scard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.tst__scard-name { font-size: 13px; font-weight: 700; color: var(--tst-text); }
.tst__scard-stars { display: flex; gap: 1px; }
.tst__scard-stars svg { width: 12px; height: 12px; color: var(--tst-star); }
.tst__scard-text {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--tst-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tst__slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.tst__slider-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--tst-border);
    background: var(--tst-bg);
    color: var(--tst-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.tst__slider-btn:hover {
    border-color: var(--tst-primary);
    color: var(--tst-primary);
}
.tst__slider-btn svg { width: 16px; height: 16px; }
.tst__slider-dots { display: flex; gap: 6px; }
.tst__slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--tst-dark-rgb), 0.1);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tst__slider-dot--active {
    width: 24px;
    border-radius: 4px;
    background: #84B78F;
}

.tst.tst-animated .tst__eyebrow        { animation: tst-up 0.6s 0.10s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.tst.tst-animated .tst__title          { animation: tst-up 0.6s 0.20s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.tst.tst-animated .tst__intro          { animation: tst-up 0.6s 0.30s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.tst.tst-animated .tst__showcase       { animation: tst-up 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.tst.tst-animated .tst__slider-section { animation: tst-up 0.6s 0.60s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes tst-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tst--no-anim .tst__eyebrow,
.tst--no-anim .tst__title,
.tst--no-anim .tst__intro,
.tst--no-anim .tst__showcase,
.tst--no-anim .tst__slider-section {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}
.tst--no-anim .tst__fcard,
.tst--no-anim .tst__platform,
.tst--no-anim .tst__eyebrow-truck { animation: none !important; }

@media (max-width: 1024px) {
    .tst { padding: 80px 0; }
    .tst__showcase { min-height: 440px; }
    .tst__fcard--5 { display: none; }
    .tst__fcard { max-width: 260px; }
}
@media (max-width: 768px) {
    .tst { padding: 60px 0; }
    .tst__inner { padding: 0 20px; }
    .tst__showcase {
        flex-direction: column;
        min-height: auto;
        gap: 20px;
    }
    .tst__fcard {
        position: static !important;
        max-width: 100% !important;
        animation: none !important;
        transform: none !important;
    }
    .tst__showcase-center { order: -1; width: 220px; }
    .tst__platform { display: none; }
    .tst__showcase-glow { display: none; }
    .tst__scard { flex: 0 0 calc(100vw - 60px); }
}
@media (max-width: 480px) {
    .tst__inner { padding: 0 16px; }
    .tst__title { font-size: 24px; }
    .tst__scard { flex: 0 0 calc(100vw - 40px); padding: 20px 16px; }
}

.elementor-editor-active .tst__eyebrow,
.elementor-editor-active .tst__title,
.elementor-editor-active .tst__intro,
.elementor-editor-active .tst__showcase,
.elementor-editor-active .tst__slider-section {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .tst__eyebrow, .tst__title, .tst__intro,
    .tst__showcase, .tst__slider-section {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .tst__fcard, .tst__platform, .tst__eyebrow-truck { animation: none !important; }
}
