/*
 * Sparta Home CTA Banner Section
 * Figma 节点: 178:246 / 254:796
 * 设计基准: 1280px
 */

.sparta-cta-banner {
	position: relative;
	width: 100%;
	min-height: 263px;
	background-color: #054fbd;
	overflow: hidden;
}

.sparta-cta-banner__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 39px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 263px;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

.sparta-cta-banner__content {
	flex: 0 1 668px;
	max-width: 668px;
}

.sparta-cta-banner__title {
	font-family: 'Anton', sans-serif;
	font-weight: 400;
	font-size: 48px;
	line-height: 60px;
	color: #ffffff;
	margin: 0 0 17px;
}

.sparta-cta-banner__desc {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 30px;
	color: #ffffff;
	margin: 0 0 24px;
	max-width: 571px;
}

.sparta-cta-banner__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 7px 23px;
	border: 2px solid #ffd739;
	border-radius: 5px;
	background: transparent;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.sparta-cta-banner__btn-text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 20px;
	color: #ffd739;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.sparta-cta-banner__btn:hover {
	background-color: #ffd739;
}

.sparta-cta-banner__btn:hover .sparta-cta-banner__btn-text {
	color: #054fbd;
}

/* 右侧图片 */
.sparta-cta-banner__image {
	position: absolute;
	right: 0;
	top: 0;
	width: 46%;
	max-width: 593px;
	height: 100%;
	pointer-events: none;
}

.sparta-cta-banner__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ── 响应式 ── */
@media (max-width: 767px) {
	.sparta-cta-banner {
		min-height: auto;    /* 去掉父容器固定高度，让内容自然撑开 */
	}

	.sparta-cta-banner__inner {
		padding: 40px 20px 0;
		min-height: auto;
		flex-direction: column;
		align-items: flex-start;
	}

	.sparta-cta-banner__content {
		flex: 0 0 auto;   /* 重置：column 方向下避免 668px 被当成高度 */
		max-width: 100%;
		width: 100%;
	}

	.sparta-cta-banner__title {
		font-size: 32px;
		line-height: 44px;
	}

	.sparta-cta-banner__desc {
		font-size: 14px;
		line-height: 26px;
	}

	.sparta-cta-banner__image {
		position: relative;
		width: 100%;
		max-width: none;
		height: 220px;
		margin-top: 32px;
	}
}

@media (min-width: 768px) and (max-width: 1279px) {
	.sparta-cta-banner__inner {
		padding: 40px 24px;
	}

	.sparta-cta-banner__title {
		font-size: 40px;
		line-height: 52px;
	}

	.sparta-cta-banner__image {
		width: 42%;
	}
}

@media (min-width: 1800px) {
	.sparta-cta-banner__inner {
		max-width: 1600px;
	}
}
