/*== Testimonial addon ==*/

.tpc-testimonial_wrapper.upstudy-pagination {
    padding-bottom: 50px;
}
.tpc-testimonial_wrapper.upstudy-testi-style-1.upstudy-pagination .swiper-wrapper {
    padding-bottom: 0;
}
/**** Testimonial 1 ***/

.tpc-testimonial_wrapper {
    position: relative;
}
.tpc_testimonial .upstudy-testimonial {
    background: #ffffff;
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.09);
    border-radius: 20px;
    position: relative;
    margin: 10px 40px 10px 70px;
    display: flex;
    align-items: center;
}
.tpc_testimonial .upstudy-testimonial .testimonial-thumb {
    position: relative;
    left: -13%;
    top: -20px;
    z-index: 3;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    width: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: -30px;
}
.tpc_testimonial .upstudy-testimonial .testimonial-thumb img {
    border-radius: 50%;
}
.tpc_testimonial .upstudy-testimonial .testimonial-content {
    padding: 50px 0px;
    padding-right: 40px;
}
/**** Testimonial 2 ***/

.upstudy-testimonial-style-2 .upstudy-testimonial .testimonial-content {
    padding: 0;
}
.upstudy-testimonial-style-2 .upstudy-testimonial {
    background: none;
    box-shadow: none;
    border-radius: 0;
    position: inherit;
    margin: inherit;
    display: inherit;
}
.tpc-testimonial_wrapper.style-2 {
    background: #ffffff;
    padding: 50px 50px;
    padding-bottom: 60px;
    position: relative;
}
.upstudy-testimonial .testimonial-content .quote-icon {
    display: inline-block;
    margin-bottom: 20px;
}
.upstudy-testimonial .testimonial-content .quote-icon svg {
    fill: var(--upstudy-primary-color);
}
.upstudy-testimonial .testimonial-content .quote-icon i {
    font-size: 48px;
    line-height: 1;
    color: var(--upstudy-primary-color);
}
.upstudy-testimonial p.client-feedback {
    font-size: 22px;
    line-height: 36px;
    margin-bottom: 15px;
    color: var(--upstudy-color-body);
}
.upstudy-testimonial .testimonial-content .name {
    font-size: 16px;
    line-height: 20px;
    color: var(--upstudy-heading-color);
    margin-bottom: 5px;
}
.upstudy-testimonial .testimonial-content .designation {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 0;
}
@media only screen and (max-width: 991px) {
    .tpc_testimonial .upstudy-testimonial.style-1 {
        display: block;
        text-align: center;
        margin: 0;
        padding-top: 40px;
    }
    .tpc_testimonial .upstudy-testimonial.style-2 {
        display: block;
        margin: 0;
        padding-bottom: 20px;
    }
    .tpc_testimonial.upstudy-testimonial-style-1 .upstudy-testimonial .testimonial-content {
        text-align: center;
        padding: 40px 20px;
        padding-right: 20px;
        padding-top: 30px;
    }
    .tpc_testimonial .upstudy-testimonial .testimonial-thumb {
        left: 0;
        top: 0;
        width: inherit;
        height: inherit;
        margin-right: inherit;
    }
}
/**** Testimonial 3 ***/

.upstudy-testimonial.style-3 {
    margin: 0;
    background: none;
    padding: 0;
    padding-top: 30px;
    padding-right: 30px;
    box-shadow: none;
    border: 0;
    flex-direction: column;
    align-items: self-start;
}
.upstudy-testimonial.style-3 .testimonial-content {
    padding: 25px 60px 60px 60px;
    background-color: #f7efff;
    border-radius: 15px;
    margin-bottom: 50px;
    position: relative;
}
.upstudy-testimonial.style-3 .testimonial-content svg.chat-tail {
    position: absolute;
    bottom: -45px;
    left: 10%;
    fill: #f7efff;
}
.upstudy-testimonial.style-3 .testimonial-content::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #6d13d7;
    top: -20px;
    left: 20px;
}
.upstudy-testimonial-style-3 .swiper-slide:nth-child(4n+1) .testimonial-content {
    background-color: #f7efff;
}
.upstudy-testimonial-style-3 .swiper-slide:nth-child(4n+1) .testimonial-content svg.chat-tail {
    fill: #f7efff;
}
.upstudy-testimonial-style-3 .swiper-slide:nth-child(4n+1) .testimonial-content::before {
    border-color: #6d13d7;
}
.upstudy-testimonial-style-3 .swiper-slide:nth-child(4n+2) .testimonial-content {
    background-color: #fff6f3;
}
.upstudy-testimonial-style-3 .swiper-slide:nth-child(4n+2) .testimonial-content svg.chat-tail {
    fill: #fff6f3;
}
.upstudy-testimonial-style-3 .swiper-slide:nth-child(4n+2) .testimonial-content::before {
    border-color: #fe254e;
}
.upstudy-testimonial-style-3 .swiper-slide:nth-child(4n+3) .testimonial-content {
    background-color: #effafd;
}
.upstudy-testimonial-style-3 .swiper-slide:nth-child(4n+3) .testimonial-content svg.chat-tail {
    fill: #effafd;
}
.upstudy-testimonial-style-3 .swiper-slide:nth-child(4n+3) .testimonial-content::before {
    border-color: #00c8ff;
}
.upstudy-testimonial.style-3 .testimonial-content .quote-icon {
    margin-bottom: 0;
}
.upstudy-testimonial.style-3 .testimonial-content .quote-icon i {
    font-size: 60px;
    color: var(--upstudy-heading-color);
}
.upstudy-testimonial.style-3 .testimonial-content .quote-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--upstudy-heading-color);
}
.upstudy-testimonial.style-3 .testimonial-content p.client-feedback {
    margin-bottom: 0;
}
.upstudy-testimonial.style-3 .author-details, .upstudy-testimonial.style-5 .author-details {
    display: flex;
    align-items: center;
}
.upstudy-testimonial.style-3 .author-details .author-img {
    width: 85px;
    height: 85px;
    margin-right: 15px;
}
.upstudy-testimonial.style-3 .author-details .author-img img, .upstudy-testimonial.style-5 .author-details .author-img img {
    border-radius: 100%;
}
.upstudy-testimonial.style-3 .author-details .name {
    margin-bottom: 0;
}
.upstudy-testimonial.style-3 .author-details .designation {
    margin-bottom: 0;
}
@media only screen and (max-width: 450px) {
    .upstudy-testimonial.style-3 .testimonial-content {
        padding: 25px 35px 45px 35px;
    }
}
/****** Testimonial 4 ****/

.upstudy-testi-style-4::before {
    content: "";
    position: absolute;
    background: linear-gradient(90deg, #FFFFFF 25%, #C9000000 100%);
    width: 40%;
    height: 100%;
    z-index: 4;
    top: 0%;
    left: -10%;
}
.upstudy-testi-style-4::after {
    content: "";
    position: absolute;
    background: linear-gradient(270deg, #FFFFFF 25%, #C9000000 100%);
    width: 40%;
    height: 100%;
    z-index: 4;
    top: 0%;
    right: -10%;
}
.upstudy-testi-style-4 .testimonial-content {
    padding: 0 0;
}
.tpc_testimonial .upstudy-testimonial.style-4 .testimonial-content {
    padding: 0;
    padding-right: 30px;
}
.tpc_testimonial .upstudy-testimonial.style-4 {
    background-color: #fff6f3;
    padding: 55px;
    border-radius: 250px;
}
.tpc_testimonial .upstudy-testimonial.style-4 .testimonial-thumb {
    left: 0;
    top: 0;
    margin-right: 55px;
    width: 200px;
    height: 200px;
    overflow: visible;
}
.tpc_testimonial .upstudy-testimonial.style-4 .testimonial-thumb::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ddd;
}
.tpc_testimonial .upstudy-testimonial.style-4 .testimonial-thumb .quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    position: absolute;
    right: -10%;
    top: -25px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);
}
.tpc_testimonial .upstudy-testimonial.style-4 .testimonial-content .client-feedback {
    font-size: 26px;
    line-height: 40px;
}
.tpc_testimonial .upstudy-testimonial.style-4 .testimonial-content .name {
    font-size: 18px;
    display: inline-block;
}
.tpc_testimonial .upstudy-testimonial.style-4 .testimonial-content .designation {
    font-size: 18px;
}
.tpc_testimonial .upstudy-testimonial.style-4 .testimonial-thumb .quote-icon i {
    font-size: 36px;
    line-height: 1;
    color: var(--upstudy-primary-color);
}
.upstudy-testimonial-style-4 .swiper-slide:nth-child(4n+1) .upstudy-testimonial.style-4 {
    background-color: #effafd;
}
.upstudy-testimonial-style-4 .swiper-slide:nth-child(4n+2) .upstudy-testimonial.style-4 {
    background-color: #fff6f3;
}
.upstudy-testimonial-style-4 .swiper-slide:nth-child(4n+3) .upstudy-testimonial.style-4 {
    background-color: #f7efff;
}
@media (max-width: 1199.98px) {
    .upstudy-testi-style-4::before {
        background: linear-gradient(90deg, #FFFFFF 10%, #C9000000 100%);
        width: 15%;
    }
    .upstudy-testi-style-4::after {
        background: linear-gradient(270deg, #FFFFFF 10%, #C9000000 100%);
        width: 15%;
    }
}
@media (max-width: 768px) {
    .tpc_testimonial .upstudy-testimonial {
        display: inherit;
    }
    .upstudy-testimonial p.client-feedback {
        font-size: 16px;
        line-height: 25px;
        margin-top: 20px;
    }
    .tpc_testimonial .upstudy-testimonial.style-4 {
        padding: 35px;
        border-radius: 0;
    }
    .tpc_testimonial .upstudy-testimonial.style-4 .testimonial-thumb {
        text-align: center;
        margin: 0 auto;
    }
    .tpc_testimonial .upstudy-testimonial.style-4 .testimonial-content {
        text-align: center;
    }
}
/**** Testimonial 5 ***/

.tpc_testimonial .upstudy-testimonial.style-5 {
    position: relative;
    margin: 0;
    padding: 40px;
    display: block;
}
.tpc_testimonial .upstudy-testimonial.style-5 .testimonial-content {
    padding: 0;
}
.tpc_testimonial .upstudy-testimonial.style-5 .testimonial-content .feedback-star {
    display: inline-flex;
    gap: 3px;
    font-size: 20px;
    color: var(--upstudy-primary-color);
    margin-bottom: 15px;
}
.upstudy-testimonial.style-5 .author-details .author-img {
    width: 70px;
    height: 70px;
    margin-right: 15px;
}
.upstudy-testimonial.style-5 .author-details .name {
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 5px;
}
.upstudy-testimonial.style-5 .author-details .designation {
    font-size: 16px;
    margin-bottom: 0;
}