/* ========================================
   Testimonials Section Styles
   ======================================== */

.testimonials-section {
    padding: 4rem 0;
    position: relative;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-section .section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--purple-light);
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.verified-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
}

/* Testimonials Slider Container */
.testimonials-slider-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.testimonials-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Testimonial Card */
.testimonial-card {
    min-width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInTestimonial 0.8s ease forwards;
}

@keyframes fadeInTestimonial {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.testimonial-card>div:first-child {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(167, 139, 202, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover>div:first-child {
    border-color: var(--purple-vibrant);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(192, 38, 211, 0.35);
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(192, 38, 211, 0.3);
}

.testimonial-author {
    flex: 1;
}

.author-name {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
    font-size: 1.125rem;
    animation: starGlow 2s ease-in-out infinite;
}

.star:nth-child(1) {
    animation-delay: 0s;
}

.star:nth-child(2) {
    animation-delay: 0.1s;
}

.star:nth-child(3) {
    animation-delay: 0.2s;
}

.star:nth-child(4) {
    animation-delay: 0.3s;
}

.star:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes starGlow {

    0%,
    100% {
        text-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
    }

    50% {
        text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
    }
}

/* Testimonial Text */
.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    /* margin-top: -230px; */
    height: 150px;

}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.875rem;
    color: var(--accent-green);
    font-weight: 600;
}

.verified-badge svg {
    width: 16px;
    height: 16px;
}

/* Navigation Buttons */
.testimonials-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 21, 51, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(167, 139, 202, 0.2);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
}

.testimonials-btn:hover {
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    border-color: var(--purple-vibrant);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(192, 38, 211, 0.4);
}

.testimonials-btn-prev {
    /* left: -24px; */
}

.testimonials-btn-next {
    right: 0px;
}

/* Hide navigation buttons on mobile */
@media (max-width: 768px) {
    .testimonials-btn {
        /* display: none; */
    }
}

/* Slider Indicators */
.testimonials-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.testimonials-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(167, 139, 202, 0.3);
    border: 2px solid rgba(167, 139, 202, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.testimonials-indicator:hover {
    background: rgba(167, 139, 202, 0.6);
    transform: scale(1.2);
}

.testimonials-indicator.active {
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    border-color: var(--purple-vibrant);
    width: 32px;
    border-radius: 6px;
}

/* Desktop: Show 2 cards side by side */
@media (min-width: 768px) {
    .testimonial-card {
        min-width: 50%;
    }
}

/* Large Desktop: Show 3 cards side by side */
@media (min-width: 1024px) {
    .testimonial-card {
        min-width: 33.333%;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonial-card {
        padding: 0 0.25rem;
    }

    .testimonial-card>div:first-child {
        padding: 1.5rem;
    }

    .testimonial-header {
        margin-bottom: 1rem;
    }

    .testimonial-avatar {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .star-rating {
        gap: 0.125rem;
    }

    .star {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .verified-badge {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }

    .testimonials-indicators {
        margin-top: 2rem;
        gap: 0.5rem;
    }

    .testimonials-indicator {
        width: 10px;
        height: 10px;
    }

    .testimonials-indicator.active {
        width: 24px;
    }
}

/* Very Small Mobile (320px) */
@media (max-width: 400px) {
    .testimonial-card>div:first-child {
        padding: 1.25rem;
    }

    .author-name {
        font-size: 0.9375rem;
    }

    .testimonial-text {
        font-size: 0.875rem;
    }
}