/* Modern Fun Testimonials */

#testimonials {
    background: linear-gradient(135deg, #fbf9f6 0%, #F8F4D0 100%) !important;
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

.testimonial-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonial-heading h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 3.5rem;
    color: #3737ee;
    /* Changed to blue for better contrast on light bg */
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.testimonial-heading span {
    font-family: 'Poppins', sans-serif;
    color: #3737ee;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Carousel Container */
.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 5vw;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */

    /* Scroll Fixes */
    pointer-events: auto;
    touch-action: pan-x;
    cursor: grab;
    position: relative;
    z-index: 10;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Testimonial Card */
.testimonial-card {
    flex: 0 0 400px;
    scroll-snap-align: center;
    background: #fbf9f6;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    z-index: 2;
}

/* Card Variants */
.testimonial-card--orange {
    background: #FF6B4A;
    color: #fbf9f6;
}

.testimonial-card--purple {
    background: #D3B2F5;
    color: #141414;
}

.testimonial-card--blue {
    background: #3737ee;
    color: #fbf9f6;
}

/* Card Content */
.testimonial-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.2rem;
}

.testimonial-info h4 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1;
}

.testimonial-info p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    margin: 0.2rem 0 0;
    opacity: 0.8;
}

/* Stars "Sticker" */
.testimonial-stars {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #f9d71c;
    color: #141414;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: rotate(3deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85vw;
        padding: 2rem;
    }

    .testimonial-heading h1 {
        font-size: 2.5rem;
    }
}