/* Testimonials Carousel Widget Styles */

.tcw-testimonials-carousel {
	width: 100%;
	position: relative;
}

.tcw-testimonials-carousel .swiper {
	width: 100%;
	padding-bottom: 50px;
}

.tcw-testimonials-carousel .swiper-slide {
	height: auto;
	display: flex;
}

/* Card Layout */
.tcw-testimonial-card {
	display: flex;
	flex-direction: row;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	width: 100%;
	min-height: 300px;
}

.tcw-testimonial-content {
	flex: 1;
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tcw-testimonial-image {
	width: 40%;
	min-width: 200px;
	position: relative;
	overflow: hidden;
}

.tcw-testimonial-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Rating Stars */
.tcw-rating {
	display: flex;
	gap: 2px;
}

.tcw-rating-star {
	font-size: 20px;
	color: #C9A227;
}

.tcw-rating-star.empty {
	opacity: 0.3;
}

/* Text Content */
.tcw-testimonial-text {
	font-size: 18px;
	line-height: 1.6;
	color: #333333;
	margin-top: 16px;
}

.tcw-testimonial-name {
	font-size: 16px;
	font-weight: 600;
	color: #333333;
	margin-top: 24px;
}

.tcw-testimonial-hashtag {
	font-size: 14px;
	color: #888888;
	margin-top: 8px;
}

/* Pagination */
.tcw-testimonials-carousel .swiper-pagination {
	position: relative;
	bottom: 0;
	margin-top: 24px;
}

.tcw-testimonials-carousel .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #cccccc;
	opacity: 1;
	transition: background-color 0.3s ease;
}

.tcw-testimonials-carousel .swiper-pagination-bullet-active {
	background: #6B21A8;
}

/* Navigation Arrows */
.tcw-testimonials-carousel .swiper-button-prev,
.tcw-testimonials-carousel .swiper-button-next {
	width: 44px;
	height: 44px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.tcw-testimonials-carousel .swiper-button-prev:hover,
.tcw-testimonials-carousel .swiper-button-next:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tcw-testimonials-carousel .swiper-button-prev::after,
.tcw-testimonials-carousel .swiper-button-next::after {
	font-size: 18px;
	font-weight: bold;
	color: #6B21A8;
}

/* Centered Slide Effect - Peek from sides */
.tcw-testimonials-carousel .swiper-slide {
	opacity: 0.7;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: scale(0.95);
}

.tcw-testimonials-carousel .swiper-slide-active {
	opacity: 1;
	transform: scale(1);
}

.tcw-testimonials-carousel.no-center .swiper-slide {
	opacity: 1;
	transform: scale(1);
}

/* Container overflow control */
.tcw-testimonials-carousel {
	overflow: hidden;
}

.tcw-testimonials-carousel .swiper {
	overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.tcw-testimonial-card {
		min-height: 250px;
	}

	.tcw-testimonial-text {
		font-size: 16px;
	}

	.tcw-testimonials-carousel .swiper-button-prev,
	.tcw-testimonials-carousel .swiper-button-next {
		width: 36px;
		height: 36px;
	}

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

@media (max-width: 767px) {
	.tcw-testimonial-card {
		flex-direction: column-reverse;
		min-height: auto;
	}

	.tcw-testimonial-image {
		width: 100%;
		min-width: auto;
		height: 200px;
	}

	.tcw-testimonial-content {
		padding: 24px;
	}

	.tcw-testimonial-text {
		font-size: 15px;
	}

	.tcw-testimonials-carousel .swiper-button-prev,
	.tcw-testimonials-carousel .swiper-button-next {
		display: none;
	}
}

/* Editor Preview Styles */
.elementor-editor-active .tcw-testimonials-carousel .swiper-slide {
	opacity: 1;
}
