/* Testimonials Section */
#testimonials {
    padding: 100px 0;
    text-align: center;
}

#testimonials h2 {
    font-size: 2.5rem;
    color: #E4ECFF;
    margin-bottom: 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
}

#testimonials h2 span {
    color: #CBACF9;
}

.testimonials-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.testimonials-container {
    display: flex;
    overflow-x: auto; /* Allow horizontal scrolling */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* Enable snap scrolling */
    gap: 2rem;
    padding: 1rem 0;
    width: 100%;
    /* Hide the scrollbar for a cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.testimonials-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    flex: 0 0 65%;
    scroll-snap-align: center;
    /* Use grid to make the outer container match the size of the inner one */
    display: grid;
}

.testimonial-card > .card-content-wrapper {
    grid-area: 1 / 1;
}

.testimonial-card .card-content-wrapper {
    background-color: #1A1A2E;
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Align review text to the right */
}

.testimonial-card:hover .card-content-wrapper {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#testimonials .parallax-card {
    transition: transform 0.1s ease-out; /* Only parallax transition */
    will-change: transform;
}

.testimonial-card .card-content-wrapper > p {
    font-size: 1.1rem;
    color: #A9A9D0;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    text-align: left; /* Keep author info left-aligned */
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-name {
    font-size: 1rem;
    color: #E4ECFF;
    font-weight: 500;
    margin: 0;
}

#testimonial1-author {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

#testimonial1-role {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    #testimonials {
        padding-top: 0;
        padding-bottom: 0;
    }

    .testimonial-card {
        flex: 0 0 90%; /* Make cards take up more width */
    }

    .testimonials-wrapper {
        padding: 0 1rem; /* Add some padding to the sides */
    }

    #testimonials h2 {
        font-size: 30px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

.author-role {
    font-size: 0.9rem;
    color: #A9A9D0;
    margin: 0;
}

.arrow {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.left-arrow {
    left: -50px;
}

.right-arrow {
    right: -50px;
}
