/**
 * Sticky Scroll Features — layout, sticky panel, crossfade.
 */

.tc-sf-root {
	box-sizing: border-box;
	width: 100%;
}

.tc-sf-root *,
.tc-sf-root *::before,
.tc-sf-root *::after {
	box-sizing: inherit;
}

/* ── Desktop (two columns + scroll sync) ───────────────────── */
.tc-sf-desktop {
	display: none;
	width: 100%;
}

@media (min-width: 768px) {
	.tc-sf-desktop {
		display: block;
	}

	.tc-sf-mobile {
		display: none;
	}
}

/*
 * motion.html .features-grid — two equal columns that share ONE row height.
 * Grid forces .tc-sf-col--media to match the text column height (flex alone often fails inside Elementor).
 */
.tc-sf-desktop-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 60px;
	align-items: stretch;
	position: relative;
	width: 100%;
}

.tc-sf-col--text {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	min-height: 0;
}

/*
 * Same row as text; min-height is also set in JS (ResizeObserver) so height matches
 * .tc-sf-col--text inside Elementor layouts where grid stretch fails.
 */
.tc-sf-col--media {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	min-height: 0;
	align-self: stretch;
	padding-top: 60px;
	display: flex;
	flex-direction: column;
}

.tc-sf-section {
	padding: 60px 0;
}

.tc-sf-section:last-child {
	padding-bottom: 0;
}

.tc-sf-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.tc-sf-badge-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.tc-sf-badge-icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

.tc-sf-title {
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
}

.tc-sf-body {
	font-size: 16px;
	margin: 0 0 20px;
	max-width: 440px;
}

.tc-sf-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.tc-sf-list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 10px;
	font-size: 15px;
}

.tc-sf-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 10px;
	height: 10px;
	background: #0d9b5c;
	border-radius: 50%;
}

.tc-sf-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	color: #0d9b5c;
	opacity: 1;
	visibility: visible;
	transition: gap 0.2s ease, color 0.2s ease;
}

.tc-sf-cta:hover,
.tc-sf-cta:focus {
	gap: 10px;
	color: #0d9b5c;
}

/* Same icon as Image Link — Overlay graphic (inline after link label). */
.tc-sf-cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: inherit;
}

.tc-sf-cta-icon.elementor-icon {
	font-size: 1.1em;
	line-height: 1;
}

.tc-sf-cta-icon.elementor-icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

.tc-sf-cta-icon-img {
	width: 1.1em;
	height: 1.1em;
	max-width: 22px;
	max-height: 22px;
	object-fit: contain;
	display: block;
}

/*
 * motion.html .sticky-wrapper
 * Long selector beats Elementor kit / post CSS like:
 * .elementor-2 .elementor-element.elementor-element-xxxxx .tc-sf-sticky
 * For fixed headers use Style → Layout → Sticky Top Offset (e.g. 130px).
 */
.elementor-widget-tc-sticky-scroll-features .tc-sf-root .tc-sf-desktop .tc-sf-col--media .tc-sf-sticky {
	position: sticky;
	top: 130px;
	height: 420px;
	width: 100%;
	flex: 0 0 auto;
	align-self: flex-start;
	margin-bottom: auto;
}

/* Crossfade + slight rise (inactive: fade out + sit 10% lower; active: fade in + translateY(0)) */
.tc-sf-root .tc-sf-desktop .tc-sf-layer {
	position: absolute;
	inset: 0;
	border-radius: 16px;
	overflow: hidden;
	opacity: 0;
	transform: translateY(10%);
	transition: opacity 0.5s ease, transform 0.5s ease;
	background: #f5f7fa;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
	padding: 24px;
	z-index: 0;
	pointer-events: none;
}

.tc-sf-root .tc-sf-desktop .tc-sf-layer.is-active {
	opacity: 1;
	transform: translateY(0%);
	z-index: 1;
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.tc-sf-root .tc-sf-desktop .tc-sf-layer {
		transform: none;
		transition: opacity 0.35s ease;
	}

	.tc-sf-root .tc-sf-desktop .tc-sf-layer.is-active {
		transform: none;
	}
}

.tc-sf-layer--empty {
	background: #f0f0f0;
}

.tc-sf-layer-inner {
	width: 100%;
	height: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: inherit;
}

.tc-sf-layer-link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	border-radius: inherit;
}

/* Overlay on linked image: Elementor ICONS (library + upload SVG) or legacy raster <img> */
.tc-sf-image-link-overlay {
	position: absolute;
	bottom: 16px;
	right: 16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	pointer-events: none;
	box-sizing: border-box;
}

.tc-sf-image-link-overlay-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.tc-sf-image-link-overlay.elementor-icon {
	font-size: 22px;
	line-height: 1;
}

.tc-sf-image-link-overlay.elementor-icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

.tc-sf-image-link-overlay.elementor-icon i {
	font-size: inherit;
	line-height: 1;
}

.tc-sf-img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	border-radius: inherit;
}

/* ── Mobile: stacked blocks ────────────────────────────────── */
.tc-sf-mobile {
	padding: 0 24px;
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}

.tc-sf-mobile-item {
	margin-bottom: 48px;
}

.tc-sf-mobile-item:last-child {
	margin-bottom: 0;
}

.tc-sf-mobile-item .tc-sf-section {
	padding: 24px 0 16px;
	min-height: 0;
}

.tc-sf-mobile-visual {
	margin-bottom: 8px;
}

.tc-sf-mobile-layer-inner {
	min-height: 200px;
	height: auto;
	padding: 16px;
	border-radius: 16px;
	overflow: hidden;
	background: #f5f7fa;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.tc-sf-mobile-img-link {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: inherit;
}

.tc-sf-mobile-visual .tc-sf-img {
	height: auto;
	max-height: 320px;
	object-fit: contain;
}
