/* ── Story Carousel ───────────────────────────────────────────────────────── */

.cf-story-carousel {
	overflow: hidden;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.cf-story-carousel.is-dragging {
	cursor: grabbing;
}

/* Track — flex row, no wrap */
.cf-sc__track {
	display: flex;
	gap: 1.5rem;
	will-change: transform;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.cf-sc__card {
	flex: 0 0 340px;
	min-width: 0;
	background: #ffffff;
	border-radius: 16px;
	padding: 2rem 1.75rem 1.5rem;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	box-sizing: border-box;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	/* Coloured bottom strip via border */
	border-bottom: 6px solid var(--sc-color, #d516b1);
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */

.cf-sc__logo {
	height: 2.25rem;
	display: flex;
	align-items: center;
	margin-bottom: 0.5rem;
}

.cf-sc__logo-img {
	max-height: 100%;
	max-width: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left center;
	display: block;
}

/* ── Stat — styled as headline ────────────────────────────────────────────── */

.cf-sc__stat {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.cf-sc__stat-num {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.cf-sc__stat-label {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
}

/* ── Stars (testimonial mode) ─────────────────────────────────────────────── */

.cf-sc__stars {
	display: flex;
	gap: 2px;
	min-height: 3.55rem; /* match stat block height so quote aligns across card types */
	align-items: flex-start;
}

.cf-sc__star {
	width: 1.375rem;
	height: 1.375rem;
	flex-shrink: 0;
}

.cf-sc__star--on {
	color: #f59e0b;
}

.cf-sc__star--off {
	color: rgba(0, 0, 0, 0.15);
}

/* ── Quote mark — testimonial only, watermark in background ──────────────── */

.cf-sc__quote-mark {
	display: none;
}

.cf-sc__card--testimonial .cf-sc__quote-mark {
	display: block;
	position: absolute;
	top: -2rem;
	left: -0.25rem;
	font-size: 7rem;
	line-height: 1;
	font-family: Georgia, serif;
	color: #2050ce !important;
	opacity: 0.1;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

/* ── Quote / Detail ───────────────────────────────────────────────────────── */

.cf-sc__quote {
	position: relative;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #444;
	flex: 1;
}

.cf-sc__quote p {
	position: relative;
	z-index: 1;
	margin: 0;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */

.cf-sc__divider {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin: 0.25rem 0;
}

/* ── Person — no avatar ───────────────────────────────────────────────────── */

.cf-sc__person {
	display: flex;
	align-items: center;
}

.cf-sc__avatar-wrap {
	display: none;
}

.cf-sc__person-info {
	min-width: 0;
}

.cf-sc__name {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
}

.cf-sc__role {
	font-size: 0.8125rem;
	line-height: 1.4;
	opacity: 0.55;
}

/* ── Nav arrows ───────────────────────────────────────────────────────────── */

.cf-sc__nav {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
	justify-content: center;
}

.cf-sc__nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #181075;
	line-height: 1;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.cf-sc__nav-btn svg {
	display: block;
	width: 2.75rem;
	height: 2.75rem;
}

.cf-sc__nav-prev svg {
	transform: rotate(180deg);
}

.cf-sc__nav-btn:hover {
	opacity: 0.7;
	transform: scale(1.08);
}

.cf-sc__nav-prev:hover {
	transform: scale(1.08) rotate(180deg);
}

/* ── Editor: show all cards flat, disable overflow clip ──────────────────── */

.elementor-editor-active .cf-story-carousel {
	overflow: visible;
	cursor: default;
}

.elementor-editor-active .cf-sc__track {
	flex-wrap: wrap;
	transform: none !important;
	transition: none;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.cf-sc__card {
		flex: 0 0 calc(100vw - 3rem);
	}
}
