/*--------------------------------------------------------------
# Running Stitches Category Grid
--------------------------------------------------------------*/

.rs-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	width: 100%;
	max-width: none;
	margin: 0;
}

.rs-category-card {
	position: relative;
	display: block;
	min-height: 420px;
	overflow: hidden;
	text-decoration: none;
	background: #2f4f4f;
	color: #ffffff;
}

.rs-category-card-bg {
	position: absolute;
	inset: 0;
	display: block;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
}

.rs-category-card-overlay {
	position: absolute;
	inset: 0;
	display: block;
	background: linear-gradient(
		to top,
		rgba(47, 79, 79, 0.78) 0%,
		rgba(47, 79, 79, 0.50) 22%,
		rgba(47, 79, 79, 0.18) 42%,
		rgba(47, 79, 79, 0.00) 62%
	);
	transition: background 0.3s ease;
}

.rs-category-card-content {
	position: relative;
	z-index: 2;
	display: flex;
	height: 100%;
	min-height: 420px;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	padding: 26px 20px 24px;
	box-sizing: border-box;
}

.rs-category-card-title {
	display: block;
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}

.rs-category-card-description {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: #ffffff;
	max-width: 90%;
}

.rs-category-card-button {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 22px;
	background: #e9967a;
	border: 2px solid #ffffff;
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.rs-category-card:hover .rs-category-card-bg {
	transform: scale(1.05);
}

.rs-category-card:hover .rs-category-card-overlay {
	background: linear-gradient(
		to top,
		rgba(47, 79, 79, 0.84) 0%,
		rgba(47, 79, 79, 0.58) 24%,
		rgba(47, 79, 79, 0.20) 44%,
		rgba(47, 79, 79, 0.00) 64%
	);
}

@media (max-width: 980px) {
	.rs-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rs-category-card,
	.rs-category-card-content {
		min-height: 360px;
	}
}

@media (max-width: 767px) {
	.rs-category-grid {
		grid-template-columns: 1fr;
	}

	.rs-category-card,
	.rs-category-card-content {
		min-height: 300px;
	}
}