/**
 * SECTION: TESTIMONIALS
 * Embla Carousel (adminz_embla)
 * @package spawell-child
 * @since 1.0.0
 */

/* ==================================================
   SECTION WRAPPER
================================================== */
.mf-testimonials {
	padding: 100px 0;
	background: #636A55;
	border-radius: 16px;
	position: relative;
}

/* ==================================================
   HEADER
================================================== */
.mf-testimonials .section-header {
	text-align: left;
	margin-bottom: 50px;
}

.mf-testimonials .section-label {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255,255,255,.85);
	margin-bottom: 14px;
}

.mf-testimonials .section-title {
	font-size: 48px;
	line-height: 1.2;
	color: #fff;
	font-weight: 700;
	margin: 0;
}

.mf-testimonials .section-title em {
	font-style: italic;
	font-weight: 400;
	opacity: .95;
}

/* ==================================================
   EMBLA SLIDER - Infinite Loop Fix
================================================== */
.mf-testimonials .testimonials-embla {
	position: relative;
}

.mf-testimonials .embla__viewport {
	overflow: hidden;
}

.mf-testimonials .embla__container {
	display: flex;
	will-change: transform;
}

.mf-testimonials .embla__slide {
	flex: 0 0 calc((100% / 3) - 20px);
	min-width: 0;
	margin-right: 30px;
	box-sizing: border-box;
}

.mf-testimonials .embla__slide > .testimonial-card {
	height: 100%;
}

/* ==================================================
   NAVIGATION BUTTONS
================================================== */
.mf-testimonials .embla__prev,
.mf-testimonials .embla__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: var(--e-global-color-accent, #2f7d57);
	box-shadow: 0 6px 18px rgba(0,0,0,.15);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	padding: 0;
}

.mf-testimonials .embla__prev {
	left: -22px;
}

.mf-testimonials .embla__next {
	right: -22px;
}

.mf-testimonials .embla__prev::before {
	content: '‹';
	font-size: 26px;
	line-height: 1;
}

.mf-testimonials .embla__next::before {
	content: '›';
	font-size: 26px;
	line-height: 1;
}

/* ==================================================
   TESTIMONIAL CARD
================================================== */
.mf-testimonials .testimonial-card {
	background: #EFE7DA;
	padding: 28px;
	border-radius: 18px;
	border: 1px solid rgba(0,0,0,.04);
	box-shadow: 0 12px 30px rgba(0,0,0,.08);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.mf-testimonials .testimonial-rating {
	margin-bottom: 15px;
}

.mf-testimonials .testimonial-rating .star {
	font-size: 18px;
	color: #ddd;
}

.mf-testimonials .testimonial-rating .star.filled {
	color: #f5c518;
}

.mf-testimonials .testimonial-content {
	font-size: 16px;
    line-height: 1.7;
    font-style: italic;
    color: #000000;
    margin-bottom: 20px;
    flex-grow: 1;
}

.mf-testimonials .testimonial-author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.mf-testimonials .author-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.mf-testimonials .author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mf-testimonials .author-name {
	margin: 0 0 3px;
    color: #18864A;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2em;
    letter-spacing: 0px;
    margin-bottom: 5px;
}

.mf-testimonials .author-role {
	font-size: 16px;
    color: #282728;
    margin: 0;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 991px) {
	.mf-testimonials {
		padding: 70px 0;
	}

	.mf-testimonials .section-title {
		font-size: 36px;
	}
	
	.mf-testimonials .embla__slide {
		flex: 0 0 50%;
	}
}

@media (max-width: 767px) {
	.mf-testimonials {
		padding: 50px 0;
	}

	.mf-testimonials .section-title {
		font-size: 28px;
	}

	.mf-testimonials .section-header {
		margin-bottom: 30px;
	}
	
	.mf-testimonials .embla__slide {
		flex: 0 0 100%;
	}

	.mf-testimonials .embla__prev,
	.mf-testimonials .embla__next {
		display: none;
	}
}
