/* =========================================================
   MSS Testimonial Carousel — Stylesheet v1.0.1
   ========================================================= */

/* ── Box sizing reset ──────────────────────────────────── */
.hs-tc-wrapper *,
.hs-tc-wrapper *::before,
.hs-tc-wrapper *::after {
	box-sizing: border-box;
}

/* ── Wrapper ────────────────────────────────────────────── */
.hs-tc-wrapper {
	position: relative;
	width: 100%;
}

/* ── Section Header ─────────────────────────────────────── */
.hs-tc-header {
	text-align: center;
	margin-bottom: 40px;
}

.hs-tc-section-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a2e4a;
	margin: 0 0 12px;
	line-height: 1.3;
}

.hs-tc-section-subtitle {
	font-size: 1rem;
	color: #546e8a;
	margin: 0 auto;
	max-width: 600px;
	display: block;
	line-height: 1.6;
}

/* ── Carousel Container ─────────────────────────────────── */
.hs-tc-carousel-container {
	position: relative;
}

/* ── Swiper outer ───────────────────────────────────────── */
.hs-tc-swiper-outer {
	display: flex;
	align-items: center;
}

/*
   Side-arrow layout: instead of putting arrows as flex children
   we use padding so the shadow is NEVER clipped by overflow:hidden
   on the swiper. Arrows sit absolutely inside this padded area.
*/
.hs-tc-arrows-sides .hs-tc-swiper-outer {
	padding-left: 60px;
	padding-right: 60px;
	position: relative;
}

.hs-tc-arrows-sides .hs-tc-swiper-outer .swiper {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

/* ── Arrow buttons ──────────────────────────────────────── */
.hs-tc-arrow {
	--hs-arrow-size: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hs-arrow-size);
	height: var(--hs-arrow-size);
	min-width: var(--hs-arrow-size);
	min-height: var(--hs-arrow-size);
	aspect-ratio: 1;
	flex-shrink: 0;
	background-color: #ffffff;
	color: #1a2e4a;
	border: none;
	border-radius: 50% !important;
	cursor: pointer;
	font-size: 1.3rem;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
	user-select: none;
	outline: none;
	z-index: 10;
	padding: 0;
}

.hs-tc-arrow:hover {
	background-color: #f59e0b;
	color: #ffffff;
}

.hs-tc-arrow:disabled,
.hs-tc-arrow.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* Side arrows: absolute so they float over the padded space */
.hs-tc-arrows-sides .hs-tc-prev,
.hs-tc-arrows-sides .hs-tc-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.hs-tc-arrows-sides .hs-tc-prev {
	left: 0;
}

.hs-tc-arrows-sides .hs-tc-next {
	right: 0;
}

.hs-tc-arrows-sides .hs-tc-prev:hover,
.hs-tc-arrows-sides .hs-tc-next:hover {
	transform: translateY(-50%) scale(1.08);
}

/* Bottom / top nav rows */
.hs-tc-nav-bottom,
.hs-tc-nav-top {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.hs-tc-nav-top {
	margin-top: 0;
	margin-bottom: 16px;
	justify-content: flex-end;
}

.hs-tc-dir-rtl .hs-tc-nav-top {
	justify-content: flex-start;
}

/* ── Dots ────────────────────────────────────────────────── */
.hs-tc-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 20px;
	position: static !important;
}

.hs-tc-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background-color: #c8d8ea;
	opacity: 1;
	border-radius: 50%;
	transition: background-color 0.2s ease, width 0.2s ease;
	cursor: pointer;
	display: inline-block;
	flex-shrink: 0;
}

.hs-tc-pagination .swiper-pagination-bullet-active {
	background-color: #f59e0b;
	width: 22px;
	border-radius: 6px;
}

/* ── Card ────────────────────────────────────────────────── */
.hs-tc-card {
	background-color: #ffffff;
	border-radius: 20px;
	padding: 32px 28px 28px;
	margin: 10px 30px 10px 30px;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 10px 40px rgba(0, 80, 160, 0.08);
	overflow: hidden;
}

.hs-tc-card:hover {
	transform: translateY(-3px);
}

a.hs-tc-card {
	cursor: pointer;
}

/* ── Quote Icon ─────────────────────────────────────────── */
.hs-tc-quote-icon {
	display: block;
	font-size: 48px;
	line-height: 1;
	color: #dce8f5;
	font-family: Georgia, "Times New Roman", serif;
	margin-bottom: 4px;
	user-select: none;
}

.hs-tc-dir-rtl .hs-tc-quote-icon {
	text-align: right;
}

.hs-tc-dir-ltr .hs-tc-quote-icon {
	text-align: left;
}

/* ── Quote Title & Body ─────────────────────────────────── */
.hs-tc-quote-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1a2e4a;
	margin: 0 0 10px;
	line-height: 1.4;
}

.hs-tc-quote-body {
	font-size: 0.92rem;
	color: #546e8a;
	line-height: 1.7;
	margin: 0;
	flex: 1;
}

.hs-tc-dir-rtl .hs-tc-quote-title,
.hs-tc-dir-rtl .hs-tc-quote-body {
	text-align: right;
}

/* ── Card Footer ────────────────────────────────────────── */
.hs-tc-card-footer {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ── Author Row ─────────────────────────────────────────── */
/*
  LTR: [avatar]  [name]
  RTL: [name]  [avatar]   ← avatar on the RIGHT
*/
.hs-tc-author-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* dir attribute on wrapper handles flex reversal natively — no explicit row-reverse needed */
.hs-tc-dir-ltr .hs-tc-author-row {
	flex-direction: row;
}

.hs-tc-dir-rtl .hs-tc-author-row {
	flex-direction: row;
}

/* ── Avatar ─────────────────────────────────────────────── */
.hs-tc-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid #e8f0f8;
	display: block;
}

/* ── Author Info ────────────────────────────────────────── */
.hs-tc-author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hs-tc-dir-rtl .hs-tc-author-info {
	text-align: right;
}

.hs-tc-dir-ltr .hs-tc-author-info {
	text-align: left;
}

.hs-tc-author-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1a2e4a;
	display: block;
}

.hs-tc-author-company {
	font-size: 0.82rem;
	color: #546e8a;
	display: block;
}

.hs-tc-author-position {
	font-size: 0.78rem;
	color: #7a96b0;
	display: block;
}

/* ── Card Actions (stars + button) ─────────────────────── */
/*
  LTR: [★★★★☆] ────────────── [> Button]
  RTL: [Button <] ────────────── [★★★★☆]   ← stars on the RIGHT
*/
.hs-tc-card-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

/* dir attribute on wrapper handles flex reversal natively — no explicit row-reverse needed */
.hs-tc-dir-rtl .hs-tc-card-actions {
	flex-direction: row;
}

/* ── Rating Stars ────────────────────────────────────────── */
.hs-tc-rating {
	display: flex;
	align-items: center;
	gap: 2px;
	/* Always LTR internally so ★ renders left-to-right */
	direction: ltr;
}

.hs-tc-star {
	font-size: 20px;
	line-height: 1;
}

.hs-tc-star.filled {
	color: #f59e0b;
}

.hs-tc-star.empty {
	color: #d1d5db;
}

/* ── Button ─────────────────────────────────────────────── */
.hs-tc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #f59e0b;
	color: #ffffff;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 8px;
	transition: background-color 0.2s ease, transform 0.15s ease;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}

.hs-tc-btn:hover {
	background-color: #d97706;
	color: #fff;
	text-decoration: none;
}

.hs-tc-dir-rtl .hs-tc-btn:hover {
	transform: translateX(2px);
}

.hs-tc-dir-ltr .hs-tc-btn:hover {
	transform: translateX(-2px);
}

.hs-tc-btn-arrow {
	font-size: 1.1em;
	line-height: 1;
}

/* ── Swiper core overrides ───────────────────────────────── */
.hs-tc-swiper-outer .swiper {
	width: 100%;
	overflow: hidden;
	height: 500px;
}

.hs-tc-swiper-outer .swiper-wrapper {
	align-items: stretch;
}




/*
   Shadow-safe padding: the card shadow (0 10px 40px) needs room inside
   each slide so overflow:hidden on the swiper doesn't clip it.
   We pad the slide and let the card fill the remaining space.
*/
.hs-tc-swiper-outer .swiper-slide {
	height: 400px;
	display: flex;
	padding: 20px 12px;
}

.hs-tc-swiper-outer .swiper-slide .hs-tc-card {
	width: 100%;
}

/* ── Responsive ─────────────────────────────────────────── */

/* Tablet ≤ 900px */
@media (max-width: 900px) {
	.hs-tc-section-title {
		font-size: 1.6rem;
	}

	.hs-tc-arrows-sides .hs-tc-swiper-outer {
		padding-left: 52px;
		padding-right: 52px;
	}
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {
	.hs-tc-section-title {
		font-size: 1.35rem;
	}

	.hs-tc-section-subtitle {
		font-size: 0.9rem;
	}

	.hs-tc-header {
		margin-bottom: 28px;
	}

	/* Remove side-arrow padding → rely on dots or bottom nav */
	.hs-tc-arrows-sides .hs-tc-swiper-outer {
		padding-left: 0;
		padding-right: 0;
	}

	/* Hide side arrows on small screens */
	.hs-tc-arrows-sides .hs-tc-prev,
	.hs-tc-arrows-sides .hs-tc-next {
		display: none;
	}

	/* Always show bottom nav on mobile */
	.hs-tc-nav-bottom {
		display: flex !important;
		margin-top: 14px;
	}

	.hs-tc-card {
		padding: 24px 18px 20px;
	}

	.hs-tc-quote-title {
		font-size: 0.98rem;
	}

	.hs-tc-quote-body {
		font-size: 0.88rem;
	}

	.hs-tc-avatar {
		width: 50px;
		height: 50px;
	}

	.hs-tc-star {
		font-size: 16px;
	}

	.hs-tc-btn {
		font-size: 0.8rem;
		padding: 7px 14px;
	}
}

/* Very small ≤ 380px */
@media (max-width: 380px) {
	.hs-tc-card {
		padding: 20px 14px 16px;
	}

	.hs-tc-author-row {
		gap: 8px;
	}

	.hs-tc-card-actions {
		flex-wrap: wrap;
	}

	.hs-tc-dir-rtl .hs-tc-card-actions {
		flex-direction: column;
		align-items: flex-end;
	}

	.hs-tc-dir-ltr .hs-tc-card-actions {
		flex-direction: column;
		align-items: flex-start;
	}
}