/* Testimonials Preview Section Styles */

/* Color Variables - Inherited from main style.css, defined here for completeness */
:root {
    /* Primary Brand Colors */
    --brand-yellow: #fcc300;
    --brand-green: #009244;
    --brand-red: #EB1C24;

    /* Yellow Variations (PRIMARY) */
    --yellow-primary: #fcc300;
    --yellow-light: #FFD700;
    --yellow-dark: #D4A300;
    --yellow-lighter: rgba(252, 195, 0, 0.1);
    --yellow-lightest: rgba(252, 195, 0, 0.05);

    /* Green Variations (Secondary/Accent) */
    --green-primary: #009244;
    --green-light: #00B050;
    --green-dark: #007A3D;

    /* Red Variations (Emphasis/CTA) */
    --red-primary: #EB1C24;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%);

    /* Text Colors */
    --text-dark: #1A202C;
    --text-gray: #4A5568;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Section Styling */
.testimonials-section {
    background: linear-gradient(135deg, rgba(252, 195, 0, 0.02) 0%, rgba(0, 146, 68, 0.02) 50%, rgba(235, 28, 36, 0.02) 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(252, 195, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 146, 68, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.section-label {
    display: inline-block;
    padding: 8px 18px;
    background: var(--yellow-lighter);
    color: var(--yellow-dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 30px 30px 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.testimonial-card:nth-child(4) {
    animation-delay: 0.4s;
}

.testimonial-card:nth-child(5) {
    animation-delay: 0.5s;
}

.testimonial-card:nth-child(6) {
    animation-delay: 0.6s;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(252, 195, 0, 0.05);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(252, 195, 0, 0.15);
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.patient-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.patient-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--yellow-primary);
    box-shadow: 0 4px 12px rgba(252, 195, 0, 0.2);
    flex-shrink: 0;
}

.patient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patient-details {
    flex: 1;
}

.patient-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.patient-condition {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Rating */
.rating {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 1.25rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.star.filled {
    color: var(--yellow-primary);
    text-shadow: 0 2px 4px rgba(252, 195, 0, 0.3);
}

/* Card Body */
.card-body {
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-gray);
    font-style: italic;
    position: relative;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    bottom: 30px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 600;
    background: var(--gradient-primary);
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover .verified-badge {
    background: var(--gradient-accent);
    transform: scale(1.05);
    color: #ffffff;
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.8s ease-out 0.7s;
    animation-fill-mode: both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(252, 195, 0, 0.2));
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--yellow-dark);
    line-height: 1.2;
}

.trust-text span {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .trust-bar {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px 25px 60px;
    }

    .trust-bar {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }

    .trust-item {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .testimonials-section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 20px 20px 50px;
    }

    .patient-avatar {
        width: 50px;
        height: 50px;
    }

    .patient-name {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 0.9375rem;
    }

    .trust-text strong {
        font-size: 1.5rem;
    }

    .card-header {
        flex-direction: column-reverse;
    }
}

/* Hover Effects for Interactive Elements */
.testimonial-card {
    cursor: default;
}

.patient-avatar {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .patient-avatar {
    transform: scale(1.1);
}

.star.filled {
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.testimonial-card:hover .star.filled {
    animation: none;
    transform: scale(1.15);
}