.testimonials {
    position: relative;
}

.image-buttons.bg-white + .testimonials.bg-white {
    margin-top: var(--section-margins);
}

.testimonials__content,
.testimonials__image {
    position: relative;
    width: 100%;
}

.testimonials__image {
    height: 250px;
}

.testimonials__content {
    padding: 40px 22px 0;
}

.testimonials__text {
    padding-bottom: 10px;
}

.testimonials__text h2 {
    font-size: 1.9375rem;
}

.testimonials__text-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Google Reviews Widget Styles */
.google-reviews-widget {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.google-reviews-widget:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.google-reviews-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-reviews-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-reviews-rating .rating-number {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.google-reviews-rating .stars {
    display: flex;
    align-items: center;
}

.google-reviews-rating .star {
    width: 20px;
    height: 20px;
}

.google-reviews-rating .review-count {
    font-size: 14px;
    color: #5F6368;
    margin-left: 2px;
}

.testimonial-slider {
    margin: 0 -16px;
    padding-bottom: 55px;
}

.testimonial-item {
    padding: 20px 16px;
}

.testimonial-slider .slick-arrow {
    background: var(--white);
    box-shadow: 0 0 20px 0 rgba(23, 61, 99, 0.20);
    width: 55px;
    height: 55px;
}

.testimonial-slider .slick-arrow::before {
    font-size: 1.25rem;
}

.testimonial-slider .slick-arrow:hover {
    background: #003366;
}

.testimonials__bttn {
    margin-top: 30px;
}

.testimonials__bttn .btn-group {
    justify-content: center;
}

.testimonials__bttn .btn:has(+.btn) {
    margin-bottom: 0;
    margin-right: 0;
}

.testimonial {
    border-radius: 3px;
    background: var(--white);
    box-shadow: 3px 3px 16px 0 rgba(23, 61, 99, 0.20);
    padding: 20px;
}

.testimonial__star {
    margin-bottom: 15px;
    font-size: 1.25rem;
    line-height: 1em;
    display: flex;
    gap: 8px;
    color: var(--gold);
}

.testimonial__details {
    height: 144px;
    overflow: auto;
    padding: 0 10px 0 0;
    overflow: auto;
    @supports not (selector(::-webkit-scrollbar-thumb)) {
        scrollbar-color: #173D63 #EDEDED;
        scrollbar-width: thin;
    }
}

.testimonial__details p {
    line-height: 1.5em;
    font-size: 1rem;
}


.testimonial__details:hover {
    @supports not (selector(::-webkit-scrollbar-thumb)) {
        scrollbar-color: #173D63 #EDEDED;
    }
}

.testimonial__details::-webkit-scrollbar {
    width: 10px;
}

.testimonial__details::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: #EDEDED;
}

.testimonial__details::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: #173D63;
}

.testimonial__bottom {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial__author {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5em;
}

@media (min-width: 768px) {

    .testimonials__image {
        position: absolute;
        width: 368px;
        top: 0;
        left: 0;
        height: calc(100% - 311px);
    }

    .testimonials__content {
        padding: 0 52px;
    }

    .testimonials__text {
        padding-top: 30px;
        padding-left: 348px;
    }

    .testimonials__text h2 {
        font-size: 2.5rem;
    }

    .testimonial-slider {
        margin: 0 -68px 0 -16px;
        padding-bottom: 11px;
    }

    .testimonial-slider:not(.slick-initialized) {
        display: flex;
    }

    .testimonial-slider:not(.slick-initialized) .testimonial-item {
        width: 48%;
    }

    .testimonial-slider:not(.slick-initialized) .testimonial-item .testimonial {
        width: 100%;
    }

    .testimonial {
        padding: 30px;
        width: 373px;
    }

    .testimonial__details {
        height: 120px;
    }

    .testimonial__details p {
        line-height: 1.5em;
        font-size: 1rem;
    }

    .testimonial__bottom {
        margin-top: 25px;
    }

    .testimonials__bttn {
        margin-top: 0;
    }

    .testimonials__bttn .btn-group {
        justify-content: flex-start;
        column-gap: 21px;
    }

    .testimonials__bttn .btn {
        font-size: 1rem;
        padding: 13px 60px 13px 30px;
    }

    .testimonials__bttn .btn-tertiary {
        padding: 0 28px 0 0;
        font-weight: 500;
    }

    .testimonials__bttn .btn-tertiary::after {
        font-size: 1.25rem;
    }

    .testimonial-slider .slick-arrow {
        bottom: -77px;
        margin: 0;
    }

    .testimonial-slider .slick-next {
        right: 68px;
    }

    .testimonial-slider .slick-prev {
        left: auto;
        right: 143px;
    }


}

@media (min-width: 1024px) {
    .testimonials__text-logo {
        width: 413px;
    }
}

@media (min-width: 1200px) {
    .image-buttons.bg-white + .testimonials.bg-white {
        margin-top: 0;
    }

    .testimonials__image {
        position: relative;
        width: calc(40% - 50px);
        height: 700px;
    }

    .testimonials__image img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .testimonials__content {
        padding: 0 ;
        width: calc(60% + 10px);
    }

    .testimonials__text {
        padding-top: 120px;
        padding-left: 0;
        margin-left: 102px;
        max-width: 838px;
        margin-right: 63px;
        padding-bottom: 5px;
        display: flex;
        gap: 20px;
    }

    .testimonials__text-content {
        width: 90%;
    }

    .testimonial-slider {
        margin: 0 -68px 0 -130px;
        padding-bottom: 11px;
    }

    .testimonial-slider:not(:has(.slick-initialized)) .testimonial-item {
        width: unset;
    }

    .testimonial-slider:not(:has(.slick-initialized)) .testimonial-item .testimonial {
        width: 508px;
    }

    .testimonials__bttn {
        padding-left: 102px;
        margin-top: 16px;
    }

    .testimonial {
        padding: 50px;
        width: 508px;
    }

    .testimonial__star {
        font-size: 1.75rem;
    }

    .testimonial__details {
        height: 135px;
    }

    .testimonial__details p {
        font-size: 1.125rem;
    }

     .testimonials__bttn .btn-group {
        column-gap: 30px;
    }

    .testimonials__bttn .btn {
        font-size: 1.125rem;
        padding: 13px 65px 13px 35px;
    }

    .testimonials__bttn .btn-tertiary {
        padding: 0 28px 0 0;
    }


    .testimonial-slider .slick-arrow {
        bottom: -83px;
        margin: 0;
    }


    .testimonial-slider .slick-next {
        right: 125px;
    }

    .testimonial-slider .slick-prev {
        left: auto;
        right: 195px;
    }

    .testimonials__text h2 {
        font-size: 3.125rem;
    }
}

@media (min-width: 1367px) {
    .testimonial-slider .slick-next {
        right: auto;
        left: 870px;
    }

    .testimonial-slider .slick-prev {
        right: auto;
        left: 800px;
    }
}

@media (min-width: 1920px) {
    .testimonials__image {
        position: relative;
        width: calc(50% - 308px);
        height: auto;
    }

    .testimonials__content {
        padding: 0 ;
        width: calc(50% + 308px);
    }

    .testimonial-slider {
        margin: 0 -16px 0 -124px;
        padding-bottom: 11px;
    }

    .testimonial-slider .slick-next {
        right: auto;
        left: 1010px;
    }

    .testimonial-slider .slick-prev {
        right: auto;
        left: 930px;
    }

}