/**
 * Capital Coil Hero Slider styles.
 * Fully responsive: two columns on desktop, stacked and centered on mobile.
 */

.ccc-hero-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.ccc-slides {
	position: relative;
	width: 100%;
}

/* Slides are stacked; only the active one is shown (cross-fade). */
.ccc-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	width: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--ccc-speed, 600ms) ease;
	z-index: 1;
}

.ccc-slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.ccc-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.ccc-slide-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

.ccc-slide-content {
	flex: 1 1 55%;
	min-width: 0;
}

.ccc-title {
	margin: 0 0 24px;
	color: #ffffff;
	font-size: 46px;
	line-height: 1.05;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0;
}

.ccc-subtitle {
	margin: 0 0 32px;
	color: #e1f1ff;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 600;
}

/* "With Left Border" style: accent bar + uppercase, matching the live design. */
.ccc-subtitle--border {
	padding-left: 18px;
	border-left: 3px solid #feb70a;
	text-transform: uppercase;
}

/* "Normal Text" style: plain paragraph, typography set from the panel. */
.ccc-subtitle--normal {
	padding-left: 0;
	border-left: 0;
	text-transform: none;
}

.ccc-button {
	display: inline-block;
	padding: 18px 34px;
	background-color: #feb70a;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ccc-button:hover,
.ccc-button:focus {
	background-color: #ffffff;
	color: #05366a;
}

.ccc-slide-image {
	flex: 1 1 45%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.ccc-slide-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Arrows. */
.ccc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.ccc-arrow:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

.ccc-arrow-prev {
	left: 18px;
}

.ccc-arrow-next {
	right: 18px;
}

/* Dots. */
.ccc-dots {
	position: absolute;
	top: 22px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 12px;
	max-width: 1200px;
	width: 100%;
	padding: 0 60px;
	box-sizing: border-box;
	justify-content: flex-start;
}

.ccc-dot {
	width: 12px;
	height: 12px;
	padding: 0;
	background-color: transparent;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ccc-dot.is-active {
	background-color: #ffffff;
	border-color: #ffffff;
}

/* Tablet. */
@media (max-width: 1024px) {
	.ccc-title {
		font-size: 38px;
	}
}

/* Mobile: stack the columns, image below the content, centered. */
@media (max-width: 767px) {
	.ccc-slide-inner {
		flex-direction: column;
		text-align: center;
		gap: 28px;
	}

	.ccc-slide-content,
	.ccc-slide-image {
		flex: 1 1 100%;
		width: 100%;
	}

	.ccc-title {
		font-size: 30px;
	}

	.ccc-subtitle {
		display: inline-block;
		text-align: left;
	}

	.ccc-slide-image {
		order: -1;
	}

	.ccc-slide-image img {
		max-width: 220px;
	}

	.ccc-dots {
		justify-content: center;
		padding: 0 20px;
	}

	.ccc-arrow {
		width: 36px;
		height: 36px;
	}

	.ccc-arrow-prev {
		left: 8px;
	}

	.ccc-arrow-next {
		right: 8px;
	}
}

@media (max-width: 480px) {
	.ccc-title {
		font-size: 25px;
	}

	.ccc-subtitle {
		font-size: 15px;
	}
}

/* Keep dots and arrows round even when the Elementor global button style
   forces a 0 border-radius on every <button>. Scoped for higher specificity. */
.ccc-hero-slider .ccc-dot {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.ccc-hero-slider .ccc-arrow {
	border-radius: 50%;
}

/* No color change on dot hover (override the global button:hover red). */
.ccc-hero-slider .ccc-dot:hover,
.ccc-hero-slider .ccc-dot:focus {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: inherit;
}

.ccc-hero-slider .ccc-dot.is-active:hover,
.ccc-hero-slider .ccc-dot.is-active:focus {
	background-color: #ffffff;
	border-color: #ffffff;
}

/* Keep the arrow hover subtle (not the global red). */
.ccc-hero-slider .ccc-arrow:hover,
.ccc-hero-slider .ccc-arrow:focus {
	background-color: rgba(255, 255, 255, 0.3);
	color: #ffffff;
}
