.testimonials-section {
    padding: 9.25vh 0;
    background: linear-gradient(to bottom, #d9d9d973 0%, #ffffff 30%, #ffffff 60%, #ffffff 100%);
    position: relative;
    overflow: visible;
}

.testimonials-container {
    max-width: 72.92vw;
    margin: 0 auto;
    padding: 0 1.25vw;
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 7.41vh;
}

.testimonials-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.22vh;
    gap: 1.48vh;
}

.testimonials-badge .badge-line {
    width: 2.08vw;
    height: 0.093vh;
    background: linear-gradient(90deg, transparent, #000000, transparent);
    border-top: 0.093vh solid #000000;
}

.testimonials-badge .badge-text {
    font-size: 1.3vh;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.testimonials-title {
    font-size: 3.8vh;
    font-weight: 800;
    color: #000000;
    margin-bottom: 1.48vh;
    letter-spacing: -0.025em;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    text-align: center;
    width: 100%;
}

.testimonials-title .clients-highlight {
    color: #000000 !important;
}

.testimonials-title .green-dot {
    color: #b3ce3a !important;
}

.testimonials-subtitle {
    font-size: 1.8vh;
    color: #545454;
    max-width: 26.04vw;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonials-marquee {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0vh;
    margin-bottom: 5.56vh;
    overflow: hidden;
}

.testimonials-marquee::before,
.testimonials-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5.21vw;
    z-index: 10;
    pointer-events: none;
}

.testimonials-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 55%, transparent 100%);
}

.testimonials-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 55%, transparent 100%);
}

.testimonials-row {
    position: relative;
    height: 26.37vh;
    overflow: hidden;
    contain: layout style paint;
}

.scrolling-content {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 2.22vh;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
    contain: layout style paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 3vh;
}

.top-row .scrolling-content {
    animation-name: marqueeRight;
    animation-duration: 40s;
}

.bottom-row .scrolling-content {
    animation-name: marqueeLeft;
    animation-duration: 40s;
}

@keyframes marqueeRight {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0%, 0, 0); }
}

@keyframes marqueeLeft {
    0% { transform: translate3d(0%, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.testimonials-row .testimonial-card {
    flex: 0 0 18.75vw;
}

.testimonials-row:hover .scrolling-content {
    animation-play-state: paused;
}

.testimonials-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.75rem;
    overflow: hidden;
    align-items: stretch;
}

.testimonials-grid::before,
.testimonials-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5.21vw;
    z-index: 10;
    pointer-events: none;
}

.testimonials-grid::before {
    left: 0;
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

.testimonials-grid::after {
    right: 0;
    background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

.testimonial-card {
    background: white;
    border-radius: 1.48vh;
    padding: 1.85vh 1.04vw;
    box-shadow: 0 0.185vh 1.11vh rgba(0, 0, 0, 0.08), 0 0.093vh 0 rgba(255, 255, 255, 0.9) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 0.093vh solid rgba(0, 0, 0, 0.06);
    break-inside: avoid;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    min-height: 16.67vh;
    min-width: 12.5vw;
    max-height: 19.26vh;
    contain: layout style paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translate3d(0, -0.37vh, 0);
    box-shadow: 0 0.74vh 2.22vh rgba(0, 0, 0, 0.12), 0 0.093vh 0 rgba(255, 255, 255, 0.95) inset;
    border-color: rgba(74, 93, 35, 0.15);
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-content {
    font-size: 1.33vh;
    line-height: 1.5;
    color: var(--gray-700);
    margin-bottom: 1.48vh;
    position: relative;
    font-weight: 400;
    display: -webkit-box;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    z-index: 2;
    padding-bottom: 0.37vh;
}

.testimonial-content::before {
    content: '"';
    font-size: 3.7vh;
    color: rgba(74, 93, 35, 0.15);
    position: absolute;
    top: -1.11vh;
    left: -0.56vw;
    font-family: serif;
    line-height: 1;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.26vh;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.185vh;
}

.author-title {
    font-size: 1.11vh;
    color: var(--gray-500);
    font-weight: 400;
}

.author-profile {
    width: 5vh;
    height: 5vh;
    border-radius: 0;
    overflow: hidden;
    border: none;
    flex-shrink: 0;
    position: relative;
}

.author-profile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.author-profile .avatar-fallback {
    display: none;
}

.author-profile.avatar-fallback-visible .avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.11vh;
    font-weight: 700;
    color: #0B1220;
    background: #E5E7EB;
}

.testimonials-footer {
    text-align: center;
}

.see-all-reviews {
    display: inline-flex;
    align-items: center;
    gap: 0.74vh;
    color: #000000;
    text-decoration: none;
    font-size: 1.41vh;
    font-weight: 600;
    padding: 1.11vh 1.25vw;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1.48vh;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: 0 0.185vh 0.74vh rgba(0, 0, 0, 0.06);
}

.see-all-reviews:hover {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-0.185vh);
    box-shadow: 0 0.56vh 1.48vh rgba(0, 0, 0, 0.1);
}

.see-all-reviews svg {
    width: 1.48vh;
    height: 1.48vh;
    transition: transform 0.3s ease;
}

.see-all-reviews:hover svg {
    transform: translateX(0.185vh);
}

.testimonial-card:focus-visible,
.see-all-reviews:focus-visible {
    outline: 0.185vh solid #4A5D23;
    outline-offset: 0.37vh;
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 3.7vh 0;
    }

    .testimonials-container {
        padding: 0 0.52vw;
    }

    .testimonials-title {
        font-size: 2.5vh !important;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .testimonials-title::before,
    .testimonials-title::after {
        max-width: 1.25rem;
    }

    .testimonials-subtitle {
        font-size: 1.2vh !important;
        max-width: 80vw;
    }

    .testimonials-header {
        margin-bottom: 3.24vh;
    }

    .testimonials-grid {
        gap: 0.93vh;
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-row {
        height: auto;
        min-height: 150px !important;
    }

    .top-row .scrolling-content {
        animation-duration: 15s;
    }

    .bottom-row .scrolling-content {
        animation-duration: 15s;
    }

    .testimonial-card {
        padding: 0.93vh;
        border-radius: 1.48vh;
        min-height: 8.89vh;
        min-width: 6.25vw;
        max-height: 13.33vh;
    }

    .testimonial-card:hover {
        transform: translate3d(0, 0, 0);
    }

    .testimonial-content {
        font-size: 1.04vh;
        margin-bottom: 0.74vh;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .author-name {
        font-size: 0.96vh;
    }

    .author-title {
        font-size: 0.81vh;
    }

    .author-profile {
        width: 3.5vh;
        height: 3.5vh;
    }

    .see-all-reviews {
        padding: 1.48vh 2.5vw;
        font-size: 1.33vh;
        min-width: 35vw;
        justify-content: center;
        display: inline-flex;
    }

    .testimonials-row:hover .scrolling-content {
        animation-play-state: running;
    }
}

/* Mobile Landscape (Horizontal) - Testimonials */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 900px) {
    .testimonials-section {
        padding: 2vh 0 !important;
    }

    .testimonials-container {
        max-width: 95vw !important;
        padding: 0 1vw !important;
    }

    .testimonials-section .testimonials-header {
        margin-bottom: 1.5vh !important;
    }

    .testimonials-section .testimonials-badge {
        margin-bottom: 0.6vh !important;
        gap: 0.6vw !important;
    }

    .testimonials-section .testimonials-badge .badge-line {
        width: 1.2vw !important;
        height: 0.08vh !important;
    }

    .testimonials-section .testimonials-badge .badge-text {
        font-size: 0.9vh !important;
    }

    .testimonials-section .testimonials-title,
    body .testimonials-section .testimonials-title {
        font-size: 2.2vh !important;
        margin-bottom: 0.8vh !important;
    }

    .testimonials-section .testimonials-subtitle,
    body .testimonials-section .testimonials-subtitle {
        font-size: 1.4vh !important;
        max-width: 90vw !important;
        margin-bottom: 5vh !important;
    }

    .testimonials-section .testimonials-marquee {
        margin-top: 2vh !important;
    }

    .testimonials-section .testimonials-grid {
        margin-top: 2vh !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .testimonial-card:hover {
        transform: none;
    }

    .testimonial-card::before {
        display: none;
    }

    .see-all-reviews:hover {
        transform: none;
    }

    .see-all-reviews:hover svg {
        transform: none;
    }
}
