:root {
	--primary-color-dark: #4c2c6e;
	--secondary-color-light: #dad0f0;
	--highlight: #dad0f0;
	--third-color: #dad0f0;
}

.testimonials-section {
	background-color: var(--primary-color-dark);
	padding: 2rem 0 0;
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.headline-section {
	width: 100%;
	text-align: center;
	margin-bottom: 0.8rem;
}

.headline-section .container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 1rem;
}

.headline-section h2 {
	color: white;
	font-weight: 700;
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
	line-height: 1.2;
}

.headline-section .highlight {
	color: var(--secondary-color-light);
	font-weight: 800;
}

.headline-section h5 {
	text-align: center;
	color: var(--highlight);
	margin-top: 0.5rem;
	font-weight: 600;
	font-size: 1.25rem;
}

.triangle {
	display: block;
	margin: 0 auto;
	font-size: 130px;
	color: var(--third-color);
}

.splide__pagination__page.is-active {
	transform: scale(2.1);
}

.splide__pagination {
	gap: 1.3px;
	bottom: -1.8em !important;
}

.carousel-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 600px;
}

.carousel-inner {
	width: 100%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.splide {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}

.splide__track {
	overflow: hidden;
	position: relative;
}

.splide__list {
	display: flex;
	transition: transform 0.8s ease;
}

.splide__slide {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
}

.splide__slide>div {
	width: 100%;
	max-width: 450px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.testimonial-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.testimonial-name {
	color: white;
	font-weight: 600;
	font-size: 0.9rem;
	margin: 0;
	padding-bottom: 0.5rem;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-controls {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 2rem;
}

.carousel-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 3px solid white;
	background: linear-gradient(135deg, #a178ce, #8a5fb8);
	color: white;
	font-weight: bold;
	font-size: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	z-index: 100;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
	background: linear-gradient(135deg, white, #f0f0f0);
	color: var(--primary-color-dark);
	transform: scale(1.15);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	border-color: var(--secondary-color-light);
}

.carousel-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.carousel-btn:focus {
	outline: 2px solid var(--secondary-color-light);
	outline-offset: 2px;
}

.more-testimonials-box {
	padding: 1rem 1.5rem 0;
	text-align: center;
	transition: all 0.3s ease;
}

.more-testimonials-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	border-color: white;
}

.more-testimonials-box p {
	color: white;
	font-weight: 600;
	font-size: 0.65rem;
	margin: 0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Desktop - Botões ao lado do vídeo */
@media (min-width: 769px) {
	.carousel-inner {
		flex-direction: row;
		gap: 2rem;
		align-items: center;
		justify-content: center;
		max-width: 500px;
		margin: 0 auto;
		position: relative;
	}

	.splide {
		max-width: 350px;
		flex-shrink: 0;
	}

	.splide__slide>div {
		max-width: 300px;
	}

	.carousel-controls {
		margin-top: 0;
		flex-direction: row;
		gap: 0;
		position: absolute;
		width: 68%;
		justify-content: space-between;
		pointer-events: none;
		top: 42%;
		transform: translateY(-50%);
	}

	.carousel-btn {
		width: 55px;
		height: 55px;
		font-size: 1.4rem;
		pointer-events: auto;
		position: relative;
		z-index: 10;
		display: flex !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	#splide-prev {
		position: absolute;
		left: -60px;
		top: 50%;
		transform: translateY(-50%);
	}

	#splide-next {
		position: absolute;
		right: -60px;
		top: 50%;
		transform: translateY(-50%);
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.headline-section h2 {
		font-size: 2rem;
	}

	.headline-section h5 {
		font-size: 1.1rem;
	}

	.splide {
		max-width: 100%;
	}

	.splide__pagination {
		bottom: -1.5em !important;
	}

	.carousel-controls {
		gap: 1rem;
	}

	.carousel-btn {
		width: 55px;
		height: 55px;
		font-size: 1.3rem;
	}

	.testimonial-name {
		font-size: 1rem;
	}

	.more-testimonials-box {
		padding: 0.8rem 1.2rem;
		margin-top: 1rem;
	}

	.more-testimonials-box p {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {

	.headline-section h2 {
		font-size: 1.75rem;
	}

	.headline-section h5 {
		font-size: 1rem;
	}

	.carousel-btn {
		width: 50px;
		height: 50px;
		font-size: 1.2rem;
	}

	.testimonial-name {
		font-size: 0.9rem;
	}

	.more-testimonials-box {
		padding: 0.7rem 1rem;
		margin-top: 0.8rem;
	}

	.more-testimonials-box p {
		font-size: 0.55rem;
	}
}

/* Before After Carousel */
.before-after-carousel {
	max-width: 600px;
	margin: 0 0 2rem 0;
	position: relative;
	padding: 0 1rem;
}

.carousel-container {
	position: relative;
	overflow: hidden;
	border-radius: 15px;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transform: translateX(100%);
	transition: all 1.8s ease-in-out;
}

.carousel-slide.active {
	position: relative;
	opacity: 1;
	transform: translateX(0);
}

.carousel-slide.slide-out {
	opacity: 0;
	transform: translateX(-100%);
}

.before-after-item {
	display: flex;
	justify-content: center;
	align-items: center;
	background: white;
	border-radius: 15px;
	overflow: hidden;
	padding: 10px;
}

.before-after-item img {
	width: 100%;
	max-width: 500px;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 10px;
}

.carousel-indicators {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: all 0.3s ease;
}

.indicator.active {
	background: var(--secondary-color-light);
	transform: scale(1.2);
}

@media (max-width: 768px) {
	.before-after-carousel {
		max-width: 100%;
		margin: 1.5rem auto;
		padding: 0 0.5rem;
	}

	.before-after-item {
		padding: 5px;
	}

	.before-after-item img {
		max-width: 100%;
	}
}