/* ============================================
   TESTIMONIALS SECTION - HORIZONTAL SCROLL
   Path: assets/css/testimonials.css
   ============================================ */

.testimonials-section {
    padding: 50px 20px;
    background: #f8fafc;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.testimonials-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1f71;
    margin-bottom: 6px;
}

.testimonials-header h2 span {
    color: #f5b800;
}

.testimonials-header p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Scrollable wrapper */
.testimonials-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 16px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: thin;
    scrollbar-color: #f5b800 #e5e7eb;
}

.testimonials-wrapper::-webkit-scrollbar {
    height: 6px;
}

.testimonials-wrapper::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 3px;
}

.testimonials-wrapper::-webkit-scrollbar-thumb {
    background: #f5b800;
    border-radius: 3px;
}

.testimonials-wrapper::-webkit-scrollbar-thumb:hover {
    background: #e5a600;
}

/* Track - 5 cards in row */
.testimonials-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

/* Card - compact for 5 in view */
.testimonial-card {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #f5b800;
}

/* Rating */
.testimonial-rating {
    margin-bottom: 12px;
}

.testimonial-rating i {
    color: #f5b800;
    font-size: 0.75rem;
    margin-right: 1px;
}

/* Text */
.testimonial-text {
    color: #374151;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 80px;
}

/* Author */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f5b800;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1f71;
    margin-bottom: 1px;
}

.testimonial-info span {
    font-size: 0.72rem;
    color: #9ca3af;
}

/* Scroll hint */
.testimonials-scroll-hint {
    text-align: center;
    margin-top: 12px;
    color: #9ca3af;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.testimonials-scroll-hint i {
    animation: scrollHint 1.5s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Responsive */
@media (max-width: 1400px) {
    .testimonial-card {
        flex: 0 0 240px;
    }
}

@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 220px;
        padding: 16px;
    }
    
    .testimonial-text {
        font-size: 0.78rem;
        -webkit-line-clamp: 3;
        min-height: 60px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 16px;
    }
    
    .testimonials-header h2 {
        font-size: 1.4rem;
    }
    
    .testimonial-card {
        flex: 0 0 260px;
        padding: 18px;
    }
    
    .testimonials-wrapper {
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        flex: 0 0 280px;
    }
    
    .testimonials-header h2 {
        font-size: 1.25rem;
    }
}
