/* ============================================================
   Cap Why Choose — Section 09
   Figma 319:2389 | Why Choose Benlida for PCB Manufacturing?
   灰色标题区 (#f5f5f5) + 白色轮播卡（左文右图，箭头，圆点）
   设计基准 1280px
   ============================================================ */

.sparta-cap-why-choose {
	background: var(--why-bg, #f5f5f5);
	width: 100%;
}

/* ── 顶部标题区 ── */
.sparta-cap-why-choose__header {
	background: var(--why-bg, #f5f5f5);
	padding: 62px 0 60px;
}

.sparta-cap-why-choose__header-inner {
	max-width: 794px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	gap: 27px;
	align-items: center;
	text-align: center;
}

.sparta-cap-why-choose__title {
	font-family: 'Anton', sans-serif;
	font-size: 48px;
	line-height: 60px;
	color: #012f73;
	font-weight: 400;
	margin: 0;
	max-width: 536px;
}

.sparta-cap-why-choose__title--hl {
	color: #054fbd;
}

.sparta-cap-why-choose__desc {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 30px;
	color: #000;
	margin: 0;
}

/* ── 轮播外容器 ── */
.sparta-cap-why-choose__slider-wrap {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	padding-bottom: 60px; /* 为圆点留空间 */
}

/* ── 幻灯片轨道 ── */
.sparta-cap-why-choose__track {
	position: relative;
}

/* ── 单张幻灯片 ── */
.sparta-cap-why-choose__slide {
	display: none;
	background: #fff;
	box-shadow: 0px 4px 10px 0px rgba(157, 157, 157, 0.25);
	width: 100%;
	min-height: 509px;
}

.sparta-cap-why-choose__slide.is-active {
	display: flex;
	align-items: stretch;
}

/* 左侧文字区（背景色可在 Elementor 面板配置，设计稿为蓝色） */
.sparta-cap-why-choose__slide-content {
	flex: 0 0 685px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 27px;
	padding: 60px 152px 60px 152px;
	background: var(--why-content-bg, #fff);
}

.sparta-cap-why-choose__slide-title {
	font-family: 'Anton', sans-serif;
	font-size: 30px;
	line-height: 35px;
	color: var(--why-title-c, #012f73);
	font-weight: 400;
	margin: 0;
}

.sparta-cap-why-choose__slide-desc {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 25px;
	color: var(--why-desc-c, #000);
	margin: 0;
	max-width: 339px;
}

/* 按钮：颜色由 CSS 变量控制（normal / hover 均可在 Elementor 面板配置） */
.sparta-cap-why-choose__slide-btn {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	background: var(--why-btn-bg, #054fbd);
	border-radius: 5px;
	padding: 7px 23px;
	height: 44px;
	text-decoration: none;
	width: fit-content;
	transition: background 0.2s;
}

.sparta-cap-why-choose__slide-btn span:first-child {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 20px;
	color: var(--why-btn-tc, #ffffff);
	white-space: nowrap;
	transition: color 0.2s;
}

/* icon 方块：黄底蓝箭头（固定风格），hover 时底色和按钮背景对调 */
.sparta-cap-why-choose__slide-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 33px;
	height: 33px;
	background: var(--why-btn-hbg, #ffd739);  /* 黄色方块 */
	border-radius: 5px;
	flex-shrink: 0;
	color: var(--why-btn-htc, #054fbd);        /* SVG 箭头 = hover 文字色（蓝） */
	transition: background 0.2s, color 0.2s;
}

.sparta-cap-why-choose__slide-btn:hover {
	background: var(--why-btn-hbg, #ffd739);
}

.sparta-cap-why-choose__slide-btn:hover span:first-child {
	color: var(--why-btn-htc, #054fbd);
}

/* hover 时 icon 方块：蓝底 + 黄箭头 */
.sparta-cap-why-choose__slide-btn:hover .sparta-cap-why-choose__slide-btn-icon {
	background: var(--why-btn-bg, #054fbd);
	color: var(--why-btn-hbg, #ffd739);
}

/* 右侧图片区 */
.sparta-cap-why-choose__slide-image {
	flex: 0 0 595px;
	overflow: hidden;
}

.sparta-cap-why-choose__slide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── 左右箭头 ── */
.sparta-cap-why-choose__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	box-sizing: border-box;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 50%;
	border: 2px solid var(--why-btn-bg, #054fbd);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	flex-shrink: 0;
	transition: background 0.2s, border-color 0.2s;
}

/* 纯 CSS 箭头（旋转边框），不依赖内联 SVG */
.sparta-cap-why-choose__arrow::before {
	content: "";
	width: 11px;
	height: 11px;
	border-top: 2.5px solid var(--why-btn-bg, #054fbd);
	border-right: 2.5px solid var(--why-btn-bg, #054fbd);
	transition: border-color 0.2s;
}

.sparta-cap-why-choose__arrow:hover,
.sparta-cap-why-choose__arrow:focus-visible {
	background: var(--why-btn-bg, #054fbd);
}

.sparta-cap-why-choose__arrow:hover::before {
	border-color: #fff;
}

.sparta-cap-why-choose__arrow--prev {
	left: 39px;
}

.sparta-cap-why-choose__arrow--prev::before {
	transform: rotate(-135deg);
	margin-left: 4px;
}

.sparta-cap-why-choose__arrow--next {
	right: 39px;
}

.sparta-cap-why-choose__arrow--next::before {
	transform: rotate(45deg);
	margin-right: 4px;
}

/* ── 圆点分页 ── */
.sparta-cap-why-choose__dots {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 24px;
}

.sparta-cap-why-choose__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d9d9d9;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s;
}

.sparta-cap-why-choose__dot.is-active {
	background: var(--why-btn-bg, #054fbd);
}

/* ── 大屏 ≥1800px ── */
@media (min-width: 1800px) {
	.sparta-cap-why-choose__slider-wrap {
		max-width: 1600px;
	}

	.sparta-cap-why-choose__slide-content {
		flex: 0 0 800px;
		padding: 60px 160px;
	}

	.sparta-cap-why-choose__slide-image {
		flex: 1;
	}
}

/* ── 平板 768px–1279px ── */
@media (min-width: 768px) and (max-width: 1279px) {
	.sparta-cap-why-choose__title {
		font-size: 36px;
		line-height: 46px;
	}

	.sparta-cap-why-choose__slide-content {
		flex: 1;
		padding: 40px 48px;
	}

	.sparta-cap-why-choose__slide-image {
		flex: 0 0 340px;
	}

	.sparta-cap-why-choose__arrow--prev {
		left: 8px;
	}

	.sparta-cap-why-choose__arrow--next {
		right: 8px;
	}
}

/* ── 手机 ≤767px ── */
@media (max-width: 767px) {
	.sparta-cap-why-choose__header {
		padding: 40px 0 36px;
	}

	.sparta-cap-why-choose__title {
		font-size: 30px;
		line-height: 38px;
	}

	.sparta-cap-why-choose__slide.is-active {
		flex-direction: column;
	}

	.sparta-cap-why-choose__slide-content {
		flex: none;
		padding: 32px 24px;
	}

	.sparta-cap-why-choose__slide-image {
		flex: none;
		height: 220px;
		width: 100%;
	}

	.sparta-cap-why-choose__arrow--prev {
		left: 8px;
	}

	.sparta-cap-why-choose__arrow--next {
		right: 8px;
	}

	.sparta-cap-why-choose__slide-desc {
		max-width: none;
	}
}
