/* ========================================
   QLS Featured Posts Carousel
   ======================================== */
.qls-fp {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #0a0f1a;
}

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

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

.qls-fp__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	position: relative;
}

/* Background image */
.qls-fp__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* Gradient overlay */
.qls-fp__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0, 27, 51, 0.92) 0%,
		rgba(32, 77, 132, 0.75) 50%,
		rgba(247, 179, 147, 0.4) 100%
	);
}

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

/* Tag */
.qls-fp__tag {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 12px;
}

/* Title */
.qls-fp__title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 12px;
	max-width: 640px;
}

/* Excerpt */
.qls-fp__excerpt {
	font-size: clamp(0.875rem, 1.2vw, 1rem);
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.65;
	max-width: 520px;
	margin: 0 0 24px;
}

/* CTA */
.qls-fp__cta {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #fff;
	padding: 8px 20px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	transition: background 0.2s, border-color 0.2s;
}

.qls-fp__slide:hover .qls-fp__cta {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Navigation Dots (progress bar style)
   ======================================== */
/* Controls bar */
.qls-fp__controls {
	position: absolute;
	bottom: clamp(24px, 4vh, 40px);
	left: clamp(16px, 4vw, 48px);
	right: clamp(16px, 4vw, 48px);
	display: flex;
	align-items: center;
	gap: 16px;
	z-index: 2;
	pointer-events: none;
}

.qls-fp__controls > * {
	pointer-events: auto;
}

.qls-fp__nav {
	display: flex;
	gap: 8px;
}

.qls-fp__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-fp__dot:hover {
	background: rgba(255, 255, 255, 0.35);
	background-clip: content-box;
}

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

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

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

/* Counter */
.qls-fp__counter {
	font-size: 0.75rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.4);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.qls-fp__current {
	color: rgba(255, 255, 255, 0.8);
}

/* Arrows */
.qls-fp__arrows {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

.qls-fp__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	padding: 0;
}

.qls-fp__arrow:hover {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 781px) {
	.qls-fp__nav {
		bottom: 16px;
		left: 16px;
	}
}
