.testimonial-section {
    background: linear-gradient(180deg, #f6fbfa 0%, #ffffff 100%);
}

.testimonial {
    padding: 84px 20px;
    overflow: hidden;
}

.testimonial-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.testimonial-heading h2 {
    margin: 10px 0 14px;
    color: #102033;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.12;
}

.testimonial-heading p {
    margin: 0;
    color: #607086;
    font-size: 17px;
    line-height: 1.7;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 54px;
}

.testimonial-slider {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    gap: 22px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.testimonial-card {
    position: relative;
    flex: 0 0 calc((100% - 44px) / 3);
    min-height: 330px;
    padding: 30px;
    border: 1px solid rgba(14, 118, 103, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(14, 50, 65, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 18px;
    right: 24px;
    color: rgba(7, 125, 105, 0.1);
    font-family: Georgia, serif;
    font-size: 78px;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(7, 125, 105, 0.28);
    box-shadow: 0 24px 60px rgba(14, 50, 65, 0.12);
}

.testimonial-card-top,
.testimonial-user {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-right: 52px;
}

.testimonial-card-top img,
.testimonial-user img {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border: 3px solid #e4f3f0;
    border-radius: 18px;
    object-fit: cover;
}

.user-info h4 {
    margin: 0 0 5px;
    color: #132238;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
}

.user-info span {
    display: block;
    color: #69798e;
    font-size: 13px;
    line-height: 1.45;
}

.testimonial-rating {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 5px;
    margin-bottom: 18px;
    color: #f4b63c;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #46566b;
    font-size: 16px;
    line-height: 1.8;
}

.testimonial-location {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef7f5;
    color: #087968;
    font-size: 13px;
    font-weight: 700;
}

.slider-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(7, 125, 105, 0.18);
    border-radius: 50%;
    background: #ffffff;
    color: #087968;
    box-shadow: 0 12px 30px rgba(14, 50, 65, 0.12);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background: #087968;
    color: #ffffff;
    transform: translateY(-50%) scale(1.04);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.testimonial-page {
    padding: 86px 20px;
    background:
        radial-gradient(circle at top left, rgba(7, 125, 105, 0.1), transparent 34%),
        #f8fbfb;
}

.testimonial-page .testimonial-heading {
    margin-bottom: 34px;
}

.testimonial-search {
    max-width: 940px;
    margin-right: auto;
    margin-left: auto;
    padding: 18px;
    border: 1px solid rgba(14, 118, 103, 0.12);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(14, 50, 65, 0.06);
}

.testimonial-search .form-control {
    min-height: 48px;
    border-color: #dce8e7;
    border-radius: 12px;
}

.testimonial-page .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.testimonial-page .testimonial-card {
    flex: initial;
    min-height: 340px;
}

@media (max-width: 991px) {
    .testimonial {
        padding: 70px 16px;
    }

    .testimonial-slider-wrapper {
        padding: 0 44px;
    }

    .testimonial-card {
        flex-basis: calc((100% - 22px) / 2);
    }

    .testimonial-page .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .testimonial,
    .testimonial-page {
        padding: 58px 14px;
    }

    .testimonial-heading {
        margin-bottom: 28px;
    }

    .testimonial-slider-wrapper {
        padding: 0 6px;
    }

    .testimonial-track {
        gap: 16px;
    }

    .testimonial-card {
        flex-basis: 100%;
        min-height: auto;
        padding: 24px;
        border-radius: 16px;
    }

    .testimonial-card-top,
    .testimonial-user {
        padding-right: 34px;
    }

    .slider-btn {
        top: auto;
        bottom: -56px;
        transform: none;
    }

    .slider-btn:hover {
        transform: scale(1.04);
    }

    .slider-btn.prev {
        left: calc(50% - 52px);
    }

    .slider-btn.next {
        right: calc(50% - 52px);
    }

    .testimonial .text-center.mt-4 {
        margin-top: 76px !important;
    }

    .testimonial-page .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-search {
        padding: 14px;
    }
}
