/* Stuart Testimonials Widget */

/* ── Grid wrapper ── */
.st-wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.st-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

/* ── Card base ── */
.st-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-color: #2a2a35;
	border-radius: 12px;
	padding: 28px 28px 24px;
	overflow: hidden;
	box-sizing: border-box;
}

/* ── Featured card ── */
.st-card--featured {
	flex-direction: row;
	align-items: center;
	gap: 32px;
	padding: 32px 36px;
}

.st-card--featured .st-body {
	flex: 1;
}

.st-card--featured .st-author {
	flex-shrink: 0;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
}

.st-card--featured .st-author-info {
	text-align: center;
}

/* ── Quote decoration ── */
.st-quote-mark {
	position: absolute;
	top: 12px;
	right: 18px;
	font-size: 72px;
	line-height: 1;
	font-family: Georgia, serif;
	color: rgba(200, 50, 70, 0.18);
	pointer-events: none;
	user-select: none;
	font-weight: 700;
}

/* ── Stars ── */
.st-stars {
	display: flex;
	gap: 3px;
	margin-bottom: 14px;
}

.st-star {
	color: #f5a623;
	font-size: 16px;
	line-height: 1;
}

.st-star--empty {
	color: rgba(255,255,255,0.2);
}

/* ── Quote text ── */
.st-quote {
	font-size: 15px;
	font-style: italic;
	color: #cccccc;
	line-height: 1.65;
	margin: 0 0 20px;
	padding: 0;
}

.st-card--featured .st-quote {
	font-size: 17px;
}

/* ── Divider ── */
.st-divider {
	width: 100%;
	border: none;
	border-top: 1px solid rgba(255,255,255,0.12);
	margin: 18px 0;
}

/* ── Author ── */
.st-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.st-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	min-width: 46px;
	border-radius: 50%;
	background-color: #c0304a;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.03em;
	flex-shrink: 0;
}

.st-card--featured .st-avatar {
	width: 56px;
	height: 56px;
	min-width: 56px;
	font-size: 17px;
}

.st-author-name {
	margin: 0 0 2px;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
}

.st-author-source {
	margin: 0;
	padding: 0;
	font-size: 12px;
	color: #9090a0;
	line-height: 1.3;
}

/* ── Carousel wrap ── */
.st-carousel-wrap {
	position: relative;
	padding-bottom: 40px; /* space for dots */
}

.st-carousel-wrap .swiper {
	overflow: hidden;
}

/* Arrows */
.st-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY( calc( -50% - 20px ) );
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #c0304a;
	color: #ffffff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.st-carousel-btn i {
	font-size: 14px;
	color: inherit; /* always inherit from button so Elementor selector wins */
	line-height: 1;
}

.st-carousel-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor; /* tracks the button's color property */
}

.st-carousel-btn svg path {
	fill: currentColor;
}

.st-carousel-btn:hover {
	opacity: 0.85;
}

.st-carousel-btn--prev { left: -20px; }
.st-carousel-btn--next { right: -20px; }

/* Pagination */
.st-carousel-pagination {
	position: relative;
	text-align: center;
	margin-top: 24px;
	bottom: auto !important;
}

.st-carousel-pagination .swiper-pagination-bullet {
	background-color: rgba(255,255,255,0.3);
	opacity: 1;
	width: 8px;
	height: 8px;
}

.st-carousel-pagination .swiper-pagination-bullet-active {
	background-color: #c0304a;
}

/* ── Equal Height ── */
.st-carousel--equal-height .swiper-wrapper {
	align-items: stretch;
}

.st-carousel--equal-height .swiper-slide {
	height: auto;
}

.st-carousel--equal-height .swiper-slide .st-card {
	height: 100%;
	box-sizing: border-box;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.st-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.st-card--featured {
		flex-direction: column;
		align-items: flex-start;
	}

	.st-card--featured .st-author {
		flex-direction: row;
		text-align: left;
	}

	.st-card--featured .st-author-info {
		text-align: left;
	}

	.st-grid {
		grid-template-columns: 1fr;
	}

	.st-card {
		padding: 22px 20px 20px;
	}

	.st-quote {
		font-size: 14px;
	}

	.st-quote-mark {
		font-size: 52px;
	}
}
