﻿/* Container */
.af-testimonials {
	position: relative;
	padding: 30px 60px;
	width: calc(100% - 120px);
	margin: 0 auto;
	min-height:120px;
	overflow: hidden;
	font-family: inherit;
	background: #EDF6FF;

	/* NEW: two background images */
	background-image: url('/images/base/testimonials-left.png'), url('/images/base/testimonials-right.png');
	background-position: top left, bottom right;
	background-repeat: no-repeat, no-repeat;
	background-size: 50px, 50px; /* or specify exact sizes e.g. 100px 100px */
}

/* Slides container */
.af-testimonial-slides {
	position: relative;
	min-height: 100px; /* prevents collapse when all slides are absolutely positioned */
}

.af-testimonial-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition-duration, 0.3s) ease-in-out;
}

	.af-testimonial-slide.active {
		opacity: 1;
		visibility: visible;
		position: relative; /* ensures correct layout when active */
	}


/* Quote text */
.af-testimonial-quote {
	font-size: 1.0rem;
	font-style: italic;
	margin: 0 0 1rem 0;
	line-height:1.5em;
}

/* Author line */
.af-testimonial-author {
	font-weight: bold;
	font-size: 1rem;
	margin-top: 0.5rem;
	text-align: right;
}

/* Photo (optional) */
.af-testimonial-photo {
	text-align: center;
	margin-bottom: 1rem;
}

	.af-testimonial-photo img {
		max-width: 120px;
		border-radius: 50%;
		display: inline-block;
		object-fit: cover;
	}

/* Prev/Next buttons */
.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: 10px;
}

.af-testimonials .af-next {
	right: 10px;
}

/* Dots navigation */
.af-dots {
	display: flex;
	justify-content: center; /* centers dots in their own container */
	gap: 6px;
	position: absolute;
	bottom: 20px;
	left: 50%; /* position from horizontal center */
	transform: translateX(-50%); /* shift back by half its width */
	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); /* visually emphasize active dot */
		}

