.SVG_Star {
    width: 20px;
    fill: #ffc12d;
}

.module-testimonials.style-4 {
	margin: 0 auto;
	padding: 7em 0 10em;
	background: url(https://www.royacdn.com/unsafe/smart/Site-a34b5009-1196-4af7-92a8-20df9dcbb953/HomepageAssets/testi_bg.png);
	position: relative;
	z-index: 2;
	background-position: bottom center;
	background-size: cover;
}

.module-testimonials.style-4 .ry-flex {
    margin-top: 6em;
}
.module-testimonials .carousel-indicators li {
    background-color: var(--color-primary) !important;
}

.module-testimonials .icon-wrapper {
    background: var(--color-primary) !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    margin: auto;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
}

.module-testimonials .icon-wrapper span {
    font-size: 60px;
    transform: rotate(
179deg);
    position: relative;
    top: -24%;
}

.module-testimonials .reviews-slider-inner {
    width: 100%;
    padding: 0 3em;
}

.module-testimonials.style-4 .ry-content {
    margin: auto;
    float: none;
    clear: both;
}

.module-testimonials .each-name {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px 0;
}

.module-testimonials.style-4 .ry-flex .ry-each:nth-child(3) {
    background: #fff;
    position: relative;
    left: 0;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
}

.module-testimonials.style-4 .ry-flex .ry-each:nth-child(1) {
    position: relative;
    left: 0;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}

.module-testimonials.style-4 .ry-container {
    max-width: 1300px;
}

.module-testimonials.style-4 .ry-flex .ry-each.each-middle {
    /* max-width: 400px; */
    /* border-radius: 20px; */
    overflow: hidden;
    width: -webkit-fill-available;
    margin-top: -2em;
    margin: -3em -5em 0;
    padding: 0;
    width: 100%;
    z-index: 1;
}

.module-testimonials.style-4 .ry-flex .ry-each {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: -webkit-fill-available;
    padding: 3em;
}

.module-testimonials.style-4 .ry-flex .ry-each .each-comment h5 {
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
    color: #000;
    font-weight: 500 !important;
}

.module-testimonials.style-4 .ry-flex .ry-each .ry-text {
    margin-bottom: 2em;
}

.module-testimonials.style-4 .ry-flex .ry-each .each-comment .star-rate {
    display: flex;
    justify-content: center;
}

.module-testimonials.style-4 .ry-flex .ry-each .each-comment .star-rate svg {
    margin: 0 1px;
}

.module-testimonials.style-4 .ry-flex .ry-each .each-comment .ry-text p {
    color: #000;
    line-height: 1.6;
    font-size: 18px;
    text-align: center;
    letter-spacing: -1px;
    overflow: hidden;
    display: -webkit-box;
    /*-webkit-line-clamp: 3;
    line-clamp: 4;*/
    -webkit-box-orient: vertical;
}

.module-testimonials.style-4 .ry-flex .ry-each .carousel-control {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    top: unset;
    opacity: 1;
    border-color: #fff;
    display: none;
}

.module-testimonials.style-4 .ry-flex .ry-each .carousel-control span {
    display: none;
}

.module-testimonials.style-4 .ry-flex .ry-each .carousel-control.left {
    left: calc(50% - 60px);
}

.module-testimonials.style-4 .ry-flex .ry-each .carousel-control.right {
    right: calc(50% - 60px);
}

.module-testimonials.style-4 .ry-flex .ry-each .carousel-control:before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' class='bi bi-arrow-left' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z'/%3E%3C/svg%3E%0A");
    background-size: contain;
}

.module-testimonials.style-4 .ry-flex .ry-each .carousel-control.right:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' class='bi bi-arrow-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z'/%3E%3C/svg%3E");
}

.module-testimonials.style-4 .ry-flex .each-middle {
    /* flex-direction: column; */
    /* margin-top: -200px; */
    /* margin-bottom: -200px; */
    align-items: initial;
    background: transparent;
    justify-content: initial;
}
.module-testimonials.style-4 .ry-flex .ry-each.each-middle:before {
    content: "";
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    /* width: 100%; */
    /* height: 500px; */
    /* background: linear-gradient(to top, #99651400, #ffffff); */
    /* z-index: 1; */
}

.module-testimonials.style-4 .ry-flex .each-middle .photo, .module-testimonials.style-4 .ry-flex .each-middle .photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.module-testimonials.style-4 .ry-flex .each-middle .group-text {
    position: relative;
    z-index: 2;
    padding: 60px 30px;
}

.module-testimonials.style-4 .ry-flex .each-middle .group-text .icon-wrapper {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #164268;
    position: relative;
    margin: 0 auto 20px;
}

.module-testimonials.style-4 .ry-flex .each-middle .group-text .icon-wrapper span {
    color: #FFFFFF;
    font-family: Work Sans;
    font-size: 120px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    height: 57px;
}

.module-testimonials.style-4 .ry-flex .each-middle .group-text .section-headline h2 {
    text-align: center;
    font-size: 58px;
    font-family: Work Sans;
    text-transform: uppercase;
	color: #164268;
}

.module-testimonials.style-4 .ry-flex .each-middle .group-text .section-headline h2 .span-1 {
	font-size: 20px;
	display: block;
	margin-bottom: 5px;
	color: #000;
	letter-spacing: 3px;
}

.module-testimonials.style-4 .ry-flex .each-middle .group-text .ry-btn {
    margin-top: 20px;
    margin: 20px auto 0;
}

@media (max-width: 1680px) {
	.module-testimonials.style-4 .ry-flex .each-middle .group-text .section-headline h2 {
		font-size: 50px;
	}
	.module-testimonials.style-4 .ry-flex .ry-each {
		/* max-width: 25%; */
		/* width: 100%; */
	}
	.module-testimonials.style-4 .ry-flex .ry-each.each-middle {
		/* max-width: 40%; */
		/* margin-left: 20px; */
		/* margin-right: 20px; */
	}
	
}

@media (max-width: 1080px) {
	.module-testimonials.style-4 {
		padding: 60px 0 150px;
	}
	.module-testimonials.style-4 .ry-flex {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.module-testimonials.style-4 .ry-flex .ry-each {
		max-width: 100%;
	}
	
	.module-testimonials.style-4 .ry-flex .ry-each.each-middle {
		max-width: 100%;
		margin: 30px 0;
	}
	.module-testimonials.style-4 .ry-flex .ry-each .each-comment .ry-text p,
	.module-testimonials.style-4 .ry-flex .each-middle .group-text .section-headline h2 {
		text-align: center;
	}
	.module-testimonials.style-4 .ry-flex .each-middle .group-text {
		position: relative;
		z-index: 2;
		padding: 60px 30px 50vh;
	}
	.module-testimonials.style-4 .ry-flex .each-middle .group-text .section-headline h2 {
		font-size: 46px;
	}
	.module-testimonials.style-4 .ry-flex .each-middle .group-text .section-headline h2 .span-1 {
		font-size: 18px;
	}
	.module-testimonials.style-4 .ry-each .ry-btn {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 480px) {
	.module-testimonials.style-4 .ry-flex .each-middle .group-text .section-headline h2 {
		font-size: 42px;
	}
	
	.module-testimonials.style-4 .ry-flex .ry-each .each-comment .ry-text p,
	.module-testimonials.style-4 .ry-each .ry-btn {
		font-size: 18px !important;
	}
}
@media (max-width: 420px) {
	.module-testimonials.style-4 .ry-flex .each-middle .group-text .section-headline h2 {
		font-size: 36px;
	}
	
	.module-testimonials.style-4 .ry-flex .ry-each .each-comment .ry-text p,
	.module-testimonials.style-4 .ry-each .ry-btn.
	.module-testimonials.style-4 .ry-flex .each-middle .group-text .section-headline h2 .span-1 {
		font-size: 16px !important;
	}
}


