/* Grow X visual tuning: restrained typography and consistent image proportions. */
.gxms-header-trainer-links a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 38px !important;
	min-height: 38px !important;
	max-height: 42px !important;
	margin-inline-start: 8px;
	padding: 8px 14px !important;
	border-radius: 999px;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

/* v3.81: force true RTL alignment inside Arabic city detail pages. */
body.single-gx_city .growx-city-single[dir="rtl"] {
	direction: rtl !important;
	text-align: right !important;
}
body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-detail-heading,
body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-detail-card,
body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-info-card,
body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-booking-card,
body.single-gx_city .growx-city-single[dir="rtl"] h1,
body.single-gx_city .growx-city-single[dir="rtl"] h2,
body.single-gx_city .growx-city-single[dir="rtl"] h3,
body.single-gx_city .growx-city-single[dir="rtl"] p,
body.single-gx_city .growx-city-single[dir="rtl"] .growx-rich-text {
	direction: rtl !important;
	text-align: right !important;
}
body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-info-card > div {
	direction: rtl !important;
	text-align: right !important;
}
body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-info-card span,
body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-info-card strong {
	text-align: right !important;
}
body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-booking-card .growx-button {
	direction: rtl !important;
	text-align: center !important;
}
@media (max-width: 767px) {
	body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-detail-heading {
		inset-inline-start: 18px !important;
		inset-inline-end: 18px !important;
		text-align: right !important;
	}
	body.single-gx_city .growx-city-single[dir="rtl"] .growx-city-info-card > div {
		justify-content: space-between !important;
		text-align: right !important;
	}
}

/* v3.80: mobile city detail layout, with inherited RTL/LTR direction. */
@media (max-width: 767px) {
	body.single-gx_city .growx-city-single {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		overflow: hidden !important;
		box-sizing: border-box !important;
		direction: inherit;
	}
	body.single-gx_city .growx-city-detail-hero {
		position: relative !important;
		display: flex !important;
		width: 100% !important;
		height: 270px !important;
		min-height: 270px !important;
		max-height: 270px !important;
		margin: 0 !important;
		overflow: hidden !important;
		border-radius: 0 0 18px 18px !important;
	}
	body.single-gx_city .growx-city-detail-image,
	body.single-gx_city .growx-city-detail-image img {
		position: absolute !important;
		inset: 0 !important;
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		object-fit: cover !important;
		object-position: center center !important;
	}
	body.single-gx_city .growx-city-detail-heading {
		position: absolute !important;
		inset-inline: 18px !important;
		bottom: 22px !important;
		width: auto !important;
		max-width: calc(100% - 36px) !important;
		margin: 0 !important;
		z-index: 2 !important;
		text-align: start !important;
	}
	body.single-gx_city .growx-city-detail-heading h1 {
		margin: 6px 0 0 !important;
		font-size: clamp(28px, 8vw, 38px) !important;
		line-height: 1.15 !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
	}
	body.single-gx_city .growx-detail-heading span,
	body.single-gx_city .growx-city-detail-heading > span {
		font-size: 13px !important;
		line-height: 1.2 !important;
	}
	body.single-gx_city .growx-city-detail-grid {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 18px !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 18px 0 0 !important;
	}
	body.single-gx_city .growx-city-detail-content,
	body.single-gx_city .growx-city-detail-sidebar {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		gap: 18px !important;
		order: initial !important;
		box-sizing: border-box !important;
	}
	body.single-gx_city .growx-city-detail-content { order: 1 !important; }
	body.single-gx_city .growx-city-detail-sidebar { order: 2 !important; }
	body.single-gx_city .growx-city-detail-card,
	body.single-gx_city .growx-city-info-card,
	body.single-gx_city .growx-city-booking-card {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		box-sizing: border-box !important;
		text-align: start !important;
		overflow: visible !important;
	}
	body.single-gx_city .growx-city-detail-card h2,
	body.single-gx_city .growx-city-info-card h2,
	body.single-gx_city .growx-city-booking-card h2 {
		font-size: 21px !important;
		line-height: 1.25 !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
	}
	body.single-gx_city .growx-city-detail-card p,
	body.single-gx_city .growx-city-detail-card .growx-rich-text,
	body.single-gx_city .growx-city-info-card div,
	body.single-gx_city .growx-city-booking-card p {
		max-width: 100% !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
		line-height: 1.75 !important;
	}
	body.single-gx_city .growx-city-info-card > div {
		display: flex !important;
		justify-content: space-between !important;
		align-items: flex-start !important;
		gap: 12px !important;
		width: 100% !important;
	}
	body.single-gx_city .growx-city-info-card strong {
		max-width: 58% !important;
		text-align: end !important;
		overflow-wrap: anywhere !important;
	}
	body.single-gx_city .growx-city-booking-card .growx-button {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		justify-content: center !important;
	}
}

/* v3.73: stack the Key Training Areas list on Services mobile pages. */
@media (max-width: 767px) {
	body.page-id-17 .gx-areas-list .elementor-icon-list-items,
	body.page-id-623 .gx-areas-list .elementor-icon-list-items {
		display: flex !important;
		flex-direction: column !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 10px !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	body.page-id-17 .gx-areas-list .elementor-icon-list-item,
	body.page-id-623 .gx-areas-list .elementor-icon-list-item {
		display: flex !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		margin: 0 !important;
	}
}

/* v3.77: prevent the English Trainer Access label from being clipped. */
@media (max-width: 1199px) {
	body .gxms-trainer-access-shortcode[dir="ltr"],
	body .gxms-trainer-access-shortcode[dir="ltr"] .gxms-trainer-compact-actions {
		width: max-content !important;
		min-width: 0 !important;
		max-width: calc(100vw - 24px) !important;
		flex: 0 0 auto !important;
		overflow: visible !important;
	}
	body .gxms-trainer-access-shortcode[dir="ltr"] summary {
		width: max-content !important;
		min-width: 142px !important;
		max-width: calc(100vw - 24px) !important;
		padding-inline: 13px !important;
		white-space: nowrap !important;
		overflow: visible !important;
		flex-shrink: 0 !important;
	}
	body .gxms-trainer-access-shortcode[dir="ltr"] summary span {
		display: inline-block !important;
		white-space: nowrap !important;
		max-width: none !important;
		overflow: visible !important;
	}
}

/* v3.78: keep English mobile Trainer Access beside, not over, the logo. */
@media (max-width: 767px) {
	/* v3.79: add a small left offset for the English header action. */
	body:not(.rtl) .gxms-trainer-access-shortcode[dir="ltr"] {
		position: relative !important;
		left: -8px !important;
	}

	body:not(.rtl) .elementor-location-header .elementor-container {
		column-gap: 6px !important;
		overflow: visible !important;
	}
	body:not(.rtl) .elementor-location-header img {
		width: auto !important;
		max-width: 82px !important;
		max-height: 58px !important;
		flex: 0 0 auto !important;
	}
	body:not(.rtl) .gxms-trainer-access-shortcode[dir="ltr"],
	body:not(.rtl) .gxms-trainer-access-shortcode[dir="ltr"] .gxms-trainer-compact-actions {
		width: 132px !important;
		min-width: 132px !important;
		max-width: 132px !important;
		margin-inline: 2px !important;
		flex: 0 0 132px !important;
	}
	body:not(.rtl) .gxms-trainer-access-shortcode[dir="ltr"] summary {
		width: 132px !important;
		min-width: 132px !important;
		max-width: 132px !important;
		padding-inline: 8px !important;
		gap: 5px !important;
		font-size: 11px !important;
		box-sizing: border-box !important;
	}
	body:not(.rtl) .gxms-trainer-access-shortcode[dir="ltr"] summary svg {
		width: 14px !important;
		height: 14px !important;
		flex: 0 0 14px !important;
	}
	body:not(.rtl) .gxms-trainer-access-shortcode[dir="ltr"] summary span {
		font-size: 11px !important;
		letter-spacing: -0.1px !important;
	}
}

/* v3.72: Services mobile layout for English page 17 and Arabic page 623. */
@media (max-width: 767px) {
	body.page-id-17 .gx-services-grid,
	body.page-id-623 .gx-services-grid,
	body.page-id-17 .gx-training-areas,
	body.page-id-623 .gx-training-areas,
	body.page-id-17 .gx-cta,
	body.page-id-623 .gx-cta {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		gap: 18px !important;
		box-sizing: border-box !important;
	}

	body.page-id-17 .gx-services-grid > *,
	body.page-id-623 .gx-services-grid > *,
	body.page-id-17 .gx-training-areas > *,
	body.page-id-623 .gx-training-areas > *,
	body.page-id-17 .gx-cta > *,
	body.page-id-623 .gx-cta > * {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: 0 1 auto !important;
		box-sizing: border-box !important;
		margin-inline: 0 !important;
	}

	body.page-id-17 .gx-service-card,
	body.page-id-623 .gx-service-card {
		min-height: 0 !important;
		height: auto !important;
		overflow: visible !important;
	}

	/* Gold icon treatment requested for both language versions. */
	body.page-id-17 .gx-service-card .elementor-icon,
	body.page-id-623 .gx-service-card .elementor-icon,
	body.page-id-17 .gx-service-card .elementor-icon i,
	body.page-id-623 .gx-service-card .elementor-icon i {
		color: #d6a12c !important;
		background-color: #fff3d6 !important;
		border-color: #d6a12c !important;
	}
	body.page-id-17 .gx-service-card .elementor-icon svg,
	body.page-id-623 .gx-service-card .elementor-icon svg {
		fill: #d6a12c !important;
		color: #d6a12c !important;
	}

	/* Keep page and card headings visible and readable after stacking. */
	body.page-id-17 .gx-page-title,
	body.page-id-623 .gx-page-title,
	body.page-id-17 .gx-section-title,
	body.page-id-623 .gx-section-title,
	body.page-id-17 .gx-light-title,
	body.page-id-623 .gx-light-title,
	body.page-id-17 .gx-cta-title,
	body.page-id-623 .gx-cta-title {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
		line-height: 1.2 !important;
	}
}

/* v3.71: About Us mobile layout for English page 13 and Arabic page 597. */
@media (max-width: 767px) {
	body.page-id-13 .gx-about-intro,
	body.page-id-597 .gx-about-intro,
	body.page-id-13 .gx-vm-grid,
	body.page-id-597 .gx-vm-grid,
	body.page-id-13 .gx-objectives-grid,
	body.page-id-597 .gx-objectives-grid,
	body.page-id-13 .gx-values-grid,
	body.page-id-597 .gx-values-grid {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		gap: 18px !important;
		box-sizing: border-box !important;
	}

	body.page-id-13 .gx-about-intro > *,
	body.page-id-597 .gx-about-intro > *,
	body.page-id-13 .gx-vm-grid > *,
	body.page-id-597 .gx-vm-grid > *,
	body.page-id-13 .gx-objectives-grid > *,
	body.page-id-597 .gx-objectives-grid > *,
	body.page-id-13 .gx-values-grid > * {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: 0 1 auto !important;
		box-sizing: border-box !important;
		margin-inline: 0 !important;
	}
	body.page-id-597 .gx-values-grid > * {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: 0 1 auto !important;
		box-sizing: border-box !important;
		margin-inline: 0 !important;
	}

	/* Restore headings that can be clipped or hidden by the desktop container rules. */
	body.page-id-13 .gx-section-eyebrow,
	body.page-id-597 .gx-section-eyebrow,
	body.page-id-13 .gx-section-title,
	body.page-id-597 .gx-section-title,
	body.page-id-13 .gx-card-title,
	body.page-id-597 .gx-card-title,
	body.page-id-13 .gx-philosophy-title,
	body.page-id-597 .gx-philosophy-title {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		max-width: 100% !important;
		width: 100% !important;
		overflow: visible !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
	}
	body.page-id-13 .gx-section-title .elementor-heading-title,
	body.page-id-597 .gx-section-title .elementor-heading-title,
	body.page-id-13 .gx-card-title .elementor-heading-title,
	body.page-id-597 .gx-card-title .elementor-heading-title,
	body.page-id-13 .gx-philosophy-title .elementor-heading-title,
	body.page-id-597 .gx-philosophy-title .elementor-heading-title {
		max-width: 100% !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
		line-height: 1.2 !important;
	}

	body.page-id-13 .gx-vm-card,
	body.page-id-597 .gx-vm-card,
	body.page-id-13 .gx-objective-card,
	body.page-id-597 .gx-objective-card {
		min-height: 0 !important;
		height: auto !important;
		overflow: visible !important;
	}
}

/* Premium responsive trainer actions for Elementor/ElementsKit headers. */
.gxms-header-trainer-register a::before,
.gxms-header-trainer-cta-fallback .gxms-header-trainer-register::before,
.gxms-header-trainer-login a::before,
.gxms-header-trainer-cta-fallback .gxms-header-trainer-login::before {
	display: inline-block;
	margin-inline-end: 7px;
	font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif;
	font-weight: 900;
	font-size: 14px;
	line-height: 1;
}

.gxms-header-trainer-register a::before,
.gxms-header-trainer-cta-fallback .gxms-header-trainer-register::before { content: "\f234"; }
.gxms-header-trainer-login a::before,
.gxms-header-trainer-cta-fallback .gxms-header-trainer-login::before { content: "\f2f6"; }

.gxms-header-trainer-links a,
.gxms-header-trainer-cta-fallback .gxms-header-trainer-link {
	box-shadow: 0 5px 14px rgba(7, 26, 57, .12);
	letter-spacing: .01em;
}

.elementskit-navbar-nav > li.gxms-header-trainer-links,
.elementor-nav-menu > li.gxms-header-trainer-links {
	align-self: center !important;
	height: auto !important;
	max-height: 42px !important;
	margin-block: 0 !important;
	flex: 0 0 auto !important;
}

.gxms-mobile-trainer-menu {
	display: none !important;
}

.elementskit-navbar-nav,
.elementor-nav-menu {
	flex-wrap: nowrap !important;
}

.elementskit-navbar-nav > li > a,
.elementor-nav-menu > li > a {
	white-space: nowrap !important;
	word-break: keep-all !important;
	overflow-wrap: normal !important;
	line-height: 1.15 !important;
}

.gxms-header-trainer-cta-fallback {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-inline-start: auto;
	padding-inline-start: 12px;
}

.gxms-header-trainer-cta-fallback .gxms-header-trainer-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.gxms-header-trainer-cta-fallback .gxms-header-trainer-register {
	color: #071a39;
	background: #d6a12c;
}

.gxms-header-trainer-cta-fallback .gxms-header-trainer-login {
	color: #fff;
	background: #071a39;
}

.gxms-header-trainer-register a {
	color: #071a39 !important;
	background: #d6a12c !important;
}

.gxms-header-trainer-login a {
	color: #fff !important;
	background: #071a39 !important;
}

.gxms-header-trainer-links a:hover {
	color: #fff !important;
	background: #b88716 !important;
	transform: translateY(-1px);
}

@media (max-width: 767px) {
	.gxms-header-trainer-links {
		display: none !important;
	}

	.gxms-mobile-trainer-menu {
		display: block !important;
		position: relative;
		width: 100%;
		margin: 8px 0 !important;
	}

	.gxms-mobile-trainer-trigger {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 9px;
		width: 100%;
		min-height: 46px;
		padding: 10px 16px;
		border: 1px solid #d6a12c;
		border-radius: 14px;
		background: linear-gradient(135deg, #071a39, #0d2d5c);
		color: #fff;
		font: inherit;
		font-size: 14px;
		font-weight: 700;
		cursor: pointer;
		box-shadow: 0 8px 20px rgba(7, 26, 57, .18);
	}

	.gxms-mobile-trainer-icon {
		font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif;
		font-weight: 900;
	}

	.gxms-mobile-trainer-chevron {
		margin-inline-start: auto;
		color: #d6a12c;
		font-size: 20px;
		line-height: 1;
		transition: transform .2s ease;
	}

	.gxms-mobile-trainer-menu.is-open .gxms-mobile-trainer-chevron {
		transform: rotate(180deg);
	}

	.gxms-mobile-trainer-dropdown {
		display: none;
		gap: 7px;
		padding: 9px;
		margin-top: 7px;
		border: 1px solid rgba(214, 161, 44, .55);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 10px 24px rgba(7, 26, 57, .16);
	}

	.gxms-mobile-trainer-menu.is-open .gxms-mobile-trainer-dropdown {
		display: grid;
	}

	.gxms-mobile-trainer-action {
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-height: 40px;
		padding: 9px 12px !important;
		border-radius: 10px !important;
		font-size: 13px !important;
		font-weight: 700 !important;
		text-decoration: none !important;
	}

	.gxms-mobile-trainer-action.gxms-header-trainer-register {
		background: #d6a12c !important;
		color: #071a39 !important;
	}

	.gxms-mobile-trainer-action.gxms-header-trainer-login {
		background: #071a39 !important;
		color: #fff !important;
	}

	.gxms-header-trainer-links a {
		height: 36px !important;
		min-height: 36px !important;
		max-height: 38px !important;
		margin-inline-start: 4px;
		padding: 7px 10px !important;
		font-size: 11px !important;
	}

	.gxms-header-trainer-register a::before,
	.gxms-header-trainer-cta-fallback .gxms-header-trainer-register::before,
	.gxms-header-trainer-login a::before,
	.gxms-header-trainer-cta-fallback .gxms-header-trainer-login::before {
		margin-inline-end: 4px;
		font-size: 12px;
	}

	.gxms-header-trainer-cta-fallback {
		gap: 4px;
		padding-inline-start: 4px;
	}

	.gxms-header-trainer-cta-fallback .gxms-header-trainer-link {
		min-height: 32px;
		padding: 6px 9px;
		font-size: 11px;
	}
}

/* v3.69: Elementor wrapper/grid hardening for real mobile layouts. */
@media (max-width: 767px) {
	/* Elementor can keep the shortcode widget at a desktop flex/grid width. */
	body .elementor-widget-shortcode,
	body .elementor-widget-shortcode .elementor-widget-container,
	body .elementor-widget-shortcode .elementor-shortcode,
	body .gx-programs-panel .elementor-widget,
	body .gx-programs-panel .elementor-widget-container {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: 0 1 100% !important;
		box-sizing: border-box !important;
	}

	/* Never allow Elementor's desktop multi-column grids to survive on a phone. */
	body .elementor-grid,
	body .elementor-grid-1,
	body .elementor-grid-2,
	body .elementor-grid-3,
	body .elementor-grid-4,
	body .elementor-grid-5,
	body .elementor-grid-6,
	body .elementor-grid-7,
	body .elementor-grid-8,
	body .elementor-grid-9,
	body .elementor-grid-10 {
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	/* Keep the public city list readable, but retain its compact two-column layout. */
	body .growx-grid.growx-cities,
	body .growx-cities {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	/* Course/event/sector cards are single-column on phones. */
	body .growx-grid.growx-courses,
	body .growx-grid.growx-events,
	body .growx-grid.growx-sectors-grid,
	body .growx-courses,
	body .growx-events,
	body .growx-sectors-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-auto-columns: minmax(0, 1fr) !important;
		gap: 16px !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	/* The event card itself has a date/content grid; prevent letter-by-letter text. */
	body .growx-event-card,
	body .growx-card.growx-event-card {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	body .growx-event-card > *,
	body .growx-card.growx-event-card > * {
		min-width: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Remove desktop flex minimums that create clipped right-hand content. */
	body .elementor-element,
	body .elementor-widget,
	body .elementor-widget-container,
	body .elementor-grid-item,
	body .e-con,
	body .e-con-inner {
		min-width: 0 !important;
		box-sizing: border-box !important;
	}
	body img,
	body video,
	body iframe,
	body table {
		max-width: 100% !important;
	}
}

.gxms-mobile-trainer-floating {
	position: fixed !important;
	right: 16px;
	bottom: 84px;
	z-index: 2147483000 !important;
	width: min(220px, calc(100vw - 32px));
	margin: 0 !important;
}

[dir="rtl"] .gxms-mobile-trainer-floating {
	right: auto;
	left: 16px;
}

@media (min-width: 768px) and (max-width: 1600px) {
	.gxms-header-trainer-links a {
		width: auto !important;
		height: 34px !important;
		min-height: 34px !important;
		max-height: 36px !important;
		padding: 5px 9px !important;
		font-size: 11px !important;
		white-space: nowrap !important;
	}
	.gxms-header-trainer-links a::before {
		margin-inline-end: 4px !important;
		font-size: 12px !important;
	}
	.elementskit-navbar-nav > li > a,
	.elementor-nav-menu > li > a {
		padding-inline: 5px !important;
		font-size: 12px !important;
	}
}

/* One elegant trainer dropdown on desktop, tablet and mobile. */
.gxms-header-trainer-links {
	display: none !important;
}

.gxms-trainer-access-shortcode {
	position: relative;
	width: max-content;
	margin: 0 6px;
	font-family: inherit;
	z-index: 1000;
}

.gxms-trainer-desktop-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.gxms-trainer-desktop-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 36px;
	padding: 0 13px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: 0 5px 14px rgba(7, 26, 57, .12);
}

.gxms-trainer-desktop-actions a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gxms-trainer-desktop-actions .is-register { background: #d6a12c; color: #071a39; }
.gxms-trainer-desktop-actions .is-login { background: #071a39; color: #fff; }

.gxms-trainer-compact-actions { display: none; }

.gxms-trainer-access-shortcode summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 142px;
	height: 36px;
	padding: 0 11px;
	box-sizing: border-box;
	border: 1px solid #d6a12c;
	border-radius: 10px;
	background: #071a39;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	list-style: none;
	box-shadow: 0 5px 14px rgba(7, 26, 57, .14);
}

.gxms-trainer-access-shortcode summary::-webkit-details-marker { display: none; }
.gxms-trainer-access-shortcode summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gxms-trainer-access-shortcode summary b { color: #d6a12c; font-size: 16px; line-height: 1; }
.gxms-trainer-access-shortcode[open] summary b { transform: rotate(180deg); }
.gxms-trainer-access-panel { position: absolute; top: calc(100% + 7px); inset-inline-end: 0; display: grid; gap: 7px; min-width: 200px; padding: 9px; border: 1px solid rgba(214, 161, 44, .65); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(7, 26, 57, .2); }
.gxms-trainer-access-panel a { display: flex; align-items: center; justify-content: center; min-height: 39px; padding: 8px 11px; border-radius: 9px; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.gxms-trainer-access-panel .is-register { background: #d6a12c; color: #071a39; }
.gxms-trainer-access-panel .is-login { background: #071a39; color: #fff; }

@media (max-width: 767px) {
	.gxms-trainer-access-shortcode { width: 100%; margin: 8px 0; }
	.gxms-trainer-compact-actions { width: 100%; }
	.gxms-trainer-access-shortcode summary { width: 100%; min-width: 0; height: 44px; font-size: 14px; }
	.gxms-trainer-access-panel { position: absolute; top: calc(100% + 7px); inset-inline-end: 0; width: min(230px, 100vw - 32px); min-width: 0; box-sizing: border-box; margin-top: 0; z-index: 999999; }
}

@media (max-width: 1199px) {
	.gxms-trainer-desktop-actions { display: none; }
	.gxms-trainer-compact-actions { display: block; }
}

.gxms-mobile-trainer-menu {
	display: block !important;
	position: relative;
	width: auto;
	flex: 0 0 auto !important;
	margin: 0 5px !important;
	align-self: center !important;
	top: 0;
}

.gxms-mobile-trainer-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 142px;
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid #d6a12c !important;
	border-radius: 12px;
	background: linear-gradient(135deg, #071a39, #0d2d5c);
	color: #fff;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(7, 26, 57, .16);
}

.gxms-mobile-trainer-svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gxms-mobile-trainer-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	z-index: 99999;
	min-width: 195px;
	gap: 7px;
	padding: 9px;
	border: 1px solid rgba(214, 161, 44, .65);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(7, 26, 57, .2);
}

.gxms-mobile-trainer-menu.is-open .gxms-mobile-trainer-dropdown {
	display: grid;
}

.gxms-mobile-trainer-action {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 12px !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	text-decoration: none !important;
}

.gxms-mobile-trainer-action.gxms-header-trainer-register {
	background: #d6a12c !important;
	color: #071a39 !important;
}

.gxms-mobile-trainer-action.gxms-header-trainer-login {
	background: #071a39 !important;
	color: #fff !important;
}

@media (max-width: 767px) {
	.gxms-mobile-trainer-menu {
		width: 100%;
		margin: 8px 0 !important;
		top: 0;
	}

	.gxms-mobile-trainer-trigger {
		width: 100%;
	}

	.gxms-mobile-trainer-dropdown {
		position: static;
		width: 100%;
		box-sizing: border-box;
		margin-top: 7px;
	}
}

.growx-course-single,
.growx-events,
.growx-courses,
.growx-sectors-grid,
.growx-cities,
.growx-event-detail {
	font-size: 16px;
	line-height: 1.65;
}

.growx-sectors-grid {
	max-width: 1200px;
	grid-auto-rows: 1fr;
}

.growx-sectors-grid .gx-sector-card {
	min-height: 430px;
}

.growx-sectors-grid .gx-sector-image {
	height: 190px;
}

.growx-sectors-grid .gx-sector-title {
	font-size: clamp(20px, 2vw, 28px);
	line-height: 1.25;
	letter-spacing: -.01em;
}

.growx-sectors-grid .gx-sector-description,
.growx-sectors-grid .gx-sector-description p {
	font-size: 16px;
	line-height: 1.7;
}

.growx-sectors-grid .gx-sector-image img,
.growx-card-image img,
.growx-city-card img,
.growx-course-hero-image img,
.growx-event-card img {
	display: block;
	max-width: 100%;
	object-fit: cover;
	object-position: center;
}

.growx-course-card h3 {
	font-size: clamp(18px, 1.45vw, 23px);
	line-height: 1.3;
}

.growx-course-card p,
.growx-event-card,
.growx-city-card {
	font-size: 16px;
	line-height: 1.65;
}

.growx-course-hero-content h1 {
	max-width: 760px;
	font-size: clamp(30px, 3.5vw, 48px);
	line-height: 1.16;
}

.growx-course-hero-image {
	max-height: 480px;
	overflow: hidden;
}

.growx-course-hero-image img {
	width: 100%;
	max-height: 480px;
}

.growx-course-content-card h2,
.growx-course-info-card h2,
.growx-course-audience-card h2,
.growx-course-booking-card h2,
.growx-event-detail-card h2 {
	font-size: clamp(20px, 2.1vw, 28px);
	line-height: 1.3;
}

.growx-rich-text {
	font-size: 16px;
	line-height: 1.8;
}

.growx-event-detail-hero h1 {
	font-size: clamp(28px, 3.4vw, 46px);
	line-height: 1.18;
}

.growx-city-card img {
	height: 220px;
}

/* ================================================================
   Final responsive system: one predictable layer after all legacy
   Elementor/plugin rules. Desktop remains unchanged; tablet/mobile
   receive bounded containers, readable text and safe card grids.
   ================================================================ */
html, body {
	max-width: 100%;
}

body img,
body video,
body iframe {
	max-width: 100%;
}

body table {
	max-width: 100%;
}

@media (min-width: 768px) and (max-width: 1199px) {
	body .growx-courses,
	body .growx-events,
	body .growx-sectors-grid,
	body .growx-cities {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 18px !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	body .growx-card,
	body .gx-sector-card {
		min-width: 0 !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	body .elementor-container,
	body .e-con,
	body .e-con-inner {
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	body .elementor-location-header .elementor-container,
	body .elementor-location-footer .elementor-container {
		width: 100% !important;
	}
}

@media (max-width: 767px) {
	html, body {
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: hidden !important;
	}
	body .elementor-section,
	body .elementor-container,
	body .elementor-widget-wrap,
	body .e-con,
	body .e-con-inner,
	body .gx-programs-wrap,
	body .gx-programs-panel,
	body .gx-cities-panel,
	body .gx-events-panel,
	body .gx-section-panel {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	/* Content columns become one readable column. */
	body .elementor-section:not(.elementor-location-header) .elementor-column,
	body .elementor-section:not(.elementor-location-footer) .elementor-column {
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}
	body .elementor-location-header .elementor-container {
		width: 100% !important;
		min-height: 74px !important;
		padding-inline: 14px !important;
	}
	body .elementor-location-header .elementor-column {
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		flex-basis: auto !important;
	}

	/* Public component grids. */
	body .growx-courses,
	body .growx-events,
	body .growx-sectors-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 18px !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	body .growx-cities {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	body .growx-card,
	body .growx-city-card,
	body .growx-course-card,
	body .growx-event-card,
	body .gx-sector-card {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}
	body .growx-card a,
	body .growx-card h1,
	body .growx-card h2,
	body .growx-card h3,
	body .growx-card p,
	body .gx-sector-card a,
	body .gx-sector-card h2,
	body .gx-sector-card p {
		max-width: 100% !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
		letter-spacing: normal !important;
	}
	body .growx-city-card strong,
	body .growx-city-card small {
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: normal !important;
	}
	body .growx-card-image,
	body .growx-card-image img,
	body .gx-sector-image,
	body .gx-sector-image img {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		object-fit: cover !important;
	}
	body .growx-city-card img {
		height: 190px !important;
	}

	/* Search/filter controls stack instead of shrinking into unreadable fields. */
	body .gxms-course-search-grid,
	body .gxms-site-search-form {
		grid-template-columns: minmax(0, 1fr) !important;
		flex-direction: column !important;
		width: 100% !important;
	}
	body .gxms-course-search input,
	body .gxms-course-search select,
	body .gxms-course-search button,
	body .gxms-site-search-form input,
	body .gxms-site-search-form button {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	/* Internal course/event layouts. */
	body .growx-course-single,
	body .growx-event-detail,
	body .growx-city-detail {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		overflow-wrap: break-word !important;
	}
	body .growx-course-detail-grid,
	body .growx-event-detail-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	body .growx-course-content,
	body .growx-course-sidebar,
	body .growx-course-content-card,
	body .growx-course-info-card,
	body .growx-course-audience-card,
	body .growx-course-booking-card,
	body .growx-event-detail-card {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	/* Footer columns stack cleanly. */
	body .elementor-location-footer .elementor-container,
	body .elementor-location-footer .elementor-widget-wrap {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	body .elementor-location-footer .elementor-column {
		width: 100% !important;
		max-width: 100% !important;
		flex-basis: 100% !important;
	}
}

/* Mobile safety layer for internal pages and Elementor wrappers. */
@media (max-width: 767px) {
	html, body {
		max-width: 100%;
		overflow-x: hidden !important;
	}
	.elementor-section,
	.elementor-container,
	.elementor-widget-wrap,
	.elementor-column,
	.elementor-element,
	.e-con,
	.e-con-inner {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}
	.elementor-column,
	.elementor-widget-wrap,
	.e-con-inner {
		flex-basis: 100% !important;
	}
	.elementor-location-header .elementor-column,
	.elementor-location-header .elementor-element {
		width: auto !important;
		max-width: none !important;
		flex-basis: auto !important;
	}
	.growx-cities,
	.growx-courses,
	.growx-events,
	.growx-sectors-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		gap: 16px !important;
	}
	.growx-city-card,
	.growx-course-card,
	.growx-event-card,
	.gx-sector-card {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}
	.growx-cities img,
	.growx-courses img,
	.growx-events img,
	.growx-sectors-grid img {
		max-width: 100% !important;
		height: auto;
		object-fit: cover;
	}
	.growx-course-single,
	.growx-event-detail,
	.growx-city-detail,
	.growx-courses,
	.growx-events,
	.growx-cities,
	.growx-sectors-grid {
		overflow-wrap: anywhere;
	}
	.growx-course-single *,
	.growx-event-detail *,
	.growx-city-detail * {
		max-width: 100%;
		box-sizing: border-box;
	}
	/* Force the actual plugin grids to use safe mobile columns. */
	body .growx-grid.growx-cities {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
	body .growx-grid.growx-courses,
	body .growx-grid.growx-events,
	body .growx-grid.growx-sectors-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 16px !important;
	}
	body .growx-card,
	body .gx-sector-card {
		min-width: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		overflow: hidden !important;
	}
	body .growx-city-card strong,
	body .growx-city-card small,
	body .gx-sector-title,
	body .gx-sector-description,
	body .growx-course-card h3,
	body .growx-event-card h3 {
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: normal !important;
		letter-spacing: normal !important;
	}
	body .growx-city-card strong {
		font-size: 14px !important;
		line-height: 1.25 !important;
	}
	body .growx-city-card small {
		font-size: 11px !important;
	}
}

/* v3.70: keep the ElementsKit off-canvas menu complete on inner pages. */
@media (max-width: 1024px) {
	/* The menu must be independent from the sticky/header containers. */
	body .elementskit-navbar-nav-default.elementskit-menu-offcanvas-elements {
		position: fixed !important;
		top: 0 !important;
		left: -100vw !important;
		width: min(350px, 88vw) !important;
		max-width: min(350px, 88vw) !important;
		height: 100vh !important;
		max-height: 100vh !important;
		z-index: 2147483001 !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		box-sizing: border-box !important;
	}
	body .elementskit-navbar-nav-default.elementskit-menu-offcanvas-elements.active {
		left: 0 !important;
	}

	/* ElementsKit disables the overlay for sticky headers; restore it. */
	body .elementskit-menu-overlay,
	body .ekit-sticky .elementskit-menu-overlay {
		display: block !important;
		position: fixed !important;
		top: 0 !important;
		left: -100vw !important;
		width: 100vw !important;
		height: 100vh !important;
		z-index: 2147483000 !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	body .elementskit-menu-overlay.active,
	body .ekit-sticky .elementskit-menu-overlay.active {
		left: 0 !important;
	}

	/* Keep the close control and menu list visible above the overlay. */
	body .elementskit-menu-offcanvas-elements .elementskit-nav-identity-panel,
	body .elementskit-menu-offcanvas-elements .elementskit-navbar-nav {
		position: relative !important;
		z-index: 2 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	body .elementskit-menu-offcanvas-elements .elementskit-menu-close {
		position: relative !important;
		z-index: 3 !important;
	}
}

@media (max-width: 767px) {
	.growx-sectors-grid .gx-sector-card {
		min-height: 0;
	}

	.growx-sectors-grid .gx-sector-image {
		height: 180px;
	}

	.growx-sectors-grid .gx-sector-title {
		font-size: 21px;
	}

	.growx-course-hero-content h1 {
		font-size: clamp(28px, 8vw, 36px);
	}

	.growx-course-hero-image,
	.growx-course-hero-image img {
		max-height: 320px;
	}

	.growx-city-card img {
		height: 180px;
	}

	.growx-rich-text,
	.growx-course-card p,
	.growx-event-card,
	.growx-city-card {
		font-size: 15px;
	}
}

/* v3.74: professional sector-card images on English page 438 and Arabic page 706. */
body.page-id-438 .growx-sectors-grid .gx-sector-image,
body.page-id-706 .growx-sectors-grid .gx-sector-image {
	height: auto !important;
	aspect-ratio: 16 / 9 !important;
	min-height: 0 !important;
	background: #eef2f7 !important;
	overflow: hidden !important;
}
body.page-id-438 .growx-sectors-grid .gx-sector-image img,
body.page-id-706 .growx-sectors-grid .gx-sector-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
	opacity: 1 !important;
}
body.page-id-438 .growx-sectors-grid .gx-sector-image.is-placeholder,
body.page-id-706 .growx-sectors-grid .gx-sector-image.is-placeholder {
	display: grid !important;
	place-items: center !important;
	background: linear-gradient(135deg, #071a39, #12386e) !important;
}
body.page-id-438 .growx-sectors-grid .gx-sector-card,
body.page-id-706 .growx-sectors-grid .gx-sector-card {
	min-height: 0 !important;
	height: auto !important;
	overflow: hidden !important;
}
@media (max-width: 767px) {
	body.page-id-438 .growx-sectors-grid,
	body.page-id-706 .growx-sectors-grid {
	grid-template-columns: minmax(0, 1fr) !important;
	width: 100% !important;
	max-width: 100% !important;
	gap: 18px !important;
	}
	body.page-id-438 .growx-sectors-grid .gx-sector-card,
	body.page-id-706 .growx-sectors-grid .gx-sector-card {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	}
}

/* v3.75: remove sector-card image strips and uncontrolled empty space. */
body.page-id-438 .growx-sectors-grid .gx-sector-card,
body.page-id-706 .growx-sectors-grid .gx-sector-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	padding: 0 28px 26px !important;
	box-sizing: border-box !important;
}
body.page-id-438 .growx-sectors-grid .gx-sector-image,
body.page-id-706 .growx-sectors-grid .gx-sector-image {
	display: grid !important;
	place-items: center !important;
	width: calc(100% + 56px) !important;
	max-width: none !important;
	height: auto !important;
	aspect-ratio: 16 / 9 !important;
	margin: 5px -28px 22px !important;
	box-sizing: border-box !important;
	flex: 0 0 auto !important;
}
body.page-id-438 .growx-sectors-grid .gx-sector-image img,
body.page-id-706 .growx-sectors-grid .gx-sector-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
}
body.page-id-438 .growx-sectors-grid .gx-sector-title,
body.page-id-706 .growx-sectors-grid .gx-sector-title {
	flex: 0 0 auto !important;
	margin: 0 0 12px !important;
}
body.page-id-438 .growx-sectors-grid .gx-sector-description,
body.page-id-706 .growx-sectors-grid .gx-sector-description {
	flex: 0 0 auto !important;
	margin: 0 0 18px !important;
}
body.page-id-438 .growx-sectors-grid .gx-sector-link,
body.page-id-706 .growx-sectors-grid .gx-sector-link {
	margin-top: auto !important;
	flex: 0 0 auto !important;
}
@media (max-width: 767px) {
	body.page-id-438 .growx-sectors-grid .gx-sector-card,
	body.page-id-706 .growx-sectors-grid .gx-sector-card {
		padding: 0 22px 24px !important;
	}
	body.page-id-438 .growx-sectors-grid .gx-sector-image,
	body.page-id-706 .growx-sectors-grid .gx-sector-image {
		width: calc(100% + 44px) !important;
		margin: 5px -22px 20px !important;
	}
}
