.cv-home-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 1920 / 887;
	background: #e7e7e7;
	font-family: "Cairo", "Tajawal", sans-serif;
}

@media (max-width: 767px) {
	.cv-home-slider { aspect-ratio: 3 / 4; }
}

.cv-home-slider__viewport {
	position: absolute;
	inset: 0;
}

.cv-home-slider__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: flex-start; /* content container hugs the right in RTL */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease;
	z-index: 1;
}

.cv-home-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* Content pinned to the RIGHT side of the slide */
.cv-home-slider__content {
	width: 45%;
	max-width: 620px;
	margin-right: 6%;
	margin-left: auto;
	text-align: right;
	color: #333;
	/* lift content up so it sits above the overlapping boxes area */
	padding-bottom: 6%;
}

@media (max-width: 1024px) {
	.cv-home-slider__content { width: 60%; margin-right: 5%; }
}

@media (max-width: 767px) {
	.cv-home-slider__content {
		width: 90%;
		margin: 0 auto;
		text-align: center;
		padding-bottom: 22%;
	}
}

.cv-home-slider__heading {
	color: #34aadc;
	font-weight: 300;
	font-size: clamp(20px, 2.6vw, 40px);
	line-height: 1.5;
	text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.cv-home-slider__title {
	color: #006faf;
	font-weight: 600;
	font-size: clamp(28px, 3.4vw, 50px);
	line-height: 1.3;
	margin: 4px 0 12px;
	text-shadow: 0 2px 0 rgba(0,0,0,0.15);
}

.cv-home-slider__text {
	color: #8e8e93;
	font-weight: 300;
	font-size: clamp(15px, 1.5vw, 22px);
	line-height: 1.7;
	text-shadow: 0 1px 0 rgba(0,0,0,0.10);
}

.cv-home-slider__cta {
	display: inline-block;
	margin-top: 22px;
	padding: 12px 34px;
	background: #006faf;
	color: #fff;
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: background 0.25s ease;
}
.cv-home-slider__cta:hover { background: #34aadc; }

/* ---------- Modern navigation ---------- */

/* Arrows: minimal line chevrons in a soft glass circle */
.cv-home-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(255,255,255,0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
	z-index: 6;
	opacity: 0;
	transition: opacity 0.35s ease, background 0.25s ease, transform 0.25s ease;
}
.cv-home-slider:hover .cv-home-slider__arrow { opacity: 1; }
.cv-home-slider__arrow:hover { background: rgba(255,255,255,0.4); }

.cv-home-slider__arrow::before {
	content: "";
	width: 14px;
	height: 14px;
	border-top: 2px solid #006faf;
	border-right: 2px solid #006faf;
}
.cv-home-slider__arrow--prev { right: 26px; }
.cv-home-slider__arrow--prev::before { transform: rotate(45deg); margin-right: 4px; }   /* points right (RTL "previous") */
.cv-home-slider__arrow--next { left: 26px; }
.cv-home-slider__arrow--next::before { transform: rotate(-135deg); margin-left: 4px; }  /* points left (RTL "next") */

@media (max-width: 767px) {
	.cv-home-slider__arrow { opacity: 1; width: 40px; height: 40px; }
	.cv-home-slider__arrow--prev { right: 10px; }
	.cv-home-slider__arrow--next { left: 10px; }
}

/* Dots: modern pill/expanding indicators */
.cv-home-slider__dots {
	position: absolute;
	bottom: 26px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	z-index: 6;
}

@media (max-width: 767px) {
	.cv-home-slider__dots { bottom: 14px; }
}

.cv-home-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50px;
	border: none;
	background: rgba(255,255,255,0.55);
	box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
	cursor: pointer;
	padding: 0;
	transition: width 0.3s ease, background 0.3s ease;
}
.cv-home-slider__dot.is-active {
	width: 30px;
	background: #006faf;
}
