.mba-builder {
	--mba-gap: 20px;
	--mba-accent: #0a7c54;
	--mba-text: #15231d;
	--mba-muted: #627069;
	width: 100%;
	color: var(--mba-text);
}

.mba-builder,
.mba-builder * {
	box-sizing: border-box;
}

.mba-section {
	width: 100%;
	padding-top: var(--mba-padding-top, 0);
	padding-bottom: var(--mba-padding-bottom, 0);
	background-repeat: no-repeat;
}

.mba-section + .mba-section {
	margin-top: 22px;
}

.mba-section__inner {
	display: grid;
	grid-template-columns: repeat(60, minmax(0, 1fr));
	column-gap: 0;
	row-gap: var(--mba-gap);
	width: 100%;
}

.mba-wrap {
	grid-column: span var(--mba-span, 60);
	min-width: 0;
	border-radius: 14px;
	background-repeat: no-repeat;
}

.mba-wrap__inner {
	display: grid;
	grid-template-columns: repeat(60, minmax(0, 1fr));
	column-gap: 0;
	row-gap: var(--mba-gap);
	width: 100%;
	min-width: 0;
}

.mba-item {
	grid-column: span var(--mba-span, 60);
	min-width: 0;
	padding: 0 calc(var(--mba-gap) / 2);
	overflow-wrap: anywhere;
}

.mba-item.is-row-valign-top {
	align-self: start;
}

.mba-item.is-row-valign-middle {
	align-self: center;
}

.mba-item.is-row-valign-bottom {
	align-self: end;
}

.mba-item > :first-child {
	margin-top: 0;
}

.mba-item > :last-child {
	margin-bottom: 0;
}

.mba-item img {
	max-width: 100%;
	height: auto;
}

.mba-item h2,
.mba-item h3,
.mba-item h4 {
	color: var(--mba-text);
	line-height: 1.2;
}

.mba-item p,
.mba-item li {
	color: inherit;
	line-height: 1.65;
}

.mba-image {
	display: block;
	overflow: hidden;
	border-radius: 14px;
}

.mba-image img,
.mba-generic-image {
	display: block;
	width: 100%;
	border-radius: 14px;
	object-fit: cover;
}

.mba-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 22px;
	border: 1px solid var(--mba-accent);
	border-radius: 10px;
	background: var(--mba-accent);
	color: #fff !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.mba-button:hover {
	background: #086b49;
	box-shadow: 0 8px 20px rgba(10, 124, 84, .2);
	transform: translateY(-1px);
}

.mba-blockquote {
	margin: 0;
	padding: 20px 22px;
	border: 0;
	border-left: 4px solid var(--mba-accent);
	border-radius: 0 14px 14px 0;
	background: #eef8f3;
}

.mba-blockquote cite {
	display: block;
	margin-top: 10px;
	color: var(--mba-muted);
	font-style: normal;
	font-weight: 700;
}

.mba-divider {
	display: flex;
	align-items: center;
	min-height: var(--mba-divider-height, 20px);
}

.mba-divider::before {
	width: 100%;
	height: 1px;
	background: #dce5e0;
	content: "";
}

.mba-divider--space::before {
	display: none;
}

.mba-item__title {
	margin-bottom: 12px;
	font-size: clamp(20px, 2vw, 28px);
}

.mba-photo-box {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

.mba-photo-box__image {
	display: block;
	overflow: hidden;
	border-radius: 14px;
}

.mba-photo-box__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.mba-photo-box__title {
	margin: 14px 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.mba-photo-box__desc {
	color: var(--mba-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.mba-photo-box__desc > :first-child {
	margin-top: 0;
}

.mba-photo-box__desc > :last-child {
	margin-bottom: 0;
}

.mba-item--antdrive_visual_custom {
	overflow-wrap: normal;
}

.mba-item--antdrive_video_custom {
	overflow-wrap: normal;
}

.mba-visual-custom,
.mba-video-custom {
	width: 100%;
}

.mba-visual-custom__caption,
.mba-video-custom__caption {
	margin: 0 0 var(--mba-caption-gap, 16px);
	color: var(--mba-text);
}

.mba-visual-custom__caption.is-align-left,
.mba-video-custom__caption.is-align-left {
	text-align: left;
}

.mba-visual-custom__caption.is-align-right,
.mba-video-custom__caption.is-align-right {
	text-align: right;
}

.mba-visual-custom__caption-title,
.mba-video-custom__caption-title {
	margin: 0 0 0.35em;
	font-size: var(--mba-caption-title-size, 28px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--mba-caption-title-color, var(--mba-text));
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
}

.mba-visual-custom__caption-text,
.mba-video-custom__caption-text {
	margin: 0;
	font-size: var(--mba-caption-text-size, 15px);
	line-height: 1.5;
	color: var(--mba-caption-text-color, var(--mba-muted));
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
}

.mba-visual-custom__caption-text p,
.mba-video-custom__caption-text p {
	margin: 0 0 0.4em;
}

.mba-visual-custom__caption-text p:last-child,
.mba-video-custom__caption-text p:last-child {
	margin-bottom: 0;
}

.mba-visual-custom__media {
	position: relative;
	width: 100%;
	container-type: inline-size;
	container-name: mba-visual;
	/* Desktop base: size unit relative to photo width. */
	--mba-font-scale: 0.1;
	--mba-title-min: 16px;
	--mba-text-min: 13px;
}

.mba-visual-custom__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.mba-video-custom__media {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #0f1412;
	container-type: inline-size;
	container-name: mba-video;
	--mba-font-scale: 0.1;
	--mba-title-min: 16px;
	--mba-text-min: 13px;
}

.mba-video-custom__media.has-ratio {
	aspect-ratio: var(--mba-video-ratio, 16 / 9);
}

.mba-video-custom__media.has-ratio .mba-video-custom__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mba-video-custom__player {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	background: #0f1412;
}

.mba-video-custom__gradient {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;
	width: var(--mba-grad-width, 40%);
	pointer-events: none;
	opacity: var(--mba-grad-opacity, 0.8);
}

.mba-video-custom__media.has-gradient-left .mba-video-custom__gradient {
	left: 0;
	background: linear-gradient(
		to right,
		var(--mba-grad-color, #000) 0%,
		transparent 100%
	);
}

.mba-video-custom__media.has-gradient-right .mba-video-custom__gradient {
	right: 0;
	left: auto;
	background: linear-gradient(
		to left,
		var(--mba-grad-color, #000) 0%,
		transparent 100%
	);
}

.mba-visual-custom__label,
.mba-video-custom__label {
	position: absolute;
	box-sizing: border-box;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding: 0;
	color: var(--mba-text);
	line-height: 1.35;
	overflow: hidden;
	pointer-events: none;
}

.mba-visual-custom__label.is-align-left,
.mba-video-custom__label.is-align-left {
	align-items: flex-start;
	text-align: left;
}

.mba-visual-custom__label.is-align-center,
.mba-video-custom__label.is-align-center {
	align-items: center;
	text-align: center;
}

.mba-visual-custom__label.is-align-right,
.mba-video-custom__label.is-align-right {
	align-items: flex-end;
	text-align: right;
}

.mba-visual-custom__label.is-valign-top,
.mba-video-custom__label.is-valign-top {
	justify-content: flex-start;
}

.mba-visual-custom__label.is-valign-middle,
.mba-video-custom__label.is-valign-middle {
	justify-content: center;
}

.mba-visual-custom__label.is-valign-bottom,
.mba-video-custom__label.is-valign-bottom {
	justify-content: flex-end;
}

.mba-visual-custom__title,
.mba-video-custom__title {
	margin: 0 0 0.35em;
	/* Scales with photo width, but never below --mba-title-min. */
	font-size: clamp(
		var(--mba-title-min),
		calc(var(--mba-title-size, 22) * var(--mba-font-scale) * 1cqi),
		calc(var(--mba-title-size, 22) * 0.14cqi)
	);
	font-weight: 700;
	line-height: 1.25;
	max-width: 100%;
	color: var(--mba-title-color, var(--mba-text));
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
}

.mba-visual-custom__title span,
.mba-video-custom__title span {
	opacity: 0.7;
	font-weight: 600;
	margin-right: 0.25em;
}

.mba-visual-custom__text,
.mba-video-custom__text {
	margin: 0;
	font-size: clamp(
		var(--mba-text-min),
		calc(var(--mba-text-size, 14) * var(--mba-font-scale) * 1cqi),
		calc(var(--mba-text-size, 14) * 0.14cqi)
	);
	line-height: 1.45;
	color: var(--mba-text-color, var(--mba-muted));
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
}

.mba-visual-custom__text p,
.mba-video-custom__text p {
	margin: 0 0 0.4em;
}

.mba-visual-custom__text p:last-child,
.mba-video-custom__text p:last-child {
	margin-bottom: 0;
}

/* Tablet: boost scale + keep readable floor. */
@media (max-width: 959px) {
	.mba-visual-custom__media,
	.mba-video-custom__media {
		--mba-font-scale: 0.145;
		--mba-title-min: 15px;
		--mba-text-min: 13px;
	}
}

/* Mobile: stronger boost — cqi is very small on narrow screens. */
@media (max-width: 767px) {
	.mba-visual-custom__media,
	.mba-video-custom__media {
		--mba-font-scale: 0.2;
		--mba-title-min: 14px;
		--mba-text-min: 12px;
	}
}

/*
 * Responsive Visibility
 * Mobile:  < 768px
 * Tablet:  768px – 959px
 * Desktop: 960px+
 */
@media (min-width: 960px) {
	.mba-builder .hide-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 959px) {
	.mba-builder .hide-tablet {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.mba-builder .hide-mobile {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.mba-builder {
		--mba-gap: 14px;
	}

	.mba-section__inner,
	.mba-wrap__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.mba-wrap,
	.mba-item {
		grid-column: 1 / -1;
	}

	.mba-section + .mba-section {
		margin-top: 16px;
	}
}
