/* Homepage category cards */

.home-categories {
	clear: both;
	width: 100%;
	background: #fff;
	position: relative;
	z-index: 1;
}

.home-categories > .container {
	margin-left: auto;
	margin-right: auto;
}

.home-categories__header {
	margin: 0;
	text-align: left;
}

.home-categories__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: #01163a;
}

.home-categories__intro {
	margin: 0;
	max-width: 40em;
	font-size: 14px;
	line-height: 1.5;
	color: #64748b;
}

.home-categories__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-left: -10px;
	margin-right: -10px;
}

.home-categories__grid > [class*="col-"] {
	float: none;
	padding-left: 10px;
	padding-right: 10px;
	margin-bottom: 20px;
	display: flex;
}

@media (min-width: 992px) {
	.home-categories__grid {
		justify-content: flex-start;
	}
}

.home-categories__card {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 20px 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-categories__card:hover {
	background: #fff;
	border-color: #0f75bc;
	box-shadow: 0 8px 20px rgba(15, 117, 188, 0.1);
}

.home-categories__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 0 14px;
	border-radius: 50%;
	background: #0f75bc;
	color: #fff;
}

.home-categories__icon .sl-icon {
	width: 1.45em;
	height: 1.45em;
	color: #fff;
}

.home-categories__name {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #01163a;
}

.home-categories__name a {
	color: inherit;
	text-decoration: none !important;
}

.home-categories__name a:hover,
.home-categories__name a:focus {
	color: #0f75bc;
}

.home-categories__teaser {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.45;
	color: #64748b;
}

.home-categories__products {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	width: 100%;
	flex: 1 1 auto;
}

.home-categories__products li {
	margin: 0 0 6px;
	padding: 0;
}

.home-categories__products a {
	display: inline-block;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 500;
	color: #0f75bc;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
}

.home-categories__products a:hover,
.home-categories__products a:focus {
	color: #0b5a91;
	border-bottom-color: rgba(15, 117, 188, 0.35);
}

.home-categories__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	font-size: 13px;
	font-weight: 700;
	color: #d93d3d;
	text-decoration: none !important;
}

.home-categories__more .sl-icon {
	width: 0.95em;
	height: 0.95em;
	transition: transform 0.15s ease;
}

.home-categories__more:hover,
.home-categories__more:focus {
	color: #c23131;
	text-decoration: none !important;
}

.home-categories__more:hover .sl-icon,
.home-categories__more:focus .sl-icon {
	transform: translateX(2px);
}

@media (max-width: 767px) {
	.home-categories__title {
		font-size: 18px;
	}

	.home-categories__card {
		padding: 18px 16px 16px;
	}

	.home-categories__name {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-categories__card {
		transition: none;
	}
}
