/* Content-only repair. Header, footer and Elementor containers are not selected. */

.growx-courses,
.growx-events,
.growx-sectors-grid,
.growx-cities {
	align-items: start !important;
	grid-auto-rows: auto !important;
}

.growx-sectors-grid {
	align-items: stretch !important;
	grid-auto-rows: 1fr !important;
}

.growx-card.growx-course-card,
.growx-card.growx-event-card,
.growx-city-card,
.growx-sectors-grid .gx-sector-card {
	height: auto !important;
	min-height: 0 !important;
	align-self: start !important;
}

.growx-sectors-grid .gx-sector-card {
	height: 100% !important;
	align-self: stretch !important;
}

.growx-sectors-grid .gx-sector-image {
	width: calc(100% + 56px) !important;
	margin-inline: -28px !important;
}

.growx-card.growx-course-card .growx-card-body,
.growx-card.growx-event-card .growx-card-body {
	height: auto !important;
	min-height: 0 !important;
	box-sizing: border-box !important;
}

.growx-card-image,
.growx-sectors-grid .gx-sector-image {
	display: block !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: hidden !important;
	aspect-ratio: 16 / 9 !important;
}

.growx-card-image img,
.growx-sectors-grid .gx-sector-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	object-fit: cover !important;
}

.growx-sectors-grid .gx-sector-card {
	grid-row: auto !important;
}

/* Keep the homepage statistics compact, without selecting any header element. */
@media (max-width: 767px) {
	.gx-hero .elementor-widget-icon-box,
	.gx-hero .elementor-widget-counter,
	.gx-hero .elementor-widget-icon-list {
		margin-block: 0 !important;
		padding-block: 0 !important;
		min-height: 0 !important;
	}

	.gx-hero .elementor-widget-icon-box .elementor-icon-box-wrapper,
	.gx-hero .elementor-widget-counter .elementor-counter {
		margin-block: 0 !important;
		padding-block: 0 !important;
	}

	.gx-hero .elementor-container:has(.elementor-widget-icon-box),
	.gx-hero .elementor-container:has(.elementor-widget-counter),
	.gx-hero .elementor-row:has(.elementor-widget-icon-box),
	.gx-hero .elementor-row:has(.elementor-widget-counter) {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 12px !important;
		align-items: start !important;
	}

	.gx-hero .elementor-container:has(.elementor-widget-icon-box) > .elementor-column,
	.gx-hero .elementor-container:has(.elementor-widget-counter) > .elementor-column,
	.gx-hero .elementor-row:has(.elementor-widget-icon-box) > .elementor-column,
	.gx-hero .elementor-row:has(.elementor-widget-counter) > .elementor-column {
		width: auto !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	.growx-card-image,
	.growx-sectors-grid .gx-sector-image {
		aspect-ratio: 16 / 9 !important;
	}

	.growx-sectors-grid .gx-sector-card {
		height: auto !important;
		align-self: start !important;
	}

	.growx-sectors-grid .gx-sector-image {
		width: calc(100% + 44px) !important;
		margin-inline: -22px !important;
	}

	body .growx-sectors-grid .gx-sector-image {
		width: calc(100% + 44px) !important;
		max-width: none !important;
		margin-left: -22px !important;
		margin-right: -22px !important;
	}
}
