/* ============================================
   TESTIMONIAL SECTION COMPONENT
   Standalone component for "Hear From Industry Leaders" testimonial carousel
   
   Dependencies:
   - CSS Variables (from base.css):
     * --container-max-width-wide: Container max width
     * --container-side-margin: Side margins for containers
     * --amp-yellow: Brand yellow color (#fcb825)
     * --amp-gray: Brand gray color (#30303d)
     * --white: White color
   - External Libraries: Swiper (swiper-bundle.min.css)
   ============================================ */

/* Testimonial Section Container */
.testimonial-section {
	padding: 0 30px 0;
	position: relative;
	overflow: visible;
	padding-bottom: 60px; /* Add bottom padding to prevent SVG from being trimmed */
}

/* Wave SVG Background */
.testimonial-background {
	background-color: transparent;
	width: 100%;
	height: 100%; /* Limit height to prevent covering section title */
	max-height: 600px; /* Additional constraint for very tall sections */
	position: absolute;
	bottom: 0; /* Position at bottom of section */
	left: 0;
	right: 0;
	/* Use SVG wave as background */
	background-image: url('/assets/svg/wave.svg');
	background-size: cover;
	background-position: bottom center;
	background-repeat: no-repeat;
	z-index: 0;
	pointer-events: none; /* Ensure it doesn't interfere with interactions */
}

/* Testimonial Container */
.testimonial-container {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 1;
}

/* Testimonial Header Wrapper */
.testimonial-header-wrapper {
	margin-bottom: 80px;
}

/* Testimonial Card */
.testimonial-card {
	background-color: var(--white);
	border-radius: 12px;
	box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.15);
	color: var(--amp-gray);
	justify-content: flex-start;
	align-items: center;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 24px;
	margin-top: 8px; /* Add top margin to prevent box shadow from being trimmed */
	margin-left: 10px;
	margin-right: 10px;
	text-align: center;
}

.testimonial-card:hover {
	background-color: var(--white);
}

/* Testimonial Star Wrapper */
.testimonial-star-wrapper {
	grid-column-gap: 4px;
	grid-row-gap: 4px;
	flex-flow: row;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-bottom: 16px;
	display: flex;
}

/* Testimonial Icon */
.testimonial-icon {
	width: 24px;
	height: 24px;
	color: var(--amp-yellow);
}

/* Testimonial Content */
.testimonial-content {
	margin-bottom: 40px;
}

.testimonial-content:last-of-type {
	margin-bottom: 0;
}

/* Testimonial Text */
.testimonial-text {
	color: var(--amp-gray);
	letter-spacing: -.01em;
	margin-bottom: 0;
	font-family: Gotham Book, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

/* Testimonial Avatar */
.testimonial-avatar {
	width: 80px;
	height: 80px;
	min-width: 80px;
	min-height: 80px;
	border-radius: 50%;
	background-color: transparent;
	justify-content: center;
	align-items: center;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 16px;
	display: flex;
	overflow: hidden;
	border: none;
	padding: 0;
}

.testimonial-avatar-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: none;
	outline: none;
	image-rendering: auto;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Testimonial Name */
.testimonial-name {
	color: var(--amp-gray);
	letter-spacing: -.02em;
	margin-bottom: 8px;
	font-family: Gotham, Arial, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
}

/* Testimonial Role */
.testimonial-role {
	color: var(--amp-gray);
	letter-spacing: -.01em;
	margin-bottom: 0;
	font-family: Gotham Book, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

/* Swiper Carousel Styles */
.testimonial-slider.swiper {
	width: 100%;
	padding-left: 20px; /* Add left padding to allow box shadows to be visible */
	padding-right: 20px; /* Add right padding to allow box shadows to be visible */
	padding-bottom: 50px; /* Space for pagination */
	padding-top: 8px; /* Add top padding to accommodate box shadow */
	overflow: hidden; /* Hide partial cards at edges - only clip at container level */
	box-sizing: border-box; /* Include padding in width calculation */
	position: relative; /* Ensure proper positioning context */
}

.testimonial-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
	width: auto; /* Let Swiper calculate width */
	overflow: visible; /* Allow slides to move freely */
}

.testimonial-slider .swiper-slide {
	height: auto;
	display: flex;
	box-sizing: border-box;
	flex-shrink: 0; /* Prevent slides from shrinking */
	overflow: visible; /* Allow box shadows to be visible */
	/* Width is calculated by Swiper based on slidesPerView */
}

/* Swiper Pagination Styles */
.testimonial-slider .swiper-pagination {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	z-index: 10;
}

.testimonial-slider .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background-color: rgba(255, 255, 255, 0.4);
	opacity: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.testimonial-slider .swiper-pagination-bullet-active {
	width: 12px;
	height: 12px;
	background-color: var(--white);
}

/* Responsive Design - Tablet (max-width: 991px) */
@media screen and (max-width: 991px) {
	.testimonial-section {
		padding: 0 20px 0;
		padding-bottom: 60px;
	}

	.testimonial-slider.swiper {
		padding-left: 10px;
		padding-right: 10px;
	}
}

/* Responsive Design - Mobile (max-width: 767px) */
@media screen and (max-width: 767px) {
	.testimonial-section {
		padding: 0 15px 0;
		padding-bottom: 60px;
	}

	.testimonial-slider.swiper {
		padding-left: 5px;
		padding-right: 5px;
	}

	.testimonial-card {
		margin-left: 5px;
		margin-right: 5px;
	}
}

