/* ===============================================
   BESTMEDICURES - Testimonials Section Styles
   =============================================== */

/* Testimonials Section Styling */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="rgba(40,167,69,0.05)"><circle cx="10" cy="10" r="1.5"/><circle cx="30" cy="5" r="1"/><circle cx="50" cy="15" r="2"/><circle cx="70" cy="8" r="1.5"/><circle cx="90" cy="12" r="1"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.testimonial-slide {
    padding: 0 10px;
    outline: none;
}

/* Testimonial Card Styles */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(40,167,69,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    border-color: #28a745;
    z-index: 10;
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Customer Avatar */
.customer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.customer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

/* Star Rating */
.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-rating i {
    font-size: 14px;
}

.rating-text {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
    font-weight: 500;
}

/* Quote Icon */
.quote-icon {
    color: #28a745;
    font-size: 24px;
    opacity: 0.3;
}

/* Testimonial Content */
.testimonial-content {
    margin-top: 15px;
}

.review-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    position: relative;
}

/* ===============================================
   Slick Slider Testimonials Navigation
   =============================================== */

/* Slick Testimonials Dots Styling */
.testimonials-slider .slick-dots {
    bottom: -50px;
    list-style: none;
    display: flex !important;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.testimonials-slider .slick-dots li {
    width: 12px;
    height: 12px;
    margin: 0;
    position: relative;
}

.testimonials-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #28a745;
    background: transparent;
    font-size: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    outline: none;
}

.testimonials-slider .slick-dots li button:before {
    display: none !important;
}

.testimonials-slider .slick-dots li.slick-active button {
    background: #28a745;
    transform: scale(1.2);
}

.testimonials-slider .slick-dots li button:hover {
    background: #28a745;
    opacity: 0.7;
}

.testimonials-slider .slick-dots li button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

/* ===============================================
   Responsive Design
   =============================================== */

/* Tablet Styles */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 20px;
    }
    
    .customer-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .customer-name {
        font-size: 15px;
    }
    
    .review-text {
        font-size: 13px;
    }
    
    .testimonials-slider .slick-dots {
        bottom: -40px;
    }
}

/* Mobile Styles */
@media (max-width: 576px) {
    .testimonials-section {
        padding: 3rem 0 !important;
    }
    
    .testimonial-slide {
        padding: 0 5px;
    }
    
    .testimonial-card {
        padding: 15px;
        margin-bottom: 15px;
    }
}

/* ===============================================
   Accessibility Improvements
   =============================================== */

/* Focus states for better accessibility */
.testimonial-card:focus-within {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .testimonial-card {
        border: 2px solid #000;
    }
    
    .testimonial-card::before {
        background: #000;
    }
    
    .customer-avatar {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        transition: none;
    }
    
    .testimonial-card:hover {
        transform: none;
    }
    
    .testimonials-slider .slick-dots li button {
        transition: none;
    }
}