/* ========== Slider 2 Widget ========== */
.cc-s2-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	direction: rtl;
	background: #0a0a0f;
	isolation: isolate;
}

.cc-s2-slider *,
.cc-s2-slider *::before,
.cc-s2-slider *::after {
	box-sizing: border-box;
}

.cc-s2-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.cc-s2-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s ease;
	z-index: 1;
	pointer-events: none;
}

.cc-s2-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	pointer-events: auto;
}

/* Background */
.cc-s2-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.cc-s2-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	display: block;
	transform-origin: center center;
}

.cc-s2-bg-desk { display: block; }
.cc-s2-bg-mob { display: none; }

@media (max-width: 767px) {
	.cc-s2-bg-desk { display: none !important; }
	.cc-s2-bg-mob { display: block !important; }
}

.cc-s2-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-color: rgba(0, 0, 0, 0.45);
}

/* Content - Desktop */
.cc-s2-content {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	align-items: center;
	width: 100%;
	padding: 40px;
}

.cc-s2-content-inner {
	width: 100%;
	max-width: 560px;
}

.cc-s2-pos-start { justify-content: flex-start; }
.cc-s2-pos-center { justify-content: center; }
.cc-s2-pos-end { justify-content: flex-end; }

.cc-s2-content-desk { display: block; }
.cc-s2-content-mob { display: none; }

/* Title */
.cc-s2-title {
	margin: 0 0 16px;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.25;
	color: #ffffff;
	letter-spacing: -0.02em;
}
.cc-s2-title .cc-s2-highlight {
	color: #7c5cff;
	display: inline;
}

/* Description */
.cc-s2-description {
	margin: 0 0 28px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.cc-s2-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.cc-s2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	padding: 14px 28px;
	border-radius: 50px;
	transition: all 0.25s ease;
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
}

.cc-s2-btn1 {
	background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
	color: #ffffff;
	border: none;
}
.cc-s2-btn1:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

.cc-s2-btn2 {
	background: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.45);
}
.cc-s2-btn2:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.7);
}

/* ========== Arrows ========== */
.cc-s2-arrow {
	position: absolute !important;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20 !important;
	width: 48px;
	height: 48px;
	min-width: 0;
	min-height: 0;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.18) !important;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 0;
	margin: 0;
	color: #ffffff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance: none;
}
.cc-s2-arrow:hover {
	background-color: rgba(255, 255, 255, 0.32) !important;
	border-color: rgba(255, 255, 255, 0.45);
	transform: translateY(-50%) scale(1.05);
}
.cc-s2-arrow:focus,
.cc-s2-arrow:active,
.cc-s2-arrow:focus-visible,
.cc-s2-arrow:focus-within {
	outline: none !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
	border-color: rgba(255, 255, 255, 0.25) !important;
}
.cc-s2-arrow svg {
	width: 18px;
	height: 18px;
	pointer-events: none;
	display: block;
	flex-shrink: 0;
}
.cc-s2-arrow svg polyline,
.cc-s2-arrow svg path {
	stroke: currentColor;
	fill: none;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.cc-s2-arrow-prev { inset-inline-start: 20px !important; }
.cc-s2-arrow-next { inset-inline-end: 20px !important; }

.cc-s2-slider[dir="rtl"] .cc-s2-arrow-prev { right: 20px; left: auto; }
.cc-s2-slider[dir="rtl"] .cc-s2-arrow-next { left: 20px; right: auto; }

/* ========== Dots = horizontal BAR / PILL ========== */
.cc-s2-dots {
	position: absolute !important;
	bottom: 24px !important;
	left: 50% !important;
	transform: translateX(-50%);
	z-index: 20 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	direction: ltr;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	padding: 0;
	margin: 0;
}

.cc-s2-dot {
	display: block !important;
	width: 18px !important;
	height: 6px !important;
	min-width: 8px !important;
	min-height: 4px !important;
	border-radius: 100px !important;
	background-color: rgba(180, 180, 190, 0.55) !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            background-color 0.3s ease;
	opacity: 1 !important;
	visibility: visible !important;
	flex-shrink: 0;
	box-shadow: none;
	aspect-ratio: unset !important;
}

.cc-s2-dot.active {
	width: 32px !important;
	height: 6px !important;
	background-color: #8b5cf6 !important;
	border-radius: 100px !important;
}

.cc-s2-dot:hover:not(.active) {
	background-color: rgba(200, 200, 210, 0.75) !important;
}

.cc-s2-dot:focus {
	outline: 2px solid rgba(139, 92, 246, 0.5);
	outline-offset: 3px;
}

/* ========== TABLET ========== */
@media (max-width: 1024px) {
	.cc-s2-title { font-size: 36px; }
	.cc-s2-description { font-size: 16px; }
}

/* ========== MOBILE – defaults matching the provided screenshot ========== */
@media (max-width: 767px) {

	/* Switch to mobile content if provided */
	.cc-s2-content-desk { display: none !important; }
	.cc-s2-content-mob { display: block !important; }

	/* Content box: full width, centered, pushed toward bottom */
	.cc-s2-content {
		padding: 20px 20px 56px !important;
		align-items: flex-end !important; /* content sits lower like the screenshot */
		justify-content: center !important;
	}

	.cc-s2-content-inner {
		max-width: 100% !important;
		width: 100% !important;
		text-align: center !important;
	}

	/* Force center position helpers on mobile */
	.cc-s2-pos-start,
	.cc-s2-pos-center,
	.cc-s2-pos-end,
	.cc-s2-pos-m-start,
	.cc-s2-pos-m-center,
	.cc-s2-pos-m-end {
		justify-content: center !important;
	}

	/* Title – large, centered, good line height */
	.cc-s2-title {
		font-size: 28px !important;
		line-height: 1.3 !important;
		margin: 0 0 12px !important;
		text-align: center !important;
	}

	/* Description – centered */
	.cc-s2-description {
		font-size: 14px !important;
		line-height: 1.55 !important;
		margin: 0 0 22px !important;
		text-align: center !important;
		opacity: 0.9;
	}

	/* Buttons – centered, side by side, slightly smaller */
	.cc-s2-buttons {
		justify-content: center !important;
		flex-wrap: wrap !important;
		gap: 10px !important;
	}

	.cc-s2-btn {
		padding: 12px 20px !important;
		font-size: 13px !important;
		border-radius: 50px !important;
	}

	/* Arrows – position only (size controlled by Elementor responsive settings) */
	.cc-s2-slider[dir="rtl"] .cc-s2-arrow-prev {
		right: 12px !important;
		left: auto !important;
	}
	.cc-s2-slider[dir="rtl"] .cc-s2-arrow-next {
		left: 12px !important;
		right: auto !important;
	}

	/* Dots – bottom center, bar style */
	.cc-s2-dots {
		bottom: 14px !important;
	}
	.cc-s2-dot {
		width: 14px !important;
		height: 5px !important;
	}
	.cc-s2-dot.active {
		width: 26px !important;
		height: 5px !important;
	}
}

/* FOUC prevention */
.cc-s2-slider:not(.cc-s2-ready) .cc-s2-slide:not(.active) {
	display: none;
}
.cc-s2-slider.cc-s2-ready .cc-s2-slide:not(.active) {
	display: block;
}

.elementor-editor-active .cc-s2-arrow,
.elementor-editor-active .cc-s2-dots,
.elementor-editor-active .cc-s2-dot {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}
