/* ==========================================================================
   XBTech home hero banner
   ========================================================================== */

.xbh {
	--xbh-bg: #f3f7fd;
	--xbh-navy: #0d1d45;
	--xbh-blue: #0945d5;
	--xbh-text: #33415f;
	position: relative;
	background: var(--xbh-bg);
	overflow: hidden;
	font-family: var(--eduact-font, 'Urbanist', sans-serif);
}

/* ---------- main area ---------- */
.xbh__main {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(440px, 37vw, 560px);
	padding: 56px 0;
}

.xbh__photo {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 64%;
	background-size: cover;
	background-position: center right;
}

.xbh__photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		var(--xbh-bg) 0%,
		color-mix(in srgb, var(--xbh-bg) 80%, transparent) 14%,
		color-mix(in srgb, var(--xbh-bg) 25%, transparent) 32%,
		transparent 48%);
}

.xbh .container { position: relative; z-index: 2; }

.xbh__content { max-width: 680px; }

.xbh__tagline {
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--xbh-text);
}

.xbh__sep { margin: 0 .9em; opacity: .55; }

.xbh__title {
	max-width: 11.3em;
	margin: 0 0 22px;
	font-size: clamp(34px, 4.1vw, 56px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.01em;
}

.xbh__title-1 { display: block; color: var(--xbh-navy); }
.xbh__title-2 { display: block; color: var(--xbh-blue); }

.xbh__text {
	max-width: 520px;
	margin: 0 0 32px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--xbh-text);
}

.xbh__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.xbh__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 32px;
	border: 2px solid transparent;
	border-radius: 50px;
	background: linear-gradient(180deg, #1657e8 0%, #0a3cb8 100%);
	box-shadow: 0 10px 24px rgba(9, 69, 213, .28);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	transition: transform .2s ease, box-shadow .2s ease;
}

.xbh__btn svg { width: 20px; height: 20px; transition: transform .2s ease; }

.xbh__btn:hover,
.xbh__btn:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(9, 69, 213, .35); }

.xbh__btn:hover svg { transform: translateX(4px); }

.xbh__btn--outline {
	background: #fff;
	border-color: var(--xbh-blue);
	box-shadow: none;
	color: var(--xbh-blue);
}

.xbh__btn--outline:hover,
.xbh__btn--outline:focus { color: var(--xbh-blue); }

/* ---------- features strip ---------- */
.xbh__features {
	position: relative;
	padding: 34px 0;
	border-top: 1px solid rgba(9, 69, 213, .07);
	background: color-mix(in srgb, #fff 55%, var(--xbh-bg));
}

.xbh__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	margin: 0;
	padding: 0 9% 0 0;
	list-style: none;
}

.xbh__grid--4 { grid-template-columns: repeat(4, 1fr); }
.xbh__grid--3 { grid-template-columns: repeat(3, 1fr); }
.xbh__grid--2 { grid-template-columns: repeat(2, 1fr); }
.xbh__grid--1 { grid-template-columns: 1fr; }

.xbh__feature {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 26px;
	border-left: 1px solid #d3dbea;
}

.xbh__feature:first-child { padding-left: 0; border-left: 0; }

.xbh__icon {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	color: var(--xbh-navy);
}

.xbh__icon svg,
.xbh__icon img { width: 100%; height: 100%; object-fit: contain; }

.xbh__feature strong {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--xbh-navy);
}

.xbh__feature em {
	margin-top: 6px;
	font-size: 13px;
	font-style: normal;
	color: #6b7790;
}

/* blue diagonal shapes (bottom right) */
.xbh__deco {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 300px;
	height: 100%;
	max-height: 200px;
	pointer-events: none;
}

.xbh__deco::before,
.xbh__deco::after {
	content: '';
	position: absolute;
	inset: 0;
}

.xbh__deco::before {
	background: linear-gradient(135deg, #a9c3f8 0%, #4b82ee 100%);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.xbh__deco::after {
	background: linear-gradient(135deg, #2f6cf0 0%, #0a3cb8 100%);
	clip-path: polygon(100% 30%, 100% 100%, 30% 100%);
}

/* ---------- bottom bar ---------- */
.xbh__bar {
	padding: 13px 0;
	background: #132f6b;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .2em;
	text-align: center;
	text-transform: uppercase;
}

.xbh__bar .xbh__sep { margin: 0 1.6em; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
	.xbh__photo { width: 58%; }
	.xbh__feature { padding: 0 16px; }
	.xbh__deco { width: 200px; }
}

@media (max-width: 991px) {
	.xbh__main {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: 0 0 50px;
	}

	.xbh__photo {
		position: relative;
		width: 100%;
		height: 340px;
	}

	.xbh__photo::after { background: linear-gradient(0deg, var(--xbh-bg) 0%, transparent 35%); }

	.xbh__content { max-width: none; }

	.xbh__grid,
	.xbh__grid--4,
	.xbh__grid--5 {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 28px;
		padding-right: 0;
	}

	.xbh__feature:nth-child(3n+1) { padding-left: 0; border-left: 0; }
	.xbh__deco { display: none; }
}

@media (max-width: 575px) {
	.xbh__photo { height: 260px; }
	.xbh__tagline { font-size: 12px; letter-spacing: .12em; }
	.xbh__sep { margin: 0 .5em; }
	.xbh__text { font-size: 16px; }
	.xbh__btn { padding: 14px 26px; font-size: 16px; }

	.xbh__grid,
	.xbh__grid--3,
	.xbh__grid--4,
	.xbh__grid--5 { grid-template-columns: repeat(2, 1fr); }

	.xbh__feature,
	.xbh__feature:nth-child(3n+1) { padding: 0 10px 0 0; border-left: 0; }

	.xbh__bar { font-size: 11px; letter-spacing: .08em; }
	.xbh__bar .xbh__sep { margin: 0 .6em; }
}
