﻿/* ===============================
   TESTIMONIAL WRAPPER (Speech Bubble)
================================= */
.af-testimonials {
	position: relative;
	margin: 60px auto;
	max-width: calc(100% - 180px);
	padding: 30px 90px;
	background: #f8f8f8;
	border-radius: 40px;
	/* FIXED HEIGHT (adjust as needed) */
	height: 200px;
	display: flex;
	align-items: center;
	font-family: inherit;
	overflow: hidden;
}

	/* Speech bubble tail */
	.af-testimonials::after {
		content: "";
		position: absolute;
		bottom: -30px;
		left: 160px;
		width: 0;
		height: 0;
		border-left: 35px solid transparent;
		border-right: 35px solid transparent;
		border-top: 35px solid #f8f8f8;
	}

/* ===============================
   SLIDES CONTAINER
================================= */
.af-testimonial-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Individual slide */
.af-testimonial-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition-duration, 0.3s) ease-in-out;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

	.af-testimonial-slide.active {
		opacity: 1;
		visibility: visible;
	}

/* ===============================
   QUOTE TEXT
================================= */
.af-testimonial-quote {
	position: relative;
	font-size: 1.2rem;
	line-height: 1.5;
	color: #333;
	margin: 0 0 10px 0;
	padding: 0 50px;
	/* NEW */
	max-height: 160px; /* adjust based on your layout */
	overflow: hidden;
}
	/* Large quote marks */
	.af-testimonial-quote::before {
		content: "“";
		position: absolute;
		left: 0;
		top: -20px;
		font-size: 80px;
		color: #2a64ad;
		font-weight: bold;
	}

	.af-testimonial-quote::after {
		content: "”";
		position: absolute;
		right: 0;
		bottom: -40px;
		font-size: 80px;
		color: #2a64ad;
		font-weight: bold;
	}

/* ===============================
   AUTHOR
================================= */
.af-testimonial-author {
	font-weight: 600;
	font-size: 1.2rem;
	color: #2a64ad;
	margin-top: 10px;
}

/* ===============================
   NAVIGATION BUTTONS (optional)
================================= */
.af-testimonials .af-prev,
.af-testimonials .af-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.4);
	color: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 2;
	transition: background 0.3s ease;
}

	.af-testimonials .af-prev:hover,
	.af-testimonials .af-next:hover {
		background: rgba(0,0,0,0.7);
	}

.af-testimonials .af-prev {
	left: 15px;
}

.af-testimonials .af-next {
	right: 15px;
}

/* ===============================
   DOTS
================================= */
.af-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	position: absolute;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
}

	.af-dots button {
		width: 12px;
		height: 12px;
		border: none;
		border-radius: 50%;
		background: #ccc;
		cursor: pointer;
		transition: background 0.3s ease, transform 0.2s ease;
	}

		.af-dots button:hover {
			background: #888;
		}

		.af-dots button.active {
			background: #333;
			transform: scale(1.2);
		}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
	.af-testimonials {
		height: 380px;
		padding: 50px 40px;
	}

	.af-testimonial-quote {
		font-size: 1.2rem;
		padding: 0 40px;
	}

		.af-testimonial-quote::before,
		.af-testimonial-quote::after {
			font-size: 60px;
		}
}
