/* Animated Hero Banner — frontend styles */

.ahb-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	min-height: 600px;
	overflow: hidden;
	background-color: #0f1e4d;
	box-sizing: border-box;
    font-family: "Montserrat Alternates"
}
.ahb-hero *,
.ahb-hero *::before,
.ahb-hero *::after {
	box-sizing: border-box;
}

/* ---------- Background Slideshow ---------- */
.ahb-hero__bg-slider {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ahb-hero__bg-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.ahb-hero__bg-slide.is-active {
	opacity: 1;
}

.ahb-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(240, 247, 255, 0.85) 0%, rgba(240, 247, 255, 0.85) 45%, rgba(255, 255, 255, 0) 85%);
	pointer-events: none;
}

/* ---------- Content ---------- */
.ahb-hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 90px 15px 15px;
    flex: 1 0 auto;
    max-width: 1240px;
    margin: 0 auto;
}

.ahb-hero__content {
	max-width: 620px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.ahb-hero__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #1e3a8a;
	margin-bottom: 16px;
}

.ahb-hero__title {
	margin: 0 0 20px;
	font-size: clamp(32px, 4.2vw, 48px);
	line-height: 1.15;
	font-weight: 800;
	color: #0f1e4d;
}

.ahb-hero__desc {
	margin: 0 0 32px;
	font-size: 17px;
	line-height: 1.6;
	color: #334155;
	max-width: 520px;
}

/* ---------- Buttons ---------- */
.ahb-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.ahb-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	border: 2px solid transparent;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
	white-space: nowrap;
}

.ahb-hero__btn:hover {
	transform: translateY(-1px);
}

.ahb-hero__btn--primary {
	background-color: #1e3a8a;
	border-color: #1e3a8a;
	color: #ffffff;
}

.ahb-hero__btn--primary:hover {
	background-color: #14275f;
	border-color: #14275f;
	color: #ffffff;
}

.ahb-hero__btn--secondary {
	background-color: transparent;
	border-color: #1e3a8a;
	color: #1e3a8a;
}

.ahb-hero__btn--secondary:hover {
	background-color: #1e3a8a;
	color: #ffffff;
}

.ahb-hero__btn-arrow {
	display: inline-block;
	transition: transform 0.2s ease;
}

.ahb-hero__btn:hover .ahb-hero__btn-arrow {
	transform: translateX(3px);
}

/* ---------- Stats Bar ---------- */
.ahb-hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #16205c;
    margin: 0 40px 40px;
    border-radius: 6px;
    overflow: hidden;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.ahb-hero__stat {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 26px 24px;
	border-inline-end: 1px solid rgba(255, 255, 255, 0.25);
}

.ahb-hero__stat:last-child {
	border-inline-end: none;
}

.ahb-hero__stat-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #ffffff;
	font-size: 26px;
}

.ahb-hero__stat-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ahb-hero__stat-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.ahb-hero__stat-number {
	font-size: 24px;
	font-weight: 800;
	color: #ffffff;
}

.ahb-hero__stat-label {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ahb-hero__container {
		padding: 70px 32px 40px;
	}

	.ahb-hero__stats {
		margin: 0px;
		grid-template-columns: repeat(2, 1fr);
	}

	.ahb-hero__stat:nth-child(2) {
		border-inline-end: none;
	}

	.ahb-hero__stat:nth-child(1),
	.ahb-hero__stat:nth-child(2) {
		border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	}
}

@media (max-width: 600px) {
	.ahb-hero {
		min-height: auto;
	}

	.ahb-hero__container {
		padding: 48px 20px 32px;
	}

	.ahb-hero__content {
		max-width: 100%;
	}

	.ahb-hero__overlay {
		background: rgba(240, 247, 255, 0.9);
	}

	.ahb-hero__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.ahb-hero__btn {
		justify-content: center;
	}

	.ahb-hero__stats {
		grid-template-columns: 1fr;
		margin: 0px;
	}

	.ahb-hero__stat {
		border-inline-end: none !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	}

	.ahb-hero__stat:last-child {
		border-bottom: none;
	}
}
