/* ==========================================================================
   Theta HVAC - Testimonial Carousel & Grid Widget Styles
   ========================================================================== */

.th-testimonial-wrap {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

/* Header (Optional integrated header) */
.th-testi-header {
	text-align: center;
	margin-bottom: 48px;
}

.th-testi-eyebrow {
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	font-weight: 700;
	color: #00a8e8;
	margin-bottom: 8px;
}

.th-testi-title {
	font-size: 32px;
	font-weight: 700;
	color: #0d2b4e;
	margin: 0 0 12px;
	line-height: 1.25;
}

.th-testi-subtitle {
	font-size: 14px;
	color: #6b7280;
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Swiper Container Padding to accommodate floating quote badge & shadow */
.th-testi-swiper-container {
	padding-top: 32px !important;
	padding-bottom: 48px !important;
	padding-left: 8px !important;
	padding-right: 8px !important;
	overflow: hidden;
}

.th-testi-swiper-container .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.th-testi-swiper-container .swiper-slide {
	height: auto !important;
	display: flex;
	box-sizing: border-box;
}

/* Grid Layout Mode */
.th-testi-grid {
	display: grid;
	gap: 28px;
	padding-top: 30px;
}

.th-testi-grid.cols-1 {
	grid-template-columns: 1fr;
}

.th-testi-grid.cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.th-testi-grid.cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.th-testi-grid.cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
	.th-testi-grid.cols-3,
	.th-testi-grid.cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.th-testi-grid.cols-2,
	.th-testi-grid.cols-3,
	.th-testi-grid.cols-4 {
		grid-template-columns: 1fr;
	}
}

/* Testimonial Card */
.th-testi-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 42px 28px 28px;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.th-testi-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(11, 83, 148, 0.12);
}

/* Floating Circular Quote Badge */
.th-testi-quote-badge {
	position: absolute;
	top: -24px;
	left: 50%;
	transform: translateX(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #005b9f 0%, #00a8e8 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 91, 159, 0.32);
	z-index: 2;
}

.th-testi-quote-badge svg,
.th-testi-quote-badge i {
	width: 20px;
	height: 20px;
	fill: currentColor;
	font-size: 18px;
}

/* Rating Stars */
.th-testi-rating {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-bottom: 14px;
	color: #f59e0b;
	font-size: 14px;
}

.th-testi-rating svg {
	width: 15px;
	height: 15px;
	fill: #f59e0b;
}

/* Content Text */
.th-testi-content {
	flex-grow: 1;
	font-size: 15px;
	line-height: 1.65;
	color: #4b5563;
	margin: 0 0 20px;
	font-style: normal;
}

.th-testi-content p {
	margin: 0;
}

/* Author Section */
.th-testi-author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}

.th-testi-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.th-testi-avatar-initials {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0b5394 0%, #1aa3e6 100%);
	color: #ffffff;
	font-weight: 700;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 3px 8px rgba(11, 83, 148, 0.2);
}

.th-testi-author-info {
	text-align: left;
}

.th-testi-author-info.center-align {
	text-align: center;
}

.th-testi-name {
	font-size: 15px;
	font-weight: 700;
	color: #0d2b4e;
	margin: 0 0 2px;
	line-height: 1.25;
}

.th-testi-role {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
	line-height: 1.3;
}

/* Swiper Pagination Dots */
.th-testi-pagination {
	position: relative !important;
	bottom: 0 !important;
	margin-top: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.th-testi-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background-color: #cbd5e1;
	opacity: 1;
	border-radius: 50%;
	transition: all 0.3s ease;
	cursor: pointer;
	margin: 0 !important;
}

.th-testi-pagination .swiper-pagination-bullet-active {
	background-color: #005b9f;
	width: 26px;
	border-radius: 6px;
}

/* Navigation Arrows (Optional) */
.th-testi-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	color: #0d2b4e;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transition: all 0.25s ease;
}

.th-testi-arrow:hover {
	background: #005b9f;
	color: #ffffff;
	border-color: #005b9f;
	box-shadow: 0 6px 18px rgba(0, 91, 159, 0.3);
}

.th-testi-arrow-prev {
	left: -20px;
}

.th-testi-arrow-next {
	right: -20px;
}

@media (max-width: 768px) {
	.th-testi-arrow {
		display: none;
	}
}
