/* ==========================================================================
   ADB Hero Slider
   Colors follow the ADB logo: navy (#1B2A5C) + red (#E2131E)
   ========================================================================== */

.adb-hero-wrap {
	--adb-hero-navy: #1B2A5C;
	--adb-hero-red: #E2131E;
	--adb-hero-fade-color: #F4F8FC;
	--adb-hero-fade-spread: 46%;
}

/* Breaks the widget out of any boxed/contained Elementor section so it
   always spans the full browser width, regardless of parent settings.
   Uses the standard "negative margin" full-bleed technique (more robust
   than the 100vw/left:50% trick, which can misbehave with vertical
   scrollbars or inside some Elementor Container/flex layouts). */
.adb-hero-full-bleed {
	width: 100%;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow-x: hidden;
	overflow-x: clip;
}

.adb-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(320px, 560px) 1fr;
	align-items: stretch;
	min-height: 560px;
	background: #eef3fb;
	overflow: hidden;
}

/* ---------------------------------------------------------------------
   PHOTO SIDE
   All slide photos are stacked absolutely on top of each other and
   cross-fade via opacity. The fade/blur overlay is a SEPARATE layer on
   top of the whole stack, so it never changes no matter which photo is
   active or what image you upload.
   --------------------------------------------------------------------- */
.adb-hero-media-stack {
	grid-column: 1 / -1;
	grid-row: 1;
	position: relative;
	min-height: 560px;
}

.adb-hero-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.1s ease;
}

.adb-hero-media.is-active {
	opacity: 1;
}

/* The fixed fade: solid on the left (where the text sits), transparent
   on the right (where the photo shows through). Independent of the photo
   underneath — this is what "stays the same" when you swap images. */
.adb-hero-fade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(
			to right,
			var(--adb-hero-fade-color) 0%,
			var(--adb-hero-fade-color) calc(var(--adb-hero-fade-spread) - 18%),
			rgba(244, 248, 252, 0.75) var(--adb-hero-fade-spread),
			rgba(244, 248, 252, 0) calc(var(--adb-hero-fade-spread) + 16%)
		),
		radial-gradient(
			ellipse 60% 55% at 8% 92%,
			rgba(255, 255, 255, 0.9) 0%,
			rgba(255, 255, 255, 0) 70%
		);
}

/* ---------------------------------------------------------------------
   TEXT SIDE
   --------------------------------------------------------------------- */
.adb-hero-content {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 60px 40px 60px 64px;
	max-width: 560px;
}

.adb-hero-eyebrow {
	display: inline-block;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.adb-hero-heading {
	margin: 0 0 20px;
	font-size: clamp(2.1rem, 3.4vw, 2.9rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.adb-hero-line1,
.adb-hero-line2 {
	display: block;
}

.adb-hero-desc {
	margin: 0 0 26px;
	font-size: 1rem;
	line-height: 1.7;
	max-width: 460px;
}

.adb-hero-features {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	margin-bottom: 30px;
}

.adb-hero-feature {
	display: flex;
	align-items: center;
	gap: 10px;
}

.adb-hero-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
}

.adb-hero-feature-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.adb-hero-feature-label {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
}

.adb-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 26px;
}

.adb-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.adb-btn-solid {
	background: var(--adb-hero-navy);
	color: #fff !important;
}

.adb-btn-outline {
	background: transparent;
	border-color: var(--adb-hero-navy);
	color: var(--adb-hero-navy);
}

.adb-btn-outline:hover {
	color: #fff !important;
}

.adb-hero-arrow {
	transition: transform 0.18s ease;
	display: inline-block;
}

.adb-btn:hover .adb-hero-arrow {
	transform: translateX(4px);
}

/* ---------------------------------------------------------------------
   DOTS
   --------------------------------------------------------------------- */
.adb-hero-dots {
	display: flex;
	gap: 10px;
}

.adb-hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.adb-hero-dot.is-active {
	transform: scale(1.3);
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
	.adb-hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.adb-hero-media-stack {
		grid-row: 1;
		min-height: 380px;
	}
	.adb-hero-content {
		grid-row: 2;
		max-width: 100%;
		padding: 36px 24px;
		background: var(--adb-hero-fade-color);
	}
	.adb-hero-fade {
		background: linear-gradient(180deg, rgba(244,248,252,0) 55%, var(--adb-hero-fade-color) 100%);
	}
}

@media (max-width: 480px) {
	.adb-hero-features {
		gap: 16px;
	}
	.adb-hero-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.adb-btn {
		justify-content: center;
	}
}
