/* ============================================
   Testimonials Showcase Block — Frontend Styles
   ============================================ */

.taskipfb-tsw {
	width: 100%;
	background: #ffffff;
	font-family: var( --taskipfb-offer-font );
}

.taskipfb-tsw-container {
	margin: 0 auto;
	padding: 0 32px;
	width: 100%;
	box-sizing: border-box;
}

/* ── Header ── */
.taskipfb-tsw-header {
	text-align: center;
	margin-bottom: 56px;
}

.taskipfb-tsw-badge {
	display: inline-block;
	padding: 6px 20px;
	border: 1.5px solid #10b981;
	border-radius: 999px;
	color: #10b981;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 20px;
	line-height: 1.4;
}

.taskipfb-tsw-heading {
	font-size: 40px;
	font-weight: 800;
	color: #111827;
	margin: 0 auto 10px;
	line-height: 1.2;
	max-width: 580px;
}

.taskipfb-tsw-desc {
	font-size: 16px;
	font-weight: 400;
	color: #6b7280;
	margin: 0 auto;
	max-width: 540px;
	line-height: 1.7;
}

/* ── Grid ── */
.taskipfb-tsw-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
	align-items: start;
}

/* ── Card ── */
.taskipfb-tsw-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 32px 28px;
	box-shadow: 0 2px 12px rgba( 0, 0, 0, 0.05 );
	display: flex;
	flex-direction: column;
}

.taskipfb-tsw-card--highlighted {
	background: #10b981;
	border-color: #10b981;
	box-shadow: 0 8px 32px rgba( 16, 185, 129, 0.25 );
}

/* ── Top row: stars + quote ── */
.taskipfb-tsw-card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

/* ── Stars ── */
.taskipfb-tsw-stars {
	display: flex;
	gap: 3px;
}

.taskipfb-tsw-star {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.taskipfb-tsw-star svg {
	width: 20px;
	height: 19px;
	display: block;
}

/* ── Quote icon ── */
.taskipfb-tsw-quote {
	display: inline-flex;
	align-items: center;
	user-select: none;
}

.taskipfb-tsw-quote svg {
	width: 48px;
	height: 48px;
	display: block;
}

/* ── Review ── */
.taskipfb-tsw-review {
	font-size: 16px;
	line-height: 1.45;
	color: #374151;
	margin: 0 0 12px;
	flex: 1;
	font-weight: 400;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.taskipfb-tsw-review--clamped {
	max-height: 70px;
}

.taskipfb-tsw-show-more {
	background: none;
	border: none;
	padding: 0;
	margin: 0 0 24px;
	font-size: 14px;
	font-weight: 600;
	color: #00B289;
	cursor: pointer;
	font-family: var( --taskipfb-offer-font );
	transition: color 0.2s ease;
}

.taskipfb-tsw-show-more:hover {
	color: #009a76;
}

.taskipfb-tsw-card--highlighted .taskipfb-tsw-show-more {
	color: rgba( 255, 255, 255, 0.8 );
}

.taskipfb-tsw-card--highlighted .taskipfb-tsw-show-more:hover {
	color: #ffffff;
}

.taskipfb-tsw-card--highlighted .taskipfb-tsw-review {
	color: #ffffff;
}

/* ── Divider ── */
.taskipfb-tsw-divider {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 0 0 20px;
}

.taskipfb-tsw-card--highlighted .taskipfb-tsw-divider {
	border-top-color: rgba( 255, 255, 255, 0.3 );
}

/* ── Author ── */
.taskipfb-tsw-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.taskipfb-tsw-author-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid rgba( 255, 255, 255, 0.6 );
}

.taskipfb-tsw-author-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.taskipfb-tsw-author-name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.taskipfb-tsw-card--highlighted .taskipfb-tsw-author-name {
	color: #ffffff;
}

.taskipfb-tsw-author-title {
	display: block;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.4;
}

.taskipfb-tsw-card--highlighted .taskipfb-tsw-author-title {
	color: rgba( 255, 255, 255, 0.8 );
}

/* ── Responsive ── */
@media ( max-width: 1024px ) {
	.taskipfb-tsw-container {
		padding: 0 24px;
	}

	.taskipfb-tsw-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 20px;
	}

	.taskipfb-tsw-heading {
		font-size: 32px;
	}

	.taskipfb-tsw-header {
		margin-bottom: 40px;
	}
}

@media ( max-width: 640px ) {
	.taskipfb-tsw-container {
		padding: 0 16px;
	}

	.taskipfb-tsw-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.taskipfb-tsw-heading {
		font-size: 26px;
	}

	.taskipfb-tsw-header {
		margin-bottom: 32px;
	}
}
