/* ========================================
   QLS Featured Cases Carousel
   ======================================== */

.qls-fc {
	position: relative;
	width: 100%;
	height: clamp(400px, 55vh, 600px);
	overflow: hidden;
	background: #001b33;
}

/* Slides */
.qls-fc__slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.qls-fc__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	cursor: pointer;
}

.qls-fc__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* Background image */
.qls-fc__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 6s cubic-bezier(0.4, 0, 0.2, 1);
}

.qls-fc__slide.is-active .qls-fc__bg {
	transform: scale(1.04);
}

/* Gradient overlay */
.qls-fc__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(0, 27, 51, 0.95) 0%, rgba(0, 27, 51, 0.4) 50%, rgba(0, 27, 51, 0.2) 100%),
		linear-gradient(to right, rgba(0, 27, 51, 0.6) 0%, transparent 60%);
}

/* Content */
.qls-fc__content {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(32px, 5vh, 56px) clamp(16px, 4vw, 48px);
	box-sizing: border-box;
	width: 100%;
}

.qls-fc__tag {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #f7b393;
	margin-bottom: 12px;
}

.qls-fc__title {
	font-family: Inter, system-ui, sans-serif;
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 12px;
	max-width: 640px;
}

.qls-fc__excerpt {
	font-size: clamp(0.875rem, 1.2vw, 1rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.55);
	max-width: 520px;
	margin: 0 0 20px;
}

.qls-fc__cta {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #f7b393;
	transition: color 0.2s;
}

.qls-fc__slide:hover .qls-fc__cta {
	color: #fff;
}

/* Navigation dots */
.qls-fc__nav {
	position: absolute;
	bottom: clamp(24px, 4vh, 40px);
	right: clamp(24px, 4vw, 48px);
	display: flex;
	gap: 8px;
	z-index: 2;
}

.qls-fc__dot {
	width: 32px;
	height: 3px;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	cursor: pointer;
	padding: 12px 0;
	background-clip: content-box;
	overflow: hidden;
	transition: background 0.2s;
}

.qls-fc__dot:hover {
	background: rgba(255, 255, 255, 0.35);
}

.qls-fc__dot-fill {
	display: block;
	width: 0;
	height: 100%;
	background: #f7b393;
	border-radius: 2px;
}

.qls-fc__dot.is-active .qls-fc__dot-fill {
	animation: qls-fc-fill var(--qls-fc-interval, 6s) linear forwards;
}

@keyframes qls-fc-fill {
	from { width: 0; }
	to { width: 100%; }
}

/* Mobile */
@media (max-width: 781px) {
	.qls-fc {
		height: clamp(350px, 50vh, 480px);
	}

	.qls-fc__nav {
		right: auto;
		left: clamp(24px, 4vw, 48px);
	}
}
