/* Carousel (tiny slider) */

.testimonials {
	padding: 3rem 0;
}

.testimonials__wrapper {
	display: grid;
	gap: 2rem;
}

.testimonials__title {
	margin-bottom: 1.5rem;
}

.testimonials__desc *:last-child {
	margin-bottom: 0;
}

.testimonials__slider-navs {
	display: none;
	align-items: center;
	justify-content: space-between;
	width: 200px;

	margin-top: 1.5rem;
}

.testimonials__slider-wrapper {
	padding: 3rem 1rem;
	margin: -3rem -1rem;
	overflow: hidden;
}

.testimonials__slider-wrapper .tns-ovh {
	overflow: visible;
}

.testimonial__inner {
	padding: 0.375rem;
	box-shadow: 0px 7px 12px rgba(122, 144, 173, 0.1);
	border-radius: 2px;
}

.testimonial__author {
	display: grid;
	grid-template-columns: 55px 1fr;
	align-items: center;
	gap: 1.5rem;

	padding: 1rem 1.5rem;
}

.testimonial__author-name {
	font-weight: 600;
}

.testimonial__author-image {
	width: 55px;
	height: 55px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0;
}

.testimonial__author-image img {
	display: block;
	object-position: center;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.testimonial__author-text {
	display: flex;
	flex-direction: column;
}

.testimonial__text {
	position: relative;
	padding-left: 1.5rem;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	padding-right: 1.5rem;
}

.testimonial__text:before {
	content: "";
	position: absolute;
	display: block;
	top: 1.5rem;
	left: 0.5rem;
	width: 38px;
	height: 31px;
}

.testimonial__text *:last-child {
	margin-bottom: 0;
}

.testimonial__author-link {
	font-size: 0.875rem;
	font-weight: 500;
}

.testimonial__author-link:hover {
	font-weight: 500;
}

button[data-controls="prev"],
button[data-controls="next"] {
	position: relative;
	font-size: 0;
	background-color: #ffffff;
	border: 1px solid #dedad7;
	width: 70px;
	height: 70px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

button[data-controls="prev"]:before,
button[data-controls="next"]:before {
	content: "";
	display: block;
	position: absolute;
	width: 20px;
	height: 11px;
	mask-repeat: no-repeat;
	transition: 0.25s;
}

button[data-controls="prev"]:before {
	transform: rotate(180deg);
}

button[data-controls="prev"]:hover:before {
	transform: rotate(180deg) translateX(5px);
}

button[data-controls="next"]:hover:before {
	transform: translateX(5px);
}

@media screen and (min-width: 1024px) {
	.testimonial__text {
        padding-left: calc(0.375rem + 1.5rem + 55px + 1.5rem);
    }

    .testimonial__text:before {
        left: 5rem;
    }
}

@media screen and (min-width: 1200px) {
	.testimonials__desc {
		width: 85%;
	}

    .testimonials__slider-navs {
        display: flex;
    }

    .tns-nav {
		display: none;
	}

	.tns-controls {
		display: flex;
	}

	.testimonials__wrapper {
        grid-template-columns: minmax(0, 413px) minmax(0, 856px);
	}
}

@media screen and (min-width: 1344px) {
	.testimonials {
		padding: 7rem 0;
	}
}

.tns-outer {
	position: relative;
}

.tns-outer .testimonials__slider {
	padding: 0 !important;
}

.tns-outer .testimonials__slider [hidden] {
	display: none !important;
}

.tns-outer .testimonials__slider [aria-controls],
.tns-outer .testimonials__slider [data-action] {
	cursor: pointer;
}

.testimonials__slider.tns-slider {
	transition: all 0s;
}

.testimonials__slider.tns-slider > .tns-item {
	box-sizing: border-box;
}

.testimonials__slider.tns-horizontal.tns-subpixel {
	white-space: nowrap;
}

.testimonials__slider.tns-gallery > .tns-item {
	left: -100%;
	position: absolute;
	transition: transform 0s, opacity 0s;
}

.testimonials__slider.tns-horizontal.tns-subpixel > .tns-item {
	display: inline-block;
	vertical-align: top;
	white-space: normal;
}

.testimonials__slider.tns-horizontal.tns-no-subpixel:after {
	clear: both;
	content: "";
	display: table;
}

.testimonials__slider.tns-horizontal.tns-no-subpixel > .tns-item {
	float: left;
	margin-right: -100%;
}

.testimonials__slider.tns-no-calc {
	left: 0;
	position: relative;
}

.testimonials__slider.tns-gallery {
	left: 0;
	position: relative;
}

.tns-lazy-img {
	opacity: 0.6;
	transition: opacity 0.6s;
}

.tns-lazy-img.loaded {
	opacity: 1;
}

.tns-ah {
	transition: height 0s;
}

.tns-ovh {
	overflow: hidden;
}

.tns-hdx {
	overflow-x: hidden;
}

.tns-hdy {
	overflow-y: hidden;
}

.tns-visually-hidden {
	left: -10000em;
	position: absolute;
}

.tns-transparent {
	opacity: 0;
	visibility: hidden;
}

.tns-fadeIn {
	filter: alpha(opacity=100);
	opacity: 1;
	z-index: 0;
}

.tns-normal,
.tns-fadeOut {
	filter: alpha(opacity=0);
	opacity: 0;
	z-index: -1;
}

.tns-nav {
	margin: 20px 0;
	text-align: center;
}

.tns-nav > [aria-controls] {
	background-color: #ddd;
	border: 0;
	border-radius: 50%;
	height: 12px;
	margin: 0 5px;
	padding: 0;
	width: 12px;
}

.tns-nav .tns-nav-active {
	background-color: #ff5e14;
}
