/* Modern Testimonials Section Styles */
.testimonials-section {
    background: linear-gradient(135deg, #f8fcff 0%, #f0f8ff 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 172, 193, 0.1);
    border-bottom: 1px solid rgba(0, 172, 193, 0.1);
}

/* Decorative elements */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 172, 193, 0.05) 0%, rgba(0, 172, 193, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 172, 193, 0.05) 0%, rgba(0, 172, 193, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Section heading styles */
.section-tag {
    display: inline-block;
    background-color: rgba(0, 172, 193, 0.1);
    color: var(--bs-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, #008fa3 100%);
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials grid layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

/* Testimonial card styles */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 172, 193, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonial card header */
.testimonial-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.patient-info {
    display: flex;
    align-items: center;
}

.patient-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.patient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patient-details h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.patient-details p {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: #777;
}

.service-tag {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #008fa3 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Testimonial card body */
.testimonial-body {
    padding: 25px;
    flex-grow: 1;
}

.rating {
    color: #ffc107;
    font-size: 1rem;
}

.rating-text {
    color: #333;
    font-weight: 600;
    margin-left: 5px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    position: relative;
    padding-left: 10px;
    border-left: 3px solid rgba(0, 172, 193, 0.2);
}

/* Testimonial card footer */
.testimonial-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 172, 193, 0.02);
}

.testimonial-date {
    font-size: 0.85rem;
    color: #777;
}

.verified-badge {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 500;
}

.verified-badge i {
    margin-right: 5px;
}

/* Video testimonial styles */
.video-testimonial {
    margin-top: 2rem;
}

.video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.video-wrapper img {
    width: 100%;
    border-radius: 16px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #008fa3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.8);
}

.play-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(0, 172, 193, 0.3);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.play-button:hover {
    background: linear-gradient(135deg, #008fa3 0%, var(--bs-primary) 100%);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    margin-top: 1.5rem;
}

.video-caption h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.video-caption p {
    color: #666;
    font-size: 0.95rem;
}

/* Animation delay for staggered appearance */
.testimonial-card[data-delay="200"] {
    animation-delay: 0.2s;
}

.testimonial-card[data-delay="400"] {
    animation-delay: 0.4s;
}

/* Responsive styles */
@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 25px;
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial-header {
        padding: 20px;
    }
    
    .testimonial-body {
        padding: 20px;
    }
    
    .testimonial-footer {
        padding: 12px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .verified-badge {
        margin-top: 5px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .patient-image {
        width: 50px;
        height: 50px;
    }
    
    .patient-details h4 {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .play-button::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
}
