/**
 * MoroccoPlan homepage benefit cards (below hero search).
 * Compact horizontal strip: icon left, text right.
 * Desktop: 3-column grid. Mobile: scroll-snap carousel (1 card per view).
 */

.moroccoplan-benefit-cards,
.elementor-element.moroccoplan-benefit-cards.e-con {
	--mp-benefit-bg: #f4f6f8;
	--mp-benefit-title: #1a2b48;
	--mp-benefit-text: #5e6d77;
	--mp-benefit-radius: 10px;
	--mp-benefit-gap: 16px;
	--mp-benefit-icon: 40px;
	--mp-benefit-pad-y: 12px;
	--mp-benefit-pad-x: 14px;
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mp-benefit-gap);
	width: 100%;
}

.moroccoplan-benefit-cards .moroccoplan-benefit-card,
.elementor-element.moroccoplan-benefit-card.e-con,
.elementor-184 .elementor-element.moroccoplan-benefit-card {
	--padding-top: var(--mp-benefit-pad-y) !important;
	--padding-bottom: var(--mp-benefit-pad-y) !important;
	--padding-left: var(--mp-benefit-pad-x) !important;
	--padding-right: var(--mp-benefit-pad-x) !important;
	--border-radius: var(--mp-benefit-radius) !important;
	display: grid !important;
	grid-template-columns: var(--mp-benefit-icon) minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 3px;
	align-items: start;
	align-content: start;
	min-height: 0;
	width: auto !important;
	max-width: none !important;
	padding: var(--mp-benefit-pad-y) var(--mp-benefit-pad-x) !important;
	background: var(--mp-benefit-bg) !important;
	border-radius: var(--mp-benefit-radius);
	box-sizing: border-box;
}

.moroccoplan-benefit-cards .moroccoplan-benefit-card__icon,
.elementor-element.moroccoplan-benefit-card__icon.e-con,
.elementor-184 .elementor-element.moroccoplan-benefit-card__icon {
	--width: var(--mp-benefit-icon) !important;
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	justify-self: center;
	width: var(--mp-benefit-icon) !important;
	max-width: var(--mp-benefit-icon) !important;
	min-width: var(--mp-benefit-icon) !important;
}

.moroccoplan-benefit-cards .moroccoplan-benefit-card__icon .elementor-widget-container,
.moroccoplan-benefit-cards .moroccoplan-benefit-card__icon img {
	display: block;
	width: var(--mp-benefit-icon);
	height: var(--mp-benefit-icon);
	object-fit: contain;
}

.moroccoplan-benefit-cards .moroccoplan-benefit-card__body,
.elementor-element.moroccoplan-benefit-card__body.e-con,
.elementor-184 .elementor-element.moroccoplan-benefit-card__body {
	display: contents !important;
}

.moroccoplan-benefit-cards .moroccoplan-benefit-card__title,
.elementor-element.moroccoplan-benefit-card__title,
.elementor-184 .elementor-element.moroccoplan-benefit-card__title {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	min-width: 0;
}

.moroccoplan-benefit-cards .moroccoplan-benefit-card__text,
.elementor-element.moroccoplan-benefit-card__text,
.elementor-184 .elementor-element.moroccoplan-benefit-card__text {
	grid-column: 2;
	grid-row: 2;
	min-width: 0;
}

.moroccoplan-benefit-cards .moroccoplan-benefit-card__title .elementor-widget-container,
.elementor-184 .elementor-element.moroccoplan-benefit-card__title > .elementor-widget-container {
	margin: 0 !important;
}

.moroccoplan-benefit-cards .moroccoplan-benefit-card__title .elementor-heading-title,
.moroccoplan-benefit-cards .moroccoplan-benefit-card__title h3,
.elementor-184 .elementor-element.moroccoplan-benefit-card__title .elementor-heading-title {
	margin: 0;
	color: var(--mp-benefit-title);
	font-family: "GT Eesti Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.moroccoplan-benefit-cards .moroccoplan-benefit-card__text,
.moroccoplan-benefit-cards .moroccoplan-benefit-card__text p,
.elementor-184 .elementor-element.moroccoplan-benefit-card__text {
	margin: 0;
	color: var(--mp-benefit-text);
	font-family: "GT Eesti Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

@media screen and (max-width: 991px) {
	.moroccoplan-benefit-cards,
	.elementor-element.moroccoplan-benefit-cards.e-con {
		gap: 12px;
	}

	.moroccoplan-benefit-cards .moroccoplan-benefit-card,
	.elementor-element.moroccoplan-benefit-card.e-con {
		--mp-benefit-pad-y: 11px;
		--mp-benefit-pad-x: 12px;
	}

	.moroccoplan-benefit-cards .moroccoplan-benefit-card__title .elementor-heading-title,
	.moroccoplan-benefit-cards .moroccoplan-benefit-card__title h3 {
		font-size: 15px;
	}

	.moroccoplan-benefit-cards .moroccoplan-benefit-card__text,
	.moroccoplan-benefit-cards .moroccoplan-benefit-card__text p {
		font-size: 12px;
	}
}

/* Prevent horizontal page scroll from the mobile carousel track. */
.elementor-element.elementor-element-09f11ea {
	overflow: hidden;
}

@media screen and (max-width: 767px) {
	.moroccoplan-benefit-cards,
	.elementor-element.moroccoplan-benefit-cards.e-con {
		display: flex !important;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 12px;
		padding: 0 2px 2px;
		margin: 0;
	}

	.moroccoplan-benefit-cards::-webkit-scrollbar {
		display: none;
	}

	.moroccoplan-benefit-cards .moroccoplan-benefit-card,
	.elementor-element.moroccoplan-benefit-card.e-con {
		flex: 0 0 100%;
		min-width: 100%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}
}

@media (prefers-reduced-motion: reduce) {
	.moroccoplan-benefit-cards {
		scroll-behavior: auto;
	}
}
