@import url("https://unpkg.com/swiper/swiper-bundle.min.css");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

.wctfe-testimonials-carousel,
.wctfe-testimonials-carousel *,
.testimonial,
.testimonial *,
.testimonial-author,
.testimonial-company,
.testimonial-content,
.testimonial-expand-btn {
	font-family: "Montserrat", sans-serif !important;
}

.wctfe-testimonials-carousel {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
	position: relative;
	overflow: hidden;
}

.wctfe-testimonials-carousel:not(.swiper) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.wctfe-testimonials-carousel:not(.swiper) .testimonial {
	margin: 0;
}

.testimonial {
	background: #fff;
	padding: 25px 20px;
	margin: 10px;
	border-radius: 16px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-content: flex-start;
}

.testimonial:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50% !important;
	object-fit: cover;
	margin-bottom: 15px;
	border: 3px solid #f0f0f0;
	background: linear-gradient(135deg, #eae866 0%, #a29b4b 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
	font-weight: 600;
	overflow: hidden !important;
	order: 0;
}

.testimonial-avatar img {
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
	object-fit: cover !important;
}

.testimonial-author {
	font-weight: 700 !important;
	color: #333 !important;
	font-size: 16px !important;
	margin: 0 0 8px 0 !important;
	order: 1;
}

.testimonial-company {
	font-size: 13px !important;
	color: #888 !important;
	margin-bottom: 20px !important;
	font-weight: 500 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	order: 2;
}

.testimonial-content {
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	margin: 0;
	font-style: italic;
	position: relative;
	flex-grow: 1;
	order: 3;
}

.testimonial-content::before,
.testimonial-content::after {
	content: '"';
	font-size: 24px;
	color: #ddd;
	font-family: serif;
	position: absolute;
}

.testimonial-content::before {
	top: -10px;
	left: -5px;
}

.testimonial-content::after {
	bottom: -15px;
	right: -5px;
	transform: rotate(180deg);
}

.testimonial-content.truncated {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: var(--max-lines, 4);
	-webkit-box-orient: vertical;
}

.testimonial-expand-btn {
	all: unset !important;
	color: rgba(0, 0, 0, 0.7) !important;
	font-size: 13px !important;
	cursor: pointer !important;
	margin-top: auto !important;
	font-weight: 500 !important;
	text-decoration: underline !important;
	transition: color 0.3s ease !important;
	display: block !important;
	order: 10 !important;
	align-self: center !important;
	padding-top: 15px !important;
}

.testimonial-expand-btn:hover,
.testimonial-expand-btn:focus,
.testimonial-expand-btn:active {
	color: rgba(0, 0, 0, 0.9) !important;
	text-decoration: underline !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Navigation arrows without background */
.wctfe-testimonials-carousel .swiper-button-next,
.wctfe-testimonials-carousel .swiper-button-prev {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	width: 45px !important;
	height: 45px !important;
	border: none !important;
	border-radius: 0 !important;
	color: rgba(0, 0, 0, 0.7) !important;
	font-size: 16px !important;
	transition: all 0.3s ease !important;
	top: 50% !important;
	margin-top: -22.5px !important;
	box-shadow: none !important;
}

.wctfe-testimonials-carousel .swiper-button-next::after,
.wctfe-testimonials-carousel .swiper-button-prev::after {
	font-size: 20px !important;
	font-weight: bold !important;
	color: rgba(0, 0, 0, 0.7) !important;
}

.wctfe-testimonials-carousel .swiper-button-next:hover,
.wctfe-testimonials-carousel .swiper-button-prev:hover {
	color: rgba(0, 0, 0, 0.9) !important;
	transform: scale(1.1) !important;
	background: none !important;
	background-color: transparent !important;
}

.wctfe-testimonials-carousel .swiper-button-next:hover::after,
.wctfe-testimonials-carousel .swiper-button-prev:hover::after {
	color: rgba(0, 0, 0, 0.9) !important;
}

.wctfe-testimonials-carousel .swiper-button-next {
	right: -10px;
}

.wctfe-testimonials-carousel .swiper-button-prev {
	left: -10px;
}

.wctfe-testimonials-carousel .swiper-pagination {
	bottom: -35px;
}

.wctfe-testimonials-carousel .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ddd;
	opacity: 1;
	transition: all 0.3s ease;
}

.wctfe-testimonials-carousel .swiper-pagination-bullet-active {
	background: rgba(0, 0, 0, 0.7);
	transform: scale(1.3);
}

@media (max-width: 1024px) {
	.wctfe-testimonials-carousel .swiper-button-next {
		right: -5px;
	}

	.wctfe-testimonials-carousel .swiper-button-prev {
		left: -5px;
	}
}

@media (max-width: 768px) {
	.wctfe-testimonials-carousel {
		padding: 0 10px;
	}

	.testimonial {
		padding: 25px 20px;
		margin: 5px;
		min-height: 180px;
	}

	.testimonial::before {
		font-size: 45px;
		top: 5px;
		left: 15px;
	}

	.testimonial-content {
		font-size: 15px;
		margin: 15px 0 12px 0;
	}

	.wctfe-testimonials-carousel .swiper-button-next,
	.wctfe-testimonials-carousel .swiper-button-prev {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}

	.wctfe-testimonials-carousel .swiper-button-next::after,
	.wctfe-testimonials-carousel .swiper-button-prev::after {
		font-size: 14px;
	}

	.wctfe-testimonials-carousel .swiper-button-next {
		right: 0px;
	}

	.wctfe-testimonials-carousel .swiper-button-prev {
		left: 0px;
	}
}

@media (max-width: 480px) {
	.testimonial {
		padding: 20px 15px;
		min-height: 160px;
	}

	.testimonial-content {
		font-size: 14px;
	}

	.testimonial-author {
		font-size: 13px;
	}
}
