/* Testimonials Block Styles */

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

.testimonials-container {
	margin: 0 auto 0px auto; /* Bottom margin for dots space */
	padding-left: 90px;
	padding-right: 90px;
	z-index: 5;
}

.testimonials-wrapper {
	position: relative;
	overflow: visible; /* Allow dots to show outside */
	padding-bottom: 90px;
}

.testimonials-wrapper .flickity-viewport {
	overflow: hidden;
	width: 100%;
	position: relative;
}

.testimonials-wrapper .flickity-slider {
	width: 100%;
}

.testimonials-slider .testimonial-slide {
	width: 100%;
	max-width: 100%;
	padding: 0 15px;
	box-sizing: border-box;
}

.testimonial-content {
	display: flex;
	align-items: center;
	gap: 50px;
	width: 100%;
	padding: 0 90px;
}

/* Headshot Image */
.testimonial-headshot {
	flex-shrink: 0;
	width: 273px;
	height: 273px;
}

.testimonial-headshot img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
}

/* Text Content */
.testimonial-text-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 50px;
	padding-top: 0px;
}

.testimonial-text {
	font-size: 24px;
	line-height: 1.5;
	font-weight: 400;
	margin: 0;
}

.testimonial-attribution {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.testimonial-name {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.testimonial-job-title {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	margin: 0;
	opacity: 0.9;
}

/* Flickity Navigation Styling - Matching Carousel */
.testimonials-block button {
	background: unset !important;
}

.testimonials-block .flickity-prev-next-button .flickity-button-icon {
	position: absolute;
	left: 20%;
	top: 20%;
	width: 100%;
	height: 100%;
}

.testimonials-block button svg {
	width: 74px;
	height: 74px;
	max-width: 74px;
	max-height: 74px;
}

.testimonials-block button svg path {
	fill: white !important;
}

.testimonials-block .flickity-prev-next-button {
	top: 50%;
	width: 74px;
	height: 74px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	transform: translateY(-50%);
}

.testimonials-block .flickity-prev-next-button:hover {
	background: rgba(255, 255, 255, 1);
}

.testimonials-block .flickity-prev-next-button:disabled {
	opacity: 0.3;
}

.testimonials-block .flickity-prev-next-button.previous {
	left: 0px;
}

.testimonials-block .flickity-prev-next-button.next {
	right: 0px;
}

/* Dots Navigation - Positioned outside overflow areas */
.testimonials-block .flickity-page-dots {
	bottom: -80px;
	position: absolute;
	z-index: 6; /* Above everything else */
	text-align: center;
	left: 0;
	right: 0;
	margin: 0 auto;
}

.testimonials-block .flickity-page-dots .dot {
	width: 12px;
	height: 12px;
	background: rgba(255, 255, 255, 0.5);
	margin: 0 6px;
	border-radius: 50%;
	opacity: 1;
}

.testimonials-block .flickity-page-dots .dot.is-selected {
	background: rgba(255, 255, 255, 1);
}

/* Responsive Design */
@media (max-width: 1024px) {
	.testimonials-container {
		padding-left: 60px;
		padding-right: 60px;
	}
	
	.testimonial-content {
		gap: 40px;
	}
	
	.testimonial-headshot {
		width: 200px;
		height: 200px;
	}
	
	.testimonial-text {
		font-size: 20px;
	}
	
	.testimonial-text-wrapper {
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.testimonial-content {
		display: flex;
		align-items: center;
		gap: 50px;
		width: 100%;
		padding: 0;
	}
	.testimonials-container {
		padding-left: 30px;
		padding-right: 30px;
	}
	
	.testimonial-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 30px;
	}
	
	.testimonial-headshot {
		width: 150px;
		height: 150px;
	}
	
	.testimonial-text {
		font-size: 18px;
	}
	
	.testimonial-text-wrapper {
		gap: 30px;
		width: 100%;
	}
	
	.testimonials-block .flickity-prev-next-button {
		display:none !important;;
	}
	
	.testimonials-block button svg {
		width: 44px;
		height: 44px;
		max-width: 44px;
		max-height: 44px;
	}
	
	.testimonials-block .flickity-prev-next-button.previous {
		left: 10px;
	}
	
	.testimonials-block .flickity-prev-next-button.next {
		right: 10px;
	}
}

@media (max-width: 480px) {
	.testimonials-container {
		padding-left: 20px;
		padding-right: 20px;
	}
	
	.testimonials-slider .testimonial-slide {
		padding: 0 15px;
	}
	
	.testimonial-text {
		font-size: 16px;
	}
	
	.testimonial-name {
		font-size: 18px;
	}
}