/* =============================================================
   CP All — Hero Slider Widget  (class prefix: cph)
   All visual values come from Elementor controls.
   This file only provides layout & structural CSS.
   ============================================================= */

/* ── Wrapper ── */
.cph {
	position: relative;
	width: 100%;
	min-height: 100svh;           /* default; overridden by Elementor control */
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Gradient overlay — color overridden by Elementor control */
.cph::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(14, 30, 84, 0.45);
	pointer-events: none;
	z-index: 1;
}

/* ── Slides ── */
.cph__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.cph__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 800ms ease;
}

.cph__slide.is-active {
	opacity: 1;
}

.cph__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Content overlay ── */
.cph__content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	flex: 1;
	width: 100%;
}

.cph__inner {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: clamp(24px, 6vw, 90px);
}

.cph__text {
	max-width: 950px;             /* default; overridden by Elementor control */
}

/* ── Eyebrow ── */
.cph__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.15px;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 16px;
}

.cph__pulse {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #CE2929;
	flex-shrink: 0;
	animation: cph-pulse 2s ease-in-out infinite;
}

@keyframes cph-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(206, 41, 41, 0.6); }
	50%       { box-shadow: 0 0 0 8px rgba(206, 41, 41, 0); }
}

/* ── Title ── */
.cph__title {
	color: #fff;
	margin: 0 0 16px;
	line-height: 1.14;
}

/* strip Elementor's injected paragraph tags from WYSIWYG */
.cph__title p { display: inline; }

/* em = accent color (blue) — color overridable via Elementor */
.cph__title em {
	font-style: normal;
	color: #50A3D5;
}

/* strong = bold emphasis */
.cph__title strong {
	font-weight: 700;
}

/* red dot between phrases */
.cph__title .dot-red {
	display: inline-block;
	width: 10px;
	height: 10px;
	background: #CE2929;
	border-radius: 50%;
	margin-inline: 6px;
	vertical-align: middle;
	position: relative;
	top: -0.1em;
}

/* ── Description ── */
.cph__desc {
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.7;
	margin: 0;
}

/* ── Actions ── */
.cph__actions {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ── UI (dots + counter) ── */
.cph__ui {
	position: relative;
	z-index: 2;
	padding-block: 20px 28px;
	width: 100%;
}

.cph__ui .cph__inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Dots */
.cph__dots {
	display: flex;
	gap: 8px;
	align-items: center;
}

.cph__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 300ms ease, transform 300ms ease;
}

.cph__dot.is-active {
	background: #fff;
	transform: scale(1.35);
}

/* Counter */
.cph__counter {
	display: flex;
	align-items: baseline;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	margin-left: auto;
}

.cph__counter-cur  { font-size: 20px; }
.cph__counter-sep  { opacity: 0.5; }
.cph__counter-total { opacity: 0.5; }

/* ── Responsive ── */
@media ( max-width: 640px ) {
	.cph__ui .cph__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.cph__counter {
		margin-left: 0;
	}
}
