.testimonials-section {
    margin-top: 150px;
    padding: 80px 0;
    background: var(--primary-color);
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url('../assets/shapes/t--shape.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    z-index: -1;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url('../assets/shapes/b--shape.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    z-index: -1;
}

.testimonials-pattern {
    position: relative;
}

.testimonials-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../assets/pattern/w-logo.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.2;
    z-index: 1;
}


.testimonials-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--white-color);
    text-align: center;
    margin-bottom: 20px;
}

.testimonials-swiper {
    padding: 20px 0 40px;
}

.testimonial-card {
    position: relative;
    background: var(--white-color);
    border-radius: 34px;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(2, 102, 161, 0.5);
    height: auto;
    overflow: hidden;
    border: 3px solid var(--white-color);
}

.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonial-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--tertiary-color);
}

.testimonial-specialty {
    font-size: 15px;
    color: var(--white-color);
    background: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
    text-align: center;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    padding: 8px 30px;
    border-radius: 0 24px 24px 0;
    position: absolute;
    left: 0;
    top: 0;
    min-width: 20%;
}

.testimonial-rating-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--white-color);
}

.testimonial-rating-star {
    color: #FFE268;
    font-size: 26px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--tertiary-color);
    text-align: justify;
}


.testimonials-section .hero-buttons {
    margin-top: 50px;
}

.swiper.testimonials-swiper {
    padding-bottom: 60px !important;
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px !important;;
    height: 50px !important;;
    background: var(--tertiary-color);
    border-radius: 50%;
}

.swiper-button-next {
    left: -4% !important;
    right: auto !important;
    top: 52% !important;
}

.swiper-button-prev {
    right: -4% !important;
    left: auto !important;
    top: 52% !important;
}

.swiper-button-next:after {
    content: '' !important;
    background-image: url(../assets/icons/l-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 8px;
    height: 12px;
}

.swiper-button-prev:after {
    content: '' !important;
    background-image: url(../assets/icons/r-arrow.svg) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    width: 8px !important;
    height: 12px !important;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: var(--white-color) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--white-color) !important;
}

@media (max-width: 1400px) {
    .testimonials-section {
        margin-top: 150px;
        padding: 60px 0;
        background: var(--primary-color);
        position: relative;
    }

    .testimonials-pattern {
        position: relative;
        padding: 0 60px;
    }

    .swiper-button-next {
        left: 0% !important;
    }

    .swiper-button-prev {
        right: 0% !important;
    }
}

@media (max-width: 1200px) {
    .testimonials-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .testimonials-section {
        margin-top: 120px;
        padding: 40px 0;
    }
}

@media (max-width: 992px) {

    .testimonials-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .testimonial-header {
        margin-bottom: 10px;
    }

    .testimonial-avatar {
        width: 90px;
        height: 90px;
        border-radius: 24px;
        overflow: hidden;
    }

    .testimonial-name {
        font-size: 20px;
    }

    .testimonial-rating {
        padding: 4px 20px;
    }

    .testimonial-specialty {
        font-size: 14px;
    }

    .testimonial-rating-number {
        font-size: 16px;
    }

    .testimonial-rating-star {
        font-size: 24px;
    }

    .testimonial-rating {
        gap: 6px;
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.8;
        color: var(--tertiary-color);
        text-align: justify;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .testimonials-section .hero-buttons {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {

    .testimonials-section {
        margin-top: 30px;
        padding: 30px 0;
    }

    .testimonials-title {
        font-size: 26px;
        margin-bottom: 0px;
    }

    .swiper.testimonials-swiper {
        padding-bottom: 50px !important;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .testimonials-section .hero-buttons {
        transform: scale(1.2);
    }
}

@media (max-width: 576px) {

    .testimonials-title {
        font-size: 24px;
    }

    .testimonials-section .hero-buttons {
        margin-top: 10px;
    }

    .testimonials-section .hero-buttons {
        margin-top: 20px;
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {

    .testimonials-title {
        font-size: 22px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .testimonials-pattern {
        padding: 0 16px;
    }

    .testimonials-section {
        margin-top: 0px;
        padding: 20px 0;
    }
    
    .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom,0px) !important;

}
    
    .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
}
}

@media (max-width: 390px) {

    .testimonials-title {
        font-size: 20px;
    }

    .testimonials-section {
        margin-top: 0px;
        padding: 10px 0 20px;
    }

    .testimonial-card {
        padding: 10px;
    }

    .testimonial-avatar {
        width: 80px;
        height: 80px;
        border-radius: 20px;
        overflow: hidden;
    }

    .testimonial-name {
        font-size: 18px;
    }

    .testimonial-specialty {
        font-size: 12px;
    }

    .testimonial-rating {
        padding: 2px 16px;
    }

    .testimonial-rating-number {
        font-size: 14px;
    }

    .testimonial-rating-star {
        font-size: 22px;
    }

    .testimonials-pattern {
        padding: 0;
    }

    .testimonials-section .hero-buttons {
        margin-top: 20px;
        transform: scale(1);
    }

    .swiper.testimonials-swiper {
        padding-bottom: 40px !important;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}