/* =============================================================================
   TCC Timeline Scrolling Slider — Structural Styles
   Color, typography, and spacing are controlled via Elementor panel selectors.
   ============================================================================= */

/* Custom properties — overridden per-widget by Elementor selectors */
.tcc-tss-widget {
	--tcc-tss-indicator-size: 44px;
}

/* -----------------------------------------------------------------------------
   Layout: two-column flex
   align-items MUST be stretch (default) — never flex-start — so the image
   column is as tall as the content column, giving sticky room to travel.
   ----------------------------------------------------------------------------- */
.tcc-tss-layout {
	display: flex;
	align-items: stretch;
	gap: 80px;
	position: relative;
}

/* -----------------------------------------------------------------------------
   Image column (left — sticky)
   ----------------------------------------------------------------------------- */
.tcc-tss-image-col {
	flex: 0 0 50%;
	width: 50%;
}

.tcc-tss-sticky-wrap {
	position: sticky;
	top: 80px;
}

.tcc-tss-unstick .tcc-tss-sticky-wrap {
	position: relative;
	top: auto;
}

.tcc-tss-image-stack {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 4/3;
	background-color: #ededed;
	width: 100%;
}

.tcc-tss-img-frame {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 500ms ease;
}

.tcc-tss-img-frame.is-active {
	opacity: 1;
}

.tcc-tss-img-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* -----------------------------------------------------------------------------
   Content column (right — scrollable)
   ----------------------------------------------------------------------------- */
.tcc-tss-content-col {
	flex: 1;
	min-width: 0;
}

/* Widget heading */
.tcc-tss-heading-wrap {
	margin-bottom: 50px;
}

.tcc-tss-heading {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.tcc-tss-heading-l1,
.tcc-tss-heading-l2 {
	display: block;
}

/* -----------------------------------------------------------------------------
   Steps track with vertical timeline line
   ----------------------------------------------------------------------------- */
.tcc-tss-steps-track {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 120px;
}

/* Vertical timeline line behind markers */
.tcc-tss-steps-track::before {
	content: '';
	position: absolute;
	left: calc(var(--tcc-tss-indicator-size) / 2);
	top: calc(var(--tcc-tss-indicator-size) / 2);
	bottom: calc(var(--tcc-tss-indicator-size) / 2);
	width: 1px;
	background-color: rgba(255, 255, 255, 0.2);
	transform: translateX(-50%);
	pointer-events: none;
}

/* Hide line when indicator style is none */
.tcc-tss-steps-track.no-indicator::before {
	display: none;
}

/* Animated scroll-progress line */
.tcc-tss-progress-line {
	position: absolute;
	left: calc(var(--tcc-tss-indicator-size) / 2);
	top: calc(var(--tcc-tss-indicator-size) / 2);
	bottom: calc(var(--tcc-tss-indicator-size) / 2);
	width: 1px;
	background-color: #ffffff;
	transform: translateX(-50%) scaleY(var(--tcc-tss-progress, 0));
	transform-origin: top center;
	pointer-events: none;
	z-index: 1;
}

.tcc-tss-steps-track.no-indicator .tcc-tss-progress-line {
	display: none;
}

/* -----------------------------------------------------------------------------
   Individual step
   ----------------------------------------------------------------------------- */
.tcc-tss-step {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	opacity: 0.5;
	transition: opacity 0.4s ease;
}

.tcc-tss-step.is-active {
	opacity: 1;
}

/* Step marker badge */
.tcc-tss-step-marker {
	flex: 0 0 var(--tcc-tss-indicator-size);
	width: var(--tcc-tss-indicator-size);
	height: var(--tcc-tss-indicator-size);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background-color: #eff6fb;
	color: #09273e;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

.tcc-tss-step-marker i,
.tcc-tss-step-marker svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* Step body */
.tcc-tss-step-body {
	flex: 1;
	min-width: 0;
	/* Nudge text baseline to align with marker center */
	padding-top: calc((var(--tcc-tss-indicator-size) - 1lh) / 2);
}

.tcc-tss-step-title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.33;
	color: #fdfdfd;
}

.tcc-tss-step-desc {
	font-size: 18px;
	line-height: 1.56;
	color: #d5d7da;
	margin: 0;
}

.tcc-tss-step-desc p {
	margin: 0 0 1em;
}

.tcc-tss-step-desc p:last-child {
	margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   Tab image groups — stacked in .tcc-tss-image-stack, only active shown
   ----------------------------------------------------------------------------- */
.tcc-tss-tab-images {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 450ms ease;
}

.tcc-tss-tab-images.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* -----------------------------------------------------------------------------
   Tab navigation
   ----------------------------------------------------------------------------- */
.tcc-tss-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 50px;
}

.tcc-tss-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 148px;
	padding: 10px 20px;
	border-radius: 56px;
	border: 1px solid #ffffff;
	border-style: solid;
	background-color: transparent;
	color: #eff6fb;
	font-size: 18px;
	font-weight: 500;
	line-height: 28px;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tcc-tss-tab:hover {
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.tcc-tss-tab.is-active {
	background-color: #ffffff;
	color: #031018;
}

/* -----------------------------------------------------------------------------
   Tab panels — only active shown
   ----------------------------------------------------------------------------- */
.tcc-tss-tab-panel {
	display: none;
}

.tcc-tss-tab-panel.is-active {
	display: block;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 1024px) {
	.tcc-tss-layout {
		gap: 48px;
	}
}

@media (max-width: 767px) {
	.tcc-tss-layout {
		flex-direction: column;
		gap: 40px;
	}

	.tcc-tss-image-col {
		flex: none;
		width: 100%;
	}

	.tcc-tss-sticky-wrap {
		position: relative;
		top: 0;
	}

	.tcc-tss-steps-track {
		gap: 64px;
	}

	.tcc-tss-tabs {
		gap: 8px;
	}

	.tcc-tss-tab {
		min-width: auto;
		font-size: 16px;
	}
}

/* =============================================================================
   TCC Image Comparison Slider
   Color, typography, and spacing controlled via Elementor panel selectors.
   ============================================================================= */

/* Clip wrapper — hides slides that overflow the widget bounds */
.tcc-ics-swiper-clip {
	overflow: hidden;
	width: 100%;
}

/* Swiper — overflow visible so adjacent slides peek in from each side */
.tcc-ics-swiper {
	overflow: visible !important;
	width: 100%;
}

.tcc-ics-swiper .swiper-wrapper {
	align-items: center;
}

/* Each slide: 60% width lets ~20% peek in from each adjacent slide */
.tcc-ics-slide {
	width: 60%;
}

/* Slide inner: outer container — background, padding, and outer border-radius live here */
.tcc-ics-slide-inner {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4/3;
	border-radius: 24px;
	background-color: #111;
	display: flex;
	flex-direction: column;
	transform: scale(0.82);
	transform-origin: center center;
	transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            height 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tcc-ics-swiper .swiper-slide-active .tcc-ics-slide-inner,
.tcc-ics-swiper .swiper-slide-duplicate-active .tcc-ics-slide-inner {
	transform: scale(1);
}

/* Media wrapper — fills the content area (respects padding), clips images */
.tcc-ics-media {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	border-radius: inherit;
}

/* -----------------------------------------------------------------------------
   Thumb image — shown on non-active slides
   ----------------------------------------------------------------------------- */
.tcc-ics-thumb {
	display: none;
}

/* -----------------------------------------------------------------------------
   Before / After comparison — visible on all slides; draggable only on active
   ----------------------------------------------------------------------------- */
.tcc-ics-comparison {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	cursor: ew-resize;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
}

.tcc-ics-swiper .swiper-slide-active .tcc-ics-comparison,
.tcc-ics-swiper .swiper-slide-duplicate-active .tcc-ics-comparison {
	pointer-events: all;
}

/* Before / After image layers */
.tcc-ics-before,
.tcc-ics-after {
	position: absolute;
	inset: 0;
}

.tcc-ics-before img,
.tcc-ics-after img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	-webkit-user-drag: none;
}

/* After layer uses clip-path set via inline style (PHP) and updated by JS */
.tcc-ics-after {
	will-change: clip-path;
}

/* -----------------------------------------------------------------------------
   Labels — "Before" (top-left) and "After" (top-right)
   ----------------------------------------------------------------------------- */
.tcc-ics-label {
	position: absolute;
	top: 20px;
	z-index: 4;
	padding: 8px 18px;
	border-radius: 100px;
	background-color: #1b5174;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
	pointer-events: none;
}

.tcc-ics-label-before {
	left: 20px;
}

.tcc-ics-label-after {
	right: 20px;
}

/* -----------------------------------------------------------------------------
   Divider line + drag handle
   ----------------------------------------------------------------------------- */
.tcc-ics-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 3;
	width: 44px; /* wider hit/drag area */
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	will-change: left;
}

.tcc-ics-divider-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background-color: #fff;
}

.tcc-ics-handle {
	position: relative;
	z-index: 4;
	width: 40px;
	height: 40px;
	padding: 10px 4px;
	border-radius: 50%;
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.tcc-ics-handle svg {
	width: 12px;
	height: 12px;
	display: block;
	color: #333;
	stroke: currentColor;
	overflow: visible;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 1024px) {
	.tcc-ics-slide {
		width: 72%;
	}
}

/* =============================================================================
   TCC Testimonial Review Slider
   Color, typography, and spacing are controlled via Elementor panel selectors.
   ============================================================================= */

/* Clip wrapper — prevents slides from overflowing the widget bounds */
.tcc-trs-swiper-clip {
	overflow: hidden;
	width: 100%;
}

/* Swiper — overflow visible so slides run edge-to-edge inside the clip */
.tcc-trs-swiper {
	overflow: visible !important;
	width: 100%;
}

.tcc-trs-swiper .swiper-wrapper {
	transition-timing-function: linear !important;
}

/* Slide — fixed-width column, height follows the tallest slide */
.tcc-trs-slide {
	width: 302px;
	height: auto;
}

/* =============================================================================
   Text Review Card
   ============================================================================= */

.tcc-trs-card--text {
	background-color: #ffffff;
	border: 1px solid #d5d7da;
	border-radius: 20px;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 41.5px 0 rgba(199, 199, 199, 0.15);
	height: 100%;
	box-sizing: border-box;
}

/* Reviewer row */
.tcc-trs-reviewer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
}

.tcc-trs-avatar-wrap {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	overflow: hidden;
}

.tcc-trs-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

.tcc-trs-reviewer-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.tcc-trs-name {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: #061c2d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tcc-trs-date {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.43;
	color: #a4a7ae;
}

/* Content area — stars, review text, platform footer */
.tcc-trs-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Top group grows to push platform footer to bottom */
.tcc-trs-top {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Stars */
.tcc-trs-stars {
	display: flex;
	gap: 4px;
	font-size: 20px;
	line-height: 1;
	margin-bottom: 12px;
}

.tcc-trs-star {
	color: #d5d7da;
}

.tcc-trs-star--filled {
	color: #f5a623;
}

/* Review text */
.tcc-trs-review-text {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #535862;
	margin: 0;
}

/* Platform footer */
.tcc-trs-platform {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tcc-trs-platform-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.tcc-trs-platform-label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.43;
	color: #535862;
	white-space: nowrap;
}

/* =============================================================================
   Video Review Card
   ============================================================================= */

.tcc-trs-card--video {
	position: relative;
	overflow: hidden;
	height: 378px;
	border-radius: 20px;
	display: block;
	box-shadow: 0 4px 41.5px 0 rgba(162, 162, 162, 0.25);
	cursor: default;
}

.tcc-trs-video-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 2;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tcc-trs-video-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.16);
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 3;
}

.tcc-trs-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
	transition: transform 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

button.tcc-trs-play {
	cursor: pointer;
}

.tcc-trs-card--video:hover .tcc-trs-play {
	transform: translate(-50%, -50%) scale(1.1);
}

.tcc-trs-video-label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px 14px 14px;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.56;
	color: #fdfdfd;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 100%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 4;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ---- Plyr player ---------------------------------------------------------- */

/* Plyr wraps our element in a .plyr div — sit behind the poster image */
.tcc-trs-card--video .plyr {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	z-index: 1;
	background: #000;
}

/* Self-hosted video: fill the card like object-fit cover */
.tcc-trs-card--video .plyr video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hide Plyr's built-in big-play overlay — we have our own button */
.tcc-trs-card--video .plyr__control--overlaid {
	display: none !important;
}

/* Plyr control bar must sit above the raised player while playing */
.tcc-trs-card--video .plyr__controls {
	z-index: 6 !important;
}

/* Override Plyr's padding-bottom aspect-ratio trick so the embed container
   fills our fixed-height card rather than sizing itself by viewport width. */
.tcc-trs-card--video .plyr__video-embed {
	position: absolute !important;
	inset: 0 !important;
	padding-bottom: 0 !important;
	height: 100% !important;
	width: 100% !important;
}

.tcc-trs-card--video .plyr__video-embed iframe,
.tcc-trs-card--video .plyr__video-embed > div {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	transform: none !important;
}

/* ---- Playing state — hide poster, overlay, play button, label ------------ */

/* visibility: hidden on the overlay is required to kill backdrop-filter;
   opacity: 0 alone does not stop the blur in all browsers. */
.tcc-trs-card--video.is-playing .tcc-trs-video-overlay {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.tcc-trs-card--video.is-playing .tcc-trs-video-bg,
.tcc-trs-card--video.is-playing .tcc-trs-play,
.tcc-trs-card--video.is-playing .tcc-trs-video-label {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Raise the Plyr wrapper above poster and overlay while playing */
.tcc-trs-card--video.is-playing .plyr {
	z-index: 5;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 767px) {
	.tcc-trs-slide {
		width: 260px;
	}

	.tcc-trs-card--video {
		height: 320px;
	}
}

@media (max-width: 767px) {
	.tcc-ics-slide {
		width: 85%;
	}

	.tcc-ics-slide-inner {
		transform: scale(0.9);
	}

	.tcc-ics-swiper .swiper-slide-active .tcc-ics-slide-inner,
	.tcc-ics-swiper .swiper-slide-duplicate-active .tcc-ics-slide-inner {
		transform: scale(1);
	}

	.tcc-ics-label {
		top: 14px;
		padding: 6px 12px;
		font-size: 13px;
	}

	.tcc-ics-label-before {
		left: 14px;
	}

	.tcc-ics-label-after {
		right: 14px;
	}
}
button.tcc-trs-play:hover {
    background: transparent;
    outline: 0;
}