/**
 * Vertically Overlapping Carousel Plugin Stylesheet
 * High-performance sticky stacking scroll cards for Elementor.
 */

:root {
	--voc-top-offset: 80px;
	--voc-stack-step: 20px;
}

.voc-carousel-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-bottom: 60px;
}

/* --------------------------------------------------------------------------
   STICKY STACKING CARD CONTAINER
   -------------------------------------------------------------------------- */
.voc-card {
	position: sticky;
	top: calc(var(--voc-top-offset) + (var(--card-index) * var(--voc-stack-step)));
	z-index: calc(10 + var(--card-index));
	width: 100%;
	min-height: 450px;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
	box-sizing: border-box;
}

.voc-card-clickable {
	cursor: pointer;
}

.voc-card-clickable:hover {
	transform: translateY(-3px) scale(1.005);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.28), 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Background Image Overlay */
.voc-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.voc-card-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 44px 52px;
	min-height: inherit;
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: Image + Heading directly underneath
   -------------------------------------------------------------------------- */
.voc-card-left {
	flex: 0 0 38%;
	max-width: 38%;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.voc-card-image-box {
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
	display: flex;
}

.voc-card-image-box img {
	width: 100%;
	height: auto;
	max-height: 260px;
	object-fit: cover;
	display: block;
	border-radius: 20px;
	transition: transform 0.4s ease;
}

.voc-card:hover .voc-card-image-box img {
	transform: scale(1.03);
}

.voc-card-heading {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	transition: color 0.25s ease;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: Badge, Description & Button
   -------------------------------------------------------------------------- */
.voc-card-right {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 24px;
}

/* Badge Pill */
.voc-badge-wrapper {
	display: inline-block;
}

.voc-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 18px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	background-color: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.25s ease;
}

/* Description Text */
.voc-card-description {
	font-size: 20px;
	line-height: 1.55;
	font-weight: 400;
	opacity: 0.92;
	transition: color 0.25s ease;
}

.voc-card-description p {
	margin: 0 0 12px 0;
}

.voc-card-description p:last-child {
	margin-bottom: 0;
}

/* Button CTA */
.voc-card-button-wrapper {
	margin-top: 8px;
}

.voc-card-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
	padding: 8px 0;
	border-bottom: 2px solid currentColor;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.voc-card-button span {
	display: inline-block;
	color: inherit;
	transition: transform 0.25s ease, color 0.25s ease;
}

.voc-card-clickable:hover .voc-card-button span,
.voc-card-button:hover span {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.voc-card-inner {
		padding: 36px 36px;
		gap: 32px;
	}
	.voc-card-left {
		flex: 0 0 42%;
		max-width: 42%;
	}
	.voc-card-heading {
		font-size: 22px;
	}
	.voc-card-description {
		font-size: 17px;
	}
}

@media (max-width: 767px) {
	.voc-carousel-wrapper {
		gap: 28px;
	}
	.voc-card {
		position: sticky;
		top: calc(var(--voc-top-offset, 40px) + (var(--card-index) * var(--voc-stack-step, 12px)));
		min-height: auto;
		border-radius: 20px;
	}
	.voc-card-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 28px 24px;
		gap: 20px;
	}
	.voc-card-left {
		flex: 0 0 100%;
		max-width: 100%;
		width: 100%;
	}
	.voc-card-image-box img {
		max-height: 220px;
	}
	.voc-card-right {
		width: 100%;
	}
	.voc-card-heading {
		font-size: 20px;
	}
	.voc-card-description {
		font-size: 16px;
	}
}
