/* ==========================================
   Content Block: rs/cards
   ========================================== */


/* ==========================================
   Header
   ========================================== */

.rs-cards__header {
	max-width: 850px;
	margin: 0 auto 3rem;
	text-align: center;
}

.rs-cards__header > :last-child {
	margin-bottom: 0;
}


/* ==========================================
   Card
   ========================================== */

.rs-cards__card {
	--font-size-subheader: var(--font-size-base);
	--color-subheader: var(--color-primary);
	--spacing-subheader: 1rem;
	--spacing-heading: .75rem;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	background: var(--color-background, #fff);
	border: 1px solid #e1e5ee;
	border-radius: 12px;
	transition:
		border-color .2s ease,
		box-shadow .2s ease;
}

.rs-cards__card:hover {
	border-color: #c5cee0;
	box-shadow: 0 8px 24px rgba(36, 43, 56, .06);
}


/* ==========================================
   Icon
   ========================================== */

.rs-cards__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	margin-bottom: 1.5rem;
	background: var(--color-primary-light);
	border-radius: 10px;
}

.rs-cards__icon img {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}


/* ==========================================
   Card content
   ========================================== */

.rs-cards__description {
	color: var(--color-text-muted);
}


/* ==========================================
   Card footer and link
   ========================================== */

.rs-cards__footer {
	width: 100%;
	margin-top: auto;
	padding-top: 1.5rem;
}

.rs-cards__link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--color-primary);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
	transition: color .2s ease;
}

.rs-cards__link svg {
	flex-shrink: 0;
	transition: transform .2s ease;
}

.rs-cards__link:hover {
	color: var(--color-primary-hover);
}

.rs-cards__link:hover svg {
	transform: translateX(4px);
}

.rs-cards__link:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 4px;
	border-radius: 2px;
}


/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 991.98px) {

	.rs-cards__header {
		margin-bottom: 2.5rem;
	}

}

@media (max-width: 767.98px) {

	.rs-cards__header {
		margin-bottom: 2rem;
	}

	.rs-cards__card {
		padding: 1.5rem;
	}

	.rs-cards__icon {
		width: 48px;
		height: 48px;
		margin-bottom: 1.25rem;
	}

	.rs-cards__icon img {
		width: 24px;
		height: 24px;
	}

}


/* ==========================================
   Reduced Motion
   ========================================== */

@media (prefers-reduced-motion: reduce) {

	.rs-cards__card,
	.rs-cards__link,
	.rs-cards__link svg {
		transition: none;
	}

	.rs-cards__link:hover svg {
		transform: none;
	}

}