.testimonials {
    background: #f9fafb;
    padding: 40px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 50px;
}

.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.testimonials-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 80%;
    justify-content: flex-start;
    /* allow snap to work */
    scrollbar-width: none;
    /* hide scrollbar for Firefox */
}

.testimonials-container::-webkit-scrollbar {
    display: none;
    /* hide scrollbar for Chrome/Safari */
}

.testimonial-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /*min-width: 300px; */
    max-width: 320px;
    flex-shrink: 0;
    text-align: left;
    transition: transform 0.3s ease;
    scroll-snap-align: center;
    /* 👈 makes the snap effect */
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 15px, 0;
}

/* Hide the full text by default */
.full-text {
    display: none;
}

.testimonial-card.expanded .short-text {
    display: none;
}

.testimonial-card.expanded .full-text {
    display: inline;
}

.read-more {
    text-decoration: none;
    color: #00cc7a;
    cursor: pointer;
}


.stars {
    color: #ffb400;
    /* gold color */
    font-size: 20px;
    margin-bottom: 8px;
}

.name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Arrows container below cards */
.arrows {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.arrow {
    background-color: #f2f2f2;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

svg {
    width: 24px;
    height: 24px;
    stroke: #000;
    stroke-width: 2;
    fill: none;
}

.arrow:hover {
    background-color: #e0e0e0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .testimonials-container {
        width: 90%;
        gap: 20px;
    }

    .testimonial-card {
        min-width: 250px;
        max-width: 270px;
    }

    .arrow {
        font-size: 1.5rem;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .testimonial-card {
        min-width: 220px;
        max-width: 240px;
        padding: 20px 15px;
    }

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

    .testimonial-img {
        width: 40px;
        height: 40px;
    }
}