/**
 * Testimonials Page Styles
 * Dedicated stylesheet for travelled-guests.php
 * Following best practices and accessibility guidelines
 */

/* ===== Introduction Section ===== */
.testimonials-intro {
	padding: 3rem 0;
	background: #ffffff;
}

.testimonials-intro .content-heading {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.testimonials-intro .main-heading {
	font-size: 2.8rem;
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 1rem;
}

.testimonials-intro .main-subtitle {
	font-size: 1.4rem;
	line-height: 1.75;
	color: #4a5568;
	margin-bottom: 1.5rem;
	display: block;
}

/* ===== Screen Reader Only ===== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
	padding: 2rem 0 4rem;
	background: #f7fafc;
}

.testimonials-grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

/* ===== Testimonial Card ===== */
.testimonial-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
	display: flex;
	flex-direction: row;
	padding: 2rem;
	gap: 2rem;
	align-items: flex-start;
}

/* ===== Testimonial Image ===== */
.testimonial-image {
	flex-shrink: 0;
}

.testimonial-image a {
	display: block;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.testimonial-image a:hover {
	transform: scale(1.05);
}

.testimonial-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ===== Testimonial Body ===== */
.testimonial-body {
	flex: 1;
	min-width: 0;
}

.testimonial-author {
	font-size: 1.8rem;
	font-weight: 600;
	color: #2d3748;
	margin: 0 0 1rem;
	line-height: 1.4;
}

.testimonial-text {
	color: #4a5568;
	line-height: 1.75;
}

.testimonial-text p {
	margin: 0 0 1rem;
	font-size: 1.4rem;
}

.testimonial-text p:last-child {
	margin-bottom: 0;
}

/* ===== Expanded Testimonial Card ===== */
.testimonial-card-expanded .testimonial-content {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.testimonial-card-expanded .testimonial-body {
	width: 100%;
}

/* ===== Responsive Design ===== */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
	.travelled-guests-hero {
		padding: 3rem 0 3rem;
	}

	.travelled-guests-hero .main-heading {
		font-size: 2rem;
	}

	.testimonials-intro .main-heading {
		font-size: 1.75rem;
	}

	.testimonials-intro .main-subtitle {
		font-size: 1.4rem;
	}

	.testimonial-content {
		padding: 1.5rem;
		gap: 1.5rem;
	}

	.testimonial-image a {
		width: 100px;
		height: 100px;
	}

	.testimonial-author {
		font-size: 1.8rem;
	}
}

/* Mobile devices */
@media (max-width: 768px) {
	.travelled-guests-hero {
		padding: 2rem 0 2rem;
	}

	.travelled-guests-hero .main-heading {
		font-size: 1.5rem;
	}

	.testimonials-intro {
		padding: 2rem 0;
	}

	.testimonials-intro .main-heading {
		font-size: 1.5rem;
	}

	.testimonials-intro .main-subtitle {
		font-size: 1.4rem;
	}

	.testimonials-section {
		padding: 1.5rem 0 3rem;
	}

	.testimonials-grid {
		gap: 1.5rem;
	}

	.testimonial-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 1.5rem;
		gap: 1rem;
	}

	.testimonial-image a {
		width: 90px;
		height: 90px;
	}

	.testimonial-author {
		font-size: 1.8rem;
		margin-bottom: 0.75rem;
	}

	.testimonial-text p {
		font-size: 1.4rem;
	}
}

/* Small mobile devices */
@media (max-width: 480px) {
	.travelled-guests-hero .main-heading {
		font-size: 1.25rem;
	}

	.testimonials-intro .main-heading {
		font-size: 1.25rem;
	}

	.testimonials-intro .main-subtitle {
		font-size: 1.4rem;
	}

	.testimonial-content {
		padding: 1rem;
	}

	.testimonial-image a {
		width: 80px;
		height: 80px;
	}

	.testimonial-author {
		font-size: 1.8rem;
	}

	.testimonial-text p {
		font-size: 1.4rem;
	}
}

/* ===== Print Styles ===== */
@media print {
	.testimonial-card {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #000;
	}

	.testimonial-image a:hover {
		transform: none;
	}

	.testimonial-card:hover {
		transform: none;
		box-shadow: none;
	}
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
	.testimonial-card {
		border: 2px solid #000;
	}

	.testimonial-author {
		font-weight: 700;
	}
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
	.testimonial-card,
	.testimonial-image a {
		transition: none;
	}

	.testimonial-card:hover {
		transform: none;
	}

	.testimonial-image a:hover {
		transform: none;
	}
}

/* ===== Focus Styles for Accessibility ===== */
.testimonial-image a:focus {
	outline: 3px solid #667eea;
	outline-offset: 3px;
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
	.testimonials-section {
		background: #1a202c;
	}

	.testimonial-card {
		background: #2d3748;
		border-color: #4a5568;
	}

	.testimonial-author {
		color: #e2e8f0;
	}

	.testimonial-text {
		color: #cbd5e0;
	}

	.testimonials-intro {
		background: #2d3748;
	}

	.testimonials-intro .main-heading {
		color: #e2e8f0;
	}

	.testimonials-intro .main-subtitle {
		color: #cbd5e0;
	}
}

