.values-cards {
	padding: 4rem 0;
	/* background: #f5f5f5; */
}

.values-cards__heading {
	max-width: 780px;
	margin-bottom: 2.5rem;
}

.values-cards__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1.1;
	font-weight: 700;
	color: #111;
}

.values-cards__intro {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #222;
}

.values-cards__intro p:last-child {
	margin-bottom: 0;
}

.values-cards__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.values-cards__card {
	position: relative;
	perspective: 1200px;
	min-height: 520px;
	outline: none;
	/* padding-bottom: 32px; */
}

.values-cards__card.is-flipped .values-cards__card-inner {
	transform: rotateY(180deg);
}

/* .values-cards__card.is-flipped .values-cards__card-toggle span::after {
	display: none;
} */

.values-cards__card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 520px;
	transform-style: preserve-3d;
	transition: transform 0.65s ease;
}

.values-cards__card-face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: #fff;
	border-radius: 24px;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.values-cards__card-face--front {
	z-index: 2;
}

.values-cards__card-face--back {
	transform: rotateY(180deg);
	padding: 2rem 1.5rem 4rem;
}

.values-cards__card-clickarea {
	position: absolute;
	inset: 0;
	z-index: 3;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 0;
}

.values-cards__card-image-wrap {
	aspect-ratio: 3 / 3;
	background: #ddd;
	overflow: hidden;
}

.values-cards__card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.values-cards__card-content {
	position: relative;
	flex: 1;
	padding: 1.5rem 1.5rem 4.25rem;
	background: #fff;
	z-index: 2;
}

.values-cards__card-title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
	font-weight: 700;
	color: #111;
}

.values-cards__card-title--back {
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.values-cards__card-back-inner {
	flex: 1;
	overflow-y: auto;
	padding-right: 0.25rem;
}

.values-cards__card-wysiwyg {
	font-size: 1rem;
	line-height: 1.7;
	color: #222;
}

.values-cards__card-wysiwyg p:last-child {
	margin-bottom: 0;
}

.values-cards__card-wysiwyg ul,
.values-cards__card-wysiwyg ol {
	padding-left: 1.25rem;
	margin-bottom: 1rem;
}

.values-cards__card-toggle {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	z-index: 10;
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #005eb8;
	cursor: pointer;
	box-shadow: 0 8px 16px rgba(0, 94, 184, 0.25);
	transition: transform 0.25s ease, background 0.25s ease;
}


.values-cards__card-toggle:hover,
.values-cards__card-toggle:focus {
	background: #004796;
	transform: translate(-50%, 50%) scale(1.06);
}

.values-cards__card-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2rem;
	line-height: 1;
	font-weight: 400;
	color: #fff;
	font-family: Arial, sans-serif;
}

@media screen and (max-width: 1024px) {
	.values-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 640px) {
	.values-cards {
		padding: 3rem 0;
	}

	.values-cards__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.values-cards__card,
	.values-cards__card-inner {
		min-height: 480px;
	}

	.values-cards__card-title {
		font-size: 1.5rem;
	}
}

.values-cards__sub-title {
	font-style: italic;
	font-weight: 500;
}
