/*
 * Sparta Home Certificates Section
 * Figma 节点: 178:377 / 178:378 / 178:379
 * 设计基准: 1280px
 *
 * 上方：左标题 + 右描述
 * 下方：单个白色容器卡，竖线分 3 栏；
 *       每栏 = SGS 标题 + 左麦穗 + 证书图 + 右麦穗
 * 底部：圆点指示器
 */

.sparta-certs {
	background-color: #ffffff;
	width: 100%;
	padding: 80px 0 90px;
}

.sparta-certs__container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 39px;
}

/* ── 顶部 header：左标题 右描述 ── */
.sparta-certs__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 48px;
}

.sparta-certs__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 50px;
	color: #054fbd;
	margin: 0;
	flex: 0 0 auto;
	max-width: 440px;
}

.sparta-certs__intro {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 28px;
	color: #333333;
	margin: 0;
	flex: 1;
	max-width: 708px;
	align-self: flex-start;
}

/* ── 分页滑动区 ── */
.sparta-certs__slider {
	margin-bottom: 32px;
}

.sparta-certs__page {
	display: none;
}

.sparta-certs__page--active {
	display: block;
}

/* ── 证书容器卡（单卡，3 栏竖线分隔） ── */
.sparta-certs__board {
	display: flex;
	width: 100%;
	border: 1px solid #cdcdcd;
	border-radius: 4px;
	background-color: #ffffff;
	overflow: hidden;
	margin-bottom: 36px;
}

.sparta-certs__col {
	flex: 1 1 0;
	min-height: 357px;
	box-sizing: border-box;
	padding: 36px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-right: 1px solid #cdcdcd;
}

.sparta-certs__col:last-child {
	border-right: none;
}

/* 证书图（含 SGS 标题与麦穗的整图） */
.sparta-certs__cert-img {
	display: block;
	width: 100%;
	max-width: 332px;
	height: 277px;
	object-fit: contain;
}

/* 空白占位栏 */
.sparta-certs__col--ghost {
	flex: 1 1 0;
	border-right: 1px solid #cdcdcd;
}

.sparta-certs__col--ghost:last-child {
	border-right: none;
}

/* ── 圆点指示器 ── */
.sparta-certs__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.sparta-certs__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #cdcdcd;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.2s ease;
}

.sparta-certs__dot--active,
.sparta-certs__dot:hover {
	background-color: #054fbd;
	transform: scale(1.25);
}

/* ────────────────────────────────────────────────
   响应式
──────────────────────────────────────────────── */
@media (max-width: 767px) {
	.sparta-certs {
		padding: 48px 0 56px;
	}

	.sparta-certs__container {
		padding: 0 20px;
	}

	.sparta-certs__header {
		flex-direction: column;
		gap: 16px;
		margin-bottom: 28px;
	}

	.sparta-certs__title {
		font-size: 28px;
		line-height: 38px;
		max-width: 100%;
	}

	.sparta-certs__intro {
		max-width: 100%;
	}

	/* 竖排：分隔线改为底部横线 */
	.sparta-certs__board {
		flex-direction: column;
	}

	.sparta-certs__col {
		min-height: auto;
		padding: 36px 20px;
		border-right: none;
		border-bottom: 1px solid #cdcdcd;
	}

	.sparta-certs__col:last-child {
		border-bottom: none;
	}
}

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

	.sparta-certs__title {
		font-size: 30px;
		line-height: 40px;
		max-width: 320px;
	}

	.sparta-certs__col {
		padding: 28px 12px;
		min-height: 300px;
	}

	.sparta-certs__cert-img {
		height: 230px;
	}
}

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