/**
 * ROK Core - Testimonial
 */

/* =========================================================
   MAIN
========================================================= */

.rok-testimonial-widget {
	width: 100%;
	max-width: 100%;
}

.rok-testimonials {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 40px;
	row-gap: 40px;
}


/* =========================================================
   TESTIMONIAL ITEM
========================================================= */

.rok-testimonial-item {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	text-align: center;
}


/* =========================================================
   STARS
========================================================= */

.rok-testimonial-stars {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;

	margin: 0 0 10px;

	line-height: 1;
}

.rok-testimonial-stars .rok-star {
	display: inline-block;

	font-family: Arial, sans-serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1;

	color: #c5a66a;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.rok-testimonial-stars .rok-star-filled {
	color: #c5a66a;
}

.rok-testimonial-stars .rok-star-empty {
	color: #c5a66a;
	opacity: 0.35;
}


/* =========================================================
   TESTIMONIAL TEXT
========================================================= */

.rok-testimonial-text {
	width: 100%;
	max-width: 100%;

	margin: 0 auto 20px;

	color: #333333;

	font-size: 17px;
	font-weight: 400;
	line-height: 1.38;

	letter-spacing: 0;

	word-wrap: break-word;
	overflow-wrap: break-word;
}


/* =========================================================
   AUTHOR
========================================================= */

.rok-testimonial-author {
	display: flex;

	align-items: center;
	justify-content: center;

	gap: 12px;

	margin-top: 20px;
}

.rok-testimonial-author-image-wrap {
	flex: 0 0 auto;
}

.rok-testimonial-author-image {
	display: block;

	width: 50px;
	height: 50px;

	object-fit: cover;

	border-radius: 50%;
}

.rok-testimonial-author-content {
	display: flex;
	flex-direction: column;

	text-align: left;
}

.rok-testimonial-author-name {
	color: #222222;

	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.rok-testimonial-author-role {
	margin-top: 3px;

	color: #777777;

	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
}


/* =========================================================
   ANIMATION
========================================================= */

.rok-animation-none {
	opacity: 1;
	transform: none;
}

.rok-animation-fade-up,
.rok-animation-fade-in,
.rok-animation-zoom-in {
	opacity: 0;

	animation-duration: var(--rok-animation-duration);
	animation-delay: var(--rok-animation-delay);

	animation-fill-mode: forwards;
	animation-timing-function: ease-out;
}

.rok-animation-fade-up {
	animation-name: rokTestimonialFadeUp;
}

.rok-animation-fade-in {
	animation-name: rokTestimonialFadeIn;
}

.rok-animation-zoom-in {
	animation-name: rokTestimonialZoomIn;
}


@keyframes rokTestimonialFadeUp {

	from {
		opacity: 0;
		transform: translateY(25px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}

}


@keyframes rokTestimonialFadeIn {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}

}


@keyframes rokTestimonialZoomIn {

	from {
		opacity: 0;
		transform: scale(0.92);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}

}


/* =========================================================
   EDITOR
========================================================= */

.elementor-editor-active
.rok-animation-fade-up,
.elementor-editor-active
.rok-animation-fade-in,
.elementor-editor-active
.rok-animation-zoom-in {
	opacity: 1;
	animation: none;
}


/* =========================================================
   HOVER
========================================================= */

.rok-testimonial-item {
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
}

.rok-testimonial-item:hover {
	transform: translateY(-3px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

	.rok-testimonials {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 30px;
		row-gap: 40px;
	}

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

	.rok-testimonials {
		grid-template-columns: 1fr;

		column-gap: 0;
		row-gap: 40px;
	}

	.rok-testimonial-text {
		font-size: 16px;
		line-height: 1.5;
	}

	.rok-testimonial-stars {
		gap: 6px;
	}

	.rok-testimonial-stars .rok-star {
		font-size: 20px;
	}

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

	.rok-animation-fade-up,
	.rok-animation-fade-in,
	.rok-animation-zoom-in {
		opacity: 1;
		animation: none;
	}

	.rok-testimonial-item {
		transition: none;
	}

	.rok-testimonial-item:hover {
		transform: none;
	}

}