.reha-ep-grid,
.reha-ep-grid * {
	box-sizing: border-box;
}

.reha-ep-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	font-family: Poppins, Arial, sans-serif;
}

.reha-ep-card {
	--reha-accent: #1877d2;
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e8edf3;
	border-radius: 18px;
	box-shadow: 0 14px 38px rgba(18, 39, 73, .09);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.reha-ep-card::before {
	content: "";
	position: absolute;
	z-index: 3;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: var(--reha-accent);
}

.reha-ep-card:hover {
	transform: translateY(-5px);
	border-color: color-mix(in srgb, var(--reha-accent) 25%, #e8edf3);
	box-shadow: 0 22px 48px rgba(18, 39, 73, .14);
}

.reha-ep-image {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f4f7fb;
}

.reha-ep-image::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 28%;
	background: linear-gradient(to top, rgba(255,255,255,.42), transparent);
	pointer-events: none;
}

.reha-ep-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	transition: transform .35s ease;
}

.reha-ep-card:hover .reha-ep-image img {
	transform: scale(1.035);
}

.reha-ep-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 25px 24px 23px;
}

.reha-ep-title {
	margin: 0 0 10px !important;
	color: #10284b;
	font-size: clamp(21px, 1.55vw, 28px);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -.025em;
}

.reha-ep-title a {
	color: inherit !important;
	text-decoration: none !important;
}

.reha-ep-description {
	min-height: 52px;
	margin-bottom: 18px;
	color: #647188;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
}

.reha-ep-description p {
	margin: 0 !important;
}

.reha-ep-features {
	display: grid;
	gap: 9px;
	margin: 0 0 22px !important;
	padding: 17px 0 0 !important;
	border-top: 1px solid #edf0f4;
	list-style: none !important;
	color: #354156;
	font-size: 13.5px;
	line-height: 1.45;
}

.reha-ep-features li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 !important;
	padding: 0 !important;
}

.reha-ep-features li::before {
	display: none !important;
}

.reha-ep-features li span {
	display: inline-grid;
	flex: 0 0 19px;
	width: 19px;
	height: 19px;
	place-items: center;
	margin-top: 1px;
	border-radius: 50%;
	background: #f2f5f9;
	background: color-mix(in srgb, var(--reha-accent) 13%, white);
	color: var(--reha-accent);
	font-size: 12px;
	font-weight: 800;
}

.reha-ep-pricing {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 19px;
	border-top: 1px solid #edf0f4;
}

.reha-ep-price-wrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.reha-ep-regular {
	margin-bottom: 2px;
	color: #8a929f;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
}

.reha-ep-regular .woocommerce-Price-amount,
.reha-ep-regular .woocommerce-Price-currencySymbol {
	color: inherit !important;
}

.reha-ep-sale {
	color: var(--reha-accent);
	font-size: clamp(27px, 2vw, 38px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.035em;
	white-space: nowrap;
}

.reha-ep-sale .woocommerce-Price-amount,
.reha-ep-sale .woocommerce-Price-currencySymbol {
	color: inherit !important;
}

.reha-ep-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
	padding: 7px 10px;
	border-radius: 12px;
	background: #f2f5f9;
	background: color-mix(in srgb, var(--reha-accent) 12%, white);
	color: var(--reha-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: capitalize;
}

.reha-ep-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 13px;
	width: 100%;
	min-height: 54px;
	margin-top: 20px;
	padding: 13px 18px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--reha-accent) !important;
	box-shadow: 0 10px 22px rgba(18, 39, 73, .12);
	box-shadow: 0 10px 22px color-mix(in srgb, var(--reha-accent) 24%, transparent);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.reha-ep-button:hover,
.reha-ep-button:focus {
	filter: brightness(.93);
	transform: translateY(-1px);
	color: #fff !important;
	box-shadow: 0 13px 26px rgba(18, 39, 73, .16);
	box-shadow: 0 13px 26px color-mix(in srgb, var(--reha-accent) 31%, transparent);
}

.reha-ep-button span:last-child {
	font-size: 23px;
	font-weight: 400;
	line-height: .8;
}

.reha-ep-empty {
	padding: 18px;
	border: 1px dashed #cbd3df;
	border-radius: 8px;
	background: #f8fafc;
	color: #4a5568;
	font-family: Arial, sans-serif;
	text-align: center;
}

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

@media (max-width: 767px) {
	.reha-ep-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.reha-ep-card {
		max-width: 520px;
		margin-inline: auto;
	}

	.reha-ep-body {
		padding: 22px 20px 20px;
	}

	.reha-ep-description {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reha-ep-card,
	.reha-ep-image img,
	.reha-ep-button {
		transition: none;
	}
}
