.testimonials-section {
    padding: 100px 20px;
    background: #fff;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: 0.4 ease-in-out 1s;

    .card-content{
    transform: translateY(-65px);
    transition: 0.8s ease-out;
    /* transform: rotate(360deg) translateY(-65px); */
  }
}


.testimonials-label {
    color: #FFB23F;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

.testimonials-heading {
    font-size: 42px;
    color: #0D1B39;
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-carousel {
    position: relative;
    padding: 0 60px;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    padding: 0 5px;
    /* Add slight padding to prevent edge bleeding */
}

.testimonial-card {
    flex: 1;
    max-width: 400px;
    min-width: 300px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 300px;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 30px;
    margin: 0px 20px 0px 20px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    margin-top: -20px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: -60px auto 15px;
    position: relative;
    border: 4px solid #fff;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-name {
    font-size: 20px;
    color: #0D1B39;
    margin-bottom: 5px;
    font-weight: 600;
}

.client-role {
    color: #8D8D8D;
    font-size: 14px;
    margin-bottom: 20px;
}

.client-review {
    color: #5F5F5F;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rating {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.star {
    color: #FFB23F;
    font-size: 16px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: #0D1B39;
    color: #fff;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .testimonials-container {
        max-width: 1200px;
    }

    .testimonial-card {
        max-width: 350px;
        min-width: 280px;
    }
}

@media (max-width: 1200px) {
    .testimonials-container {
        max-width: 900px;
    }

    .carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 20px 0;
        gap: 20px;
    }

    .testimonial-card {
        scroll-snap-align: center;
        max-width: 300px;
        min-width: 260px;
    }

    .card-image {
        height: 280px;
    }

    .testimonials-heading {
        font-size: 36px;
        margin-bottom: 50px;
    }

    .client-name {
        font-size: 18px;
    }

    .client-role {
        font-size: 13px;
    }

    .client-review {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 992px) {
    .testimonials-section {
        padding: 80px 15px;
    }

    .testimonials-container {
        max-width: 700px;
    }

    .testimonial-card {
        max-width: 280px;
        min-width: 240px;
    }

    .card-image {
        height: 250px;
    }

    .card-content {
        padding: 25px 20px;
    }

    .profile-image {
        width: 50px;
        height: 50px;
        margin: -45px auto 12px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
        /* Remove horizontal padding */
    }

    .testimonials-container {
        padding: 0;
    }

    .testimonials-carousel {
        padding: 0 15px;
        /* Reduced padding */
    }

    .carousel-wrapper {
        justify-content: flex-start;
        /* Align cards to start */
        padding: 0;
        scroll-padding: 15px;
        /* Add scroll padding */
    }

    .testimonials-label {
        font-size: 16px;
        margin-bottom: 15px;
        padding: 0 15px;
        display: flex;
        justify-content: center;
    }

    .testimonials-heading {
        font-size: 32px;
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .testimonial-card {
        min-width: 260px;
        max-width: 260px;
    }

    .card-image {
        height: 220px;
    }

    .card-content {
        padding: 20px 15px;
    }

    .client-name {
        font-size: 17px;
    }

    .client-role {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .client-review {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .star {
        font-size: 14px;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 40px 12px;
    }

    .testimonials-heading {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .testimonials-carousel {
        padding: 0 10px;
    }

    .carousel-wrapper {
        gap: 15px;
    }

    .testimonial-card {
        min-width: 240px;
        max-width: 240px;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 18px 12px;
    }

    .profile-image {
        width: 45px;
        height: 45px;
        margin: -40px auto 10px;
    }

    .client-name {
        font-size: 16px;
    }

    .client-role {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .client-review {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .star {
        font-size: 12px;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .testimonial-card {
        min-width: 220px;
        max-width: 220px;
    }

    .card-image {
        height: 180px;
    }

    .testimonials-heading {
        font-size: 24px;
    }
}