/* =================================================
   Category Selection
   ================================================= */

.category-selection {
	--cs-navy: #0f2c64;
	--cs-orange: #ff6b31;
	--cs-grey: #f1f1f1;
	--cs-text: #36404c;
	--cs-white: #ffffff;

	background: var(--cs-grey);
	padding: 80px 0 90px;
	width: 100%;
}

.category-selection--no-top-padding {
	padding-top: 0;
}

.category-selection--no-bottom-padding {
	padding-bottom: 0;
}

.category-selection__container {
	margin-left: auto;
	margin-right: auto;
	max-width: 1640px;
	padding: 0 40px;
	width: 100%;
}

.category-selection__header {
	margin: 0 0 40px;
	max-width: 760px;
}

.category-selection__eyebrow {
	color: var(--cs-orange);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	margin: 0 0 18px;
	padding: 0;
	text-transform: uppercase;
}

.category-selection__title {
	color: var(--cs-navy);
	font-size: 52px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.08;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

.category-selection__slider-wrap {
	overflow: visible;
	position: relative;
}

.category-selection__swiper.swiper {
	margin: -10px;
	overflow: visible;
	padding: 10px;
	width: calc(100% + 20px);
}

.category-selection--slider .category-selection__swiper.swiper {
	overflow: hidden;
}

.category-selection__swiper .swiper-wrapper {
	align-items: stretch;
}

.category-selection__swiper .swiper-slide {
	height: auto;
}

/* Static grid — 3 or fewer categories */
.category-selection--static .category-selection__swiper .swiper-wrapper {
	display: grid;
	gap: 24px;
	transform: none !important;
}

.category-selection--static.category-selection--count-1 .category-selection__swiper .swiper-wrapper {
	grid-template-columns: minmax(0, 1fr);
	max-width: 520px;
}

.category-selection--static.category-selection--count-2 .category-selection__swiper .swiper-wrapper {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-selection--static.category-selection--count-3 .category-selection__swiper .swiper-wrapper {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-selection--static .swiper-slide {
	width: auto !important;
}

.category-selection__card {
	background: var(--cs-white);
	border: 2px solid transparent;
	border-radius: 20px;
	box-shadow: 0 8px 28px rgba(15, 44, 100, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-selection__card:hover,
.category-selection__card:focus-within {
	border-color: var(--cs-orange);
	box-shadow: 0 0 0 1px rgba(255, 107, 49, 0.35), 0 8px 28px rgba(255, 107, 49, 0.45);
}

.category-selection__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	width: 100%;
}

.category-selection__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.category-selection__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 28px 28px 32px;
}

.category-selection__card-title {
	color: var(--cs-navy);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 14px;
	padding: 0;
}

.category-selection__card-desc {
	color: var(--cs-text);
	flex: 1 1 auto;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
	margin: 0 0 24px;
	padding: 0;
}

.category-selection__cta {
	margin-top: auto;
	width: 100%;
}

.category-selection__btn.btn,
.category-selection a.category-selection__btn {
	align-items: center;
	background: var(--cs-navy);
	border: none;
	border-radius: 900px;
	color: var(--cs-white);
	display: flex;
	font-size: 14px;
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0.04em;
	padding: 14px 24px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s ease;
	width: 100%;
}

.category-selection__btn.btn em,
.category-selection a.category-selection__btn em,
.category-selection__arrow {
	align-items: center;
	background: none;
	border-radius: 0;
	color: inherit;
	display: inline-flex;
	flex-wrap: nowrap;
	font-size: inherit;
	font-style: normal;
	font-weight: inherit;
	height: auto;
	justify-content: center;
	line-height: 1;
	margin: 0 0 0 10px;
	overflow: visible;
	padding: 0 0 4px 0;
	position: relative;
	top: 1px;
	transition: none;
	vertical-align: middle;
	width: auto;
}

.category-selection__arrow img {
	display: block;
	height: 13px;
	width: 13px;
}

.category-selection__card:hover .category-selection__btn.btn,
.category-selection__card:hover a.category-selection__btn,
.category-selection__card:focus-within .category-selection__btn.btn,
.category-selection__card:focus-within a.category-selection__btn,
.category-selection__btn.btn:hover,
.category-selection__btn.btn:focus,
.category-selection a.category-selection__btn:hover,
.category-selection a.category-selection__btn:focus {
	background: var(--cs-orange);
	color: var(--cs-white);
	text-decoration: none;
}

.category-selection__nav {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 28px;
}

.category-selection__nav-btn {
	align-items: center;
	background: var(--cs-white);
	border: 1px solid #d5dbe5;
	border-radius: 50%;
	color: #5f6b7d;
	cursor: pointer;
	display: inline-flex;
	height: 48px;
	justify-content: center;
	padding: 0;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	width: 48px;
}

.category-selection__nav-btn:hover,
.category-selection__nav-btn:focus {
	border-color: var(--cs-navy);
	box-shadow: 0 4px 14px rgba(15, 44, 100, 0.12);
	color: var(--cs-navy);
	outline: none;
}

.category-selection__nav-btn.swiper-button-disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

@media (max-width: 1199px) {
	.category-selection--static.category-selection--count-3 .category-selection__swiper .swiper-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-selection__title {
		font-size: 42px;
	}
}

@media (max-width: 767px) {
	.category-selection {
		padding: 56px 0 64px;
	}

	.category-selection__container {
		padding: 0 20px;
	}

	.category-selection__header {
		margin-bottom: 28px;
		margin-left: auto;
		margin-right: auto;
		padding: 0 1rem 2rem 1rem;
		text-align: center;
	}

	.category-selection__title {
		font-size: 32px;
	}

	.category-selection--static .category-selection__swiper .swiper-wrapper,
	.category-selection--slider .category-selection__swiper .swiper-wrapper {
		display: grid;
		gap: 44px;
		grid-template-columns: minmax(0, 1fr) !important;
		max-width: none;
		transform: none !important;
	}

	.category-selection--static .swiper-slide,
	.category-selection--slider .swiper-slide {
		margin-right: 0 !important;
		width: auto !important;
	}

	.category-selection--slider .category-selection__slider-wrap,
	.category-selection--slider .category-selection__swiper.swiper {
		overflow: visible;
	}

	.category-selection--slider .category-selection__nav {
		display: none;
	}

	.category-selection__card {
		margin-left: 1rem;
		margin-right: 1rem;
	}

	.category-selection__body {
		padding: 22px 22px 26px;
	}

	.category-selection__cta {
		text-align: center;
	}

	.category-selection__card-title {
		font-size: 38px;
	}

	.category-selection__card-desc {
		font-size: 18px;
	}
}
