/*
 * Staff Testimonials Template Styles
 *
 * @package Homefront
 */

/* ─── Hero Section ─── */
.testimonials-hero {
	background-color: #2D3748;
	color: #ffffff;
	text-align: center;
	padding: 80px 20px 60px;
}

.testimonials-hero-inner {
	max-width: 760px;
	margin: 0 auto;
}

.testimonials-hero-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: #ffffff;
}

.testimonials-hero-subtitle {
	font-size: 1.125rem;
	line-height: 1.7;
	margin: 0;
	color: #DBEAFE;
}

/* ─── Intro Section ─── */
.testimonials-intro {
	background-color: #fafafa;
	padding: 50px 20px;
	border-bottom: 3px solid #ff6666;
}

.testimonials-intro-inner {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}

.testimonials-intro-inner p {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #444444;
	margin: 0 0 16px;
}

.testimonials-intro-inner p:last-child {
	margin-bottom: 0;
}

/* ─── Testimonials Grid ─── */
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 32px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 60px 20px;
}

/* Single testimonial: centered featured layout */
.testimonials-grid--single {
	grid-template-columns: 1fr;
	max-width: 680px;
}

.testimonials-grid--single .testimonial-card {
	display: grid;
	grid-template-columns: 1fr;
}

/* ─── Card ─── */
.testimonial-card {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-top: 3px solid #ff6666;
}

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

/* ─── Image ─── */
.testimonial-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

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

/* ─── Content ─── */
.testimonial-content {
	padding: 28px;
}

.testimonial-quote {
	margin: 0 0 20px;
	padding: 0;
	border: none;
	font-style: italic;
	font-size: 0.975rem;
	line-height: 1.75;
	color: #444444;
	position: relative;
}

.testimonial-quote::before {
	content: "\201C";
	font-size: 3rem;
	line-height: 1;
	color: #ff6666;
	font-family: Georgia, serif;
	display: block;
	margin-bottom: 4px;
}

.testimonial-quote p {
	margin: 0;
}

/* ─── Quote Truncation ─── */
.testimonial-quote-text {
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.testimonial-quote-text--expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

/* ─── Read More Button ─── */
.testimonial-read-more {
	background: none;
	border: none;
	color: #ff6666;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	padding: 8px 0 0;
	margin: 0 0 16px;
	display: inline-block;
	transition: color 0.2s ease;
}

.testimonial-read-more:hover,
.testimonial-read-more:focus {
	color: #e65555;
	text-decoration: underline;
}

/* ─── Author Info ─── */
.testimonial-author {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-top: 1px solid #eeeeee;
	padding-top: 18px;
}

.testimonial-name {
	font-weight: 700;
	font-size: 1rem;
	color: #2D3748;
}

.testimonial-title {
	font-size: 0.875rem;
	color: #ff6666;
	font-weight: 500;
}

/* ─── CTA Section ─── */
.testimonials-cta {
	background-color: #f7f7f7;
	padding: 70px 20px;
	border-top: 1px solid #e5e7eb;
}

.testimonials-cta-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.cta-block {
	background: #ffffff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	text-align: center;
}

.cta-block h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #2D3748;
	margin: 0 0 14px;
}

.cta-block p {
	font-size: 1rem;
	line-height: 1.7;
	color: #555555;
	margin: 0 0 24px;
}

/* ─── CTA Buttons (high specificity to override global/Elementor styles) ─── */
.testimonials-cta .cta-block a.cta-button {
	display: inline-block;
	padding: 12px 32px;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.5;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	background-color: #ff6666;
	color: #ffffff;
	border: 2px solid #ff6666;
	box-shadow: none;
}

.testimonials-cta .cta-block a.cta-button:hover,
.testimonials-cta .cta-block a.cta-button:focus {
	background-color: #e65555;
	border-color: #e65555;
	color: #ffffff;
	text-decoration: none;
	box-shadow: none;
}

.testimonials-cta .cta-block a.cta-button.cta-button--outline {
	background-color: transparent;
	color: #2D3748;
	border: 2px solid #2D3748;
}

.testimonials-cta .cta-block a.cta-button.cta-button--outline:hover,
.testimonials-cta .cta-block a.cta-button.cta-button--outline:focus {
	background-color: #2D3748;
	border-color: #2D3748;
	color: #ffffff;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
	.testimonials-hero {
		padding: 60px 20px 40px;
	}

	.testimonials-hero-title {
		font-size: 2rem;
	}

	.testimonials-cta-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.cta-block {
		padding: 32px 24px;
	}
}

@media (max-width: 576px) {
	.testimonials-grid {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 40px 16px;
	}

	.testimonials-grid--single {
		max-width: 100%;
	}

	.testimonials-hero-title {
		font-size: 1.75rem;
	}

	.testimonials-intro {
		padding: 36px 16px;
	}

	.testimonials-cta {
		padding: 48px 16px;
	}
}
