/**
 * Testimonial Widget Styles
 */

/* Container Layout */
.testimonial-widget {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.testimonial-section-title {
	text-align: center;
	margin-bottom: 40px;
	font-family: var(--iabt-font-family);
	font-size: clamp(var(--iabt-h3), 4vw, var(--iabt-h2));
	font-weight: var(--iabt-font-bold);
	color: var(--iabt-text-heading);
}

.testimonial-container {
	display: flex;
	align-items: center;
	gap: 40px;
}

.testimonial-video-wrapper {
	flex: 0 0 50%;
	max-width: 50%;
}

.testimonial-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Video Container */
.testimonial-video-container {
	position: relative;
	width: 100%;
	height: 300px;
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
}

.testimonial-video-container .swiper {
	width: 100%;
	height: 100%;
}

.testimonial-video-container .swiper-wrapper {
	height: 100%;
}

.testimonial-video-container .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

/* Video Item */
.testimonial-video-item {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.testimonial-video-iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 100%;
	border: none;
}

/* Content Styles */
.testimonial-subtitle {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 15px;
	opacity: 0.8;
}

.testimonial-title {
	font-size: 36px;
	font-weight: bold;
	line-height: 1.2;
	margin: 0;
}

.testimonial-description {
	margin: var(--iabt-paragraph-margin) 0 0;
	color: var(--iabt-text-body);
	font-family: var(--iabt-font-family);
	font-size: var(--iabt-text-base);
	font-weight: var(--iabt-font-regular);
	line-height: var(--iabt-line-height-body);
	letter-spacing: var(--iabt-letter-spacing-normal);
}

/* Navigation Arrows */
.testimonial-button-prev,
.testimonial-button-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.testimonial-button-prev:hover,
.testimonial-button-next:hover {
	background-color: rgba(0, 0, 0, 0.8);
	transform: translateY(-50%) scale(1.1);
}

.testimonial-button-prev {
	left: 15px;
}

.testimonial-button-next {
	right: 15px;
}

.testimonial-button-prev.swiper-button-disabled,
.testimonial-button-next.swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.testimonial-button-prev svg,
.testimonial-button-next svg {
	width: 20px;
	height: 20px;
}

/* Pagination */
.testimonial-pagination {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 8px;
}

.testimonial-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background-color: #ccc;
	border-radius: 50%;
	opacity: 1;
	transition: all 0.3s ease;
	cursor: pointer;
}

.testimonial-pagination .swiper-pagination-bullet:hover {
	background-color: #aaa;
}

.testimonial-pagination .swiper-pagination-bullet-active {
	background-color: #007bff;
	width: 30px;
	border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.testimonial-container {
		gap: 30px;
	}

	.testimonial-title {
		font-size: 28px;
	}
}

@media (max-width: 768px) {
	.testimonial-container {
		flex-direction: column;
		gap: 30px;
	}

	.testimonial-video-wrapper {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.testimonial-content {
		text-align: center;
	}

	.testimonial-video-container {
		height: 250px;
	}

	.testimonial-title {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.testimonial-video-container {
		height: 200px;
	}

	.testimonial-title {
		font-size: 20px;
	}

	.testimonial-subtitle {
		font-size: 12px;
	}

	.testimonial-button-prev,
	.testimonial-button-next {
		width: 35px;
		height: 35px;
	}

	.testimonial-button-prev {
		left: 10px;
	}

	.testimonial-button-next {
		right: 10px;
	}
}

/* Elementor Editor Compatibility */
.elementor-widget-testimonial .elementor-widget-container {
	overflow: visible;
}
