﻿.rounded-image-overlay-text {
    padding: 80px 0 40px 0;
    position: relative;
}

.rounded-image-overlay-text__wrap {
    padding-top: 136px;
    position: relative;
}

.rounded-image-overlay-text__image {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translate(-50%, 0);
    width: 211px;
    height: 211px;
    border-radius: 50%;
    z-index: 1;
}

.rounded-image-overlay-text__image img {
    display: block;
    border-radius: 50%;
}

.rounded-image-shape {
    position: absolute;
    right: -13px;
    top: -7px;
    width: 218px;
    z-index: -1;
}

.rounded-image-overlay-text__content {
    box-shadow: 0 0 30px rgba(62, 38, 57, 0.26);
    padding: 105px 15px 25px;
    color: #333333;
}

.rounded-image-overlay-text .bottom-curve svg {
    position: absolute;
    left: 0;
    top: -2px;
    width: 100%;
}

.rounded-image-overlay-text__content h3 {
    font-size: 23px;
    padding-bottom: 20px;
}

.rounded-image-overlay-text__content ul {
    margin: 0;
    padding: 0;
}

.rounded-image-overlay-text__content ul li .icon {
    position: absolute;
    left: 0;
}

.rounded-image-overlay-text--inner {
    padding: 0 0 60px 0;
}

/* .rounded-image-overlay-text--inner .rounded-image-overlay-text__content__wrap span  {
    font-size: 16px;
    text-transform: uppercase;
    color: #333333;
    font-family: var(--font-montserrat);
    font-weight: 700;
    line-height: 1.4em;
    display: block;
    letter-spacing: 0.06em;
} */

.rounded-image-overlay-text--inner .rounded-image-overlay-text__content__wrap .testimonial__name,
.rounded-image-overlay-text--inner .rounded-image-overlay-text__content__wrap .testimonial__title {
    font-size: 16px;
    text-transform: uppercase;
    color: #333333;
    font-family: var(--font-montserrat);
    font-weight: 700;
    line-height: 1.4em;
    display: block;
    letter-spacing: 0.06em;
}

.rounded-image-overlay-text--inner .rounded-image-overlay-text__content__wrap span {
    display: inline-block;
    vertical-align: text-top;
}

.rounded-image-overlay-text--inner .rounded-image-overlay-text__content__wrap p {
    display: inline-block;
}

.rounded-image-shape svg {
    width: 100%;
    height: auto;
}

/* Testimonials Slider */
.js-testimonials .icon-quote-close svg {
    transform: rotate(180deg);
}

.js-testimonials .testimonial__body {
    margin-bottom: 2rem;
}

.js-testimonials.slick-initialized .slick-slide {
    vertical-align: top;
}

.image-text-block + .rounded-image-overlay-text {
    padding-top: 80px;
}

@media (min-width: 768px) {
    .rounded-image-overlay-text {
        padding: 80px 20px;
    }

    .rounded-image-overlay-text + .rounded-image-overlay-text {
        padding-top: 70px;
    }

    .rounded-image-overlay-text + .content-sidebar {
        margin-top: 48px;
    }

    .rounded-image-overlay-text + .rounded-image-overlay-text.testimonials-block {
        padding-top: 140px;
    }
    
    .rounded-image-overlay-text__wrap {
        padding-top: 0;
    }
    
    .rounded-image-overlay-text__image {
        left: auto;
        right: -1px;
        top: -4px;
        transform: none;
        width: 260px;
        height: 260px;
    }

    .rounded-image-shape {
        right: -17px;
        top: -11px;
        width: 270px;
    }
    
    .rounded-image-overlay-text__content {
        padding: 35px 275px 20px 24px;
    }

    .rounded-image-overlay-text__reverse .rounded-image-overlay-text__content {
        padding: 35px 24px 35px 275px;
    }

    .rounded-image-overlay-text__reverse .rounded-image-overlay-text__image {
        left: -22px;
        right: auto;
        top: -7px;
    }

}

@media (min-width: 1025px) {
    .rounded-image-overlay-text--inner.testimonials-block .rounded-image-overlay-text__reverse .slick-dots {
        text-align: unset;
        width: calc(100% - 525px);
        margin-right: auto;
    }

    .rounded-image-overlay-text:not(.testimonials-block) .rounded-image-overlay-text__wrap:not(.rounded-image-overlay-text__reverse) .rounded-image-overlay-text__image {
        width: 320px;
        height: 320px;
    }

    .rounded-image-overlay-text:not(.testimonials-block) .rounded-image-overlay-text__wrap:not(.rounded-image-overlay-text__reverse) .rounded-image-overlay-text__content {
        padding: 35px 335px 20px 24px;
    }

    .rounded-image-shape {
        width: 100%;
    }
}

@media (min-width: 1200px) {
   
}

@media (min-width: 1366px) {
    /* .rounded-image-overlay-text {
        padding: 240px 0 180px 0;
    } */

    .rounded-image-overlay-text__image {
        left: auto;
        right: 0;
        top: 50%;
        transform: translate(0, -50%);
        width: 506px;
        height: 506px;
    }

    .rounded-image-overlay-text:not(.testimonials-block) .rounded-image-overlay-text__wrap:not(.rounded-image-overlay-text__reverse) .rounded-image-overlay-text__image  {
        width: 506px;
        height: 506px;
    }

    .rounded-image-overlay-text {
        padding: 140px 0;
    }

    .rounded-image-shape {
        right: -30px;
        top: -20px;
        width: 525px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .rounded-image-overlay-text__content {
        padding: 40px 0 40px 80px;
        max-width: 80%;
    }

    .rounded-image-overlay-text:not(.testimonials-block) .rounded-image-overlay-text__wrap:not(.rounded-image-overlay-text__reverse) .rounded-image-overlay-text__content {
        padding: 40px 0 40px 80px;
        max-width: 80%;
    }

    .rounded-image-overlay-text__content__wrap {
        width: 555px;
    }

    .rounded-image-overlay-text__reverse .rounded-image-overlay-text__content {
        padding: 65px 80px 46px 0;
        margin: 0 0 0 auto;
    }

    .rounded-image-overlay-text--inner.testimonials-block .rounded-image-overlay-text__reverse .slick-dots {
        margin-left: calc(100% - 677px);
    }

    .rounded-image-overlay-text__reverse .rounded-image-overlay-text__content__wrap {
        margin: 0 0 0 auto;
    }

    .rounded-image-overlay-text__reverse .rounded-image-overlay-text__image {
        left: 0;
        right: auto;
        top: 50%;
    }

    /* .rounded-image-overlay-text--inner {
        padding: 160px 0 220px;
    } */

    .rounded-image-overlay-text--inner .rounded-image-overlay-text__content__wrap {
        width: 677px;
    }

    .rounded-image-overlay-text--inner .rounded-image-overlay-text__reverse .rounded-image-overlay-text__content {
        padding: 40px 70px 40px 0;
        margin: 0 0 0 auto;
    }

}

@media (min-width: 1466px) {
    .rounded-image-overlay-text__reverse .rounded-image-overlay-text__image {
        left: -14px;
      }
}