/**
 * Testimonials Carousel Section Styles - MINIMAL
 * Only contains: layout, positioning, carousel overrides, responsive
 * Typography and colors are handled by inline block styles
 */

/* ==========================================================================
   Section Container - Layout
   ========================================================================== */

.testimonials {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--medium-padding) 0;
	background-color: var(--wp--preset--color--background);
	overflow: hidden;
}

/* ==========================================================================
   Heading (Left Side) - Layout
   ========================================================================== */

.testimonials__heading-wrapper {
	flex-shrink: 0;
	width: 544px;
	padding-left: 160px;
	padding-right: 64px;
}

.testimonials__heading {
	margin: 0;
}

/* ==========================================================================
   Carousel (Right Side) - Third-party plugin overrides
   ========================================================================== */

.testimonials__carousel-wrapper {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

/* Override Kindling Carousel styles */
.testimonials .testimonials__carousel-wrapper .wp-block-kindling-carousel,
.testimonials .testimonials__carousel-wrapper .wp-block-kindling-carousel:not(.alignfull):not(.alignwide) {
	overflow: visible;
	max-width: none;
	width: 100%;
}

.testimonials__carousel-wrapper .kindling-carousel-container {
	overflow: hidden;
	padding-left: 20px;
	margin-left: -20px;
}

.testimonials__carousel-wrapper .splide__track {
	overflow: hidden;
	padding-left: 20px;
	transform: translateX(-3244px);
}

.testimonials__carousel-wrapper .splide__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.testimonials .testimonials__carousel-wrapper .splide__slide {
	width: 512px !important;
	min-height: 505px;
	overflow: visible;
	flex-shrink: 0;
	margin-right: 32px !important;
}

.testimonials .testimonials__carousel-wrapper .splide__slide:last-child {
	margin-right: 0 !important;
}

/* ==========================================================================
   Testimonial Card - Layout
   ========================================================================== */

.testimonials .testimonial-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 512px;
	min-height: 505px;
	height: 505px;
	padding: 100px 45px 50px 45px;
	box-sizing: border-box;
	overflow: visible;
}

/* Quote icon positioning - REQUIRES CSS (absolute positioning) */
.testimonial-card__quote-icon {
	position: absolute;
	top: 50px;
	left: -15px;
	width: 76.58px;
	height: 53.131px;
}

.testimonial-card__quote-icon .wp-block-image {
	margin: 0;
	width: 76.58px;
	height: 53.131px;
}

.testimonial-card__quote-icon img {
	width: 76.58px;
	height: 53.131px;
	object-fit: contain;
}

.testimonial-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.testimonial-card__text {
	margin: 0 0 auto 0;
}

.testimonial-card__author {
	margin: 25px 0 0 0;
	text-align: right;
}

/* ==========================================================================
   Carousel Arrow Overrides
   ========================================================================== */

.testimonials__carousel-wrapper .splide__arrow {
	background-color: var(--wp--preset--color--primary);
	opacity: 1;
}

.testimonials__carousel-wrapper .splide__arrow svg {
	fill: var(--wp--preset--color--white);
}

.testimonials__carousel-wrapper .splide__arrow:hover {
	background-color: var(--wp--preset--color--secondary);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1440px) {
	.testimonials__heading-wrapper {
		width: 450px;
		padding-left: 100px;
		padding-right: 48px;
	}

	.testimonials .testimonials__carousel-wrapper .splide__slide {
		margin-right: 28px !important;
	}

	.testimonial-card {
		min-height: 340px;
		padding: 40px 35px 45px;
	}

	.testimonial-card__quote-icon {
		width: 65px;
		height: 45px;
	}
}

@media (max-width: 1280px) {
	.testimonials__heading-wrapper {
		width: 380px;
		padding-left: 60px;
		padding-right: 40px;
	}

	.testimonials .testimonials__carousel-wrapper .splide__slide {
		margin-right: 24px !important;
	}

	.testimonial-card {
		min-height: 320px;
		padding: 35px 30px 40px;
	}

	.testimonial-card__quote-icon {
		width: 55px;
		height: 38px;
	}

	.testimonial-card__author {
		margin-top: 30px;
	}
}

@media (max-width: 1024px) {
	.testimonials {
		flex-direction: column;
		padding: 80px 40px;
	}

	.testimonials__heading-wrapper {
		width: 100%;
		padding: 0;
		margin-bottom: 40px;
		text-align: center;
	}

	.testimonials__carousel-wrapper {
		width: 100%;
	}

	.testimonials .testimonials__carousel-wrapper .splide__slide {
		margin-right: 20px !important;
	}

	.testimonial-card {
		min-height: 300px;
	}
}

@media (max-width: 768px) {
	.testimonials {
		padding: 60px 24px;
	}

	.testimonials__heading-wrapper {
		margin-bottom: 32px;
	}

	.testimonials .testimonials__carousel-wrapper .splide__slide {
		margin-right: 16px !important;
	}

	.testimonial-card {
		min-height: 280px;
		padding: 30px 24px 35px;
	}

	.testimonial-card__quote-icon {
		width: 50px;
		height: 35px;
	}

	.testimonial-card__author {
		margin-top: 24px;
	}
}

@media (max-width: 375px) {
	.testimonials {
		padding: 48px 20px;
	}

	.testimonials .testimonials__carousel-wrapper .splide__slide {
		margin-right: 12px !important;
	}

	.testimonial-card {
		min-height: 260px;
		padding: 24px 20px 30px;
	}

	.testimonial-card__quote-icon {
		width: 45px;
		height: 32px;
	}

	.testimonial-card__author {
		margin-top: 20px;
	}
}

@media (max-width: 320px) {
	.testimonials {
		padding: 40px 16px;
	}

	.testimonials .testimonials__carousel-wrapper .splide__slide {
		margin-right: 10px !important;
	}

	.testimonial-card {
		min-height: 240px;
		padding: 20px 16px 24px;
	}

	.testimonial-card__quote-icon {
		width: 40px;
		height: 28px;
	}
}
