/* Home page testimonials component */

.testimonials-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(40, 40, 90, 0.1) 0%, rgba(124, 76, 255, 0.05) 100%);
    border-top: 1px solid var(--glass-border);
}

.testimonials-section .section-header {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.testimonials-section .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.04rem;
    margin-bottom: 2rem;
}

.testimonials-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(124, 76, 255, 0.25);
    background: rgba(10, 8, 28, 0.48);
    padding: 1rem 0;
}

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

.testimonials-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(11, 9, 32, 0.95), rgba(11, 9, 32, 0));
}

.testimonials-marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(11, 9, 32, 0.95), rgba(11, 9, 32, 0));
}

.testimonials-track {
    display: flex;
    align-items: stretch;
    gap: 0.9rem;
    width: max-content;
    min-width: 100%;
    padding: 0 0.9rem;
    animation: testimonialsSlide 44s linear infinite;
    will-change: transform;
}

.testimonials-section.is-paused .testimonials-track {
    animation-play-state: paused;
}

.live-testimonial-card {
    width: min(340px, calc(100vw - 4.5rem));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(24, 19, 48, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.live-testimonial-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 76, 255, 0.68);
    box-shadow: 0 12px 24px rgba(10, 11, 33, 0.35);
}

.live-testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.live-testimonial-rating {
    color: #facc15;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.live-testimonial-author {
    color: var(--text-secondary);
    font-size: 0.82rem;
    white-space: nowrap;
}

.live-testimonial-text {
    margin: 0;
    color: rgba(244, 242, 252, 0.92);
    line-height: 1.52;
    font-size: 0.91rem;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-testimonial-advisor {
    display: flex;
    align-items: center;
    gap: 0.56rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.65rem;
}

.live-testimonial-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(124, 76, 255, 0.4);
}

.live-testimonial-name {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.live-testimonial-title {
    margin: 0;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.testimonials-empty {
    width: min(420px, calc(100vw - 4rem));
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(13, 10, 35, 0.8);
    padding: 1.1rem;
    color: var(--text-secondary);
}

.testimonials-pause-hint {
    margin: 0.9rem 0 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-align: right;
}

@keyframes testimonialsSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonials-marquee::before,
    .testimonials-marquee::after {
        width: 46px;
    }

    .testimonials-track {
        animation-duration: 34s;
        gap: 0.75rem;
        padding: 0 0.65rem;
    }

    .live-testimonial-card {
        width: min(300px, calc(100vw - 3rem));
        padding: 0.9rem;
    }

    .live-testimonial-text {
        font-size: 0.86rem;
        line-clamp: 5;
        -webkit-line-clamp: 5;
    }

    .testimonials-pause-hint {
        text-align: left;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .testimonials-section .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .testimonials-marquee {
        border-radius: 14px;
        padding: 0.7rem 0;
    }

    .testimonials-track {
        animation-duration: 28s;
    }

    .live-testimonial-card {
        width: min(260px, calc(100vw - 2.8rem));
        border-radius: 14px;
        padding: 0.8rem;
    }

    .live-testimonial-avatar {
        width: 30px;
        height: 30px;
    }

    .live-testimonial-name {
        font-size: 0.8rem;
    }

    .live-testimonial-title {
        font-size: 0.72rem;
    }
}
