/* قسم شهادات العملاء - نفس تصميم المنتجات */

.testimonials-section {
    padding: 80px 0;
    background: #fafafa;
}

.testimonials-section .section-title {
    color: #1e293b;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.testimonials-section .section-subtitle {
    color: #64748b;
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 -15px;
    padding: 0 15px;
}

.testimonials-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: auto; /* نتحكم بالتمرير من JavaScript */
    padding: 10px 0;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    will-change: scroll-position; /* تحسين الأداء */
}

.testimonials-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #f1f5f9;
    position: relative;
    min-width: 300px;
    flex-shrink: 0;
    width: 300px;
    user-select: none;
}

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

/* الصورة الشخصية في الأعلى */
.customer-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #f1f5f9;
    transition: all 0.3s ease;
}

.testimonial-card:hover .customer-photo {
    border-color: #3b82f6;
}

.customer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* النجوم تحت الصورة */
.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating .stars {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.testimonial-rating .stars i {
    color: #fbbf24;
    font-size: 18px;
}

/* المحتوى والتعليق */
.testimonial-content p {
    color: #374151;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 20px;
    font-style: italic;
}

.customer-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.customer-info span {
    color: #64748b;
    font-size: 14px;
}

/* تأثير hover داخلي بسيط */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .testimonials-grid {
        gap: 20px;
        overflow-y: visible;
    }
    
    .testimonial-card {
        min-width: 280px;
        width: 280px;
        padding: 20px;
    }
    
    .customer-photo {
        width: 70px;
        height: 70px;
    }
}