/* Testimonials Section Styles - Redesigned to Mockup Card Layout */
.testimonials-section {
    padding: 100px 0;
    background-color: #fafbfe;
    position: relative;
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 70px;
}

.testimonials-subtitle {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
}

.testimonials-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 15px;
}

.testimonials-header p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive CSS Grid for Cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-top: 50px;
    width: 100%;
}

/* Testimonial Card Layout Container */
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 15px 10px;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Avatar circle styling */
.testimonial-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid #004d4d; /* Custom dark teal mockup border */
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(0, 77, 77, 0.12);
    transition: all 0.4s ease;
    flex-shrink: 0;
    background-color: #ffffff;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Name badge pill button */
.testimonial-name-badge {
    display: inline-block;
    background-color: #004d4d; /* Custom dark teal */
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    padding: 10px 32px;
    border-radius: 50px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 77, 77, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

/* Designation Subtitle */
.testimonial-designation {
    font-size: 14.5px;
    color: #004d4d;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

/* Dots Separator */
.testimonial-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
    gap: 15px;
}

.testimonial-separator::before,
.testimonial-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgba(0, 77, 77, 0.25);
}

.separator-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.separator-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #004d4d;
    display: inline-block;
}

/* Quote Box Styling */
.testimonial-quote-box {
    position: relative;
    background-color: #f8fafc;
    border: 1px solid rgba(0, 77, 77, 0.25);
    border-radius: 20px;
    padding: 26px 22px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: all 0.4s ease;
}

/* Centered bottom teal bar */
.testimonial-quote-box::after {
    content: '';
    position: absolute;
    bottom: -3px; /* Centers exactly on the border line */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 6px;
    background-color: #004d4d;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-quote-box p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

/* Hover Interactive Micro-Animations */
.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(36, 182, 74, 0.2);
}

.testimonial-card:hover .testimonial-avatar img {
    transform: scale(1.08);
}

.testimonial-card:hover .testimonial-name-badge {
    background-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(36, 182, 74, 0.25);
}

.testimonial-card:hover .testimonial-quote-box {
    border-color: rgba(36, 182, 74, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    background-color: #ffffff;
}

.testimonial-card:hover .testimonial-quote-box::after {
    background-color: var(--primary-color);
    width: 180px;
}

/* Staggered Fade-in Animation delays */
.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.15s; }
.testimonial-card:nth-child(5) { animation-delay: 0.25s; }
.testimonial-card:nth-child(6) { animation-delay: 0.35s; }
.testimonial-card:nth-child(7) { animation-delay: 0.2s; }
.testimonial-card:nth-child(8) { animation-delay: 0.3s; }
.testimonial-card:nth-child(9) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adaptations */
@media (max-width: 991px) {
    .testimonials-section {
        padding: 80px 0;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .testimonials-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonials-header h2 {
        font-size: 28px;
    }

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

    .testimonial-card {
        max-width: 100%;
    }
}
