/**
 * Benefits Cards Pattern (Our Services section)
 *
 * @package NexioEducation
 */

.benefits-cards {
	background-color: var(--wp--preset--color--dark-blue, #010d18);
	padding: 120px 254px;
}

.benefits-cards-heading {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 48px;
	font-weight: 400;
	line-height: 58px;
	color: var(--wp--preset--color--white, #fffefa);
	text-align: center;
	margin: 0 0 48px;
}

.benefits-cards-grid {
	display: flex;
	gap: 140px;
	justify-content: space-between;
	align-items: stretch;
}

.benefits-cards-grid > .wp-block-column {
	position: relative;
}

.benefits-cards-grid > .wp-block-column:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -69px;
	top: 0;
	width: 1px;
	height: 246px;
	background-color: var(--wp--preset--color--white, #fffefa);
}

.benefits-card {
	text-align: center;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.benefits-card > p:last-child {
	margin-top: auto;
	margin-bottom: 0;
}

.benefits-card-title {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 24px;
	font-weight: 300;
	line-height: 28px;
	color: var(--wp--preset--color--white, #fffefa);
	margin: 0 0 50px;
}

.benefits-card-text {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	color: rgba(255, 254, 250, 0.75);
	margin: 0 0 38px;
}

.benefits-card .wp-block-buttons {
	justify-content: center;
}

.benefits-card .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(6, 77, 142, 0.25);
	border-radius: 30px;
	padding: 8px 32px;
	font-family: var(--wp--preset--font-family--body, 'Manrope', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	color: #064d8e;
}

.benefits-card .wp-block-button__link:hover {
	background: rgba(6, 77, 142, 0.1);
}

.benefits-card-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid rgba(255, 254, 250, 0.25);
	border-radius: 30px;
	padding: 8px 32px;
	font-family: var(--wp--preset--font-family--body, 'Manrope', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	color: var(--wp--preset--color--white, #fffefa);
	text-decoration: none;
}

.benefits-card-link:hover {
	background: rgba(255, 254, 250, 0.1);
}

.benefits-card-arrow {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

/* Responsive */
@media (max-width: 1350px) {
	.benefits-cards-grid {
		display: flex;
		gap: 75px;
		justify-content: space-between;
		align-items: stretch;
	}

	.benefits-cards-grid > .wp-block-column:not(:last-child)::after {
		right: -38px;
	}
}

@media (max-width: 1200px) {
	.benefits-cards {
		padding: 80px 80px;
	}

	.benefits-cards-grid {
		gap: 48px;
	}

	.benefits-cards-grid > .wp-block-column:not(:last-child)::after {
		right: -24px;
	}
}

@media (max-width: 900px) {
	.benefits-cards {
		padding: 60px 24px;
	}

	.benefits-cards-grid.wp-block-columns {
		flex-direction: column;
		gap: 48px;
		align-items: center !important;
	}

	.benefits-cards-grid > .wp-block-column {
		flex: none;
		max-width: 300px;
		width: 100%;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.benefits-cards-grid > .wp-block-column:not(:last-child)::after {
		display: none;
	}

	.benefits-cards-heading {
		font-size: 32px;
		line-height: 40px;
	}
}
