/* assets/css/testimonials.css */

.testimonials-section {
    background-color: #fdfdfd;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.testimonials-slider-relative {
    position: relative;
    width: 100%;
}

.testimonials-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-wrapper::-webkit-scrollbar {
    display: none;
}

/* Section Header (Scoped to Testimonials) */
.testimonials-section .section-header {
    margin-bottom: 40px;
    text-align: center;
    display: block !important;
    /* Override explicit hide from products.css if present */
}

.testimonials-section .section-header h2 {
    color: #0f3460;
    /* Deep blue from standards */
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.testimonials-section .section-header p {
    color: #666;
    font-size: 18px;
    font-weight: 500;
}

/* Mobile responsive adjustments for header */
@media (max-width: 768px) {
    .testimonials-section .section-header h2 {
        font-size: 24px;
    }

    .testimonials-section .section-header p {
        font-size: 14px;
    }
}

/* Testimonial Card */
.testimonial-card {
    background: #fffbf2;
    /* Cream/Off-white background */
    border-radius: 12px;
    padding: 30px 20px;
    min-width: 280px;
    max-width: 300px;
    flex: 0 0 auto;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #f0e6d2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* User Image */
.testimonial-img-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    position: relative;
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Stars */
.testimonial-stars {
    color: #ffa41c;
    /* Amazon Orange/Yellow */
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Name Badge */
.testimonial-name-badge {
    background-color: #a01a35;
    /* Maroon/Redish */
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Content */
.testimonial-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
    font-style: italic;
}

.testimonial-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

/* Navigation Buttons */
.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
    color: #333;
}

.testimonial-nav-btn:hover {
    background: #a01a35;
    color: #fff;
    border-color: #a01a35;
}

.nav-prev {
    left: 0;
}

.nav-next {
    right: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 260px;
        /* Smaller width on mobile */
        padding: 20px 15px;
    }

    .testimonial-title {
        font-size: 1rem;
    }

    .testimonial-nav-btn {
        display: none;
        /* Hide arrows on mobile, rely on swipe */
    }

    .testimonials-wrapper {
        padding-left: 20px;
        /* Show part of next card */
    }
}