/**
 * Testimonial Carousel Styles
 * Modern, accessible testimonial slider
 */

.testimonial-section {
	padding: 80px 0;
	background: #081923;
	color: white;
	position: relative;
	overflow: hidden;
	font-family: var(--font-body, 'Roboto', 'Helvetica Neue', sans-serif);
}

.testimonial-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(13, 91, 211, 0.1) 0%, rgba(200, 168, 130, 0.05) 100%);
	pointer-events: none;
}

.testimonial-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
	z-index: 1;
}

.testimonial-header {
	text-align: center;
	margin-bottom: 60px;
}

.testimonial-header h2 {
	font-family: var(--font-heading, 'Poppins', 'Roboto', sans-serif);
	font-size: 2.5rem;
	font-weight: 800;
	color: white;
	margin-bottom: 16px;
}

.testimonial-header p {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.7);
	max-width: 600px;
	margin: 0 auto;
}

/* Carousel Container */
.testimonial-carousel {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
}

.testimonial-track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Testimonial Slide */
.testimonial-slide {
	min-width: 100%;
	padding: 40px;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-sizing: border-box;
}

.testimonial-slide.active {
	/* Active slide styles - handled by JS */
}

/* Quote Icon */
.testimonial-quote-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 24px;
	opacity: 0.3;
}

.testimonial-quote-icon svg {
	width: 100%;
	height: 100%;
	fill: #0D5BD3;
}

/* Testimonial Content */
.testimonial-content {
	margin-bottom: 30px;
}

.testimonial-text {
	font-size: 1.25rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.9);
	font-style: italic;
	margin: 0;
}

/* Rating Stars */
.testimonial-rating {
	display: flex;
	gap: 4px;
	margin-bottom: 24px;
}

.testimonial-rating svg {
	width: 20px;
	height: 20px;
	fill: #0D5BD3;
}

/* Author Info */
.testimonial-author {
	display: flex;
	align-items: center;
	gap: 16px;
}

.testimonial-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(13, 91, 211, 0.3);
}

.testimonial-author-info {
	flex-grow: 1;
}

.testimonial-author-name {
	font-weight: 700;
	font-size: 1.125rem;
	color: white;
	margin: 0 0 4px 0;
	font-family: var(--font-heading, 'Poppins', 'Roboto', sans-serif);
}

.testimonial-author-title {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* Navigation Controls */
.testimonial-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
}

.testimonial-nav-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.2);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.testimonial-nav-btn:hover {
	background: #0D5BD3;
	border-color: #0D5BD3;
	transform: scale(1.1);
}

.testimonial-nav-btn:active {
	transform: scale(0.95);
}

.testimonial-nav-btn svg {
	width: 24px;
	height: 24px;
}

.testimonial-nav-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* Dots Navigation */
.testimonial-dots {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.testimonial-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.testimonial-dot:hover {
	background: rgba(255, 255, 255, 0.5);
	transform: scale(1.2);
}

.testimonial-dot.active {
	background: #0D5BD3;
	width: 32px;
	border-radius: 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.testimonial-section {
		padding: 60px 0;
	}

	.testimonial-header h2 {
		font-size: 2rem;
	}

	.testimonial-header p {
		font-size: 1rem;
	}

	.testimonial-slide {
		padding: 30px 20px;
	}

	.testimonial-text {
		font-size: 1.125rem;
	}

	.testimonial-quote-icon {
		width: 36px;
		height: 36px;
		margin-bottom: 20px;
	}

	.testimonial-rating svg {
		width: 18px;
		height: 18px;
	}

	.testimonial-avatar {
		width: 48px;
		height: 48px;
	}

	.testimonial-author-name {
		font-size: 1rem;
	}

	.testimonial-nav-btn {
		width: 40px;
		height: 40px;
	}

	.testimonial-nav-btn svg {
		width: 20px;
		height: 20px;
	}
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
	.testimonial-track {
		transition: none;
	}

	.testimonial-nav-btn,
	.testimonial-dot {
		transition: none;
	}

	.testimonial-nav-btn:hover,
	.testimonial-dot:hover {
		transform: none;
	}
}

/* Focus styles for keyboard navigation */
.testimonial-nav-btn:focus,
.testimonial-dot:focus {
	outline: 2px solid #0D5BD3;
	outline-offset: 4px;
}
