.cmath-services-listing__inner {
	width: min(var(--max-width-content), calc(100% - 2 * var(--grid-margins)));
	margin-inline: auto;
	padding-block: var(--block-padding-m);
}

.cmath-services-listing__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-75);
	margin-bottom: var(--space-300);
	text-align: center;
}

.cmath-services-listing__eyebrow {
	margin: 0;
	font-family: var(--font-family-paragraph);
	font-weight: 500;
	font-size: var(--space-113);
	line-height: 1.2;
	color: var(--color-text-accent);
}

.cmath-services-listing__title {
	margin: 0;
	font-family: var(--font-family-headers);
	font-weight: var(--font-h1-weight);
	font-size: var(--font-h1-size);
	line-height: 1.2;
	color: var(--color-text-alt);
}

.cmath-services-listing__intro {
	max-width: min(var(--max-width-text), 100%);
	font-family: var(--font-family-paragraph);
	font-size: var(--font-body-size);
	line-height: 1.3;
	color: var(--color-text-default);
}

.cmath-services-listing__cards {
	display: flex;
	flex-direction: column;
	gap: var(--space-200);
}

.cmath-services-listing__empty {
	text-align: center;
	color: var(--color-text-default);
}

/* Card */
.cmath-service-card {
	display: flex;
	align-items: flex-start;
	gap: var(--space-150);
	padding: var(--space-150) var(--space-125);
	background: url("../img/card-service-list.svg") center / 100% 100% no-repeat;
	text-decoration: none;
	color: var(--color-text-default);
	transition: transform 0.18s ease;
}

.cmath-service-card:hover,
.cmath-service-card:focus-visible {
	transform: translateY(-2px);
}

.cmath-service-card__image {
	flex: 0 0 199px;
	width: 199px;
	height: 199px;
	overflow: hidden;
	background: var(--color-brand-blue);
}

.cmath-service-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cmath-service-card__body {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-150);
	align-items: flex-start;
}

.cmath-service-card__head {
	display: flex;
	flex-direction: column;
	gap: var(--space-100);
	width: 100%;
}

.cmath-service-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-75);
}

.cmath-tag {
	display: inline-flex;
	align-items: center;
	padding: var(--space-25) var(--space-50);
	border-radius: var(--radius-xs);
	font-family: var(--font-family-paragraph);
	font-size: var(--space-88);
	line-height: 1.2;
}

.cmath-service-card__titles {
	display: flex;
	flex-direction: column;
	gap: var(--space-25);
}

.cmath-service-card__eyebrow {
	font-family: var(--font-family-headers);
	font-weight: 800;
	font-size: var(--font-h6-size);
	line-height: 1.2;
	color: var(--color-text-default);
}

.cmath-service-card__title {
	margin: 0;
	font-family: var(--font-family-headers);
	font-weight: 800;
	font-size: var(--font-h4-size);
	line-height: 1.2;
	color: var(--color-text-default);
}

.cmath-service-card__desc {
	margin: 0;
	max-width: var(--max-width-text);
	font-family: var(--font-family-paragraph);
	font-size: var(--font-body-size);
	line-height: 1.3;
	color: var(--color-text-default);
}

.cmath-service-card__cta {
	display: inline-flex;
	align-items: center;
	padding: var(--space-50) var(--space-100);
	border-radius: var(--radius-full);
	background: var(--color-brand-teal-darker);
	color: var(--color-text-white);
	font-family: var(--font-family-paragraph);
	font-size: var(--font-body-size);
	line-height: 1.3;
}

.cmath-service-card:hover .cmath-service-card__cta,
.cmath-service-card:focus-visible .cmath-service-card__cta {
	background: var(--color-brand-dark-turquoise);
}

@media (max-width: 768px) {
	.cmath-service-card {
		flex-direction: column;
		background-image: url("../img/mobile-service-card.svg");
	}

	.cmath-service-card__image {
		flex-basis: auto;
		width: 100%;
		height: 200px;
	}
}
