/**
 * Soulful Healing Concerns Carousel widget — base styles.
 * All Elementor style controls override these via inline selectors;
 * values here are sensible defaults consuming theme CSS variables.
 *
 * Infinite marquee carousel driven by the shared assets/js/sh-carousel.js
 * (also used by SH Testimonials) — no external library (Swiper etc.).
 */

.sh-concerns__header {
	max-width: 720px;
	margin-inline: auto;
	margin-bottom: var(--sh-space-7);
	text-align: center;
}

.sh-concerns__title {
	font-family: var(--sh-font-heading);
	font-weight: 600;
	font-size: clamp(1.75rem, 1.4rem + 2vw, 2.75rem);
	color: var(--sh-heading);
	margin-bottom: var(--sh-space-4);
}

.sh-concerns__subtitle {
	font-family: var(--sh-font-body);
	color: var(--sh-text-muted);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	line-height: 1.7;
	margin: 0;
}

.sh-concerns__carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--sh-space-4);
}

.sh-concerns__viewport {
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* Gradient fade on both edges, dissolving the peeking offset cards
	   into the background as the marquee continuously scrolls through
	   them, rather than a flat opacity block. */
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 80px,
		#000 calc(100% - 80px),
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 80px,
		#000 calc(100% - 80px),
		transparent 100%
	);
}

.sh-concerns__viewport::-webkit-scrollbar {
	display: none;
}

.sh-concerns__track {
	--sh-slides-visible: 3;
	--sh-slide-offset: 64px;
	--sh-slide-gap: 24px;
	display: flex;
	gap: var(--sh-slide-gap);
	will-change: transform;
}

.sh-concerns__slide {
	flex: 0 0 calc((100% - var(--sh-slide-offset) - (var(--sh-slide-gap) * (var(--sh-slides-visible) - 1))) / var(--sh-slides-visible));
	display: flex;
}

.sh-concerns__card {
	background: var(--sh-surface);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-lg);
	padding: var(--sh-space-7) var(--sh-space-6);
	transition: border-color var(--sh-transition-base);
	display: flex;
	flex-direction: column;
	width: 100%;
}

.sh-concerns__card:hover {
	border-color: var(--sh-accent);
}

.sh-concerns__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--sh-space-5);
	color: var(--sh-accent);
	font-size: 32px;
}

.sh-concerns__icon svg {
	width: 100%;
	height: 100%;
}

.sh-concerns__card-title {
	font-family: var(--sh-font-heading);
	font-weight: 600;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	color: var(--sh-heading);
	margin-bottom: var(--sh-space-5);
}

.sh-concerns__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sh-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sh-concerns__chip {
	font-family: var(--sh-font-body);
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--sh-text-muted);
	background: rgba(255, 255, 255, 0.06);
	border-radius: var(--sh-radius-pill);
	padding: var(--sh-space-2) var(--sh-space-4);
	transition: background-color var(--sh-transition-fast), color var(--sh-transition-fast);
}

.sh-concerns__chip:hover {
	background: var(--sh-accent);
	color: var(--sh-button-text);
}

/* Arrows */
.sh-concerns__arrow {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sh-surface);
	border: 1px solid var(--sh-border);
	color: var(--sh-heading);
	transition: background-color var(--sh-transition-fast), color var(--sh-transition-fast);
	z-index: 1;
}

.sh-concerns__arrow:hover {
	background: var(--sh-accent);
	color: var(--sh-button-text);
}

.sh-concerns__arrow-icon--prev {
	transform: rotate(180deg);
}

.sh-concerns__arrow[disabled] {
	opacity: 0.35;
	pointer-events: none;
}

@media (max-width: 640px) {
	.sh-concerns__arrow {
		width: 40px;
		height: 40px;
	}

	.sh-concerns__card {
		padding: var(--sh-space-6) var(--sh-space-5);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sh-concerns__track {
		will-change: auto;
	}
}
