/* ================================
   Testimonials Section - Black/Gold Branding
   ================================ */

.testimonials-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.5) 0%, rgba(0, 0, 51, 0.5) 100%);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtle ambient glow - matching brand gradient */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(211, 47, 47, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 51, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    position: relative;
    z-index: 1;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 32px;
}

.testimonials-header h2 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: #FFD700; /* Gold - brand accent */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(255, 215, 0, 0.3);
}

.testimonials-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.testimonials-viewport {
    position: relative;
    overflow: hidden;
    padding: 24px 0;
}

/* Fade edges with black not red */
.testimonials-viewport::before,
.testimonials-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-viewport::before {
    left: 0;
    background: linear-gradient(to right, rgba(211, 47, 47, 0.5), transparent);
}

.testimonials-viewport::after {
    right: 0;
    background: linear-gradient(to left, rgba(211, 47, 47, 0.5), transparent);
}

.testimonials-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    animation: scrollTestimonials 40s linear infinite;
    width: max-content;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    background: #ffffff; /* Clean white card */
    border: 1px solid rgba(0, 0, 0, 0.06); /* Subtle border */
    border-radius: 12px;
    padding: 24px;
    width: 300px;
    min-height: 200px; /* Fixed height for equal cards */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover lift effect */
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.2); /* Gold accent on hover */
}

.testimonial-stars {
    color: #FFD700; /* Gold stars - brand accent */
    font-size: 0.95rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: #333;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Max 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 12px;
}

.testimonial-author strong {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: #1a1a1a;
    font-weight: 700;
}

.testimonial-author span {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.55);
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Pause animation on hover */
.testimonials-track:hover {
    animation-play-state: paused;
}

/* Mobile */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 48px 0;
    }

    .testimonials-track {
        gap: 16px;
    }

    .testimonial-card {
        width: 260px;
        padding: 20px;
        min-height: 180px;
    }

    .testimonial-text {
        font-size: 0.8rem;
    }

    .testimonials-viewport::before,
    .testimonials-viewport::after {
        width: 60px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-card {
        width: 280px;
    }
}
