/**
 * Testimonials — dual-row marquee + Trustpilot-style cards
 */

.test-marquee-sec {
    background: linear-gradient(180deg, #f8fcfa 0%, #ffffff 40%, #f3faf6 100%);
    overflow: hidden;
}

.test-marquee-head {
    align-items: stretch;
    margin-bottom: 56px;
    padding: 0;
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 252, 248, 0.95) 50%, rgba(255, 255, 255, 0.99) 100%); */
    /* border-radius: 24px; */
    /* border: 1px solid rgba(67, 182, 73, 0.18); */
    /* box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 16px 48px rgba(19, 66, 39, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.04); */
    position: relative;
    overflow: hidden;
}

.test-marquee-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    /* background: linear-gradient(180deg, #6ee87a 0%, #43b649 40%, #15572a 100%); */
    border-radius: 24px 0 0 24px;
    display: none;
}

.test-marquee-head::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 42%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(0, 182, 122, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.test-marquee-head__copy {
    position: relative;
    z-index: 1;
    padding-left: 12px;
}

.test-marquee-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #15572a;
    margin-bottom: 10px;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    background: rgba(67, 182, 73, 0.1);
    border: 1px solid rgba(67, 182, 73, 0.22);
    margin-right: 20px;
}

.test-marquee-eyebrow .fa {
    font-size: 14px;
    opacity: 0.9;
}

.test-marquee-label {
    font-family: "Mark Pro", sans-serif !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00b67a;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 182, 122, 0.25);
    display: inline-block;
    min-width: 120px;
}

.test-marquee-title {
    font-family: "Mark Pro", sans-serif !important;
    font-size: clamp(26px, 3.6vw, 38px);
    line-height: 1.18;
    font-weight: 900;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    max-width: 620px;
}

.test-marquee-title__accent {
    display: block;
    background: linear-gradient(105deg, #15572a 0%, #43b649 45%, #00b67a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.test-marquee-title__rest {
    display: block;
    color: #0f3d1f;
}

.test-marquee-lead {
    font-size: 17px;
    line-height: 1.6;
    color: #5c5856;
    margin: 0 0 18px;
    max-width: 560px;
}

.test-marquee-trust-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.test-marquee-trust-strip li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #2d4a38;
}

.test-marquee-trust-strip .fa {
    color: #43b649;
    font-size: 15px;
}

/* Trustpilot CTA card — right column */
.test-marquee-cta-card {
    position: relative;
    z-index: 1;
    padding: 22px 22px 24px;
    border-radius: 18px;
    /* background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 250, 244, 0.98) 100%); */
    /* border: 1px solid rgba(0, 182, 122, 0.22); */
    /* box-shadow: 0 10px 32px rgba(0, 182, 122, 0.12); */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.test-marquee-cta-card__label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f3d1f;
}

.test-marquee-cta-card__stars {
    color: #00b67a;
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 16px;
    line-height: 1;
}

.test-marquee-cta-card__stars .fa-star {
    filter: drop-shadow(0 2px 4px rgba(0, 182, 122, 0.25));
}

.test-marquee-cta-card .test-marquee-tp-btn {
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
}

.test-marquee-cta-card .test-marquee-tp-note {
    text-align: center;
    margin-top: 12px;
    line-height: 1.45;
    display: none;
}

.test-marquee-tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00b67a 0%, #00a06c 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(0, 182, 122, 0.35);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.test-marquee-tp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 182, 122, 0.45);
    color: #fff !important;
}

.test-marquee-tp-btn .fa-external-link {
    font-size: 13px;
    opacity: 0.9;
}

.test-marquee-tp-btn__icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.test-marquee-tp-btn__icon::before,
.test-marquee-tp-btn__icon::after {
    content: "";
    position: absolute;
    background: #00b67a;
    border-radius: 1px;
}

.test-marquee-tp-btn__icon::before {
    width: 14px;
    height: 3px;
    top: 9px;
    left: 6px;
    box-shadow: 0 -5px 0 #00b67a, 0 5px 0 #00b67a;
}

.test-marquee-tp-btn__icon::after {
    width: 3px;
    height: 14px;
    top: 6px;
    left: 12px;
}

.test-marquee-tp-note {
    font-size: 12px;
    color: #5c5856;
    margin: 10px 0 0;
}

.test-marquee-viewport {
    position: relative;
    padding: 8px 0 12px;
}

.test-marquee-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 3;
    pointer-events: none;
}

.test-marquee-edge--left {
    left: 0;
    background: linear-gradient(90deg, #f8fcfa 0%, transparent 100%);
}

.test-marquee-edge--right {
    right: 0;
    background: linear-gradient(270deg, #f8fcfa 0%, transparent 100%);
}

.test-marquee-row {
    overflow: hidden;
    margin-bottom: 18px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
}

.test-marquee-row:hover .test-marquee-track {
    animation-play-state: paused;
}

.test-marquee-row:last-child {
    margin-bottom: 0;
}

.test-marquee-track {
    display: flex;
    width: max-content;
    gap: 0;
}

.test-marquee-group {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
}

.test-marquee-row--ltr .test-marquee-track {
    animation: test-marquee-scroll 56s linear infinite;
}

/* Same track math, reversed = right-to-left motion */
.test-marquee-row--rtl .test-marquee-track {
    animation: test-marquee-scroll 52s linear infinite reverse;
}

@keyframes test-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .test-marquee-row--ltr .test-marquee-track,
    .test-marquee-row--rtl .test-marquee-track {
        animation: none !important;
    }

    .test-marquee-track {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .test-marquee-group[aria-hidden="true"] {
        display: none;
    }

    .test-marquee-group {
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
    }
}

/* Cards */
.test-marquee-card {
    flex: 0 0 auto;
    width: 340px;
    max-width: 85vw;
    padding: 22px 22px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(7, 7, 7, 0.06);
    box-shadow:
        0 4px 14px rgba(19, 66, 39, 0.06),
        0 16px 36px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
}

.test-marquee-card__tp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.test-marquee-card__tp-label {
    font-size: 14px;
    font-weight: 800;
    color: #00b67a;
    letter-spacing: 0.02em;
    font-family: "Mark Pro", sans-serif !important;
}

.test-marquee-card__stars {
    color: #00b67a;
    font-size: 13px;
    letter-spacing: 2px;
}

.test-marquee-card__stars .fa-star {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.test-marquee-card__quote {
    flex: 1;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: #2d2d2d;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.test-marquee-card__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(67, 182, 73, 0.15);
}

.test-marquee-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43b649 0%, #15572a 100%);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: "Mark Pro", sans-serif !important;
}

.test-marquee-card__name {
    display: block;
    font-size: 15px;
    color: #070707;
    font-family: "Mark Pro", sans-serif !important;
}

.test-marquee-card__verified {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #00b67a;
    margin-top: 2px;
}

@media (max-width: 991px) {
    .test-marquee-head {
        padding: 22px 20px 26px;
    }

    .test-marquee-head__copy {
        padding-left: 8px;
        margin-bottom: 22px;
    }

    .test-marquee-cta-card {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .test-marquee-head {
        padding: 20px 16px 22px;
        border-radius: 18px;
    }

    .test-marquee-title {
        font-size: 26px;
    }

    .test-marquee-trust-strip {
        flex-direction: column;
        gap: 8px;
    }

    .test-marquee-edge {
        width: 28px;
    }
}
